Sfoglia il codice sorgente

重置题名修改

duy 5 giorni fa
parent
commit
307f5fdc18
1 ha cambiato i file con 11 aggiunte e 3 eliminazioni
  1. 11 3
      src/views/data-fill/query.vue

+ 11 - 3
src/views/data-fill/query.vue

@@ -1350,10 +1350,18 @@ const getWbsNodeTypeApi = async () => {
         code: 'name_rule',
     })
     //处理数据
-
+    let newArr = []
     const newData = getArrValue(data)
-
-    nodeTypeData.value = newData
+    for (let i = 0; i < newData.length; i++) {
+      
+             newArr.push({
+            label: newData[i]['dictValue'],
+            value:newData[i]['dictKey'],
+        })
+        
+       
+    }
+    nodeTypeData.value = newArr
 }
 </script>