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
e515422a
authored
2025-01-17 14:50:17 +0800
by
xukangle
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
840f6a2d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
246 additions
and
221 deletions
src/api/modules/dataAsset.ts
src/views/data_asset/registerCatalogDetail.vue
src/views/data_asset/valueEvaluate.vue
src/api/modules/dataAsset.ts
View file @
e515422
...
...
@@ -133,6 +133,13 @@ export const getEvaDetail = (params) => request({
params
})
// 获取价值评价详情
export
const
getCostDetail
=
(
params
)
=>
request
({
url
:
`
${
import
.
meta
.
env
.
VITE_API_NEW_PORTAL
}
/cost-assessment/detail`
,
method
:
'get'
,
params
})
/** 资产价值评估相关接口 */
/** 获取资产价值评估分页列表。 */
...
...
src/views/data_asset/registerCatalogDetail.vue
View file @
e515422
...
...
@@ -13,7 +13,8 @@ import {
qualityAllow
,
costAssessAllow
,
getRegisterCatalogTableDetail
,
getEvaDetail
getEvaDetail
,
getCostDetail
}
from
"@/api/modules/dataAsset"
;
import
{
changeNum
}
from
'@/utils/common'
import
{
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
...
...
@@ -28,6 +29,7 @@ const userData = JSON.parse(userStore.userData)
const
fullPath
=
route
.
fullPath
;
const
catalogGuid
=
route
.
query
.
guid
;
const
evaGuid
=
route
.
query
.
evaGuid
;
const
costAssessGuid
=
route
.
query
.
costAssessGuid
;
const
detailType
=
ref
(
route
.
query
.
type
);
const
{
proxy
}
=
getCurrentInstance
()
as
any
;
...
...
@@ -76,6 +78,8 @@ const baseInfoFormItems = ref([
const
evaDetailInfo
:
any
=
ref
({});
const
costAssessDetail
:
any
=
ref
({});
const
deploymentId
=
ref
(
''
);
const
processInstanceId
=
ref
(
''
);
...
...
@@ -117,6 +121,19 @@ const getDetailInfo = () => {
}
});
}
if
(
costAssessGuid
)
{
getCostDetail
({
guid
:
costAssessGuid
}).
then
((
res
:
any
)
=>
{
if
(
res
.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
||
{};
costAssessDetail
.
value
=
data
;
evaDetailInfo
.
value
=
data
;
deploymentId
.
value
=
data
.
approveVO
.
camundaDeploymentId
;
processInstanceId
.
value
=
data
.
approveVO
?.
camundaInstanceId
;
}
else
{
proxy
.
$ElMessage
.
error
(
res
.
msg
);
}
})
}
}
onBeforeMount
(()
=>
{
...
...
@@ -191,9 +208,9 @@ const toolBtns: any = computed(() => {
let btnsArr: any = [{
label: "关闭", value: "cancel", plain: true
}];
let approveVO = evaDetailInfo.value.approveVO;
let approveVO = evaDetailInfo.value.approveVO
|| costAssessDetail.value.approveVO
;
let staffGuid = userData.staffGuid;
if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids
&&
approveVO.approveStaffGuids.indexOf(staffGuid) > -1) {
if (approveVO && approveVO.approveState == 'A' && approveVO.approveStaffGuids
&&
approveVO.approveStaffGuids.indexOf(staffGuid) > -1) {
btnsArr.push(...[{ label: "通过", value: "pass", type: 'primary' }, { label: "驳回", value: "reject", type: 'danger', plain: true }]);
}
if (approveVO && approveVO.approveState == 'A' && approveVO.staffGuid == staffGuid) {
...
...
@@ -597,11 +614,11 @@ const passDialogBtnClick = (btn, info) => {
evaluationRangeEnd: info.evaluationRange[1],
evaluationNote: info.evaluationNote,
evaluationFile: info.evaluationFile?.map(file => {
return {
name: file.name,
url: file.url
}
}) || []
return {
name: file.name,
url: file.url
}
}) || []
}).then((res: any) => {
passDialogInfo.value.footer.btns[1].loading = false;
submitPromise.value = null;
...
...
@@ -719,202 +736,207 @@ const rejectDialogBtnClick = (btn, info) => {
<
template
>
<div
class=
"main-content"
v-loading=
"fullscreenLoading"
>
<div
class=
"detail-content"
:style=
"
{ height: detailType == 'qualityEvaluate' ? 'calc(100% - 44px)' : '100%' }">
<div
class=
"header"
>
<div
class=
"left-img"
></div>
<div
class=
"right-main"
>
<div
class=
"asset-title"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"title1"
>
{{
detailInfo
.
damName
??
'--'
}}
</div>
<div
class=
"dataLabel"
>
{{
detailInfo
.
damTypeName
}}
</div>
<div
class=
"dataLabel"
>
{{
detailInfo
.
subjectDomainName
||
detailInfo
.
subjectDomain
}}
</div>
<div
class=
"dataLabel dataLabel1"
v-if=
"detailInfo.databaseType"
>
{{
detailInfo
.
databaseType
}}
</div>
<div
class=
"dataLabel dataLabel1"
>
{{
detailInfo
.
dataSourcesName
}}
</div>
<div
class=
"header"
>
<div
class=
"left-img"
></div>
<div
class=
"right-main"
>
<div
class=
"asset-title"
>
<div
style=
"display: flex;align-items: center;"
>
<div
class=
"title1"
>
{{
detailInfo
.
damName
??
'--'
}}
</div>
<div
class=
"dataLabel"
>
{{
detailInfo
.
damTypeName
}}
</div>
<div
class=
"dataLabel"
>
{{
detailInfo
.
subjectDomainName
||
detailInfo
.
subjectDomain
}}
</div>
<div
class=
"dataLabel dataLabel1"
v-if=
"detailInfo.databaseType"
>
{{
detailInfo
.
databaseType
}}
</div>
<div
class=
"dataLabel dataLabel1"
>
{{
detailInfo
.
dataSourcesName
}}
</div>
</div>
</div>
<div
class=
"applicationScenarios"
:style=
"
{ 'margin-right': (isTruncated
&&
!isExpanded) ? '30px' : '0px', WebkitLineClamp: (!isTruncated ? 'inherit' : (isExpanded ? 'inherit' : 1)), WebkitBoxOrient: 'vertical' }">
{{
'覆盖地域:'
+
(
detailInfo
.
coverageArea
?.[
0
]?.[
0
]
==
'all'
?
'全国'
:
(
detailInfo
.
coverageAreaName
?.
map
(
c
=>
c
.
join
(
'/'
)).
join
(
','
)
??
'--'
))
}}
<span
v-if=
"isTruncated"
class=
"text_btn expand_btn"
:style=
"
{ position: isExpanded ? 'inherit' : 'absolute', 'margin-left': isExpanded ? '4px' : '0px' }"
@click="handleExpand()" v-preReClick>
{{
isExpanded
?
'收起'
:
'展开'
}}
</span></div>
</div>
<div
class=
"applicationScenarios"
:style=
"
{ 'margin-right': (isTruncated
&&
!isExpanded) ? '30px' : '0px', WebkitLineClamp: (!isTruncated ? 'inherit' : (isExpanded ? 'inherit' : 1)), WebkitBoxOrient: 'vertical' }">
{{
'覆盖地域:'
+
(
detailInfo
.
coverageArea
?.[
0
]?.[
0
]
==
'all'
?
'全国'
:
(
detailInfo
.
coverageAreaName
?.
map
(
c
=>
c
.
join
(
'/'
)).
join
(
','
)
??
'--'
))
}}
<span
v-if=
"isTruncated"
class=
"text_btn expand_btn"
:style=
"
{ position: isExpanded ? 'inherit' : 'absolute', 'margin-left': isExpanded ? '4px' : '0px' }"
@click="handleExpand()" v-preReClick>
{{
isExpanded
?
'收起'
:
'展开'
}}
</span></div>
</div>
</div>
<ContentWrap
id=
"id-assetContent"
title=
"基础信息"
description=
""
style=
"margin: 0 16px"
>
<Form
ref=
"baseInfoFormRef"
:itemList=
"baseInfoFormItems"
formId=
"base-info-form"
/>
</ContentWrap>
<ContentWrap
id=
"id-table"
title=
"资源表"
description=
""
style=
"margin: 16px 16px 16px"
>
<el-table
v-show=
"!fullscreenLoading"
ref=
"tableRef"
:data=
"detailInfo.damCatalogTableInfo"
:highlight-current-row=
"true"
stripe
border
@
expand-change=
"handleTableExpandChange"
height=
"100%"
tooltip-effect=
"light"
row-key=
"guid"
:style=
"
{
width: '100%',
height: '400px',
display: 'inline-block',
}">
<el-table-column
type=
"expand"
>
<template
#
default=
"scope"
>
<el-table
ref=
"fieldsTableRef"
:data=
"scope.row.damCatalogTableField"
:highlight-current-row=
"true"
stripe
border
v-loading=
"tableFieldsLoading[scope.row.guid]"
height=
"100%"
tooltip-effect=
"light"
:style=
"
{
width: '100%',
'max-height': '100%',
display: 'inline-block',
}">
<el-table-column
label=
"排序"
type=
"index"
width=
"56px"
align=
"center"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"chName"
label=
"字段中文名称"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"enName"
label=
"字段英文名称"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"dataTypeName"
label=
"字段类型"
width=
"110px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"fieldLength"
label=
"长度"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"fieldLength"
]
==
null
?
'--'
:
scope
.
row
[
"fieldLength"
]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"fieldPrecision"
label=
"精度"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"fieldPrecision"
]
==
null
?
'--'
:
scope
.
row
[
"fieldPrecision"
]
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"dictionaryCode"
label=
"关联字典"
width=
"130px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"dictionaryName"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"isPrimary"
label=
"是否主键"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"isPrimary"
]
?
(
scope
.
row
[
"isPrimary"
]
==
'Y'
?
'是'
:
'否'
)
:
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"notNull"
label=
"是否必填"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"notNull"
]
?
(
scope
.
row
[
"notNull"
]
==
'Y'
?
'是'
:
'否'
)
:
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"业务规则描述"
width=
"180px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"description"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column
label=
"序号"
type=
"index"
width=
"56px"
align=
"center"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"tableChName"
label=
"表中文名称"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"tableName"
label=
"表英文名称"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"dataCount"
label=
"表数据总数(条)"
width=
"150px"
align=
"right"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"dataCount"
]
==
null
?
'--'
:
changeNum
(
scope
.
row
[
"dataCount"
],
0
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"表描述"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"description"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"updateUserName"
label=
"修改人"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"updateUserName"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"updateTime"
label=
"修改时间"
width=
"180px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"updateTime"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
minWidth=
"120px"
align=
"left"
fixed=
"right"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span
class=
"text_btn"
@
click=
"handleTableViewData(scope)"
>
查看样例数据
</span>
</
template
>
</el-table-column>
</el-table>
</ContentWrap>
<ContentWrap
v-if=
"route.query.type == 'qualityEvaluate'"
id=
"id-assetContent"
title=
"附件信息"
description=
""
style=
"margin: 16px 16px 16px"
>
<div
class=
"list_panel mt4"
>
<div
class=
"list_item is_block isFile"
v-if=
"evaDetailInfo?.qualityEvaluationFile?.length"
:style=
"{ width: '40%' }"
>
<span
class=
"item_label"
:style=
"{ width: 'auto', 'text-align': 'left' }"
>
数据质量评价收集
</span>
<span
v-for=
"(item) in (evaDetailInfo?.qualityEvaluationFile || [])"
class=
"item_value"
:style=
"{ 'padding-left': '0px' }"
>
<div
class=
"file-operate"
>
<
template
v-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'xls' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'xlsx' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'csv'"
>
<img
class=
"file-img"
src=
"../../assets/images/excel.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'doc' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'docx'"
>
<img
class=
"file-img"
src=
"../../assets/images/word.png"
/>
<ContentWrap
id=
"id-assetContent"
title=
"基础信息"
description=
""
style=
"margin: 0 16px"
>
<Form
ref=
"baseInfoFormRef"
:itemList=
"baseInfoFormItems"
formId=
"base-info-form"
/>
</ContentWrap>
<ContentWrap
id=
"id-table"
title=
"资源表"
description=
""
style=
"margin: 16px 16px 16px"
>
<el-table
v-show=
"!fullscreenLoading"
ref=
"tableRef"
:data=
"detailInfo.damCatalogTableInfo"
:highlight-current-row=
"true"
stripe
border
@
expand-change=
"handleTableExpandChange"
height=
"100%"
tooltip-effect=
"light"
row-key=
"guid"
:style=
"
{
width: '100%',
height: '400px',
display: 'inline-block',
}">
<el-table-column
type=
"expand"
>
<template
#
default=
"scope"
>
<el-table
ref=
"fieldsTableRef"
:data=
"scope.row.damCatalogTableField"
:highlight-current-row=
"true"
stripe
border
v-loading=
"tableFieldsLoading[scope.row.guid]"
height=
"100%"
tooltip-effect=
"light"
:style=
"
{
width: '100%',
'max-height': '100%',
display: 'inline-block',
}">
<el-table-column
label=
"排序"
type=
"index"
width=
"56px"
align=
"center"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"chName"
label=
"字段中文名称"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"enName"
label=
"字段英文名称"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"dataTypeName"
label=
"字段类型"
width=
"110px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"fieldLength"
label=
"长度"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"fieldLength"
]
==
null
?
'--'
:
scope
.
row
[
"fieldLength"
]
}}
</span>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'zip'"
>
<img
class=
"file-img"
src=
"../../assets/images/zip.png"
/>
</el-table-column>
<el-table-column
prop=
"fieldPrecision"
label=
"精度"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"fieldPrecision"
]
==
null
?
'--'
:
scope
.
row
[
"fieldPrecision"
]
}}
</span>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'rar'"
>
<img
class=
"file-img"
src=
"../../assets/images/RAR.png"
/>
</el-table-column>
<el-table-column
prop=
"dictionaryCode"
label=
"关联字典"
width=
"130px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"dictionaryName"
]
||
'--'
}}
</span>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'pdf'"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
</el-table-column>
<el-table-column
prop=
"isPrimary"
label=
"是否主键"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"isPrimary"
]
?
(
scope
.
row
[
"isPrimary"
]
==
'Y'
?
'是'
:
'否'
)
:
'--'
}}
</span>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'png'"
>
<img
class=
"file-img"
src=
"../../assets/images/png.png"
/>
</el-table-column>
<el-table-column
prop=
"notNull"
label=
"是否必填"
width=
"90px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"notNull"
]
?
(
scope
.
row
[
"notNull"
]
==
'Y'
?
'是'
:
'否'
)
:
'--'
}}
</span>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpg' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpeg'"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</el-table-column>
<el-table-column
prop=
"description"
label=
"业务规则描述"
width=
"180px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"description"
]
||
'--'
}}
</span>
</
template
>
<div
class=
"file-name"
>
{{ item.name }}
</div>
<div
:style=
"{ right: '36px' }"
v-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'pdf' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'png' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpg' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpeg'"
class=
"file-preview"
@
click=
"onUploadFilePreview(item)"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(item)"
>
下载
</div>
</div>
</span>
</div>
</div>
</ContentWrap>
<ContentWrap
id=
"id-qualityEvaluate"
v-if=
"route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null"
title=
"质量评价"
description=
"资产质量评价信息"
style=
"margin: 16px 16px 16px"
>
<div
class=
"list_panel"
>
<div
class=
"list_item"
>
<span
class=
"item_label"
>
质量得分:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.qualityScore }}
</span>
</div>
<div
class=
"list_item"
:style=
"{ width: '60%' }"
>
<span
class=
"item_label"
>
评价对象范围:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.evaluationRangeStart + '~' + evaDetailInfo.evaluationRangeEnd
}}
</span>
</div>
<div
class=
"list_item is_block"
>
<span
class=
"item_label"
>
质量评价结果:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.evaluationNote ?? '--' }}
</span>
</div>
<div
class=
"list_item is_block"
:style=
"{ 'max-width': '700px' }"
>
<span
class=
"item_label"
>
质量评价报告:
</span>
<span
class=
"item_value"
>
<div
class=
"file-operate"
>
</el-table-column>
</el-table>
</template>
</el-table-column>
<el-table-column
label=
"序号"
type=
"index"
width=
"56px"
align=
"center"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"tableChName"
label=
"表中文名称"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"tableName"
label=
"表英文名称"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
</el-table-column>
<el-table-column
prop=
"dataCount"
label=
"表数据总数(条)"
width=
"150px"
align=
"right"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"dataCount"
]
==
null
?
'--'
:
changeNum
(
scope
.
row
[
"dataCount"
],
0
)
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"description"
label=
"表描述"
width=
"150px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"description"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"updateUserName"
label=
"修改人"
width=
"140px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"updateUserName"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"updateTime"
label=
"修改时间"
width=
"180px"
align=
"left"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span>
{{
scope
.
row
[
"updateTime"
]
||
'--'
}}
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
minWidth=
"120px"
align=
"left"
fixed=
"right"
show-overflow-tooltip
>
<
template
#
default=
"scope"
>
<span
class=
"text_btn"
@
click=
"handleTableViewData(scope)"
>
查看样例数据
</span>
</
template
>
</el-table-column>
</el-table>
</ContentWrap>
<ContentWrap
v-if=
"route.query.type == 'qualityEvaluate'"
id=
"id-assetContent"
title=
"附件信息"
description=
""
style=
"margin: 16px 16px 16px"
>
<div
class=
"list_panel mt4"
>
<div
class=
"list_item is_block isFile"
v-if=
"evaDetailInfo?.qualityEvaluationFile?.length"
:style=
"{ width: '40%' }"
>
<span
class=
"item_label"
:style=
"{ width: 'auto', 'text-align': 'left' }"
>
数据质量评价收集
</span>
<span
v-for=
"(item) in (evaDetailInfo?.qualityEvaluationFile || [])"
class=
"item_value"
:style=
"{ 'padding-left': '0px' }"
>
<div
class=
"file-operate"
>
<
template
v-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'xls' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'xlsx' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'csv'"
>
<img
class=
"file-img"
src=
"../../assets/images/excel.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'doc' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'docx'"
>
<img
class=
"file-img"
src=
"../../assets/images/word.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'zip'"
>
<img
class=
"file-img"
src=
"../../assets/images/zip.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'rar'"
>
<img
class=
"file-img"
src=
"../../assets/images/RAR.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'pdf'"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
<div
class=
"file-name"
>
{{ evaDetailInfo.evaluationFile?.[0]?.name }}
</div>
<div
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(evaDetailInfo.evaluationFile?.[0])"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(evaDetailInfo.evaluationFile?.[0])"
>
下载
</div>
</div>
</span>
</div>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'png'"
>
<img
class=
"file-img"
src=
"../../assets/images/png.png"
/>
</
template
>
<
template
v-else-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpg' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpeg'"
>
<img
class=
"file-img"
src=
"../../assets/images/jpg.png"
/>
</
template
>
<div
class=
"file-name"
>
{{ item.name }}
</div>
<div
:style=
"{ right: '36px' }"
v-if=
"item.name.substring(item.name.lastIndexOf('.') + 1) == 'pdf' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'png' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpg' || item.name.substring(item.name.lastIndexOf('.') + 1) == 'jpeg'"
class=
"file-preview"
@
click=
"onUploadFilePreview(item)"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(item)"
>
下载
</div>
</div>
</span>
</div>
</ContentWrap>
<ContentWrap
v-if=
"route.query.type == 'qualityEvaluate'"
id=
"id-approveInfo"
title=
"审批信息"
description=
""
style=
"margin: 16px 16px 16px"
>
<ApprovalProcess
v-if=
"deploymentId"
:deploymentId=
"deploymentId"
:processInstanceId=
"processInstanceId"
>
</ApprovalProcess>
</ContentWrap>
</div>
<div
class=
"tool_btns"
v-if=
"toolBtns.length && route.query.type == 'qualityEvaluate'"
>
</div>
</ContentWrap>
<ContentWrap
id=
"id-qualityEvaluate"
v-if=
"route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null"
title=
"质量评价"
description=
"资产质量评价信息"
style=
"margin: 16px 16px 16px"
>
<div
class=
"list_panel"
>
<div
class=
"list_item"
>
<span
class=
"item_label"
>
质量得分:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.qualityScore }}
</span>
</div>
<div
class=
"list_item"
:style=
"{ width: '60%' }"
>
<span
class=
"item_label"
>
评价对象范围:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.evaluationRangeStart + '~' + evaDetailInfo.evaluationRangeEnd
}}
</span>
</div>
<div
class=
"list_item is_block"
>
<span
class=
"item_label"
>
质量评价结果:
</span>
<span
class=
"item_value"
>
{{ evaDetailInfo.evaluationNote ?? '--' }}
</span>
</div>
<div
class=
"list_item is_block"
:style=
"{ 'max-width': '700px' }"
>
<span
class=
"item_label"
>
质量评价报告:
</span>
<span
class=
"item_value"
>
<div
class=
"file-operate"
>
<img
class=
"file-img"
src=
"../../assets/images/PDF.png"
/>
<div
class=
"file-name"
>
{{ evaDetailInfo.evaluationFile?.[0]?.name }}
</div>
<div
:style=
"{ right: '36px' }"
class=
"file-preview"
@
click=
"onUploadFilePreview(evaDetailInfo.evaluationFile?.[0])"
>
查看
</div>
<div
:style=
"{ right: '0px' }"
class=
"file-preview"
@
click=
"onUploadFileDownload(evaDetailInfo.evaluationFile?.[0])"
>
下载
</div>
</div>
</span>
</div>
</div>
</ContentWrap>
<ContentWrap
v-if=
"route.query.type == 'qualityEvaluate' || 'costAssess'"
id=
"id-approveInfo"
title=
"审批信息"
description=
""
style=
"margin: 16px 16px 16px"
>
<ApprovalProcess
v-if=
"deploymentId"
:deploymentId=
"deploymentId"
:processInstanceId=
"processInstanceId"
>
</ApprovalProcess>
</ContentWrap>
</div>
<div
class=
"tool_btns"
v-if=
"toolBtns.length && (route.query.type == 'qualityEvaluate' || route.query.type == 'costAssess')"
>
<div
class=
"btns"
>
<el-button
v-for=
"btn in toolBtns"
:type=
"btn.type"
:plain=
"btn.plain"
@
click=
"btnClick(btn)"
>
{{ btn.label
}}
</el-button>
...
...
@@ -952,6 +974,7 @@ const rejectDialogBtnClick = (btn, info) => {
font-weight
:
600
;
}
}
&
.results_panel
{
box-shadow
:
0
0
0
1px
#d9d9d9
;
margin
:
16px
16px
0px
;
...
...
@@ -1149,33 +1172,33 @@ const rejectDialogBtnClick = (btn, info) => {
}
.file-operate
{
display
:
flex
;
align-items
:
center
;
position
:
relative
;
display
:
flex
;
align-items
:
center
;
position
:
relative
;
.file-img
{
width
:
24px
;
height
:
24px
;
}
.file-img
{
width
:
24px
;
height
:
24px
;
}
&
:hover
{
background-color
:
#f5f5f5
;
}
&
:hover
{
background-color
:
#f5f5f5
;
}
.file-name
{
color
:
var
(
--el-color-regular
);
margin-left
:
4px
;
}
.file-name
{
color
:
var
(
--el-color-regular
);
margin-left
:
4px
;
}
.file-preview
{
position
:
absolute
;
cursor
:
pointer
;
color
:
var
(
--el-color-primary
);
margin-right
:
8px
;
}
}
.file-preview
{
position
:
absolute
;
cursor
:
pointer
;
color
:
var
(
--el-color-primary
);
margin-right
:
8px
;
}
}
.list_panel
{
.list_panel
{
display
:
flex
;
flex-wrap
:
wrap
;
display
:
flex
;
...
...
src/views/data_asset/valueEvaluate.vue
View file @
e515422
...
...
@@ -369,11 +369,6 @@ const tableBtnClick = (scope, btn) => {
});
});
}
else
if
(
type
===
'detail'
)
{
// 详情
router
.
push
({
name
:
'registerValueDetail'
,
query
:
{
guid
:
row
.
registerGuid
,
costAssessGuid
:
row
.
guid
,
type
:
'costAssess'
,
daTenantGuid
:
row
.
tenantGuid
}
});
}
else
if
(
type
===
'detail'
)
{
// 详情
if
(
row
.
registerApproveState
==
'Y'
)
{
router
.
push
({
name
:
'registerDetail'
,
...
...
@@ -382,7 +377,7 @@ const tableBtnClick = (scope, btn) => {
}
else
{
router
.
push
({
name
:
'evaCatalogDetail'
,
query
:
{
guid
:
row
.
register
Guid
,
costAssessGuid
:
row
.
guid
,
type
:
'costAssess'
}
query
:
{
guid
:
row
.
dam
Guid
,
costAssessGuid
:
row
.
guid
,
type
:
'costAssess'
}
});
}
}
else
if
(
type
==
'productDetail'
)
{
...
...
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