|
@@ -45,13 +45,31 @@
|
|
|
<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>
|
|
|
<!-- 维保表格 -->
|
|
|
- <wb-table v-else-if='value.id.slice(2,4)=="WB"' :smsxt='smsxt' :major='dialogInfo.id'></wb-table>
|
|
|
+ <wb-table
|
|
|
+ v-else-if='value.id.slice(2,4)=="WB"'
|
|
|
+ :smsxt='smsxt'
|
|
|
+ :tabLabel='tabLabel'
|
|
|
+ :difference='difference'
|
|
|
+ :major='dialogInfo.id'
|
|
|
+ ></wb-table>
|
|
|
<!-- 维修的表格 -->
|
|
|
- <wx-table v-else-if='value.id.slice(2,4)=="WX"' :smsxt='smsxt' :major='dialogInfo.id'></wx-table>
|
|
|
+ <wx-table
|
|
|
+ v-else-if='value.id.slice(2,4)=="WX"'
|
|
|
+ :smsxt='smsxt'
|
|
|
+ :tabLabel='tabLabel'
|
|
|
+ :difference='difference'
|
|
|
+ :major='dialogInfo.id'
|
|
|
+ ></wx-table>
|
|
|
<!-- 专维 -->
|
|
|
- <zw-table v-else-if='value.id.slice(2,4)=="ZW"' :smsxt='smsxt' :major='dialogInfo.id'></zw-table>
|
|
|
+ <zw-table
|
|
|
+ v-else-if='value.id.slice(2,4)=="ZW"'
|
|
|
+ :smsxt='smsxt'
|
|
|
+ :tabLabel='tabLabel'
|
|
|
+ :difference='difference'
|
|
|
+ :major='dialogInfo.id'
|
|
|
+ ></zw-table>
|
|
|
<!-- 其他 -->
|
|
|
- <other-table v-else-if='value.id.slice(2,4)=="QT"' ref='qtList' :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-tabs>
|
|
|
</div>
|
|
@@ -81,7 +99,9 @@ export default {
|
|
|
dialogInfo: {},
|
|
|
param: '', //区分清单tab
|
|
|
typecode: '', //区分原理图的tab
|
|
|
- rotationImg: []
|
|
|
+ difference: '', //区分给水排水
|
|
|
+ rotationImg: [],
|
|
|
+ tabLabel: ''
|
|
|
}
|
|
|
},
|
|
|
mounted() {},
|
|
@@ -100,6 +120,7 @@ export default {
|
|
|
if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
|
|
|
this.activeName = this.dialogInfo.children[0].param.tab_code
|
|
|
this.typecode = this.dialogInfo.children[0].param.type_code
|
|
|
+ this.difference = this.dialogInfo.children[0].param.difference
|
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
|
this.isShowTab()
|
|
|
this.initImage(this.typecode)
|
|
@@ -127,13 +148,12 @@ export default {
|
|
|
//原理图的tab怎么传typecode
|
|
|
if (this.dialogInfo.children.length > 0) {
|
|
|
this.typecode = this.dialogInfo.children[`${tab.index}`].param.type_code
|
|
|
+ this.difference = this.dialogInfo.children[`${tab.index}`].param.difference
|
|
|
}
|
|
|
if (this.dialogInfo.children[0].id.slice(2, 4) == 'YL') {
|
|
|
this.initImage(this.typecode)
|
|
|
}
|
|
|
- if (tab.label == '其他事项') {
|
|
|
- this.$refs.qtList.getList()
|
|
|
- }
|
|
|
+ this.tabLabel = tab.label
|
|
|
},
|
|
|
tabClick(value) {
|
|
|
console.log(value, '-----.')
|
|
@@ -144,14 +164,11 @@ export default {
|
|
|
//系统原理图接口
|
|
|
initImage(typecode) {
|
|
|
let getParams = {
|
|
|
- data: {
|
|
|
- plazaId: this.$store.state.plazaId,
|
|
|
- system: this.systemName.slice(0, 2),
|
|
|
- tyepcode: typecode
|
|
|
- }
|
|
|
+ plazaId: this.$store.state.plazaId,
|
|
|
+ system: this.systemName.slice(0, 2)
|
|
|
}
|
|
|
- queryPic(getParams).then(res => {
|
|
|
- this.rotationImg = res.data
|
|
|
+ queryPic({ getParams }).then(res => {
|
|
|
+ this.rotationImg = res.data || []
|
|
|
})
|
|
|
},
|
|
|
//原理图没图片不显示tab
|