Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hg-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
hg-smart
Commits
ca864c64
Commit
ca864c64
authored
Nov 01, 2024
by
宋祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.fixBug:角色无法删除的问题;文档库显示下载记录和预览记录
parent
f07b5264
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
13 deletions
+45
-13
HGWD003.xml
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD003.xml
+1
-1
ServiceXSUserManage.java
...om/baosight/xservices/xs/service/ServiceXSUserManage.java
+6
-6
HGWD001.js
src/main/webapp/HG/WD/HGWD001.js
+37
-1
HGWD001.jsp
src/main/webapp/HG/WD/HGWD001.jsp
+1
-1
HGWD002.js
src/main/webapp/HG/WD/HGWD002.js
+0
-4
No files found.
src/main/java/com/baosight/hggp/hg/wd/sql/HGWD003.xml
View file @
ca864c64
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<select
id=
"count"
resultClass=
"int"
>
<select
id=
"count"
resultClass=
"int"
>
SELECT COUNT(*)
SELECT COUNT(*)
FROM ${hggpSchema}.HGWD00
1
A
FROM ${hggpSchema}.HGWD00
3
A
INNER JOIN ${platSchema}.XS_USER B ON A.USER_ID = B.LOGIN_NAME
INNER JOIN ${platSchema}.XS_USER B ON A.USER_ID = B.LOGIN_NAME
LEFT JOIN ${platSchema}.TXSOG02 C ON B.USER_ID = C.USER_ID
LEFT JOIN ${platSchema}.TXSOG02 C ON B.USER_ID = C.USER_ID
LEFT JOIN ${platSchema}.TXSOG01 D ON C.ORG_ID = D.ORG_ID
LEFT JOIN ${platSchema}.TXSOG01 D ON C.ORG_ID = D.ORG_ID
...
...
src/main/java/com/baosight/xservices/xs/service/ServiceXSUserManage.java
View file @
ca864c64
...
@@ -840,12 +840,12 @@ public class ServiceXSUserManage extends ServiceEPBase {
...
@@ -840,12 +840,12 @@ public class ServiceXSUserManage extends ServiceEPBase {
throw
new
PlatException
(
"["
+
groupEname
+
"]用户组存在授权关系,不能删除!"
);
throw
new
PlatException
(
"["
+
groupEname
+
"]用户组存在授权关系,不能删除!"
);
}
}
map
.
put
(
"authGroupId"
,
groupId
);
//
map.put("authGroupId", groupId);
List
groupDataAuth
=
this
.
dao
.
query
(
"XS10.query"
,
map
);
//
List groupDataAuth = this.dao.query("XS10.query", map);
eiInfo
.
set
(
EiConstant
.
serviceId
,
"S_XS_31"
);
//
eiInfo.set(EiConstant.serviceId, "S_XS_31");
if
(
null
!=
groupDataAuth
&&
groupDataAuth
.
size
()
>
0
)
{
//
if (null != groupDataAuth && groupDataAuth.size() > 0) {
throw
new
PlatException
(
"["
+
groupEname
+
"]用户组存在数据集授权关系,不能删除!"
);
//
throw new PlatException("[" + groupEname + "]用户组存在数据集授权关系,不能删除!");
}
//
}
}
}
inInfoRowMap
.
put
(
"groupId"
,
groupId
);
inInfoRowMap
.
put
(
"groupId"
,
groupId
);
...
...
src/main/webapp/HG/WD/HGWD001.js
View file @
ca864c64
...
@@ -491,7 +491,11 @@ $(function () {
...
@@ -491,7 +491,11 @@ $(function () {
+
'
\'
)" target="_blank">变更</a>'
;
+
'
\'
)" target="_blank">变更</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="changeFileRecords(
\'
'
+
model
.
id
+
'
\'
,
\'
'
+
model
.
docId
+
'onclick="changeFileRecords(
\'
'
+
model
.
id
+
'
\'
,
\'
'
+
model
.
docId
+
'
\'
,
\'
'
+
model
.
docName
+
'
\'
)" target="_blank">变更记录</a>'
;
+
'
\'
,
\'
'
+
model
.
docName
+
'
\'
)" target="_blank">变更记录</a><br/>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showQueryRecord(
\'
'
+
model
.
docId
+
'
\'
)" >预览记录</a>'
;
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showDownloadRecord(
\'
'
+
model
.
docId
+
'
\'
)" >下载记录</a>'
;
return
template
;
return
template
;
}
}
},
{
},
{
...
@@ -1128,3 +1132,34 @@ let treeSelectClick = function (nodeData) {
...
@@ -1128,3 +1132,34 @@ let treeSelectClick = function (nodeData) {
// 刷新列表
// 刷新列表
query
();
query
();
}
}
/**
* 显示查询记录
*
* @param docId
*/
let
showQueryRecord
=
function
(
docId
)
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
JSColorbox
.
open
({
href
:
"HGWD001B?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-docId="
+
docId
,
title
:
"<div style='text-align: center;'>预览记录</div>"
,
width
:
"80%"
,
height
:
"80%"
,
});
}
/**
* 显示下载记录
*
* @param docId
*/
let
showDownloadRecord
=
function
(
docId
)
{
let
fileId
=
IPLATUI
.
EFTree
.
categoryTree
.
selectTreeNode
.
fileId
;
JSColorbox
.
open
({
href
:
"HGWD001C?inqu_status-0-fileId="
+
fileId
+
"&inqu_status-0-docId="
+
docId
,
title
:
"<div style='text-align: center;'>下载记录</div>"
,
width
:
"80%"
,
height
:
"80%"
,
});
}
\ No newline at end of file
src/main/webapp/HG/WD/HGWD001.jsp
View file @
ca864c64
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
sort=
"single"
serviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
sort=
"single"
serviceName=
"HGWD099"
queryMethod=
"query"
deleteMethod=
"delete"
>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"id"
cname=
"ID"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"180"
hidden=
"true"
/>
<EF:EFColumn
ename=
"docId"
cname=
"文件ID"
enable=
"false"
width=
"180"
hidden=
"true"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
4
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"operator"
cname=
"操作"
enable=
"false"
width=
"1
5
0"
align=
"center"
sort=
"false"
/>
<EF:EFColumn
ename=
"docName"
cname=
"附件名称"
enable=
"false"
width=
"200"
/>
<EF:EFColumn
ename=
"docName"
cname=
"附件名称"
enable=
"false"
width=
"200"
/>
<EF:EFColumn
ename=
"docType"
cname=
"附件类型"
enable=
"false"
width=
"110"
align=
"center"
/>
<EF:EFColumn
ename=
"docType"
cname=
"附件类型"
enable=
"false"
width=
"110"
align=
"center"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"90"
align=
"center"
sort=
"true"
/>
<EF:EFColumn
ename=
"docVersion"
cname=
"版本号"
enable=
"false"
width=
"90"
align=
"center"
sort=
"true"
/>
...
...
src/main/webapp/HG/WD/HGWD002.js
View file @
ca864c64
...
@@ -156,10 +156,6 @@ $(function () {
...
@@ -156,10 +156,6 @@ $(function () {
template
:
function
(
model
)
{
template
:
function
(
model
)
{
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
param
=
"'"
+
model
.
docId
+
"', '"
+
model
.
docType
+
"', '"
+
model
.
docName
+
"'"
;
let
template
=
''
;
let
template
=
''
;
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// + 'onclick="showQueryRecord(' + param + ')" >预览记录</a>';
// template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
// + 'onclick="showDownloadRecord(' + param + ')" >下载记录</a>';
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
template
+=
'<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+
'onclick="showPreview('
+
param
+
')" >预览</a>'
;
+
'onclick="showPreview('
+
param
+
')" >预览</a>'
;
return
template
;
return
template
;
...
...
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