Jelajahi Sumber

代码提交

cxs 2 minggu lalu
induk
melakukan
d2cdb7d34f
1 mengubah file dengan 11 tambahan dan 9 penghapusan
  1. 11 9
      src/views/system/stations/components/strategySafeguard.vue

+ 11 - 9
src/views/system/stations/components/strategySafeguard.vue

@@ -375,14 +375,17 @@ const pageable = ref<any>({
 const getList= async ()=>{
   const { data } = await getAstactList(pageable.value);
   const dataList = data[props.selectData.as_code]
-  dataList.forEach(item => {
-    if (item.tact_index === 1) {
-      dailyData.value.push(item);
-      getDailyData()
-    } else {
-      taskData.value.push(item);
-    }
-  });
+  if(dataList!==undefined){
+    dataList.forEach(item => {
+      if (item.tact_index === 1) {
+        dailyData.value.push(item);
+        getDailyData()
+      } else {
+        taskData.value.push(item);
+      }
+    });
+
+  }
 
 }
 
@@ -752,7 +755,6 @@ const parseItemValue = (itemValue) => {
 
 const getItemList=(itemValue)=>{
   const [element, operator, value] = itemValue.split('|');
-  console.log("findDataName",findDataName(element))
   return {element:findDataName(element),operator:operatorDataName(operator),valueName:value}
 }