xq feat:"做好了切换项目的准备"

This commit is contained in:
2025-07-03 14:23:53 +08:00
parent 6982bdee95
commit 90501b94f6
3 changed files with 43 additions and 2 deletions

View File

@ -134,6 +134,7 @@
<script setup name="Nbq" lang="ts">
import { listNbq, getNbq, delNbq, addNbq, updateNbq } from '@/api/business/nbq';
import { NbqVO, NbqQuery, NbqForm } from '@/api/business/nbq/types';
import { useProgram } from '@/store/modules/program';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const { type } = toRefs<any>(proxy?.useDict('type'));
@ -150,6 +151,22 @@ const total = ref(0);
const queryFormRef = ref<ElFormInstance>();
const nbqFormRef = ref<ElFormInstance>();
const programState = useProgram();
const programID = computed(() => {
return programState.programID;
});
watch(
programID,
(nv, ov) => {
if (nv !== ov) {
getList();
}
},
{ deep: true }
);
const dialog = reactive<DialogOption>({
visible: false,
title: ''