bug修复

This commit is contained in:
liang.chao 2025-06-03 09:26:22 +08:00
parent 386973a62d
commit 563a7cc78c
1 changed files with 12 additions and 1 deletions

View File

@ -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>