소스 검색

修改了bug样式

“yueshang” 1 년 전
부모
커밋
4f49a0a065

+ 1 - 1
src/pages/netStructPicture/components/VirtualTable.vue

@@ -121,6 +121,7 @@ let needFlashName = ref(""); //需要的变电站名称
 let tableList = ref([]); //crc效验结果表格数据
 const loading = ref(true);
 const getData = async () => {
+  loading.value=true;
   tableList.value = [];
   // let loading = ElLoading.service({
   //   lock: true,
@@ -141,7 +142,6 @@ const getData = async () => {
 const chooseInterval = ref(null); //间隔下拉框选中的数据
 const changeLevel = (e) => {
   chooseInterval.value = e ? e.join() : null;
-  console.log('first', chooseInterval.value)
 };
 const removeTag = (e)=>{
   onSubmit()

+ 0 - 1
src/pages/netStructPicture/components/basicInfo.vue

@@ -334,7 +334,6 @@ import {
 } from "@/api/iedNetwork";
 import LeaderLine from "../../../../public/leader-line.min.js";
 import AnimEvent from "../../../../public/anim-event.min.js";
-import { CloseBold } from "@element-plus/icons-vue";
 import { useRoute } from "vue-router";
 const route = useRoute();
 const props = defineProps({

+ 4 - 2
src/pages/netStructPicture/components/virtualRelation.vue

@@ -258,6 +258,7 @@ const bothSide = (data) => {
   });
 };
 const setLeaderline = () => {
+  console.log('first', domListMiddle3.value,domListLeftChild3.value,domListRightChild3.value)
   //左侧子组件
   for (let [key, value] of domListMiddle3.value) {
     for (const [key2, value2] of domListLeftChild3.value) {
@@ -349,10 +350,11 @@ const setLine = () => {
   if (listData3.value) {
     bothSide(listData3.value.list);
   }
-  setTimeout(() => {
+  const intervalId =setInterval(() => {
     setLeaderline();
     newPositionLine();
-  }, 500);
+    if(domListMiddle3.value.size>0) clearInterval(intervalId);
+  }, 300);
 };
 
 const removeLine3 = () => {

+ 3 - 2
src/pages/netStructPicture/components/virtualnformation.vue

@@ -466,10 +466,11 @@ const hiddenLine = () => {
 };
 const loading = ref(true);
 const setLine = () => {
-  setTimeout(() => {
+  const intervalId =setInterval(() => {
     setLeaderline();
     newPositionLine();
-  }, 500);
+    if(domListMiddle3.value.size>0) clearInterval(intervalId);
+  }, 300);
 };
 
 const removeLine3 = () => {

+ 0 - 1
src/pages/netStructPicture/index.vue

@@ -318,7 +318,6 @@ const nowUpload = (file, e) => {
     .catch((err) => {});
 };
 const isloadingEv = (value) => {
-  console.log('value', value)
   if (value==false) {
     isCidLoading.value = false;
   } else {