|
@@ -4,20 +4,26 @@
|
|
|
<el-dialog :title='`${systemName}-${dialogInfo.label}`' :visible.sync='visible' :fullscreen='true'>
|
|
|
<div class='top'></div>
|
|
|
<el-tabs v-model='activeName' @tab-click='handleClick' v-if='Object.keys(dialogInfo).length>0 && dialogInfo.children.length>0'>
|
|
|
- <el-tab-pane v-for='(value,index) in dialogInfo.children' :key='"u"+index' :label='`${value.label}`' :name='`${value.id}`'>
|
|
|
+ <el-tab-pane
|
|
|
+ v-for='(value,index) in dialogInfo.children'
|
|
|
+ :key='"u"+index'
|
|
|
+ :label='`${value.label}`'
|
|
|
+ :name='`${value.param.CLASSSTRUCTUREID}`'
|
|
|
+ >
|
|
|
<div v-if='value.id.slice(2,4)=="YL"' style='width:100%;height:600px;overflow:hidden'>
|
|
|
<rotation :rotationImg='rotationImg'></rotation>
|
|
|
</div>
|
|
|
- <tableList v-if='value.id=="GDWB1"' ref='list'></tableList>
|
|
|
- <tableList v-if='value.id=="GDWB2"' ref='list'></tableList>
|
|
|
- <tableList v-else ref='list'></tableList>
|
|
|
+ <tableList v-if='value.id.slice(0,4)=="RDQD"' ref='list' :param='param' major='弱电'></tableList>
|
|
|
+ <tableList v-if='value.id.slice(0,4)=="NTQD"' ref='list' :param='param' major='暖通'></tableList>
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
+ <tj-table v-if='Object.keys(dialogInfo).length>0 && dialogInfo.id.slice(0,4)=="TJQD"' major='土建'></tj-table>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
import tableList from './table/eqListTable'
|
|
|
+import tjTable from './table/tjTable'
|
|
|
|
|
|
export default {
|
|
|
props: ['systemName'],
|
|
@@ -26,22 +32,23 @@ export default {
|
|
|
activeName: '',
|
|
|
visible: false,
|
|
|
dialogInfo: {},
|
|
|
+ param: '',
|
|
|
rotationImg: [require('@/assets/imgs/eq.jpg'), require('@/assets/imgs/survey_pop2.png'), require('@/assets/imgs/survey_pop1.png')]
|
|
|
}
|
|
|
},
|
|
|
mounted() {},
|
|
|
- components: { tableList },
|
|
|
+ components: { tableList, tjTable },
|
|
|
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].id
|
|
|
- console.log(this.activeName)
|
|
|
+ this.activeName = this.dialogInfo.children[0].param.CLASSSTRUCTUREID
|
|
|
}
|
|
|
},
|
|
|
- handleClick(tab, event) {
|
|
|
- console.log(tab, event)
|
|
|
+ handleClick(tab) {
|
|
|
+ this.param = tab.name
|
|
|
+ console.log(tab)
|
|
|
}
|
|
|
}
|
|
|
}
|