bf91316a by xukangle

Merge branch 'dev_20241202_xukangle' into develop

2 parents b35fe61c 555c7f5b
import request from "@/utils/request";
/**
*@description 获取数据产品目录合规信息分页
*@path /dam-catalog-table/compliance-info/page-list
*@method post
*/
export const getComplianceInfoPageList = (params) => {
return request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/compliance-info/page-list`,
method: 'post',
data: params
})
}
/**
* @description 修改数据产品目录合规信息
* @path /dam-catalog-table/compliance-info/update
* @method post
*/
export const updateComplianceInfo = (params) => {
return request({
url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/compliance-info/update`,
method: 'post',
data: params
})
}
......@@ -126,7 +126,6 @@ const getDetailInfo = () => {
if (res.code == proxy.$passCode) {
const data = res.data || {};
costAssessDetail.value = data;
console.log('costAssessDetail', costAssessDetail.value);
evaDetailInfo.value = data;
deploymentId.value = data.approveVO.camundaDeploymentId;
processInstanceId.value = data.approveVO?.camundaInstanceId;
......@@ -973,8 +972,8 @@ const formattedAmount = computed(() => {
</div>
</ContentWrap>
<ContentWrap id="id-qualityEvaluate"
v-if="route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null" title="质量评价"
description="资产质量评价信息" style="margin: 16px 16px 16px">
v-if="(route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null) || (route.query.type == 'costAssess' && evaDetailInfo.qualityScore != null)"
title="质量评价" description="资产质量评价信息" style="margin: 16px 16px 16px">
<div class="list_panel">
<div class="list_item">
<span class="item_label">质量得分:</span>
......
......@@ -140,6 +140,27 @@ const getDetailInfo = () => {
tabsInfo.value.tabs.splice(3, 1);
}
}
if (data.qualityScore) {
// 确保"质量评价"标签存在于tabs中,并插入到"价值评估"前面
const qualityTabIndex = tabsInfo.value.tabs.findIndex(tab => tab.name === "qualityEvaluate");
const costAssessTabIndex = tabsInfo.value.tabs.findIndex(tab => tab.name === "costAssess");
if (qualityTabIndex === -1) {
if (costAssessTabIndex > -1) {
// 如果"价值评估"标签存在,插入"质量评价"在它之前
tabsInfo.value.tabs.splice(costAssessTabIndex, 0, { label: "质量评价", name: "qualityEvaluate", description: '质量评估相关信息' });
} else {
// 如果没有"价值评估"标签,插入到最后
tabsInfo.value.tabs.push({ label: "质量评价", name: "qualityEvaluate", description: '质量评估相关信息' });
}
}
evaDetailInfo.value.qualityScore = data.qualityScore;
evaDetailInfo.value.evaluationRangeStart = data.evaluationRangeStart;
evaDetailInfo.value.evaluationRangeEnd = data.evaluationRangeEnd;
evaDetailInfo.value.evaluationNote = data.evaluationNote;
evaDetailInfo.value.evaluationFile = data.evaluationFile;
}
if (fullPath === route.fullPath) {
document.title = `详情-${data.daName}`;
}
......@@ -1690,8 +1711,9 @@ const formattedDate = (dateVal) => {
</div>
</div>
</ContentWrap>
<ContentWrap id="id-qualityEvaluate" v-if="tabsInfo.tabs.find(t => t.name == 'qualityEvaluate')" title="质量评价"
description="资产质量评价信息" expandSwicth style="margin-top: 15px" :isExpand="qualityEvaluateExpand"
<ContentWrap id="id-qualityEvaluate"
v-if="tabsInfo.tabs.find(t => t.name == 'qualityEvaluate') || (route.query.type == 'costAssess' && evaDetailInfo.qualityScore != null)"
title="质量评价" description="资产质量评价信息" expandSwicth style="margin-top: 15px" :isExpand="qualityEvaluateExpand"
@expand="(v) => qualityEvaluateExpand = v">
<div class="list_panel">
<div class="list_item">
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!