zhangyu пре 5 година
родитељ
комит
e02977d636

+ 17 - 3
src/components/business_space/business/handsontable.vue

@@ -14,6 +14,8 @@
         <div class="right" v-show="main && main.length">
             <my-pagination :page="page" @change="pageChange"></my-pagination>    
         </div>
+        <!-- 二维码弹窗 -->
+        <qrcode :dialog="dialog" :qrcodeUrl="qrcodeUrl" :addBody="true" ref="qrcode"></qrcode>
     </div>
 </template>
 <script>
@@ -27,6 +29,7 @@
      import Handsontable from "handsontable-pro"
      import 'handsontable-pro/dist/handsontable.full.css'
      import zhCN from 'handsontable-pro/languages/zh-CN';
+     import qrcode from "@/components/ledger/lib/qrcode";
      console.log(Handsontable,"Handsontable")
      import {
          updateBusiness,
@@ -46,6 +49,7 @@
              }
          },
          components: {
+             qrcode, //二维码页面
              myPagination,
              addBusiness
          },
@@ -59,8 +63,10 @@
          data() {
              return {
                  dialog: {
+                     qrcode: false, //二维码弹窗
                      addDevice: false
                  },
+                 qrcodeUrl: "",//二维码图片地址
                  headers: null,
                  main: null,
                  hot: null,
@@ -242,8 +248,16 @@
                  }
              },
              getInfors(infos, row) {
-                 if (row.col == 1) {
+                 let val = this.hot.colToProp(row.col);
+                 if (val == "point") {
                      this.$emit("lookEqu", infos);
+                 } else if (val == "infos.RoomQRCode") {
+                    this.qrcodeUrl = this.main[row.row].infos.RoomQRCode
+                    if (!!this.qrcodeUrl) {
+                        this.dialog.qrcode = true;
+                    } else {
+                        this.$message("此设备没有设备二维码")
+                    }
                  } else {
                      return false;
                  }
@@ -460,7 +474,7 @@
              delHeader(list) {
                  let arr = tools.copyArr(list)
                  // 如果不是只读状态,添加四大厂商选择
-                 let readArr = ["A1", "A2", "B1", "C5", "D1", "D2", "X", "L", "L1", "L2"]
+                 let readArr = ["A1", "A2", "B1", "C5", "D1", "D2", "X", "L", "L1", "L2", "F1", "F2"]
                  if (!this.onlyRead) {
                      arr = showTools.arrToArr(arr)
                      readArr.push("Own")
@@ -478,7 +492,7 @@
               */
              getType(list) {
                  let arr = tools.copyArr(list)
-                 let data = showTools.showTypes(arr, false, false, true, false, ["F1", "F2"])
+                 let data = showTools.showTypes(arr, false, false, true, false)
                  data.unshift({
                      data: "hasSi",
                      renderer: this.myRenderer,

+ 1 - 1
src/components/business_space/table/equipTable.vue

@@ -335,7 +335,7 @@
                 this.iframeSrc = this.iframeSrc =
                     // "http://172.16.0.181:8889/#/details?perjectId=" +
                     process.env.BASE_URL + ":8889/#/details?perjectId=" +
-                    this.perjectId +
+                    this.projectId +
                     "&secret=" +
                     this.secret +
                     "&FmId=" +

+ 1 - 1
src/utils/handsontable/notShow.js

@@ -394,7 +394,7 @@ const showTools = {
                     }
                 }
 
-                if (item.InfoPointCode == "EquipQRCode") {
+                if (item.InfoPointCode == "EquipQRCode" || item.InfoPointCode == "RoomQRCode") {
                     return {
                         data: "infos." + item.InfoPointCode,
                         renderer: text.lookQRCode,

+ 4 - 0
src/views/data_admin/buildAssets/NoMap.vue

@@ -150,6 +150,10 @@ export default {
                     this.total = res.data.Count
                     console.log("nomap")
                     console.log(this.tableData)
+                } else {
+                    this.tableData = []
+                    this.total = 0
+                    this.loading = false
                 }
             })
         }

+ 5 - 1
src/views/data_admin/buildAssets/Nofind.vue

@@ -130,7 +130,11 @@ export default {
                         ele.floorName = this.floorsObj[ele.FloorId] || '--'
                     })
                     this.tableData = list
-                     this.total = res.data.Count
+                    this.total = res.data.Count
+                } else {
+                    this.tableData = []
+                    this.total = 0
+                    this.loading = false
                 }
             })
         }

+ 5 - 1
src/views/data_admin/buildAssets/Nopaint.vue

@@ -129,7 +129,11 @@ export default {
                         ele.floorName = this.floorsObj[ele.FloorId] || '--'
                     })
                     this.tableData = list
-                     this.total = res.data.Count
+                    this.total = res.data.Count
+                } else {
+                    this.tableData = []
+                    this.total = 0
+                    this.loading = false
                 }
             })
         }

+ 5 - 1
src/views/data_admin/buildAssets/Noverify.vue

@@ -205,6 +205,10 @@ export default {
                     await this.getEq(list)
                     await this.getSp(list)
                     this.loading = false
+                } else {
+                    this.tableData = []
+                    this.total = 0
+                    this.loading = false
                 }
             })
         },
@@ -317,7 +321,7 @@ export default {
 </script>
 
 <style scoped lang='less'>
-.data-table {
+#page-main #page-container #page-content-wrapper .page-table-template > .data-table {
     height: calc(100% - 94px);
 }
 .btn-box {

+ 3 - 2
src/views/data_admin/buildData/index.vue

@@ -488,9 +488,10 @@
                     } else {
                         this.$message.error("请求错误:" + res.data.ResultMsg)
                     }
-                }).catch(_ => {
-                    this.$message.error("请求错误")
                 })
+                // .catch(_ => {
+                //     this.$message.error("请求错误")
+                // })
             },
             //删除图片
             delPic(index) {

+ 1 - 0
src/views/point/config_point/steps/step2.vue

@@ -179,6 +179,7 @@
             //关闭人工智能弹窗
             aiClose(){
                 this.aiDialog = false
+                clearInterval(this.timer)
             },
             //刷新
             reset() {

+ 2 - 1
src/views/project_setting/collection_setting/index.vue

@@ -846,7 +846,8 @@
     }
     #page-main .el-tabs__content{
         height: 100%;
-        overflow-y: auto;
+        // overflow-y: auto;
+        overflow: hidden;
     }
 </style>
 

+ 5 - 1
src/views/rent/rentlist/index.vue

@@ -364,7 +364,11 @@ export default {
       }
       //点击关联的元空间
       if (val === "RoomCount") {
-        this.roomId = infos.RoomID
+        if(infos && infos.LeaseInfo && infos.LeaseInfo.RoomID) {
+          this.roomId = infos.LeaseInfo.RoomID
+        } else {
+          this.roomId = ""
+        }
         this.isTableRightShow = true;
       }
     },