Commit 92f8a798 authored by agping's avatar agping

修改

parent e84fadc2
......@@ -420,6 +420,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
var doTempl = doT.template(temp);
$("#agentlist").html(doTempl(data.data.list));
agent.getEvaluationList(agent.idArray);
$('.btn-default-show-caozuo').nextAll().hide();//默认按钮只显示两个
/*分页代码*/
add_page(data.data.total, pageNo, agent.pageSize, agent.getList);
$('.J_preview').preview();
......
......@@ -99,15 +99,14 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
if($.trim(_this.html()).indexOf("隐藏")!=-1){
$('#sidebar-wrapper').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{
$('#sidebar-wrapper').show();
_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){
e.preventDefault();
e.stopPropagation();
......
......@@ -41,16 +41,16 @@
[% }else{ %]
<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')) {%]
<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')) {%]
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment