闫增涛
2025-06-12 e2952ba4b6a392047ddbc3542465a81413c64eb9
仿真首页优化
1个文件已修改
56 ■■■■ 已修改文件
src/views/simulation/testSimulation/index.vue 56 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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;
    }