jianhui 4 lat temu
rodzic
commit
18b612af0d
1 zmienionych plików z 4 dodań i 4 usunięć
  1. 4 4
      src/views/device/iot/smartsmoke.vue

+ 4 - 4
src/views/device/iot/smartsmoke.vue

@@ -287,7 +287,7 @@
                 value: "productId"
               },
               dicFormatter: (res) => {
-                return res.data.records;
+                return res.records;
               },
             }]
           }, {
@@ -744,14 +744,14 @@
     },
     watch: {
       "form.platform"() {
-        let platformColumn = this.option.group[1].column[0];
+        // let platformColumn = this.option.group[1].column[0];
         let isAepColumn = this.option.group[1].column[1];
         let productColumn = this.option.group[1].column[2];
         if (this.form.platform == "aep") {
           getIotList(1, 10000, {
             "platform": "aep"
           }).then(res => {
-            productColumn['dicData'] = res.data.data.records
+            productColumn['dicData'] = res.data.records
             // platformColumn.cascaderItem = ['productId']
             productColumn.dicUrl = "/api/cyzh-third/iotaepproduct/list?platform=aep&productName={{key}}"
             isAepColumn.display = false;
@@ -761,7 +761,7 @@
           getIotList(1, 10000, {
             "platform": "scepctwing"
           }).then(res => {
-            productColumn['dicData'] = res.data.data.records
+            productColumn['dicData'] = res.data.records
             // if(this.form.productId != ""){
             productColumn.dicUrl = "/api/cyzh-third/iotaepproduct/list?platform=scepctwing&productName={{key}}"
             // }else{