Преглед на файлове

Merge branch 'eq_dev' of http://39.106.8.246:3003/web/wanda-bm-guide into eq_dev

yx преди 4 години
родител
ревизия
0eca4cf054
променени са 1 файла, в които са добавени 4 реда и са изтрити 7 реда
  1. 4 7
      src/views/equipment/table/eqDetaileDialog.vue

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

@@ -185,9 +185,6 @@ export default {
     },
     props: ['row', 'major', 'sign', 'smsxt', 'diff'],
     methods: {
-        tabClick(item) {
-            this.activeId = item
-        },
         innerTable(row) {
             this.assetnum = row.assetnum
             this.changeTab(0)
@@ -198,7 +195,6 @@ export default {
         },
         //多余输入框监听
         confirm(fws, manufacturer) {
-            //console.log(fws, manufacturer, '------')
             this.fws = fws
             this.manufacturer = manufacturer
             this.queryTableList()
@@ -236,7 +232,6 @@ export default {
                 data.onlyMainAsset = true
             }
             querySelect({ data, postParams }).then((res) => {
-                //console.log(res)
                 let sb_status = res.data.data.sms_asset.sb_status
                 let sbglgs = res.data.data.sms_asset.sbglgs
                 this.sbglgsOption = []
@@ -324,10 +319,13 @@ export default {
                 postParams.status = this.status
             }
             queryAsset({ data, postParams }).then((res) => {
-                console.log(res)
                 this.tableData = res.data.data
                 this.total = res.data.count
                 this.key++
+                if (this.tableData.length > 0) {
+                    this.assetnum = this.tableData[0].assetnum
+                    this.changeTab(0)
+                }
             })
         },
         getFloorAllSelect() {
@@ -339,7 +337,6 @@ export default {
             this.floorSelect.forEach((el) => {
                 this.floorAllSelect.push(el)
             })
-            console.log(this.floorAllSelect)
         },
         // 更改tab页签,切换组件
         changeTab(index) {