fix : 修复专项资金文件预览,优化上报前置流程展示
This commit is contained in:
@@ -166,7 +166,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-if="data.state==='5'" style="margin-bottom: 15px">
|
<div v-if="data.state==='5'" style="margin-bottom: 15px">
|
||||||
<baseTitle title="前置流程"></baseTitle>
|
<baseTitle title="前置流程"></baseTitle>
|
||||||
<div style="display: flex;align-items: center;flex-wrap: wrap;margin-bottom: 10px">
|
<div style="display: flex;align-items: center;flex-wrap: wrap;">
|
||||||
<div v-for="(item,index) in localFormData.preProcess" :key="item.requestId">
|
<div v-for="(item,index) in localFormData.preProcess" :key="item.requestId">
|
||||||
<a :href="item.baseUrl" target="_blank"
|
<a :href="item.baseUrl" target="_blank"
|
||||||
style="color: #2a99ff;cursor: pointer">{{ item.requestName }}<span
|
style="color: #2a99ff;cursor: pointer">{{ item.requestName }}<span
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="display: flex;align-items: center">
|
<div style="display: flex;align-items: center;flex-wrap: wrap;">
|
||||||
<el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">
|
<el-button color="#DED0B2" @click="handleShowPreTable" style="margin-right: 10px">
|
||||||
{{
|
{{
|
||||||
localFormData.preProcess && localFormData.preProcess.length > 0 ? '更改' : '请选择前置流程'
|
localFormData.preProcess && localFormData.preProcess.length > 0 ? '更改' : '请选择前置流程'
|
||||||
|
|||||||
@@ -87,6 +87,8 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
<opinion-moblie v-if="fundData.taskId" :formData="formData" :taskId="fundData.taskId"
|
<opinion-moblie v-if="fundData.taskId" :formData="formData" :taskId="fundData.taskId"
|
||||||
v-model:value="formData.auditOpinion"></opinion-moblie>
|
v-model:value="formData.auditOpinion"></opinion-moblie>
|
||||||
|
<file-preview ref="filePreviewRef" :fullscreen="true" v-if="filePreviewShow" :fileName="filePreviewParam.fileName" :fileUrl="filePreviewParam.fileUrl"
|
||||||
|
:fileType="filePreviewParam.fileType"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -162,7 +164,9 @@ const fileTable = reactive({
|
|||||||
prop: 'originalFileName',
|
prop: 'originalFileName',
|
||||||
label: '文件名',
|
label: '文件名',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 160,
|
width: 200,
|
||||||
|
showOverflowTooltip: false,
|
||||||
|
currentRender: ({row, index}) => (<div style="color: #2a99ff;cursor: pointer;" onClick={()=>clickToPreview(row)}>{row.originalFileName}</div>)
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: 'tag',
|
prop: 'tag',
|
||||||
@@ -188,6 +192,23 @@ const fileTable = reactive({
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
const filePreviewParam = ref({
|
||||||
|
fileUrl: '',
|
||||||
|
fileName: '',
|
||||||
|
fileType: 'pdf'
|
||||||
|
})
|
||||||
|
const filePreviewShow = ref(false)
|
||||||
|
const clickToPreview=(row)=>{
|
||||||
|
filePreviewShow.value = false
|
||||||
|
filePreviewParam.value = {
|
||||||
|
fileUrl: row.url,
|
||||||
|
fileName: row.originalFileName,
|
||||||
|
fileType: row.fileType
|
||||||
|
}
|
||||||
|
nextTick(()=>{
|
||||||
|
filePreviewShow.value = true
|
||||||
|
})
|
||||||
|
}
|
||||||
const handleView=(row)=>{
|
const handleView=(row)=>{
|
||||||
router.push({
|
router.push({
|
||||||
name: 'Implementation/detail',
|
name: 'Implementation/detail',
|
||||||
|
|||||||
Reference in New Issue
Block a user