Browse Source

reactor:事件分类选择问题修复;

zhangchong 10 months ago
parent
commit
f33ab9bb65

+ 2 - 1
src/components/Hotspot/event.vue

@@ -55,7 +55,7 @@
   </el-select>
 </template>
 <script setup lang="ts">
-import { computed, reactive, ref, watch } from "vue";
+import { computed, nextTick, reactive, ref, watch } from "vue";
 import { removeDuplicate } from '@/utils/arrayOperation';
 import { treeEventClass, treeEventClassSearch } from '@/api/auxiliary/eventClass';
 
@@ -136,6 +136,7 @@ const loading = ref(false);
 const treeRef = ref<RefType>();
 const loadNode = async (node: any, resolve: any) => {
   if (node.isLeaf) return resolve([]);
+  await nextTick();
   const { showCheckbox, modelValue } = props;
   try {
     loading.value = true;

+ 2 - 1
src/components/Hotspot/index.vue

@@ -55,7 +55,7 @@
 	</el-select>
 </template>
 <script setup lang="ts">
-import { computed, nextTick, reactive, ref, watch } from "vue";
+import { computed, nextTick, onMounted, reactive, ref, watch } from "vue";
 import { hotSpotSearch, hotSpotType } from '@/api/business/order';
 import { removeDuplicate } from '@/utils/arrayOperation';
 import { treeEventClass, treeEventClassSearch } from '@/api/auxiliary/eventClass';
@@ -137,6 +137,7 @@ const loading = ref(false);
 const treeRef = ref<RefType>();
 const loadNode = async (node: any, resolve: any) => {
 	if (node.isLeaf) return resolve([]);
+  await nextTick();
 	const { showCheckbox, modelValue } = props;
 	try {
 		loading.value = true;

+ 1 - 1
src/views/todo/seats/accept/index.vue

@@ -1258,9 +1258,9 @@ const loadExtra = async () => {
 };
 onBeforeMount(() => {
 	loadBaseData();
-	loadForm();
 });
 onMounted(async () => {
+  await loadForm();
 	await loadAddress();
 	await loadExtra();
 	await nextTick();