Browse Source

主要设备清单,点击行数据,下部页签保留原状态

yunxing 4 năm trước cách đây
mục cha
commit
1b5e64eeb4
1 tập tin đã thay đổi với 7 bổ sung6 xóa
  1. 7 6
      src/views/equipment/table/eqDetaileDialog.vue

+ 7 - 6
src/views/equipment/table/eqDetaileDialog.vue

@@ -130,6 +130,7 @@
                             </el-popover>
                         </template>
                     </el-table-column>
+                    <!-- TODO: -->
                     <el-table-column prop='floor' sortable label='楼层' width='70' show-overflow-tooltip resizable>
                         <!-- <template slot-scope='{row}'>{{row.floorcode || '--'}}</template> -->
                         <template slot-scope='{row}'>
@@ -293,7 +294,7 @@ export default {
             // }
             // 滚动时,如果是上部表格,隐藏上部表格的popover
             this.$nextTick(() => {
-                if (this.$refs['table-container-1'].contains(e.target)) {
+                if (this.$refs['table-container-1'] && this.$refs['table-container-1'].contains(e.target)) {
                     document.body.click()
                     document.dispatchEvent(new CustomEvent('mousedown'))
                     document.dispatchEvent(new CustomEvent('mouseup'))
@@ -302,12 +303,12 @@ export default {
         },
         innerTable(row) {
             this.assetnum = row.assetnum
-            this.changeTab(0)
+            this.changeTab(this.currentTab)
             // this.$refs.wbTable.startMethods()
-            // TODO: 
-            if (row.assetuid) {
-                window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=assetdevic&uniqueid=${row.assetuid}`)
-            }
+            // TODO:
+            // if (row.assetuid) {
+            //     window.open(`http://gcgl.wanda.cn/maximo/ui/?event=loadapp&value=assetdevic&uniqueid=${row.assetuid}`)
+            // }
         },
         // 跳转工程信息化
         goToGC(assetuid) {