技术监督需求整改 修改时间组件
This commit is contained in:
@@ -147,6 +147,7 @@ const tableStore = new TableStore({
|
||||
row.status,
|
||||
row.issueDetail,
|
||||
row.problemPath,
|
||||
row.supervisionReport,
|
||||
row.reformAdvice
|
||||
)
|
||||
}
|
||||
@@ -184,6 +185,7 @@ const tableStore = new TableStore({
|
||||
row.status,
|
||||
row.issueDetail,
|
||||
row.problemPath,
|
||||
row.supervisionReport,
|
||||
|
||||
row.reformAdvice,
|
||||
row.takeStep,
|
||||
@@ -208,6 +210,7 @@ const tableStore = new TableStore({
|
||||
row.status,
|
||||
row.issueDetail,
|
||||
row.problemPath,
|
||||
row.supervisionReport,
|
||||
row.reformAdvice,
|
||||
row.takeStep,
|
||||
row.reportPath,
|
||||
|
||||
@@ -21,6 +21,15 @@
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="技术监督报告:" v-if="showFile1">
|
||||
<el-icon class="elView" v-if="supervisionReportDetail?.supervisionReportName">
|
||||
<View @click="openFile(supervisionReportDetail?.supervisionReportName)" />
|
||||
</el-icon>
|
||||
<a :href="supervisionReportDetail.supervisionReportPath" target="_blank">
|
||||
{{ supervisionReportDetail.supervisionReportName }}
|
||||
</a>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="问题附件:" v-if="showFile">
|
||||
<el-icon class="elView" v-if="problemDetail?.problemName">
|
||||
<View @click="openFile(problemDetail?.problemName)" />
|
||||
@@ -97,11 +106,16 @@ const form = ref({
|
||||
})
|
||||
//附件是否显示
|
||||
const showFile = ref(false)
|
||||
const showFile1 = ref(false)
|
||||
|
||||
const problemDetail = reactive({
|
||||
problemPath: '',
|
||||
problemName: ''
|
||||
})
|
||||
const supervisionReportDetail = reactive({
|
||||
supervisionReportPath: '',
|
||||
supervisionReportName: ''
|
||||
})
|
||||
|
||||
//处理成效报告
|
||||
const reportFilePath: any = ref('')
|
||||
@@ -123,6 +137,7 @@ const open = async (
|
||||
status: any,
|
||||
issueDetail: string,
|
||||
problemPath?: string,
|
||||
supervisionReport?: string,
|
||||
reformAdvice?: string,
|
||||
takeStep?: string,
|
||||
reportPath?: string
|
||||
@@ -158,6 +173,17 @@ const open = async (
|
||||
} else {
|
||||
showFile.value = false
|
||||
}
|
||||
if (supervisionReport) {
|
||||
let arrPath = supervisionReport.split(',')
|
||||
console.log("🚀 ~ arrPath:", arrPath)
|
||||
await getFileNameAndFilePath({ filePath: arrPath[0] }).then(res => {
|
||||
supervisionReportDetail.supervisionReportPath = res.data.url
|
||||
supervisionReportDetail.supervisionReportName = res.data.fileName
|
||||
})
|
||||
showFile1.value = true
|
||||
} else {
|
||||
showFile1.value = false
|
||||
}
|
||||
|
||||
dialogVisible.value = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user