技术监督需求整改 修改时间组件

This commit is contained in:
GGJ
2024-07-01 17:25:23 +08:00
parent 8dc8cd83a0
commit a2739b8328
9 changed files with 127 additions and 35 deletions

View File

@@ -47,6 +47,12 @@
{{ detailData?.problemDetail }}
</el-descriptions-item>
<el-descriptions-item :span="2" label="技术监督报告">
<el-icon class="elView" v-if="detailData?.supervisionReportName">
<View @click="openFile(detailData?.supervisionReportName)" />
</el-icon>
<a :href="detailData.supervisionReport" target="_blank">{{ detailData.supervisionReportName }}</a>
</el-descriptions-item>
<el-descriptions-item :span="2" label="测试报告">
<el-icon class="elView" v-if="detailData?.testReportName">
<View @click="openFile(detailData?.testReportName)" />
@@ -102,6 +108,10 @@ const getFileData = async () => {
detailData.value.testReport = res.data.url
detailData.value.testReportName = res.data.fileName
})
await getFileNameAndFilePath({ filePath: detailData.value.supervisionReport }).then(res => {
detailData.value.supervisionReport = res.data.url
detailData.value.supervisionReportName = res.data.fileName
})
}
const getProblemFlagDetail = (status: number) => {