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
0bf40670
authored
2025-09-23 13:54:46 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复资产相关详情页面
1 parent
9f775672
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
26 deletions
src/views/data_asset/registerJSZQDetail.vue
src/views/data_asset/registerJSZQDetail.vue
View file @
0bf4067
...
...
@@ -94,12 +94,13 @@ const getDetailInfo = () => {
processInstanceId
.
value
=
data
.
approveVO
?.
camundaInstanceId
;
//需要显示质量评价信息
if
(
data
.
qualityScore
!=
null
)
{
if
(
tabsInfo
.
value
.
tabs
.
length
==
4
)
{
tabsInfo
.
value
.
tabs
.
splice
(
3
,
0
,
{
label
:
"质量评价"
,
name
:
"qualityEvaluate"
})
if
(
tabsInfo
.
value
.
tabs
.
length
==
5
)
{
tabsInfo
.
value
.
tabs
.
splice
(
4
,
0
,
{
label
:
"质量评价"
,
name
:
"qualityEvaluate"
})
}
}
else
{
if
(
tabsInfo
.
value
.
tabs
.
length
==
5
)
{
tabsInfo
.
value
.
tabs
.
splice
(
3
,
1
);
const
qualityTabIndex
=
tabsInfo
.
value
.
tabs
.
findIndex
(
tab
=>
tab
.
name
===
"qualityEvaluate"
);
if
(
qualityTabIndex
>
-
1
)
{
tabsInfo
.
value
.
tabs
.
splice
(
qualityTabIndex
,
1
);
}
}
if
(
evaDetailInfo
.
value
.
isApprove
==
'N'
)
{
...
...
@@ -148,7 +149,7 @@ const getDetailInfo = () => {
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
)
)
{
if
(
!
uploadFileDetailInfo
.
value
?.
lengt
)
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
...
...
@@ -172,12 +173,14 @@ const getDetailInfo = () => {
processInstanceId
.
value
=
data
.
approveVO
?.
camundaInstanceId
;
// 需要显示价值评估信息
if
(
data
.
assessmentMoney
!=
null
)
{
if
(
tabsInfo
.
value
.
tabs
.
length
==
4
)
{
tabsInfo
.
value
.
tabs
.
splice
(
3
,
0
,
{
label
:
"价值评估"
,
name
:
"costAssess"
})
}
}
else
{
if
(
tabsInfo
.
value
.
tabs
.
length
==
5
)
{
tabsInfo
.
value
.
tabs
.
splice
(
3
,
1
);
tabsInfo
.
value
.
tabs
.
splice
(
4
,
0
,
{
label
:
"价值评估"
,
name
:
"costAssess"
})
}
}
else
{
const
costAssessTabIndex
=
tabsInfo
.
value
.
tabs
.
findIndex
(
tab
=>
tab
.
name
===
"costAssess"
);
if
(
costAssessTabIndex
>
-
1
)
{
tabsInfo
.
value
.
tabs
.
splice
(
costAssessTabIndex
,
1
);
}
}
if
(
costAssessDetailInfo
.
value
.
isApprove
==
'N'
)
{
...
...
@@ -246,7 +249,7 @@ const getDetailInfo = () => {
});
}
});
if
(
!
(
uploadFileDetailInfo
.
value
?.
length
||
detailType
.
value
!=
'asset'
)
)
{
if
(
!
uploadFileDetailInfo
.
value
?.
lengt
)
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
label
==
'附件信息'
);
index
>
-
1
&&
tabsInfo
.
value
.
tabs
.
splice
(
index
,
1
);
}
...
...
@@ -286,7 +289,7 @@ const getDetailInfo = () => {
if
(
data
.
qualityScore
!=
null
)
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
name
==
'qualityEvaluate'
);
if
(
index
==
-
1
)
{
tabsInfo
.
value
.
tabs
.
splice
(
tabsInfo
.
value
.
tabs
[
3
].
name
==
'costAssess'
?
4
:
3
,
0
,
{
label
:
"质量评价"
,
name
:
"qualityEvaluate"
})
tabsInfo
.
value
.
tabs
.
splice
(
tabsInfo
.
value
.
tabs
[
4
].
name
==
'costAssess'
?
5
:
4
,
0
,
{
label
:
"质量评价"
,
name
:
"qualityEvaluate"
})
}
}
else
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
name
==
'qualityEvaluate'
);
...
...
@@ -310,7 +313,7 @@ const getDetailInfo = () => {
if
(
data
.
assessmentMoney
!=
null
)
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
name
==
'costAssess'
);
if
(
index
==
-
1
)
{
tabsInfo
.
value
.
tabs
.
splice
(
tabsInfo
.
value
.
tabs
[
3
].
name
==
'qualityEvaluate'
?
4
:
3
,
0
,
{
label
:
"价值评估"
,
name
:
"costAssess"
})
tabsInfo
.
value
.
tabs
.
splice
(
tabsInfo
.
value
.
tabs
[
4
].
name
==
'qualityEvaluate'
?
5
:
4
,
0
,
{
label
:
"价值评估"
,
name
:
"costAssess"
})
}
}
else
{
let
index
=
tabsInfo
.
value
.
tabs
.
findIndex
(
t
=>
t
.
name
==
'costAssess'
);
...
...
@@ -360,10 +363,6 @@ 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
);
}
}
else
{
ElMessage
.
error
(
res
.
msg
);
}
...
...
@@ -1373,20 +1372,13 @@ const passCommonDialogBtnClick = (btn, info) => {
<div
class=
"left-img"
></div>
<div
class=
"right-main"
>
<div
class=
"asset-title"
>
<div
style=
"display: flex;align-items: center;width: 100%;"
>
<div
style=
"display: flex;align-items: center;width: 100%;
flex-grow: 1;flex-shrink: 1;min-width: 0px;
"
>
<div
class=
"title1"
><ellipsis-tooltip
:content=
"assetDetailInfo.productName || '--'"
class-name=
"w100f"
:refName=
"'tooltipOver' + 'productName'"
></ellipsis-tooltip></div>
<!--
<div
v-if=
"assetDetailInfo.dataSensitivityLevelName?.length"
class=
"dataLabel"
>
{{
(
assetDetailInfo
.
dataSensitivityLevelName
?.
filter
(
u
=>
u
!=
'其他'
)?.
join
(
'、'
)
+
`${assetDetailInfo.dataSensitivityLevelOther || ''
}
`
)
}}
<
/div> --
>
<div
v-if=
"assetDetailInfo.registerRSVO?.dataTypeName"
class=
"dataLabel"
>
{{
assetDetailInfo
.
registerRSVO
?.
dataTypeName
}}
</div>
<!--
<
div
:
class
=
"['dataLabel', assetDetailInfo.isPersonalInfo != 'Y' ? 'dataLabel1' : '']"
>
{{
assetDetailInfo
.
isPersonalInfo
==
'Y'
?
'涉及个人信息'
:
'不涉及个人信息'
}}
<
/div> --
>
</div>
<
div
style
=
"display: flex"
>
<div
style=
"display: flex
;flex-shrink: 0;
"
>
<div
v-if=
"tabsInfo.tabs.find(t => t.name == 'qualityEvaluate')"
class=
"right-label"
:style=
"
{ 'margin-right': tabsInfo.tabs.find(t => t.name == 'costAssess') ? '8px' : '0px' }">
评分:
<span
style=
"color: var(--el-color-primary);font-weight: 600;font-size: 16px;"
>
{{
...
...
@@ -2374,6 +2366,7 @@ const passCommonDialogBtnClick = (btn, info) => {
display
:
flex
;
align
-
items
:
center
;
justify
-
content
:
space
-
between
;
width
:
100
%
;
.
title1
{
max
-
width
:
calc
(
100
%
-
100
px
);
...
...
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