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 ...@@ -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();
......
...@@ -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();
}); });
......
...@@ -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>
......
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