瀏覽代碼

风门详情页面数据展示

bobo04052021@163.com 1 周之前
父節點
當前提交
140368954a
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 2 2
      common/service/config.service.js
  2. 5 2
      pages/home/detail/autodoor/autodoor.vue

+ 2 - 2
common/service/config.service.js

@@ -7,13 +7,13 @@ if (process.env.NODE_ENV == "development") {
   // BASE_URL = "http://10.248.135.10:9999"; // 大柳塔进
   // BASE_URL = "http://10.248.135.121:9999"; // 活鸡兔井
   // BASE_URL = "http://10.246.63.125:9999"; // 寸草塔二矿
-  // BASE_URL = "http://10.246.183.35:9999"; // 乌兰木伦
+  BASE_URL = "http://10.246.183.35:9999"; // 乌兰木伦
   // BASE_URL = "http://10.120.120.164:9999"; // 察哈素
   // BASE_URL = "http://182.92.126.35:9999"; // 生产环境
   // BASE_URL = "http://172.16.53.16:9999"; //
   // BASE_URL = "http://10.246.167.205:9999"; //上湾
   // BASE_URL = "http://172.30.157.9:9999"; //元子沟
-  BASE_URL = "http://10.246.167.205:9999"; //上湾
+  // BASE_URL = "http://10.246.167.205:9999"; //上湾
 }
 let staticDomainURL = BASE_URL + "/sys/common/static";
 

+ 5 - 2
pages/home/detail/autodoor/autodoor.vue

@@ -144,7 +144,7 @@
               class="itemback"
               v-for="(item, index) in deviceShowList"
               :key="index"
-              v-show="
+              v-if="
                 item.appShow == 1 &&
                 item.monitorcode != 'strinstallpos' &&
                 item.monitorcode != 'netStatus' &&
@@ -707,7 +707,10 @@ export default {
               this.showColum = showlist;
               const key = this.TabCur + "_monitor";
               const key1 = this.deviceType + "_monitor";
-              if (this.showColum[key1].length > 0) {
+              if (
+                this.showColum[key1].length &&
+                this.showColum[key1].length > 0
+              ) {
                 this.deviceShowList = this.showColum[key1];
               } else {
                 this.deviceShowList = this.showColum[key];