fix : 修复页面细节
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
<el-form-item label="专项资金名称" prop="name">
|
||||
<el-input v-model="formData.name" placeholder="请输入专项资金名称" clearable></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="金额" prop="fundAmount">
|
||||
<el-form-item label="金额(万元)" prop="fundAmount">
|
||||
<el-input v-model="formData.fundAmount" placeholder="请输入金额" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<baseTitle title="介绍"></baseTitle>
|
||||
<Tinymce image-url="/notice/file" file-url="/notice/file" v-if="showTinymce"
|
||||
v-model:value="formData.introduce" height="300"/>
|
||||
v-model:value="formData.introduce"/>
|
||||
<baseTitle title="申请文件"></baseTitle>
|
||||
<file-upload @getFile="getFile"/>
|
||||
<fvTable style="width: 100%;max-height: 200px" v-if="showTable"
|
||||
<fvTable style="width: 100%;max-height: 650px;" v-if="showTable"
|
||||
:tableConfig="tableConfig" :data="formData.files"
|
||||
:isSettingCol="false" :pagination="false">
|
||||
<template #empty>
|
||||
@@ -34,11 +34,11 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
|
||||
import {ElNotification} from "element-plus";
|
||||
import {addFund, resubmitFund, getFundDetail} from "@/api/special-fund";
|
||||
import {addFund, resubmitFund, getFundDetail,getFundProcess} from "@/api/special-fund";
|
||||
import {useRouter} from "vue-router";
|
||||
import {useTagsView} from '@/stores/tagsview.js'
|
||||
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
|
||||
const tagsViewStore = useTagsView()
|
||||
@@ -145,7 +145,7 @@ const submitParam = (item) => {
|
||||
introduce: item.introduce,
|
||||
name: item.name,
|
||||
files: files,
|
||||
// deploymentId: processInstanceData.value.deploymentId
|
||||
deploymentId: processInstanceData.value.deploymentId
|
||||
}
|
||||
}
|
||||
const handleSubmit = async (instance) => {
|
||||
@@ -187,7 +187,8 @@ const handleResubmit = () => {
|
||||
})
|
||||
}
|
||||
const init = async () => {
|
||||
getWorkflowInfo().then(res => {
|
||||
processDiagramViewer.value = false
|
||||
getFundProcess().then(res => {
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: res.msg,
|
||||
@@ -216,7 +217,7 @@ const getDetailInfo = async () => {
|
||||
type: res.code === 1000 ? 'success' : 'error'
|
||||
})
|
||||
if (res.code === 1000) {
|
||||
formData.value = res.data.formData
|
||||
formData.value = res.data
|
||||
showTinymce.value = false
|
||||
showTable.value = false
|
||||
nextTick(() => {
|
||||
@@ -228,7 +229,7 @@ const getDetailInfo = async () => {
|
||||
}
|
||||
onMounted(async () => {
|
||||
loading.value = true
|
||||
// await init()
|
||||
await init()
|
||||
if (route.query.id) {
|
||||
await getDetailInfo()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user