Pārlūkot izejas kodu

机房钻取表

zhulizhen1111 4 gadi atpakaļ
vecāks
revīzija
bdbf09536b
1 mainītis faili ar 11 papildinājumiem un 1 dzēšanām
  1. 11 1
      src/views/room/detail.vue

+ 11 - 1
src/views/room/detail.vue

@@ -328,7 +328,7 @@ export default {
                 {
                     columnName: { sbglgs: 'sbglgs', sb_status: 'sb_status' },
                     params: {
-                        type_code: this.type_code
+                        type_code: this.row.type_code
                     },
                     tableName: 'sms_asset'
                 }
@@ -341,6 +341,11 @@ export default {
                 if (res.data.data) {
                     let sb_status = [],
                         sbglgs = []
+                    this.sb_status = []
+                    this.sb_status.push({
+                        id: '',
+                        name: '全部'
+                    })
                     sb_status = res.data.data.sms_asset ? res.data.data.sms_asset.sb_status : []
                     sbglgs = res.data.data.sms_asset ? res.data.data.sms_asset.sbglgs : []
                     if (sb_status.length > 0) {
@@ -352,6 +357,11 @@ export default {
                             this.sb_status.push(obj)
                         })
                     }
+                    this.sbglgs = []
+                    this.sbglgs.push({
+                        name: '全部',
+                        id: ''
+                    })
                     if (sbglgs.length > 0) {
                         sbglgs.forEach(el => {
                             let obj = {