|
@@ -55,7 +55,7 @@
|
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="enable">解冻</a>
|
|
|
{{# }; }}
|
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
|
|
|
-
|
|
|
+ <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="power">权限</a>
|
|
|
</script>
|
|
|
<script>
|
|
|
var table;
|
|
@@ -70,15 +70,15 @@
|
|
|
,where:{MINView:"JSON"}
|
|
|
,page: true //开启分页
|
|
|
,cols: [[ //表头
|
|
|
- {field: 'id', type: 'numbers', title: '序号'}
|
|
|
- ,{field: 'branchId', title: '编号', width:'8%', sort: true}
|
|
|
- ,{field: 'name', title: '商户名称', width:'15%',sort: true}
|
|
|
- ,{field: 'count', title: '操作员人数', width:'12%'}
|
|
|
- ,{field: 'person', title: '联系人', width:'10%'}
|
|
|
+ {field: 'num', title: '序号',width:'8%', type:'numbers', fixed: true, align: 'center'}
|
|
|
+ ,{field: 'branchId', title: '编号', width:'10%', sort: true, fixed: 'left'}
|
|
|
+ ,{field: 'name', title: '商户名称', width:'15%',sort: true, fixed: 'left'}
|
|
|
+ ,{field: 'count', title: '操作员人数', width:'8%'}
|
|
|
+ ,{field: 'person', title: '联系人', width:'8%'}
|
|
|
,{field: 'phone', title: '联系方式', width:'10%'}
|
|
|
- ,{field: 'desc', title: '备注', width:'20%', sort: true}
|
|
|
+ ,{field: 'desc', title: '备注', width:'13%', sort: true}
|
|
|
,{field: 'sttdesc', title: '状态', width:'8%', sort: true}
|
|
|
- ,{field: 'operate', title: '操作', width: '15%', toolbar: '#barDemo'}
|
|
|
+ ,{field: 'operate', title: '操作', width: '20%', toolbar: '#barDemo'}
|
|
|
]]
|
|
|
,done: function(res, curr, count){
|
|
|
//如果是异步请求数据方式,res即为你接口返回的信息。
|
|
@@ -138,6 +138,8 @@
|
|
|
});
|
|
|
} else if(layEvent === 'edit'){ //编辑
|
|
|
editDetail(data);
|
|
|
+ } else if(layEvent === 'power'){ //权限
|
|
|
+ updatePower(data);
|
|
|
}else if(layEvent === 'frozen'){ //冻结
|
|
|
|
|
|
layer.confirm('是否确定要删除该商户?', function(index){
|
|
@@ -196,6 +198,27 @@
|
|
|
active[type] ? active[type].call(this) : '';
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ function updatePower(data) {
|
|
|
+ var params = {};
|
|
|
+ params.columnNumber = 2; //每行显示两个字段
|
|
|
+ // 要显示的数据
|
|
|
+ params.fields = [{field: 'branchId', title: '编号'},
|
|
|
+ {field: 'name', title: '商户名称'}
|
|
|
+ ];
|
|
|
+ // 寄存当前数据
|
|
|
+ setNowRowData(data, params);
|
|
|
+ layer.open({
|
|
|
+ type: 2,
|
|
|
+ title: '权限修改',
|
|
|
+ shadeClose: true,
|
|
|
+ shade:0.8,
|
|
|
+ //maxmin: true, //开启最大化最小化按钮
|
|
|
+ area: ['75%', '85%'],
|
|
|
+ content: '../../admin/departmentManage/departmentUpdate.html'
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
//查询详情
|
|
|
function showDetail(data) {
|
|
|
var params = {};
|