Browse Source

fix: 主要设备清单 关闭弹窗 筛选不收回的问题

yunxing 4 years ago
parent
commit
fab95b36d3

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

@@ -337,7 +337,7 @@ export default {
                 this.tableData = res.data.data
                 this.total = res.data.count
                 this.key++
-                if (this.tableData.length > 0) {
+                if (this.tableData && this.tableData.length) {
                     this.assetnum = this.tableData[0].assetnum
                     this.changeTab(0)
                 }

+ 6 - 2
src/views/equipment/table/standTable.vue

@@ -85,7 +85,7 @@
         </el-dialog>-->
         <!-- 标准表格详情钻取表,使用全屏弹窗 -->
         <el-dialog width='100%' :title='`${type_name}设备清单`' :visible.sync='innerVisible' append-to-body :fullscreen='true'>
-            <eq-detail ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
+            <eq-detail :key='`eqDetail${key}`' ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
         </el-dialog>
     </div>
 </template>
@@ -112,6 +112,7 @@ export default {
             type_name: '',
             floorAllSelect: [],
             sign: 1,
+            key: 1,
         }
     },
     props: ['major', 'param', 'InfoName', 'smsxt', 'diff'],
@@ -125,9 +126,12 @@ export default {
         },
         rowHandle(row) {
             this.type_name = row.type_name
-            this.innerVisible = true
             this.row = row
             this.sign = 1
+            this.$nextTick(() => {
+                this.key++
+                this.innerVisible = true
+            })
         },
         pageChanged(page) {
             this.currentPage = page