Merge remote-tracking branch 'origin/master'

# Conflicts:
#	src/views/project-demand/requirement/detail.vue
This commit is contained in:
clay
2024-06-02 17:39:20 +08:00
23 changed files with 150 additions and 89 deletions

View File

@@ -38,3 +38,9 @@ export const resubmitFund= (data) => {
data data
}); });
}; };
export const deleteFund = (id) => {
return request({
url: `/workflow/mosr/special/fund/${id}`,
method: "delete"
});
};

View File

@@ -19,7 +19,7 @@
<el-form-item label="其他文件"> <el-form-item label="其他文件">
<el-card style="width: 100%"> <el-card style="width: 100%">
<file-upload @getFile="getOtherFile"/> <file-upload @getFile="getOtherFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="allFileList" :isSettingCol="false" :pagination="false"> :data="allFileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -226,5 +226,7 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -11,7 +11,8 @@
import {ElNotification} from 'element-plus'; import {ElNotification} from 'element-plus';
import {agreeTask, rejectTask} from "@/api/project-demand/index.js"; import {agreeTask, rejectTask} from "@/api/project-demand/index.js";
import { useTagsView } from '@/stores/tagsview.js' import {useTagsView} from '@/stores/tagsview.js'
const tagsViewStore = useTagsView() const tagsViewStore = useTagsView()
const route = useRoute() const route = useRoute()
const router = useRouter() const router = useRouter()
@@ -84,7 +85,11 @@ const back = () => {
} }
break; break;
case 'Fund/detail': case 'Fund/detail':
router.push({name: 'Fund'}) if (route.query.source === 'home') {
router.push('/home')
} else {
router.push({name: 'Fund'})
}
break; break;
case 'Share/detail': case 'Share/detail':
router.push({name: 'Expense/share'}) router.push({name: 'Expense/share'})

View File

@@ -30,7 +30,7 @@
<baseTitle title="关联项目"></baseTitle> <baseTitle title="关联项目"></baseTitle>
<el-col :span="24"> <el-col :span="24">
<el-form-item> <el-form-item>
<fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="projectTable" <fvTable style="width: 100%;max-height:300px" v-if="showTable" :tableConfig="projectTable"
:data="formData.projects" :isSettingCol="false" :pagination="false"> :data="formData.projects" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -41,7 +41,7 @@
<baseTitle title="附件列表"></baseTitle> <baseTitle title="附件列表"></baseTitle>
<el-col :span="24"> <el-col :span="24">
<el-form-item> <el-form-item>
<fvTable style="width: 100%;max-height: 200px" v-if="showTable" :tableConfig="fileTable" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="fileTable"
:data="formData.files" :isSettingCol="false" :pagination="false"> :data="formData.files" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -201,6 +201,8 @@ watch(() => props.showTable, (newVal) => {
}, {deep: true}) }, {deep: true})
</script> </script>
<style scoped> <style scoped lang="scss">
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -103,7 +103,7 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="其中申请公司总部科技创新专项资金(元)" prop="specialFundAmount"> <el-form-item label="其中申请公司总部科技创新专项资金(元)" prop="specialFundAmount" v-if="localFormData.isSpecialFund!==null||localFormData.isSpecialFund">
<span>{{ localFormData.specialFundAmount }}</span> <span>{{ localFormData.specialFundAmount }}</span>
</el-form-item> </el-form-item>
</el-col> </el-col>

View File

@@ -74,7 +74,7 @@ const props = defineProps({
}, },
height:{ height:{
type: Number, type: Number,
default: 650 default: 500
} }
}) })
const content = ref(props.value); const content = ref(props.value);

View File

@@ -232,11 +232,6 @@ const getDetailInfo = async () => {
const init = async () => { const init = async () => {
processDiagramViewer.value = false processDiagramViewer.value = false
getAllocationProcess().then(res => { getAllocationProcess().then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) { if (res.code === 1000) {
let data = res.data let data = res.data
processInstanceData.value = data processInstanceData.value = data
@@ -249,6 +244,12 @@ const init = async () => {
nextTick(() => { nextTick(() => {
processDiagramViewer.value = true processDiagramViewer.value = true
}) })
}else {
ElNotification({
title: '提示',
message: res.msg,
type: 'error'
})
} }
}) })
} }

View File

@@ -77,7 +77,13 @@ const tableConfig = reactive({
label: '状态', label: '状态',
align: 'center', align: 'center',
showOverflowTooltip: false, showOverflowTooltip: false,
// currentRender: ({row, index}) => (<Tag dictType={'special_fund'} value={row.state}/>) currentRender: ({row, index}) => {
if (row.state == undefined||row.state == 0) {
return '--'
} else {
return (<Tag dictType={'special_fund'} value={row.state}/>)
}
}
}, },
{ {
prop: 'oper', prop: 'oper',

View File

@@ -148,7 +148,6 @@ const tableConfig = reactive({
return ( return (
<div> <div>
<el-button type="primary" link onClick={() => handleView(row)}>查看</el-button> <el-button type="primary" link onClick={() => handleView(row)}>查看</el-button>
<el-button type="primary" link onClick={() => handleEdit(row)}>已读</el-button>
</div> </div>
) )
} }
@@ -175,7 +174,7 @@ const handleView = (row) => {
source: 'home' source: 'home'
} }
}) })
} else { } else if (row.targetState == '20'||row.targetState == '40'||row.targetState == '50'){
router.push({ router.push({
name: 'Implementation/detail', name: 'Implementation/detail',
query: { query: {
@@ -185,6 +184,15 @@ const handleView = (row) => {
source: 'home' source: 'home'
} }
}) })
}else if (row.targetState == '70' && row.targetId) {
router.push({
name: 'Fund/detail',
query: {
id: row.targetId,
state: row.state,
source: 'home'
}
})
} }
} }
</script> </script>

View File

@@ -57,7 +57,7 @@
v-model:value="formData.collectExplain" /> v-model:value="formData.collectExplain" />
<baseTitle title="申请文件"></baseTitle> <baseTitle title="申请文件"></baseTitle>
<file-upload v-if="checkFormPrem('fileList')" @getFile="getFile"/> <file-upload v-if="checkFormPrem('fileList')" @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 600px;height: 600px" v-if="showTable" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable"
:tableConfig="tableConfig" :data="formData.fileList" :tableConfig="tableConfig" :data="formData.fileList"
:isSettingCol="false" :pagination="false" perm="EDIT"> :isSettingCol="false" :pagination="false" perm="EDIT">
<template #empty> <template #empty>
@@ -74,7 +74,6 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="routerName==='Requirement/add'" @click="handleSubmit(demandForm)">提交</el-button> <el-button color="#DED0B2" v-if="routerName==='Requirement/add'" @click="handleSubmit(demandForm)">提交</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -367,7 +366,7 @@ onMounted(async () => {
margin-top: 0; margin-top: 0;
} }
:deep(.el-table--fit ){ :deep(.el-table--fit ){
height: 600px; height: 300px!important;
} }
.add-block { .add-block {
//display: flex; //display: flex;

View File

@@ -76,7 +76,7 @@
</el-row> </el-row>
</el-form> </el-form>
<div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId"> <div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId">
<el-button @click="handleReject(demandForm)">驳回</el-button> <el-button type="danger" @click="handleReject(demandForm)">驳回</el-button>
<el-button color="#DED0B2" @click="handleSubmit">同意</el-button> <el-button color="#DED0B2" @click="handleSubmit">同意</el-button>
</div> </div>
</div> </div>
@@ -247,6 +247,13 @@ const init = async () => {
await getCompanyOption() await getCompanyOption()
await getFundOptions() await getFundOptions()
getInfo(route.query.id).then(res => { getInfo(route.query.id).then(res => {
if (res.code !== 1000) {
ElNotification({
title: '提示',
message: res.msg,
type: 'error'
})
}
loading.value = false loading.value = false
let data = res.data let data = res.data
formData.value = data.formData; formData.value = data.formData;
@@ -335,9 +342,8 @@ const handleDelete = (row) => {
} }
:deep(.el-table--fit ) { :deep(.el-table--fit ) {
height: 600px; height: 300px !important;
} }
.detail-block { .detail-block {
overflow: hidden; overflow: hidden;
padding-right: 10px; padding-right: 10px;

View File

@@ -531,9 +531,4 @@ const staging = async () => {
overflow: hidden; overflow: hidden;
padding-bottom: 30px; padding-bottom: 30px;
} }
:deep(.el-table--fit) {
height: auto !important;
}
</style> </style>

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -129,5 +129,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -69,19 +69,18 @@ const tableConfig = reactive({
align: 'center', align: 'center',
currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB') currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB')
}, },
// { {
// prop: 'oper', prop: 'oper',
// label: '操作', label: '操作',
// align: 'center', align: 'center',
// currentRender: ({row, index}) => { currentRender: ({row, index}) => {
// return ( return (
// <div> <div>
// <el-button type="primary" link onClick={() => handleDownload(row)}>下载</el-button> <el-button type="primary" link onClick={() => handleDownload(row)}>下载</el-button>
// <el-button type="primary" size="large" link onClick={() => beforeRemove(row)}>删除</el-button> </div>
// </div> )
// ) }
// } }
// }
] ]
}) })
const handleDownload = (row) => { const handleDownload = (row) => {

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile" /> <file-upload @getFile="getFile" />
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -128,5 +128,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -120,11 +120,6 @@ const handleSubmit = (instance) => {
const init = async () => { const init = async () => {
const {msg, code,data} = await getProjectCheckProcess(route.query.projectId) const {msg, code,data} = await getProjectCheckProcess(route.query.projectId)
ElNotification({
title: '提示',
message: msg,
type: code === 1000 ? 'success' : 'error'
})
processDiagramViewer.value = false processDiagramViewer.value = false
if (code === 1000) { if (code === 1000) {
deploymentId.value = data.deploymentId deploymentId.value = data.deploymentId
@@ -138,6 +133,12 @@ const init = async () => {
nextTick(() => { nextTick(() => {
processDiagramViewer.value = true processDiagramViewer.value = true
}) })
}else {
ElNotification({
title: '提示',
message: msg,
type:'error'
})
} }
} }
onMounted(async () => { onMounted(async () => {

View File

@@ -17,7 +17,7 @@
<baseTitle title="其他文件"></baseTitle> <baseTitle title="其他文件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/> <file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -183,5 +183,7 @@ getTagsOption()
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -27,10 +27,11 @@
<script setup lang="jsx"> <script setup lang="jsx">
import {useTagsView} from '@/stores/tagsview.js' import {useTagsView} from '@/stores/tagsview.js'
import {ElMessage, ElNotification} from "element-plus"; import { ElNotification} from "element-plus";
import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue'; import ProcessDiagramViewer from '@/views/workflow/common/ProcessDiagramViewer.vue';
import {getApplyProcess, projectApply, resubmitApply, getApplyDetail} from "@/api/project-manage"; import {getApplyProcess, projectApply, resubmitApply, getApplyDetail} from "@/api/project-manage";
import {useProcessStore} from '@/stores/processStore.js'; import {useProcessStore} from '@/stores/processStore.js';
import {downloadFile} from "@/api/project-demand";
const tagsViewStore = useTagsView() const tagsViewStore = useTagsView()
const router = useRouter() const router = useRouter()
@@ -71,25 +72,31 @@ const tableConfig = reactive({
align: 'center', align: 'center',
currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB') currentRender: ({row, index}) => (parseInt(row.size / 1024) + 'KB')
}, },
// { {
// prop: 'oper', prop: 'oper',
// label: '操作', label: '操作',
// align: 'center', align: 'center',
// currentRender: ({row, index}) => { currentRender: ({row, index}) => {
// return ( return (
// <div> <el-button type="primary" link onClick={() => handleDownload(row)}>下载</el-button>
// <a style="cursor: pointer;font-size: 14px;color: #2a99ff;" href={row.url}>下载</a> )
// <el-button type="primary" size="large" link onClick={() => beforeRemove(row)}>删除</el-button> }
// </div> }
// )
// }
// }
] ]
}) })
const loading = ref(false) const loading = ref(false)
const processInstanceData = ref() const processInstanceData = ref()
const processDiagramViewer = ref(true) const processDiagramViewer = ref(true)
const name = ref(router.currentRoute.value.name) const name = ref(router.currentRoute.value.name)
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()
})
}
const compositeParam = (item) => { const compositeParam = (item) => {
let tag = '' let tag = ''
if (name.value === 'Initiation/apply' || name.value === 'Initiation/edit') { if (name.value === 'Initiation/apply' || name.value === 'Initiation/edit') {
@@ -146,7 +153,7 @@ const handleSubmit = (instance) => {
type: 'error' type: 'error'
}) })
return; return;
}else { } else {
attachment.value.clearValidate() attachment.value.clearValidate()
} }
let params = { let params = {
@@ -207,7 +214,7 @@ const handleResubmit = async () => {
type: 'error' type: 'error'
}) })
return; return;
}else { } else {
attachment.value.clearValidate() attachment.value.clearValidate()
} }
console.log('params', params) console.log('params', params)
@@ -253,7 +260,7 @@ const init = () => {
nextTick(() => { nextTick(() => {
processDiagramViewer.value = true processDiagramViewer.value = true
}) })
}else { } else {
ElNotification({ ElNotification({
title: '提示', title: '提示',
message: res.msg, message: res.msg,

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -127,5 +127,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -6,7 +6,7 @@
<el-input v-model="formData.name" placeholder="请输入专项资金名称" clearable></el-input> <el-input v-model="formData.name" placeholder="请输入专项资金名称" clearable></el-input>
</el-form-item> </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-input-number v-model="formData.fundAmount" placeholder="请输入金额" :controls="false"/>
</el-form-item> </el-form-item>
</el-form> </el-form>
<baseTitle title="介绍"></baseTitle> <baseTitle title="介绍"></baseTitle>
@@ -14,7 +14,7 @@
v-model:value="formData.introduce"/> v-model:value="formData.introduce"/>
<baseTitle title="申请文件"></baseTitle> <baseTitle title="申请文件"></baseTitle>
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 650px;" v-if="showTable" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable"
:tableConfig="tableConfig" :data="formData.files" :tableConfig="tableConfig" :data="formData.files"
:isSettingCol="false" :pagination="false"> :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
@@ -170,7 +170,7 @@ const handleSubmit = async (instance) => {
const handleResubmit = () => { const handleResubmit = () => {
if (!route.query.id) return if (!route.query.id) return
let params = { let params = {
id: route.query.id, specialFundId: route.query.id,
...submitParam(formData.value) ...submitParam(formData.value)
} }
resubmitFund(params).then(res => { resubmitFund(params).then(res => {
@@ -190,11 +190,6 @@ const handleResubmit = () => {
const init = async () => { const init = async () => {
processDiagramViewer.value = false processDiagramViewer.value = false
getFundProcess().then(res => { getFundProcess().then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) { if (res.code === 1000) {
let data = res.data let data = res.data
processInstanceData.value = data processInstanceData.value = data
@@ -207,6 +202,12 @@ const init = async () => {
nextTick(() => { nextTick(() => {
processDiagramViewer.value = true processDiagramViewer.value = true
}) })
}else {
ElNotification({
title: '提示',
message: msg,
type:'error'
})
} }
}) })
} }
@@ -238,6 +239,8 @@ onMounted(async () => {
}) })
</script> </script>
<style scoped> <style scoped lang="scss">
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -10,6 +10,8 @@
<script setup lang="jsx"> <script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue' import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import { ElNotification} from "element-plus";
import {deleteFund} from "@/api/special-fund";
const router = useRouter() const router = useRouter()
const searchConfig = reactive([ const searchConfig = reactive([
@@ -117,9 +119,6 @@ const tableConfig = reactive({
if (buttons.has("edit")) { if (buttons.has("edit")) {
btn.push({label: '编辑', prem: ['mosr:collect:resubmit'], func: () => handleEdit(row), type: 'primary'}) btn.push({label: '编辑', prem: ['mosr:collect:resubmit'], func: () => handleEdit(row), type: 'primary'})
} }
// if (buttons.has("delete")) {
// btn.push({label: '删除',prem: ['mosr:requirement:del'], func: () => handleDelete(row), type: 'primary'})
// }
return ( return (
<div style={{width: '100%'}}> <div style={{width: '100%'}}>
{ {
@@ -162,7 +161,7 @@ const handleDetail = (row) => {
router.push({ router.push({
name: 'Fund/detail', name: 'Fund/detail',
query: { query: {
id: row.id id: row.specialFundId
} }
}) })
} }
@@ -176,7 +175,19 @@ const handleEdit = (row) => {
router.push({ router.push({
name: 'Fund/edit', name: 'Fund/edit',
query: { query: {
id: row.id id: row.specialFundId
}
})
}
const handleDelete = async (row) => {
deleteFund(row.specialFundId).then(res => {
ElNotification({
title: '提示',
message: res.msg,
type: res.code === 1000 ? 'success' : 'error'
})
if (res.code === 1000) {
tableIns.value.refresh()
} }
}) })
} }

View File

@@ -324,6 +324,7 @@ const doPublish = () => {
type: res.code === 1000 ? 'success' : 'error' type: res.code === 1000 ? 'success' : 'error'
}) })
if (res.code === 1000) { if (res.code === 1000) {
validVisible.value = false
tagsViewStore.delVisitedViews(router.currentRoute.value.path) tagsViewStore.delVisitedViews(router.currentRoute.value.path)
router.push("/workflow/process") router.push("/workflow/process")
} }

View File

@@ -142,14 +142,15 @@ const selectDefinition = ref(null)
const historyVersionList = ref([]) const historyVersionList = ref([])
const singleTable = ref() const singleTable = ref()
const isVisited = ref(false) const isVisited = ref(false)
onActivated(()=>{
getList()
})
//重置搜索 //重置搜索
const handleReset = () => { const handleReset = () => {
queryForm.value.resetFields() queryForm.value.resetFields()
getList() getList()
} }
//获取数据 //获取数据
const getList = async () => { const getList = async () => {
let params = { let params = {