From 6227519a1bd9007aedae11b77b0b3b1851837c38 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 03 七月 2025 14:41:04 +0800 Subject: [PATCH] 仿真测试页面,模型三位投影模块布局1修改 --- src/views/simulation/testSimulation/index.vue | 56 ++++++-------------------------------------------------- 1 files changed, 6 insertions(+), 50 deletions(-) diff --git a/src/views/simulation/testSimulation/index.vue b/src/views/simulation/testSimulation/index.vue index 2303f82..aa593c9 100644 --- a/src/views/simulation/testSimulation/index.vue +++ b/src/views/simulation/testSimulation/index.vue @@ -72,7 +72,7 @@ </div> </el-col> </el-row> - <div v-if="modelDataList.length == 0"> + <div v-if="noData"> <el-empty :image-size="140" /> </div> </div> @@ -124,33 +124,12 @@ const detailDialogVisible = ref(false); const parentChannel = ref({}); const toolClass: any = inject("toolClass"); +const noData = ref<boolean>(false) onMounted(() => { + listLoading.value = true getAircraftList(); - // getModelData(); }); -watch( - () => seleStore.channelInfo, // 鐩戝惉 reactive 瀵硅薄锛堥粯璁ゆ繁搴︾洃鍚級 - (newVal) => { - if (newVal) { - console.log(newVal, "channelInfo"); - } - } -); -watch( - () => seleStore.storeInfo, // 鐩戝惉 reactive 瀵硅薄锛堥粯璁ゆ繁搴︾洃鍚級 - (newVal) => { - if (newVal) { - console.log(newVal, "storeInfo"); - } - } -); -watch( - () => seleStore.channelList, // 鐩戝惉 reactive 瀵硅薄锛堥粯璁ゆ繁搴︾洃鍚級 - (newVal) => { - console.log(newVal, "channelList"); - } -); watch( () => parentChannel.value, // 鐩戝惉 reactive 瀵硅薄锛堥粯璁ゆ繁搴︾洃鍚級 (newVal) => { @@ -196,6 +175,7 @@ //鑾峰彇棰勮妯″瀷鍒楄〃 const getModelList = async () => { + listLoading.value = true const currentNode = modelTypeList.value.find( (item) => item.key == modelTypeActive.value ); @@ -222,7 +202,7 @@ item.md5 = fileData.FileList[0].File.Md5; } catch (error) {} } - console.log(treeData, "getModelList"); + if(!treeData.datas.length) noData.value = true modelDataList.value = treeData.datas; listLoading.value = false; }; @@ -238,28 +218,6 @@ const handleClick = (item) => { modelTypeActive.value = item.key; -}; -const getModelData = () => { - listLoading.value = true; - let list = [ - { - name: "宸¤鍣ㄦ暣妯″瀷", - icon: "", - id: "1", - }, - { - name: "澶╃嚎", - icon: "", - id: "2", - }, - { - name: "澶槼缈�", - icon: "", - id: "3", - }, - ]; - modelDataList.value = list; - listLoading.value = false; }; //鏌ョ湅灞炴�� @@ -285,8 +243,6 @@ }); }; -//鑾峰彇棰戦亾淇℃伅 -const getChannelInfo = () => {}; </script> <style lang="less" scoped> @@ -316,7 +272,7 @@ margin-top: 20px; .model-body-box { border: 1px solid #f1f1f1; - + min-height:300px; .jc-sb { margin-top: 20px; } -- Gitblit v1.9.1