fix : 修复专项资金页面功能细节
This commit is contained in:
48
src/views/special-fund/detail.vue
Normal file
48
src/views/special-fund/detail.vue
Normal 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>
|
||||
Reference in New Issue
Block a user