bug修复
This commit is contained in:
parent
386973a62d
commit
563a7cc78c
|
|
@ -39,7 +39,7 @@
|
|||
let layer, laydate, table, form;
|
||||
let tableLoading;
|
||||
$(function () {
|
||||
layui.use(['layer', 'laydate', 'table', 'form'], function () {
|
||||
let use1 = layui.use(['layer', 'laydate', 'table', 'form'], function () {
|
||||
layer = layui.layer;
|
||||
laydate = layui.laydate;
|
||||
table = layui.table;
|
||||
|
|
@ -64,6 +64,16 @@
|
|||
return false;
|
||||
});
|
||||
});
|
||||
let use = use1;
|
||||
// 获取当前页面类型
|
||||
|
||||
const typeValue = getUrlParam("type")
|
||||
// 获取当前用户的组织机构id
|
||||
const loginUser = localStorage.getItem('loginUser') ? JSON.parse(localStorage.getItem('loginUser')) : null;
|
||||
if ((loginUser && loginUser.orgType == 1) || typeValue == 2) {
|
||||
// 隐藏全部审核按钮
|
||||
$('#allAudit').hide();
|
||||
}
|
||||
});
|
||||
|
||||
function initTable(deptId) {
|
||||
|
|
@ -401,4 +411,5 @@
|
|||
parent.search(1)
|
||||
parent.layer.close(index); // 再执行关闭
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue