fix : 修复页面细节
This commit is contained in:
@@ -123,7 +123,7 @@
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="需求上报申请书">
|
||||
<el-button type="primary" link @click="handleDownload(localFormData.fileList)">{{localFormData.fileList}}</el-button>
|
||||
<el-button type="primary" link @click="handleDownload(localFormData.singleFile)">{{localFormData.singleFile?.originalFileName}}</el-button>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
@@ -140,9 +140,9 @@
|
||||
<div class="approval-record">
|
||||
<baseTitle title="审批记录"></baseTitle>
|
||||
<div class="process">
|
||||
<operation-render v-if="processDiagramViewer" :operation-list="processInstanceData.operationList"
|
||||
:state="processInstanceData.state"/>
|
||||
<process-diagram-viewer v-if="processDiagramViewer"/>
|
||||
<operation-render v-if="processViewer" :operation-list="data.operationList"
|
||||
:state="data.state"/>
|
||||
<process-diagram-viewer v-if="processViewer"/>
|
||||
</div>
|
||||
</div>
|
||||
</el-form>
|
||||
@@ -168,8 +168,6 @@ const props = defineProps({
|
||||
},
|
||||
})
|
||||
const localFormData = ref({})
|
||||
const summaryForm = ref()
|
||||
|
||||
const tableConfig = reactive({
|
||||
columns: [
|
||||
{
|
||||
@@ -208,14 +206,14 @@ const tableConfig = reactive({
|
||||
]
|
||||
})
|
||||
|
||||
const handleDownload = (fileList) => {
|
||||
// downloadFile(row.fileId).then(res => {
|
||||
// const blob = new Blob([res])
|
||||
// let a = document.createElement('a')
|
||||
// a.href=URL.createObjectURL(blob)
|
||||
// a.download = row.originalFileName
|
||||
// a.click()
|
||||
// })
|
||||
const handleDownload = (row) => {
|
||||
downloadFile(row.fileId).then(res => {
|
||||
const blob = new Blob([res])
|
||||
let a = document.createElement('a')
|
||||
a.href=URL.createObjectURL(blob)
|
||||
a.download = row.originalFileName
|
||||
a.click()
|
||||
})
|
||||
}
|
||||
|
||||
watch(
|
||||
|
||||
@@ -450,7 +450,7 @@ const init = async () => {
|
||||
}
|
||||
onMounted(async () => {
|
||||
await init()
|
||||
if (route.query.id) {
|
||||
if (route.query.projectId) {
|
||||
await getDetailInfo()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user