|
@@ -36,7 +36,6 @@
|
|
:key='"u"+index'
|
|
:key='"u"+index'
|
|
:label='`${value.label}`'
|
|
:label='`${value.label}`'
|
|
:name='`${value.param.tab_code}`'
|
|
:name='`${value.param.tab_code}`'
|
|
- @click='tabClick(value)'
|
|
|
|
>
|
|
>
|
|
<!-- 有tab的原理图 -->
|
|
<!-- 有tab的原理图 -->
|
|
<div v-if='value.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
<div v-if='value.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
@@ -46,29 +45,11 @@
|
|
<tableList v-else-if='value.id.slice(0,4)=="RDQD"' :param='param' ref='list1' major='弱电'></tableList>
|
|
<tableList v-else-if='value.id.slice(0,4)=="RDQD"' :param='param' ref='list1' major='弱电'></tableList>
|
|
<tableList v-else-if='value.id.slice(0,4)=="NTQD"' :param='param' ref='list2' major='暖通'></tableList>
|
|
<tableList v-else-if='value.id.slice(0,4)=="NTQD"' :param='param' ref='list2' major='暖通'></tableList>
|
|
<!-- 维保表格 -->
|
|
<!-- 维保表格 -->
|
|
- <wb-table
|
|
|
|
- v-else-if='value.id.slice(2,4)=="WB"'
|
|
|
|
- :smsxt='smsxt'
|
|
|
|
- :tabLabel='tabLabel'
|
|
|
|
- :difference='difference'
|
|
|
|
- :major='dialogInfo.id'
|
|
|
|
- ></wb-table>
|
|
|
|
|
|
+ <wb-table v-else-if='value.id.slice(2,4)=="WB"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='diff' :major='dialogInfo.id'></wb-table>
|
|
<!-- 维修的表格 -->
|
|
<!-- 维修的表格 -->
|
|
- <wx-table
|
|
|
|
- v-else-if='value.id.slice(2,4)=="WX"'
|
|
|
|
- :smsxt='smsxt'
|
|
|
|
- :tabLabel='tabLabel'
|
|
|
|
- :difference='difference'
|
|
|
|
- :major='dialogInfo.id'
|
|
|
|
- ></wx-table>
|
|
|
|
|
|
+ <wx-table v-else-if='value.id.slice(2,4)=="WX"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='diff' :major='dialogInfo.id'></wx-table>
|
|
<!-- 专维 -->
|
|
<!-- 专维 -->
|
|
- <zw-table
|
|
|
|
- v-else-if='value.id.slice(2,4)=="ZW"'
|
|
|
|
- :smsxt='smsxt'
|
|
|
|
- :tabLabel='tabLabel'
|
|
|
|
- :difference='difference'
|
|
|
|
- :major='dialogInfo.id'
|
|
|
|
- ></zw-table>
|
|
|
|
|
|
+ <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :tabLabel='tabLabel' :diff='diff' :major='dialogInfo.id'></zw-table>
|
|
<!-- 其他 -->
|
|
<!-- 其他 -->
|
|
<other-table v-else-if='value.id.slice(2,4)=="QT"' ref='qtList' :tabLabel='tabLabel' :smsxt='smsxt' :major='dialogInfo.id'></other-table>
|
|
<other-table v-else-if='value.id.slice(2,4)=="QT"' ref='qtList' :tabLabel='tabLabel' :smsxt='smsxt' :major='dialogInfo.id'></other-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -100,20 +81,15 @@ export default {
|
|
dialogInfo: {},
|
|
dialogInfo: {},
|
|
param: '', //区分清单tab
|
|
param: '', //区分清单tab
|
|
typecode: '', //区分原理图的tab
|
|
typecode: '', //区分原理图的tab
|
|
- difference: '', //区分给水排水
|
|
|
|
|
|
+ diff: '', //区分给水排水
|
|
rotationImg: [],
|
|
rotationImg: [],
|
|
- tabLabel: ''
|
|
|
|
|
|
+ tabLabel: '',
|
|
|
|
+ tabCount: []
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
components: { tableList, tjTable, wbTable, zwTable, lookPage, standTable, otherTable, wxTable, recordDialog, djspTable },
|
|
components: { tableList, tjTable, wbTable, zwTable, lookPage, standTable, otherTable, wxTable, recordDialog, djspTable },
|
|
methods: {
|
|
methods: {
|
|
- modalClose() {
|
|
|
|
- this.visible = false
|
|
|
|
- },
|
|
|
|
- modalConfirm() {
|
|
|
|
- //console.log('alertConfirm')
|
|
|
|
- },
|
|
|
|
//打开弹窗
|
|
//打开弹窗
|
|
showModal(item) {
|
|
showModal(item) {
|
|
console.log(item)
|
|
console.log(item)
|
|
@@ -122,7 +98,7 @@ export default {
|
|
if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
|
|
if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
|
|
this.activeName = this.dialogInfo.children[0].param.tab_code
|
|
this.activeName = this.dialogInfo.children[0].param.tab_code
|
|
this.typecode = this.dialogInfo.children[0].param.type_code
|
|
this.typecode = this.dialogInfo.children[0].param.type_code
|
|
- this.difference = this.dialogInfo.children[0].param.difference
|
|
|
|
|
|
+ this.diff = this.dialogInfo.children[0].param.diff
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
this.isShowTab()
|
|
this.isShowTab()
|
|
this.initImage(this.typecode)
|
|
this.initImage(this.typecode)
|
|
@@ -149,16 +125,13 @@ export default {
|
|
//原理图的tab怎么传typecode
|
|
//原理图的tab怎么传typecode
|
|
if (this.dialogInfo.children.length > 0) {
|
|
if (this.dialogInfo.children.length > 0) {
|
|
this.typecode = this.dialogInfo.children[`${tab.index}`].param.type_code
|
|
this.typecode = this.dialogInfo.children[`${tab.index}`].param.type_code
|
|
- this.difference = this.dialogInfo.children[`${tab.index}`].param.difference
|
|
|
|
|
|
+ this.diff = this.dialogInfo.children[`${tab.index}`].param.diff
|
|
}
|
|
}
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
this.initImage(this.typecode)
|
|
this.initImage(this.typecode)
|
|
}
|
|
}
|
|
this.tabLabel = tab.label
|
|
this.tabLabel = tab.label
|
|
},
|
|
},
|
|
- // tabClick(e) {
|
|
|
|
- // //console.log(e.label, e.name, '-----.')
|
|
|
|
- // },
|
|
|
|
visibalBox() {
|
|
visibalBox() {
|
|
this.$refs.Dialog.open(this.dialogInfo.id)
|
|
this.$refs.Dialog.open(this.dialogInfo.id)
|
|
},
|
|
},
|
|
@@ -167,38 +140,38 @@ export default {
|
|
let getParams = {
|
|
let getParams = {
|
|
plazaId: this.$store.state.plazaId,
|
|
plazaId: this.$store.state.plazaId,
|
|
// system: this.systemName.slice(0, 2),
|
|
// system: this.systemName.slice(0, 2),
|
|
- system: this.systemName,
|
|
|
|
- siteid: '1000423',
|
|
|
|
|
|
+ // system: this.systemName,
|
|
|
|
+ plazaId: this.$store.state.plazaId,
|
|
module: '1002',
|
|
module: '1002',
|
|
neTypename: '位置布置图',
|
|
neTypename: '位置布置图',
|
|
typecode: typecode
|
|
typecode: typecode
|
|
}
|
|
}
|
|
- // switch (this.systemName) {
|
|
|
|
- // case '暖通系统':
|
|
|
|
- // getParams.system = '1002'
|
|
|
|
- // break
|
|
|
|
- // case '消防系统':
|
|
|
|
- // getParams.system = '1003'
|
|
|
|
- // break
|
|
|
|
- // case '弱电系统':
|
|
|
|
- // getParams.system = '1004'
|
|
|
|
- // break
|
|
|
|
- // case '电梯系统':
|
|
|
|
- // getParams.system = '1006'
|
|
|
|
- // break
|
|
|
|
- // case '燃气系统':
|
|
|
|
- // getParams.system = '1007'
|
|
|
|
- // break
|
|
|
|
- // case '土建系统':
|
|
|
|
- // getParams.system = '1008'
|
|
|
|
- // break
|
|
|
|
- // }
|
|
|
|
- // if (this.systemName == '给排水系统') {
|
|
|
|
- // getParams.system = '1005'
|
|
|
|
- // }
|
|
|
|
- // if (this.systemName == '供电系统') {
|
|
|
|
- // getParams.system = '1001'
|
|
|
|
- // }
|
|
|
|
|
|
+ switch (this.systemName) {
|
|
|
|
+ case '暖通系统':
|
|
|
|
+ getParams.system = '1002'
|
|
|
|
+ break
|
|
|
|
+ case '消防系统':
|
|
|
|
+ getParams.system = '1003'
|
|
|
|
+ break
|
|
|
|
+ case '弱电系统':
|
|
|
|
+ getParams.system = '1004'
|
|
|
|
+ break
|
|
|
|
+ case '电梯系统':
|
|
|
|
+ getParams.system = '1006'
|
|
|
|
+ break
|
|
|
|
+ case '燃气系统':
|
|
|
|
+ getParams.system = '1007'
|
|
|
|
+ break
|
|
|
|
+ case '土建系统':
|
|
|
|
+ getParams.system = '1008'
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ if (this.systemName == '给排水系统') {
|
|
|
|
+ getParams.system = '1005'
|
|
|
|
+ }
|
|
|
|
+ if (this.systemName == '供电系统') {
|
|
|
|
+ getParams.system = '1001'
|
|
|
|
+ }
|
|
console.log(getParams)
|
|
console.log(getParams)
|
|
queryPic({ getParams }).then(res => {
|
|
queryPic({ getParams }).then(res => {
|
|
this.rotationImg = res.data || []
|
|
this.rotationImg = res.data || []
|
|
@@ -231,7 +204,15 @@ export default {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
queryTab({ data, postParams }).then(res => {
|
|
queryTab({ data, postParams }).then(res => {
|
|
|
|
+ this.tabCount = []
|
|
console.log('res', res)
|
|
console.log('res', res)
|
|
|
|
+ let data = res.data || []
|
|
|
|
+ data.forEach(el => {
|
|
|
|
+ this.tabCount.push({
|
|
|
|
+ count: el.count,
|
|
|
|
+ typecode: el.params.typecode
|
|
|
|
+ })
|
|
|
|
+ })
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|