Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
8288e01f
authored
2025-09-19 18:18:01 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
没有附件不展示附件信息
1 parent
300cce3c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
0 deletions
src/views/data_asset/registerJSZQDetail.vue
src/views/data_asset/registerJSZQDetail.vue
View file @
8288e01
...
...
@@ -129,6 +129,29 @@ const getDetailInfo = () => {
if
(
assetDetailInfo
.
value
.
registerRSVO
?.
isAuthreSourceDevelop
==
'N'
&&
assetDetailInfo
.
value
.
registerRSVO
?.
isSharedData
==
'Y'
)
{
activeShareTabName
.
value
=
'shareOrgs'
;
}
uploadFileDetailInfo
.
value
=
[];
assetDetailInfo
.
value
.
attachmentRSVOS
?.
forEach
(
attch
=>
{
let
f
=
uploadFileDetailInfo
.
value
.
find
(
u
=>
u
.
fileType
==
attch
.
fileType
);
if
(
f
&&
f
.
files
.
length
)
{
f
.
files
.
push
({
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
});
}
else
{
uploadFileDetailInfo
.
value
.
push
({
fileType
:
attch
.
fileType
,
fileTypeName
:
attch
.
fileTypeName
,
files
:
[{
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
}]
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
))
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -204,6 +227,29 @@ const getDetailInfo = () => {
if
(
assetDetailInfo
.
value
.
registerRSVO
?.
isAuthreSourceDevelop
==
'N'
&&
assetDetailInfo
.
value
.
registerRSVO
?.
isSharedData
==
'Y'
)
{
activeShareTabName
.
value
=
'shareOrgs'
;
}
uploadFileDetailInfo
.
value
=
[];
assetDetailInfo
.
value
.
attachmentRSVOS
?.
forEach
(
attch
=>
{
let
f
=
uploadFileDetailInfo
.
value
.
find
(
u
=>
u
.
fileType
==
attch
.
fileType
);
if
(
f
&&
f
.
files
.
length
)
{
f
.
files
.
push
({
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
});
}
else
{
uploadFileDetailInfo
.
value
.
push
({
fileType
:
attch
.
fileType
,
fileTypeName
:
attch
.
fileTypeName
,
files
:
[{
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
}]
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
))
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -295,6 +341,29 @@ const getDetailInfo = () => {
if
(
assetDetailInfo
.
value
.
registerRSVO
?.
isAuthreSourceDevelop
==
'N'
&&
assetDetailInfo
.
value
.
registerRSVO
?.
isSharedData
==
'Y'
)
{
activeShareTabName
.
value
=
'shareOrgs'
;
}
uploadFileDetailInfo
.
value
=
[];
assetDetailInfo
.
value
.
attachmentRSVOS
?.
forEach
(
attch
=>
{
let
f
=
uploadFileDetailInfo
.
value
.
find
(
u
=>
u
.
fileType
==
attch
.
fileType
);
if
(
f
&&
f
.
files
.
length
)
{
f
.
files
.
push
({
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
});
}
else
{
uploadFileDetailInfo
.
value
.
push
({
fileType
:
attch
.
fileType
,
fileTypeName
:
attch
.
fileTypeName
,
files
:
[{
name
:
attch
.
fileName
,
url
:
attch
.
fileUrl
,
}]
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
))
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -346,6 +415,10 @@ const getDetailInfo = () => {
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
))
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
deploymentId
.
value
=
approveVO
?.
camundaDeploymentId
;
processInstanceId
.
value
=
approveVO
?.
camundaInstanceId
;
isTextTruncated
();
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment