linan 5 anos atrás
pai
commit
32e1a8d9e4

+ 19 - 20
src/components/mountForm/mountForm.vue

@@ -120,25 +120,24 @@ export default {
 
             let areaId = value[value.length - 1];
             this.mountform.areaId = areaId
-            let areaTree = this.areaTree;
-            this.mountform.areaName = findName(areaId);
-
-            function findName(id) {
-                let nodeName = undefined;
-                loopFind(areaTree);
-                function loopFind(tree) {
-                    tree.forEach(item => {
-                        if (item.id == id) {
-                            nodeName = item.nodeName;
-                        } else if (item.childs) {
-                            loopFind(item.childs);
-                        } else {
-                            return;
-                        }
-                    });
-                }
-                return nodeName;
-            }
+            // let areaTree = this.areaTree;
+            // this.mountform.areaName = findName(areaId);
+            // function findName(id) {
+            //     let nodeName = undefined;
+            //     loopFind(areaTree);
+            //     function loopFind(tree) {
+            //         tree.forEach(item => {
+            //             if (item.id == id) {
+            //                 nodeName = item.nodeName;
+            //             } else if (item.childs) {
+            //                 loopFind(item.childs);
+            //             } else {
+            //                 return;
+            //             }
+            //         });
+            //     }
+            //     return nodeName;
+            // }
         },
         //确认
         confirm(formName) {
@@ -160,7 +159,7 @@ export default {
         // 请求 挂载设备
         getMountDevice(data) {
             data.id = this.rowData.id
-            data.categoryId = this.rowData.categoryId
+            // data.categoryId = this.rowData.categoryId
             this.fetch({
                 api: "/device/device/mount",
                 method: "POST",

+ 1 - 1
src/views/deviceManagement/deviceHumiture/deviceHumiture.vue

@@ -155,7 +155,7 @@ export default {
                     fromDate: this.SDate,
                     toDate: this.EDate,
                     page: 1,
-                    size: 10000
+                    size: 500
                 },
                 // data: { deviceId: 666, type },
                 success: res => {