Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
e85b0904
Commit
e85b0904
authored
Aug 09, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.菜单授权仅展示有权限的
parent
e6cc6086
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
XS0702.xml
src/main/java/com/baosight/xservices/xs/sql/XS0702.xml
+5
-8
HPKC103A.js
src/main/webapp/HP/KC/HPKC103A.js
+10
-3
No files found.
src/main/java/com/baosight/xservices/xs/sql/XS0702.xml
View file @
e85b0904
...
@@ -21,12 +21,10 @@
...
@@ -21,12 +21,10 @@
<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
select c.object_id, d.resource_ename
c. object_id, d.resource_ename
from ${platSchema}.xs_user a,
from ${platSchema}.xs_user a,
${platSchema}.xs_user_group_member b,
${platSchema}.xs_user_group_member b,
${platSchema}.xs_authorization c,
${platSchema}.xs_authorization c,
...
@@ -36,10 +34,9 @@
...
@@ -36,10 +34,9 @@
and c.object_id = d.id
and c.object_id = d.id
and a.login_name = #loginName#
and a.login_name = #loginName#
and d.type = 'PAGE'
and d.type = 'PAGE'
and m.node_ename = d.resource_ename
and find_in_set(d.resource_ename, (select queryMenuPageInfo(m.node_ename)))
) or node_type = '2'
)
)
</isEqual>
</isEqual>
</isNotEqual>
</dynamic>
</dynamic>
UNION
UNION
SELECT
SELECT
...
...
src/main/webapp/HP/KC/HPKC103A.js
View file @
e85b0904
...
@@ -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
();
});
});
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment