|
@@ -55,7 +55,8 @@
|
|
|
<div class="layui-card">
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-header"><i class="layui-icon layui-icon-star"></i>档案权限</div>
|
|
<div class="layui-card-header"><i class="layui-icon layui-icon-star"></i>档案权限</div>
|
|
|
<div class="layui-card-body">
|
|
<div class="layui-card-body">
|
|
|
- <input type="checkbox" name="bmqx-role" lay-skin="switch" lay-filter="switchTest" lay-text="ON|OFF">
|
|
|
|
|
|
|
+ <input type="checkbox" name="bmqx-role" lay-skin="switch" lay-filter="switchTest"
|
|
|
|
|
+ lay-text="ON|OFF">
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -132,10 +133,10 @@
|
|
|
elem: '#bmqx-role'
|
|
elem: '#bmqx-role'
|
|
|
, data: res.data
|
|
, data: res.data
|
|
|
});
|
|
});
|
|
|
- if(res.data==1){
|
|
|
|
|
- form.val('addPaper', {
|
|
|
|
|
- "bmqx-role": true //开关状态
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ if (res.data == 1) {
|
|
|
|
|
+ form.val('addPaper', {
|
|
|
|
|
+ "bmqx-role": true //开关状态
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|
|
@@ -176,7 +177,6 @@
|
|
|
archiveTrees: getChecked_list(tree.getChecked("archive-tree-role")),
|
|
archiveTrees: getChecked_list(tree.getChecked("archive-tree-role")),
|
|
|
archiveShow: getChecked_list(tree.getChecked("archive-role")),
|
|
archiveShow: getChecked_list(tree.getChecked("archive-role")),
|
|
|
bmqxRole: document.getElementById("bmqx-role").value
|
|
bmqxRole: document.getElementById("bmqx-role").value
|
|
|
- bmqxRole:bmqxRole
|
|
|
|
|
}
|
|
}
|
|
|
console.log()
|
|
console.log()
|
|
|
http.post('system/role/setRole', data, true, function (res) {
|
|
http.post('system/role/setRole', data, true, function (res) {
|
|
@@ -200,12 +200,12 @@
|
|
|
initMj()
|
|
initMj()
|
|
|
initdept()
|
|
initdept()
|
|
|
|
|
|
|
|
- var bmqxRole=0
|
|
|
|
|
- form.on('switch(switchTest)', function(data){
|
|
|
|
|
- if(this.checked){
|
|
|
|
|
- bmqxRole=1
|
|
|
|
|
- }else {
|
|
|
|
|
- bmqxRole=0
|
|
|
|
|
|
|
+ var bmqxRole = 0
|
|
|
|
|
+ form.on('switch(switchTest)', function (data) {
|
|
|
|
|
+ if (this.checked) {
|
|
|
|
|
+ bmqxRole = 1
|
|
|
|
|
+ } else {
|
|
|
|
|
+ bmqxRole = 0
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|