Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
fbc577c4
Commit
fbc577c4
authored
Feb 28, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自动锁定
parent
f9789f56
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
4 deletions
+38
-4
agent.html
application/index/view/broker/agent.html
+2
-0
agent.js
public/resource/js/agent.js
+28
-0
inspectionRecordAll.js
public/resource/js/inspectionRecordAll.js
+3
-3
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+5
-1
No files found.
application/index/view/broker/agent.html
View file @
fbc577c4
...
@@ -156,6 +156,8 @@
...
@@ -156,6 +156,8 @@
<option
value=
"2"
>
离职
</option>
<option
value=
"2"
>
离职
</option>
<option
value=
"3"
>
已转勤
</option>
<option
value=
"3"
>
已转勤
</option>
<option
value=
"4"
>
黑名单
</option>
<option
value=
"4"
>
黑名单
</option>
<option
value=
"5"
>
自动锁定
</option>
</select>
</select>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
...
...
public/resource/js/agent.js
View file @
fbc577c4
...
@@ -211,6 +211,34 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -211,6 +211,34 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
});
});
});
});
//解除自动锁定
$
(
document
).
on
(
'click'
,
'.automatic-locking'
,
function
(
e
){
var
params
=
{};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
if
(
!
confirm
(
'是否解锁此账号为正常状态?'
))
{
return
;
};
var
hideAutomatic
=
{};
hideAutomatic
=
$
(
this
);
$
.
ajax
({
//经纪人
'type'
:
'POST'
,
'url'
:
'/index/updateStatus'
,
data
:
{
"ids"
:
params
.
id
,
"status"
:
5
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
hideAutomatic
.
hide
();
// console.log( $(this));
}
else
{
alert
(
"禁用失败!"
)
}
}
});
});
//手机绑定状态切换
//手机绑定状态切换
$
(
document
).
delegate
(
".is_show2"
,
"click"
,
function
()
{
//点击禁用
$
(
document
).
delegate
(
".is_show2"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
if
(
!
confirm
(
'是否继续?'
))
{
...
...
public/resource/js/inspectionRecordAll.js
View file @
fbc577c4
...
@@ -109,11 +109,11 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
...
@@ -109,11 +109,11 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
switchUrl
:
function
(){
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
case
0
:
return
'inspectionRecordAll/3'
;
return
'
/index/
inspectionRecordAll/3'
;
case
1
:
case
1
:
return
'inspectionRecordDistrict/2'
;
return
'
/index/
inspectionRecordDistrict/2'
;
case
2
:
case
2
:
return
'inspectionRecordStore/1'
;
return
'
/index/
inspectionRecordStore/1'
;
default
:
default
:
return
''
;
return
''
;
}
}
...
...
public/resource/template/agent_template_tpl.html
View file @
fbc577c4
...
@@ -51,7 +51,11 @@
...
@@ -51,7 +51,11 @@
<
a
class
=
"btn1 btn-info yetai_checkbox"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["status"] %]'
>
长假
<
/a
>
<
a
class
=
"btn1 btn-info yetai_checkbox"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["status"] %]'
>
长假
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-show-caozuo"
>>>><
/a
>
[
%
if
(
it
[
item
][
"status"
]
==
2
)
{
%
]
<
a
class
=
"btn1 btn-warning automatic-locking"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
status
=
'[%= it[item]["status"] %]'
>
自动锁定
<
/a
>
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-show-caozuo"
>>>><
/a
>
[
%
if
(
check_auth
(
'index/updateRole'
))
{
%
]
[
%
if
(
check_auth
(
'index/updateRole'
))
{
%
]
<
a
href
=
"#modal-user"
class
=
"btn1 btn-danger btn-default-hide-display"
id
=
'role'
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
角色设置
<
/a
>
<
a
href
=
"#modal-user"
class
=
"btn1 btn-danger btn-default-hide-display"
id
=
'role'
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
角色设置
<
/a
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment