cxs 2 тижнів тому
батько
коміт
d2cdb7d34f

+ 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}
 }