fix : 修复专项资金页面功能细节

This commit is contained in:
2024-05-28 16:36:03 +08:00
parent 63e94af451
commit ba86f54369
10 changed files with 682 additions and 29 deletions

View File

@@ -0,0 +1,48 @@
<template>
<special-fund-detail :formData="fundData.formData" :data="fundData" :showTable="showTable" :processViewer="fundProcessViewer"
:loading="loading"/>
</template>
<script setup lang="jsx">
import {ElNotification} from "element-plus";
import {getFundDetail} from "@/api/special-fund";
import {useProcessStore} from '@/stores/processStore.js';
const processStore = useProcessStore()
const route = useRoute()
const fundData = ref({})
const fundProcessViewer = ref(true)
const showTable = ref(true)
const loading = ref(false)
const getDetail = async () => {
const specialFundId = route.query.id
showTable.value = false
loading.value = true
const {code, data, msg} = await getFundDetail(specialFundId)
ElNotification({
title: '提示',
message: msg,
type: code === 1000 ? 'success' : 'error'
})
if (code === 1000) {
fundData.value = data
loading.value = false
nextTick(() => {
showTable.value = true
})
// if(data.operationList==null)return;
// processStore.setDesign(data)
// processStore.runningList.value = data.runningList;
// processStore.endList.value = data.endList;
// processStore.noTakeList.value = data.noTakeList;
// processStore.refuseList.value = data.refuseList;
// processStore.passList.value = data.passList;
}else {
loading.value = false
}
}
getDetail()
</script>
<style scoped>
</style>