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
92f8a798
Commit
92f8a798
authored
Aug 02, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e84fadc2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
agent.js
public/resource/js/agent.js
+2
-0
public.js
public/resource/js/public.js
+17
-18
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+4
-4
No files found.
public/resource/js/agent.js
View file @
92f8a798
...
@@ -420,6 +420,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -420,6 +420,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
var
doTempl
=
doT
.
template
(
temp
);
var
doTempl
=
doT
.
template
(
temp
);
$
(
"#agentlist"
).
html
(
doTempl
(
data
.
data
.
list
));
$
(
"#agentlist"
).
html
(
doTempl
(
data
.
data
.
list
));
agent
.
getEvaluationList
(
agent
.
idArray
);
agent
.
getEvaluationList
(
agent
.
idArray
);
$
(
'.btn-default-show-caozuo'
).
nextAll
().
hide
();
//默认按钮只显示两个
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
add_page
(
data
.
data
.
total
,
pageNo
,
agent
.
pageSize
,
agent
.
getList
);
$
(
'.J_preview'
).
preview
();
$
(
'.J_preview'
).
preview
();
...
...
public/resource/js/public.js
View file @
92f8a798
...
@@ -92,38 +92,37 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
...
@@ -92,38 +92,37 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
_this
.
addClass
(
'active-main-li'
).
siblings
().
removeClass
(
'active-main-li'
);
_this
.
addClass
(
'active-main-li'
).
siblings
().
removeClass
(
'active-main-li'
);
});
});
//隐藏菜单 显示菜单
//隐藏菜单 显示菜单
_doc
.
on
(
'click'
,
'.width-136-hide'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.width-136-hide'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
if
(
$
.
trim
(
_this
.
html
()).
indexOf
(
"隐藏"
)
!=-
1
){
if
(
$
.
trim
(
_this
.
html
()).
indexOf
(
"隐藏"
)
!=-
1
){
$
(
'#sidebar-wrapper'
).
hide
();
$
(
'#sidebar-wrapper'
).
hide
();
_this
.
html
(
'显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>'
);
_this
.
html
(
'显示<img src="/resource/image/icon_down_hide@2x.png" class="text-icon-hide"/>'
);
console
.
log
(
2
);
// $("#page-content-wrapper").css("width","88%");//内容显示大小
// $("#page-content-wrapper").css("width","88%");//内容显示大小
}
else
{
}
else
{
$
(
'#sidebar-wrapper'
).
show
();
$
(
'#sidebar-wrapper'
).
show
();
_this
.
html
(
'隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>'
);
_this
.
html
(
'隐藏<img src="/resource/image/icon_down@2x.png" class="text-icon-hide"/>'
);
// $("#page-content-wrapper").css("width","88%");//内容显示大小
// $("#page-content-wrapper").css("width","88%");//内容显示大小
}
}
});
});
//显示操作里的按钮 显示按钮
//显示操作里的按钮
_doc
.
on
(
'click'
,
'.btn-default-show-caozuo'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.btn-default-show-caozuo'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
hide
();
_this
.
hide
();
_this
.
nextAll
().
show
();
_this
.
nextAll
().
show
();
});
});
//隐藏操作里的按钮
//隐藏操作里的按钮
_doc
.
on
(
'click'
,
'.btn-default-hide-caozuo'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.btn-default-hide-caozuo'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
_this
.
prevAll
(
'.btn-default-hide-display'
).
hide
();
_this
.
prevAll
(
'.btn-default-hide-display'
).
hide
();
_this
.
hide
();
_this
.
hide
();
$
(
'.btn-default-show-caozuo'
).
show
();
$
(
'.btn-default-show-caozuo'
).
show
();
});
});
...
...
public/resource/template/agent_template_tpl.html
View file @
92f8a798
...
@@ -41,16 +41,16 @@
...
@@ -41,16 +41,16 @@
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-default"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
离职
<
/a
>
<
a
class
=
"btn1 btn-default"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
离职
<
/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"
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
>
[
%
}
%
]
[
%
}
%
]
<!--
绑定手机权限
-->
<!--
绑定手机权限
-->
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
<
a
class
=
"btn1 btn-success phone-bundling"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
<
a
class
=
"btn1 btn-success phone-bundling
btn-default-hide-display
"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
/
电脑
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
!--<
a
class
=
"btn1 btn-success pc-bundling"
href
=
"#modal-pcbundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定电脑
<
/a>--
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/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