浏览代码

设备详情页无数据修改

bobo04052021@163.com 1 周之前
父节点
当前提交
73bb48829f
共有 3 个文件被更改,包括 22 次插入21 次删除
  1. 1 1
      common/service/config.service.js
  2. 1 1
      pages/home/detail/autodoor/autodoor.vue
  3. 20 19
      pages/home/home.vue

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

@@ -3,7 +3,7 @@ let BASE_URL = "";
 if (process.env.NODE_ENV == "development") {
   BASE_URL = "http://182.92.126.35:9999"; // 开发环境
 } else {
-  BASE_URL = "http://182.92.126.35:9999"; // 开发环境
+  // BASE_URL = "http://182.92.126.35:9999"; // 开发环境
   // BASE_URL = "http://10.246.95.4:9999"; // 布尔台
   // BASE_URL = "http://10.248.135.10:9999"; // 大柳塔进
   // BASE_URL = "http://10.248.135.121:9999"; // 活鸡兔井

+ 1 - 1
pages/home/detail/autodoor/autodoor.vue

@@ -397,7 +397,7 @@ export default {
     getShowList(type) {
       const params = {
         devicekind: type,
-        pagetype: "detail",
+        pagetype: "monitor",
         pageNo: 1,
         pageSize: 100,
       };

+ 20 - 19
pages/home/home.vue

@@ -64,10 +64,10 @@
                     <u--text class="timetext" :text="item.readTime"></u--text>
                   </u-col>
                 </u-row>
-                <view v-if="colums[TabCur + '_monitor'] != null">
+                <view v-if="colums[TabCur + '_detail'] != null">
                   <view
                     class="datacard"
-                    v-for="(showitem, index) in colums[TabCur + '_monitor']"
+                    v-for="(showitem, index) in colums[TabCur + '_detail']"
                     :key="index"
                     v-show="
                       showitem.appShow == 1 &&
@@ -307,24 +307,25 @@ export default {
       });
     },
     openNewPage(params) {
-      // const reqData = {
-      //   id: params.deviceID,
-      //   name: params.strinstallpos,
-      //   type: this.TabCur,
-      // };
-      // const reqparams = uni.$u.queryParams(reqData);
-      // this.getShowList(this.TabCur).then(() => {
-      //   if (this.typeList.length > 0) {
-      //     this.$destroy();
-      //     uni.navigateTo({
-      //       url: `/pages/home/detail/autodoor/autodoor${reqparams}`,
-      //     });
-      //   }
-      // });
-      this.$destroy();
-      uni.navigateTo({
-        url: `/pages/home/detail/autodoor/autodoor?id=${params.deviceID}&name=${params.strinstallpos}&type=${this.TabCur}`,
+      const reqData = {
+        id: params.deviceID,
+        name: params.strinstallpos,
+        type: this.TabCur,
+      };
+      const reqparams = uni.$u.queryParams(reqData);
+      this.getShowList(this.TabCur).then(() => {
+        if (this.typeList.length > 0) {
+          this.$destroy();
+          uni.navigateTo({
+            url: `/pages/home/detail/autodoor/autodoor${reqparams}`,
+          });
+        }
       });
+      //   this.$destroy();
+      //   uni.navigateTo({
+      //     url: `/pages/home/detail/autodoor/autodoor?id=${params.deviceID}&name=${params.strinstallpos}&type=${this.TabCur}`,
+      //   });
+      // },
     },
   },
   destroyed() {