Commit e85b0904 by 宋祥

1.菜单授权仅展示有权限的

parent e6cc6086
...@@ -21,25 +21,22 @@ ...@@ -21,25 +21,22 @@
<isNotEmpty prepend=" AND " property="notNodeEnames"> <isNotEmpty prepend=" AND " property="notNodeEnames">
node_ename not in <iterate close=")" open="(" conjunction="," property="notNodeEnames">#notNodeEnames[]#</iterate> node_ename not in <iterate close=")" open="(" conjunction="," property="notNodeEnames">#notNodeEnames[]#</iterate>
</isNotEmpty> </isNotEmpty>
<!-- 非管理员非root节点仅显示有权限的菜单 added by songx at 20240126 --> <!-- 非管理员仅展示有权限的菜单 added by songx at 20240809 -->
<isNotEqual property="node" compareValue="root"> <isEqual prepend=" AND " property="isUserAdmin" compareValue="0">
<isEqual prepend=" AND " property="isUserAdmin" compareValue="0"> exists (
(exists ( select c.object_id, d.resource_ename
select from ${platSchema}.xs_user a,
c. object_id, d.resource_ename ${platSchema}.xs_user_group_member b,
from ${platSchema}.xs_user a, ${platSchema}.xs_authorization c,
${platSchema}.xs_user_group_member b, ${platSchema}.xs_resource d
${platSchema}.xs_authorization c, where a.user_id = b.member_id
${platSchema}.xs_resource d and b.parent_id = c.subject_id
where a.user_id = b.member_id and c.object_id = d.id
and b.parent_id = c.subject_id and a.login_name = #loginName#
and c.object_id = d.id and d.type = 'PAGE'
and a.login_name = #loginName# and find_in_set(d.resource_ename, (select queryMenuPageInfo(m.node_ename)))
and d.type = 'PAGE' )
and m.node_ename = d.resource_ename </isEqual>
) or node_type = '2')
</isEqual>
</isNotEqual>
</dynamic> </dynamic>
UNION UNION
SELECT SELECT
......
...@@ -26,9 +26,14 @@ $(function () { ...@@ -26,9 +26,14 @@ $(function () {
refreshSelect(container, inInfo); refreshSelect(container, inInfo);
} }
}, { }, {
field: "applyNum",
template: function (model) {
return model.applyNum ? model.applyNum + "%" : "";
}
}, {
field: "completeNum", field: "completeNum",
template: function (model) { template: function (model) {
return model.completeNum + "%"; return model.completeNum ? model.completeNum + "%" : "";
} }
}], }],
dataBound: function () { dataBound: function () {
...@@ -43,7 +48,7 @@ $(function () { ...@@ -43,7 +48,7 @@ $(function () {
// 选择 // 选择
$("#BTN_SELECT").on("click", select); $("#BTN_SELECT").on("click", select);
downKeyUp();
}); });
/** /**
...@@ -53,7 +58,9 @@ $(window).load(function () { ...@@ -53,7 +58,9 @@ $(window).load(function () {
// 初始化查询 // 初始化查询
query(); query();
// 仓库名称 // 仓库名称
initWh() initWh();
// 键盘按键
downKeyUp();
}); });
/** /**
......
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