Ver Fonte

网址全局

“yueshang” há 1 ano atrás
pai
commit
03e0004a80

+ 2 - 0
public/conf.js

@@ -0,0 +1,2 @@
+// ApiServer="http://8.142.173.95:9527";//指定接口服务地址
+ApiServer = ""; //当前应用目录

+ 1 - 0
public/static/conf.js

@@ -0,0 +1 @@
+ApiServer = "http://8.142.173.95:9527"; //指定接口服务地址

+ 13 - 9
src/pages/netStructPicture/components/ScdNow.vue

@@ -83,7 +83,7 @@
       @done="done"
       :checkDialogData="checkDialogData"
       :iedRelationData="iedRelationData"
-      :scdView = "scdView"
+      :scdView="scdView"
     ></dialog-index>
     <div id="wrapperscd"></div>
   </div>
@@ -219,25 +219,29 @@ watch(
   }
 );
 //弹窗====
-const checkDialogData = ref(null);//选择弹框的第一条数据
+const checkDialogData = ref(null); //选择弹框的第一条数据
 const done = (emits) => {
   openBig.value = emits;
   checkDialogData.value = null;
   scdView.value = false;
 };
-const iedRelationData = ref({});//左侧所有数据
-const scdView = ref(false);//是否是点击Scd文件一致性校核进入的
-const lookAdd =async () => {
+const iedRelationData = ref({}); //左侧所有数据
+const scdView = ref(false); //是否是点击Scd文件一致性校核进入的
+const lookAdd = async () => {
+  iedRelationData.value = {}
   scdView.value = true;
-
   for (let k = 0; k < iedVer.value.i.list.length; k++) {
     let item = iedVer.value.i.list[k];
     const key = item.ied_name;
     iedRelationData.value[key] = item;
   }
-  console.log('iedRelationData.value', iedRelationData.value)
-  const iedRes = await scdIedRelation({ scd_id: route.query.id,ied_name:'CE2201',reset: 1 });
-  checkDialogData.value = iedRes.data['CE2201'];
+  console.log("iedRelationData.value", iedRelationData.value);
+  const iedRes = await scdIedRelation({
+    scd_id: route.query.id,
+    ied_name: "CE2201",
+    reset: 1,
+  });
+  checkDialogData.value = iedRes.data["CE2201"];
   openBig.value = true;
 
   // lookType.value = 1;

+ 19 - 7
src/pages/netStructPicture/components/dialogIndex.vue

@@ -71,8 +71,8 @@
           class="main-right-item"
           :class="{
             'inout-right-item': inoutName.__name == 'inoutControl',
-            'soures': inoutName.__name == 'virtualRelation',
-            'relatio': inoutName.__name == 'relationShip',
+            soures: inoutName.__name == 'virtualRelation',
+            relatio: inoutName.__name == 'relationShip',
           }"
         >
           <!-- isPhoto是输入输出控制块的, -->
@@ -121,6 +121,10 @@ const props = defineProps({
     type: Object,
     default: () => {},
   },
+  scdView: {
+    type: Boolean,
+    default: false,
+  },
 });
 const isOpen = ref(props.openBig);
 const inoutNav = ref([
@@ -131,6 +135,12 @@ const inoutNav = ref([
   { name: "GOOSE接收", code: "GOOSEreceive" },
 ]);
 watch(
+  () => props.scdView,
+  (newValue) => {
+    
+  }
+);
+watch(
   () => props.openBig,
   (newValue) => {
     isOpen.value = newValue;
@@ -140,7 +150,7 @@ const iedRelation = ref(null);
 watch(
   () => props.iedRelationData,
   (newValue) => {
-    console.log('iedRelation.value111111111',newValue)
+    console.log("iedRelation.value111111111", newValue);
     iedRelation.value = newValue;
   }
 );
@@ -158,7 +168,7 @@ const searchInput = ref("");
 //搜索ied编码或名称
 const searchIedList = ref([]);
 const searchClick = (value) => {
-  if (value&&iedRelation.value) {
+  if (value && iedRelation.value) {
     iedRelation.value = Object.values(iedRelation.value).filter((item) => {
       const lowercaseValue = value.toLowerCase(); //不区分大小写
       const iedNameLower = item.ied_name ? item.ied_name.toLowerCase() : null;
@@ -168,7 +178,7 @@ const searchClick = (value) => {
         (descLower !== null && descLower.includes(value))
       );
     });
-  } else {
+  } else if (!value) {
     iedRelation.value = props.iedRelationData;
   }
 };
@@ -313,7 +323,9 @@ $height: 40px;
   color: #255ce7;
   border: 1px solid #255ce7;
 }
-.inout-right-item,.soures,.relatio {
+.inout-right-item,
+.soures,
+.relatio {
   margin-top: 27px;
   margin-left: 16px;
   height: 65vh;
@@ -321,7 +333,7 @@ $height: 40px;
 .soures {
   height: 72vh;
 }
-.relatio{
+.relatio {
   height: 65vh;
 }
 </style>