|
@@ -3,12 +3,15 @@
|
|
|
<div class='dialog-container'>
|
|
|
<el-dialog :title='`${systemName}-${dialogInfo.label}`' :visible.sync='visible' :fullscreen='true'>
|
|
|
<div class='top'></div>
|
|
|
- <div v-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
|
- <rotation :rotationImg='rotationImg'></rotation>
|
|
|
+ <div v-if='Object.keys(dialogInfo).length>0 && dialogInfo.children.length==0'>
|
|
|
+ <div v-if='dialogInfo.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
|
+ <rotation :rotationImg='rotationImg'></rotation>
|
|
|
+ </div>
|
|
|
+ <tj-table v-else-if='dialogInfo.id.slice(0,4)=="TJQD"' :param='param' major='土建'></tj-table>
|
|
|
+ <standTable v-else-if='dialogInfo.id.slice(2,4)=="QD"' :param='param' :major='dialogInfo.id'></standTable>
|
|
|
+ <!-- <GDQDTable v-else-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(0,4)=="GDQD"' major></GDQDTable> -->
|
|
|
+ <look-page v-else-if='dialogInfo.id.slice(2,4)=="TZ"' param major></look-page>
|
|
|
</div>
|
|
|
- <tj-table v-else-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(0,4)=="TJQD"' major='土建'></tj-table>
|
|
|
- <GDQDTable v-else-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(0,4)=="GDQD"' major></GDQDTable>
|
|
|
- <look-page v-else-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(2,4)=="TZ"' param major></look-page>
|
|
|
<div v-else>
|
|
|
<el-tabs v-model='activeName' @tab-click='handleClick' v-if='Object.keys(dialogInfo).length>0 && dialogInfo.children.length>0'>
|
|
|
<el-tab-pane
|
|
@@ -20,8 +23,8 @@
|
|
|
<div v-if='value.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
|
<rotation :rotationImg='rotationImg'></rotation>
|
|
|
</div>
|
|
|
- <tableList v-else-if='value.id.slice(0,4)=="RDQD"' ref='list1' :param='param' major='弱电'></tableList>
|
|
|
- <tableList v-else-if='value.id.slice(0,4)=="NTQD"' ref='list2' :param='param' 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>
|
|
|
<wb-table v-else-if='value.id.slice(2,4)=="WX"' param major='维修'></wb-table>
|
|
|
<zw-table v-else-if='value.id.slice(2,4)=="ZW"' param major='专维'></zw-table>
|
|
|
<wb-table v-else-if='value.id.slice(2,4)=="WB"' param major='维保'></wb-table>
|
|
@@ -38,6 +41,7 @@ import wbTable from './table/wbTable'
|
|
|
import zwTable from './table/zwTable'
|
|
|
import lookPage from './table/lookPageTable'
|
|
|
import GDQDTable from './table/GDQDTable'
|
|
|
+import standTable from './table/standTable'
|
|
|
export default {
|
|
|
props: ['systemName'],
|
|
|
data() {
|
|
@@ -49,23 +53,22 @@ export default {
|
|
|
rotationImg: [require('@/assets/imgs/eq.jpg'), require('@/assets/imgs/survey_pop2.png'), require('@/assets/imgs/survey_pop1.png')]
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
- // if (this.$refs.list1) {
|
|
|
- // this.$refs.list1.getList(this.activeName)
|
|
|
- // }
|
|
|
- },
|
|
|
- components: { tableList, tjTable, wbTable, zwTable, lookPage, GDQDTable },
|
|
|
+ mounted() {},
|
|
|
+ components: { tableList, tjTable, wbTable, zwTable, lookPage, GDQDTable, standTable },
|
|
|
methods: {
|
|
|
showModal(item) {
|
|
|
this.visible = true
|
|
|
this.dialogInfo = item
|
|
|
if (Object.keys(this.dialogInfo).length > 0 && this.dialogInfo.children.length > 0) {
|
|
|
this.activeName = this.dialogInfo.children[0].param.tab_code
|
|
|
+ } else {
|
|
|
+ this.activeName = this.dialogInfo.param.tab_code
|
|
|
}
|
|
|
+ this.param = this.activeName
|
|
|
},
|
|
|
handleClick(tab) {
|
|
|
this.param = tab.name
|
|
|
- console.log(tab)
|
|
|
+ this.activeName = tab.name
|
|
|
}
|
|
|
}
|
|
|
}
|