fix : 修复页面细节
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
|
||||
<script setup lang="jsx">
|
||||
import {ElNotification} from "element-plus";
|
||||
import {getFundDetail} from "@/api/special-fund";
|
||||
import {useProcessStore} from '@/stores/processStore.js';
|
||||
import {getFundDetailProcess} from "@api/special-fund";
|
||||
const processStore = useProcessStore()
|
||||
const route = useRoute()
|
||||
const fundData = ref({})
|
||||
@@ -17,7 +17,8 @@ const getDetail = async () => {
|
||||
const specialFundId = route.query.id
|
||||
showTable.value = false
|
||||
loading.value = true
|
||||
const {code, data, msg} = await getFundDetail(specialFundId)
|
||||
fundProcessViewer.value = false
|
||||
const {code, data, msg} = await getFundDetailProcess(specialFundId)
|
||||
ElNotification({
|
||||
title: '提示',
|
||||
message: msg,
|
||||
@@ -26,17 +27,17 @@ const getDetail = async () => {
|
||||
if (code === 1000) {
|
||||
fundData.value = data
|
||||
loading.value = false
|
||||
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;
|
||||
nextTick(() => {
|
||||
fundProcessViewer.value = true
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user