fix : 修复页面细节

This commit is contained in:
2024-05-20 00:58:48 +08:00
parent 1825b6c871
commit 5c93eae4ce
2 changed files with 13 additions and 15 deletions

View File

@@ -123,7 +123,7 @@
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="需求上报申请书"> <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-form-item>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
@@ -140,9 +140,9 @@
<div class="approval-record"> <div class="approval-record">
<baseTitle title="审批记录"></baseTitle> <baseTitle title="审批记录"></baseTitle>
<div class="process"> <div class="process">
<operation-render v-if="processDiagramViewer" :operation-list="processInstanceData.operationList" <operation-render v-if="processViewer" :operation-list="data.operationList"
:state="processInstanceData.state"/> :state="data.state"/>
<process-diagram-viewer v-if="processDiagramViewer"/> <process-diagram-viewer v-if="processViewer"/>
</div> </div>
</div> </div>
</el-form> </el-form>
@@ -168,8 +168,6 @@ const props = defineProps({
}, },
}) })
const localFormData = ref({}) const localFormData = ref({})
const summaryForm = ref()
const tableConfig = reactive({ const tableConfig = reactive({
columns: [ columns: [
{ {
@@ -208,14 +206,14 @@ const tableConfig = reactive({
] ]
}) })
const handleDownload = (fileList) => { const handleDownload = (row) => {
// downloadFile(row.fileId).then(res => { downloadFile(row.fileId).then(res => {
// const blob = new Blob([res]) const blob = new Blob([res])
// let a = document.createElement('a') let a = document.createElement('a')
// a.href=URL.createObjectURL(blob) a.href=URL.createObjectURL(blob)
// a.download = row.originalFileName a.download = row.originalFileName
// a.click() a.click()
// }) })
} }
watch( watch(

View File

@@ -450,7 +450,7 @@ const init = async () => {
} }
onMounted(async () => { onMounted(async () => {
await init() await init()
if (route.query.id) { if (route.query.projectId) {
await getDetailInfo() await getDetailInfo()
} }
}) })