|
@@ -474,8 +474,8 @@ export default {
|
|
|
allArr: [
|
|
|
{
|
|
|
id: '全部',
|
|
|
- name: '全部'
|
|
|
- }
|
|
|
+ name: '全部',
|
|
|
+ },
|
|
|
],
|
|
|
//
|
|
|
total2: 0,
|
|
@@ -495,7 +495,7 @@ export default {
|
|
|
isReplaceData: [
|
|
|
{ id: '全部', name: '全部' },
|
|
|
{ id: '1', name: '是' },
|
|
|
- { id: '0', name: '否' }
|
|
|
+ { id: '0', name: '否' },
|
|
|
],
|
|
|
sfghSelect: '全部',
|
|
|
sbmcInput4: '',
|
|
@@ -526,7 +526,7 @@ export default {
|
|
|
ycgdtbsj: '',
|
|
|
ycgdyssj: '',
|
|
|
smsxtArr: {},
|
|
|
- type: ''
|
|
|
+ type: '',
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
@@ -534,10 +534,10 @@ export default {
|
|
|
roomTable2,
|
|
|
roomTable3,
|
|
|
roomTable4,
|
|
|
- roomTable5
|
|
|
+ roomTable5,
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters(['floorSelect', 'plazaId'])
|
|
|
+ ...mapGetters(['floorSelect', 'plazaId']),
|
|
|
},
|
|
|
methods: {
|
|
|
handleClick(tab) {
|
|
@@ -569,12 +569,12 @@ export default {
|
|
|
location: this.location,
|
|
|
module: '1002',
|
|
|
// system: system,
|
|
|
- plazaId: this.plazaId
|
|
|
+ plazaId: this.plazaId,
|
|
|
}
|
|
|
if (system) {
|
|
|
getParams.system = system
|
|
|
}
|
|
|
- queryPic({ getParams }).then(res => {
|
|
|
+ queryPic({ getParams }).then((res) => {
|
|
|
//console.log('机房布置图', res)
|
|
|
this.tableImg = res.data ? res.data : []
|
|
|
//判断有没有图片,有图片默认显示按钮是第一个tab,没有图片显示的是第二个tab
|
|
@@ -595,7 +595,7 @@ export default {
|
|
|
location: this.location,
|
|
|
plazaId: this.plazaId,
|
|
|
page: this.page1,
|
|
|
- size: this.size1
|
|
|
+ size: this.size1,
|
|
|
}
|
|
|
if (this.floor2 && this.floor2 != '全部') {
|
|
|
getParams.floor = this.floor2
|
|
@@ -628,7 +628,7 @@ export default {
|
|
|
getParams.keyword = `${this.kzhlInput}:control`
|
|
|
}
|
|
|
}
|
|
|
- queryDygjcxline({ getParams }).then(res => {
|
|
|
+ queryDygjcxline({ getParams }).then((res) => {
|
|
|
if (res.result == 'success') {
|
|
|
this.loading1 = false
|
|
|
this.total1 = res.count
|
|
@@ -642,12 +642,12 @@ export default {
|
|
|
// 核心设备
|
|
|
Index2() {
|
|
|
let postParams = {
|
|
|
- location: this.location
|
|
|
+ location: this.location,
|
|
|
}
|
|
|
let data = {
|
|
|
plazaId: this.plazaId,
|
|
|
page: this.page2,
|
|
|
- size: this.size2
|
|
|
+ size: this.size2,
|
|
|
}
|
|
|
if (this.sbjcInput) {
|
|
|
if (data.keyword) {
|
|
@@ -673,7 +673,7 @@ export default {
|
|
|
// if (this.floorChange) {
|
|
|
// postParams.gname = this.floorChange
|
|
|
// }
|
|
|
- queryHxsb({ data, postParams }).then(res => {
|
|
|
+ queryHxsb({ data, postParams }).then((res) => {
|
|
|
this.loading2 = false
|
|
|
this.total2 = res.data.count
|
|
|
this.table3 = res.data.data ? res.data.data : []
|
|
@@ -702,7 +702,7 @@ export default {
|
|
|
plazaId: this.plazaId,
|
|
|
page: this.page3,
|
|
|
size: this.size3,
|
|
|
- orderBy: 'sjjssj,0;location,1'
|
|
|
+ orderBy: 'sjjssj,0;location,1',
|
|
|
}
|
|
|
if (this.sfghSelect && this.sfghSelect != '全部') {
|
|
|
getParams.ismodel = this.sfghSelect
|
|
@@ -741,7 +741,7 @@ export default {
|
|
|
getParams.sjjssjStartDate = this.yssjDate[0] + '000000'
|
|
|
getParams.sjjssjEndDate = this.yssjDate[1] + '000000'
|
|
|
}
|
|
|
- queryWxjf({ getParams }).then(res => {
|
|
|
+ queryWxjf({ getParams }).then((res) => {
|
|
|
//console.log('维修', res)
|
|
|
if (res.result == 'success') {
|
|
|
this.loading3 = false
|
|
@@ -758,7 +758,7 @@ export default {
|
|
|
plazaId: this.plazaId,
|
|
|
page: this.page4,
|
|
|
size: this.size4,
|
|
|
- orderBy: 'wb_gzglid,0;assetnum,1;reportedby,0;'
|
|
|
+ orderBy: 'wb_gzglid,0;assetnum,1;reportedby,0;',
|
|
|
}
|
|
|
//
|
|
|
// 任务开始日期
|
|
@@ -783,7 +783,7 @@ export default {
|
|
|
}
|
|
|
//
|
|
|
// 是否正常
|
|
|
- if (this.iszcSelect5 && this.iszcSelect5 != '正常') {
|
|
|
+ if (this.iszcSelect5 && this.iszcSelect5 != '全部') {
|
|
|
data.zt = this.iszcSelect5
|
|
|
}
|
|
|
// 任务状态
|
|
@@ -818,7 +818,7 @@ export default {
|
|
|
data.keyword = `${this.ycgdbhInput5}:wonum`
|
|
|
}
|
|
|
}
|
|
|
- queryWb({ data, postParams }).then(res => {
|
|
|
+ queryWb({ data, postParams }).then((res) => {
|
|
|
//console.log('维保', res)
|
|
|
this.loading4 = false
|
|
|
this.total4 = res.data.count
|
|
@@ -837,13 +837,13 @@ export default {
|
|
|
let postParams = [
|
|
|
{
|
|
|
columnName: { status: 'status', zt: 'zt' },
|
|
|
- tableName: 'sms_wbzy'
|
|
|
- }
|
|
|
+ tableName: 'sms_wbzy',
|
|
|
+ },
|
|
|
]
|
|
|
let data = {
|
|
|
- plazaId: this.plazaId
|
|
|
+ plazaId: this.plazaId,
|
|
|
}
|
|
|
- querySelect({ data, postParams }).then(res => {
|
|
|
+ querySelect({ data, postParams }).then((res) => {
|
|
|
//console.log('下拉框', res)
|
|
|
let status = [],
|
|
|
zt = [],
|
|
@@ -853,20 +853,20 @@ export default {
|
|
|
status = res.data.data.sms_wbzy.status ? res.data.data.sms_wbzy.status : []
|
|
|
zt = res.data.data.sms_wbzy.zt ? res.data.data.sms_wbzy.zt : []
|
|
|
if (status.length > 0) {
|
|
|
- status.forEach(el => {
|
|
|
+ status.forEach((el) => {
|
|
|
let obj = {
|
|
|
id: el.key,
|
|
|
- name: el.value
|
|
|
+ name: el.value,
|
|
|
}
|
|
|
arr.push(obj)
|
|
|
})
|
|
|
this.status = this.allArr.concat(arr)
|
|
|
}
|
|
|
if (zt.length > 0) {
|
|
|
- zt.forEach(el => {
|
|
|
+ zt.forEach((el) => {
|
|
|
let obj = {
|
|
|
id: el.key,
|
|
|
- name: el.value == '正常' ? '是' : '否'
|
|
|
+ name: el.value == '正常' ? '是' : '否',
|
|
|
}
|
|
|
arr1.push(obj)
|
|
|
})
|
|
@@ -880,10 +880,10 @@ export default {
|
|
|
let params = {
|
|
|
getParams: {
|
|
|
locationid: this.location,
|
|
|
- plazaId: this.plazaId
|
|
|
- }
|
|
|
+ plazaId: this.plazaId,
|
|
|
+ },
|
|
|
}
|
|
|
- querySystem(params).then(res => {
|
|
|
+ querySystem(params).then((res) => {
|
|
|
this.smsxtArr = res.data ? res.data[0] : {}
|
|
|
// 5201 设备间 5204设备间 5209设备间
|
|
|
this.showLocationflid = false
|
|
@@ -920,13 +920,13 @@ export default {
|
|
|
this.$router.push({ path: '/home/equipment', query: { smsxt: this.smsxtArr.smsxt } })
|
|
|
}
|
|
|
// }
|
|
|
- }
|
|
|
+ },
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.floorSelect.length > 0) {
|
|
|
this.floorSelect2 = this.allArr.concat(this.floorSelect)
|
|
|
}
|
|
|
- }
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|