Explorar o código

搜索楼层不生效解决

zhulizhen1111 %!s(int64=4) %!d(string=hai) anos
pai
achega
b98d770730

+ 2 - 1
src/components/floorMap/index.vue

@@ -132,13 +132,14 @@ export default {
                         type: 'warning'
                     }) */
                     this.$store.commit('SETISMESSAGE', false)
+                    return
                     //    一会回来存这个
                 } else {
                     this.$store.commit('SETISMESSAGE', true)
                 }
                 // FIXME:   Cannot read property '0' of undefined
                 // 无返回Data处理
-                if (!(data.Data && data.Data.length) ) {
+                if (!(data.Data && data.Data.length)) {
                     return false
                     //console.log(data.data.Data[0].ID)
                     // this.$cookie.set('graphId', data.Data[0].ID, 3)

+ 5 - 5
src/utils/plugins/components.js

@@ -300,16 +300,16 @@ var system = [
                     label: "系统原理图",
                     children: [
                         {
-                            label: "视频监控系统原理图",
-                            id: "RDYL1",
-                            param: { tab_code: "1572", type_code: "2018" },
-                        },
-                        {
                             label: "门禁管理系统原理图",
                             id: "RDYL2",
                             param: { tab_code: "rd01", type_code: "2019" },
                         },
                         {
+                            label: "视频监控系统原理图",
+                            id: "RDYL1",
+                            param: { tab_code: "1572", type_code: "2018" },
+                        },
+                        {
                             label: "BA楼宇智能化系统原理图",
                             id: "RDYL3",
                             param: { tab_code: "1574", type_code: "2010" },

+ 1 - 1
src/views/equipment/table/standTable.vue

@@ -132,7 +132,7 @@ export default {
             }
             //下拉
             if (this.floor) {
-                data.gname = this.floor
+                postParams.gname = this.floor
             }
             //输入框搜索
             data.keyword = ''