555c7f5b by xukangle

fix

1 parent e2402a3a
1 import request from "@/utils/request";
2 /**
3 *@description 获取数据产品目录合规信息分页
4 *@path /dam-catalog-table/compliance-info/page-list
5 *@method post
6 */
7 export const getComplianceInfoPageList = (params) => {
8 return request({
9 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/compliance-info/page-list`,
10 method: 'post',
11 data: params
12 })
13 }
14
15 /**
16 * @description 修改数据产品目录合规信息
17 * @path /dam-catalog-table/compliance-info/update
18 * @method post
19 */
20
21 export const updateComplianceInfo = (params) => {
22 return request({
23 url: `${import.meta.env.VITE_API_NEW_PORTAL}/dam-catalog-table/compliance-info/update`,
24 method: 'post',
25 data: params
26 })
27 }
...@@ -126,7 +126,6 @@ const getDetailInfo = () => { ...@@ -126,7 +126,6 @@ const getDetailInfo = () => {
126 if (res.code == proxy.$passCode) { 126 if (res.code == proxy.$passCode) {
127 const data = res.data || {}; 127 const data = res.data || {};
128 costAssessDetail.value = data; 128 costAssessDetail.value = data;
129 console.log('costAssessDetail', costAssessDetail.value);
130 evaDetailInfo.value = data; 129 evaDetailInfo.value = data;
131 deploymentId.value = data.approveVO.camundaDeploymentId; 130 deploymentId.value = data.approveVO.camundaDeploymentId;
132 processInstanceId.value = data.approveVO?.camundaInstanceId; 131 processInstanceId.value = data.approveVO?.camundaInstanceId;
...@@ -973,8 +972,8 @@ const formattedAmount = computed(() => { ...@@ -973,8 +972,8 @@ const formattedAmount = computed(() => {
973 </div> 972 </div>
974 </ContentWrap> 973 </ContentWrap>
975 <ContentWrap id="id-qualityEvaluate" 974 <ContentWrap id="id-qualityEvaluate"
976 v-if="route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null" title="质量评价" 975 v-if="(route.query.type == 'qualityEvaluate' && evaDetailInfo.qualityScore != null) || (route.query.type == 'costAssess' && evaDetailInfo.qualityScore != null)"
977 description="资产质量评价信息" style="margin: 16px 16px 16px"> 976 title="质量评价" description="资产质量评价信息" style="margin: 16px 16px 16px">
978 <div class="list_panel"> 977 <div class="list_panel">
979 <div class="list_item"> 978 <div class="list_item">
980 <span class="item_label">质量得分:</span> 979 <span class="item_label">质量得分:</span>
......
...@@ -140,6 +140,27 @@ const getDetailInfo = () => { ...@@ -140,6 +140,27 @@ const getDetailInfo = () => {
140 tabsInfo.value.tabs.splice(3, 1); 140 tabsInfo.value.tabs.splice(3, 1);
141 } 141 }
142 } 142 }
143
144 if (data.qualityScore) {
145 // 确保"质量评价"标签存在于tabs中,并插入到"价值评估"前面
146 const qualityTabIndex = tabsInfo.value.tabs.findIndex(tab => tab.name === "qualityEvaluate");
147 const costAssessTabIndex = tabsInfo.value.tabs.findIndex(tab => tab.name === "costAssess");
148
149 if (qualityTabIndex === -1) {
150 if (costAssessTabIndex > -1) {
151 // 如果"价值评估"标签存在,插入"质量评价"在它之前
152 tabsInfo.value.tabs.splice(costAssessTabIndex, 0, { label: "质量评价", name: "qualityEvaluate", description: '质量评估相关信息' });
153 } else {
154 // 如果没有"价值评估"标签,插入到最后
155 tabsInfo.value.tabs.push({ label: "质量评价", name: "qualityEvaluate", description: '质量评估相关信息' });
156 }
157 }
158 evaDetailInfo.value.qualityScore = data.qualityScore;
159 evaDetailInfo.value.evaluationRangeStart = data.evaluationRangeStart;
160 evaDetailInfo.value.evaluationRangeEnd = data.evaluationRangeEnd;
161 evaDetailInfo.value.evaluationNote = data.evaluationNote;
162 evaDetailInfo.value.evaluationFile = data.evaluationFile;
163 }
143 if (fullPath === route.fullPath) { 164 if (fullPath === route.fullPath) {
144 document.title = `详情-${data.daName}`; 165 document.title = `详情-${data.daName}`;
145 } 166 }
...@@ -1690,8 +1711,9 @@ const formattedDate = (dateVal) => { ...@@ -1690,8 +1711,9 @@ const formattedDate = (dateVal) => {
1690 </div> 1711 </div>
1691 </div> 1712 </div>
1692 </ContentWrap> 1713 </ContentWrap>
1693 <ContentWrap id="id-qualityEvaluate" v-if="tabsInfo.tabs.find(t => t.name == 'qualityEvaluate')" title="质量评价" 1714 <ContentWrap id="id-qualityEvaluate"
1694 description="资产质量评价信息" expandSwicth style="margin-top: 15px" :isExpand="qualityEvaluateExpand" 1715 v-if="tabsInfo.tabs.find(t => t.name == 'qualityEvaluate') || (route.query.type == 'costAssess' && evaDetailInfo.qualityScore != null)"
1716 title="质量评价" description="资产质量评价信息" expandSwicth style="margin-top: 15px" :isExpand="qualityEvaluateExpand"
1695 @expand="(v) => qualityEvaluateExpand = v"> 1717 @expand="(v) => qualityEvaluateExpand = v">
1696 <div class="list_panel"> 1718 <div class="list_panel">
1697 <div class="list_item"> 1719 <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!