Commit dbf61c4b authored by 王勇's avatar 王勇

配套及占用情况明细

parent 49163255
......@@ -79,6 +79,15 @@
@row-click="rowClick"
/>
</div>
<div slot="2" style="height: 100%; box-sizing: border-box">
<dee-as-com
ref="detailComSI2"
:key="layConfig2.typeName"
:lay-config="layConfig2"
table-height="calc(100vh - 200px)"
@row-click="rowClick"
/>
</div>
</dee-tab>
</div>
</template>
......@@ -140,6 +149,10 @@ export default {
{
name: '已下达',
id: '1'
},
{
name: '配套明细',
id: '2'
}
],
layConfig: {
......@@ -150,6 +163,10 @@ export default {
typeName: 'JoExecutePlan',
layKey: 'stationPlanConfirmList'
},
layConfig2: {
typeName: 'ExtSupportingItem',
layKey: 'supportingItemStorage'
},
activeTab: '0',
activeNodeData: {},
currentNodekey: ''
......@@ -488,11 +505,16 @@ export default {
this.$refs.detailCom.$refs.asCom.getData(this.treeData[0].children[0].children[0])
this.$emit('getMissData', null)
}
} else {
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(this.treeData[0].children[0].children[0])
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
if (this.$refs.detailComSI2.$refs.asCom && this.$refs.detailComSI2.$refs.asCom.getData) {
this.$refs.detailComSI2.$refs.asCom.getData(this.treeData[0].children[0].children[0])
this.$emit('getMissData', null)
}
}
})
} else {
......@@ -504,11 +526,16 @@ export default {
this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
} else {
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
if (this.$refs.detailComSI2.$refs.asCom && this.$refs.detailComSI2.$refs.asCom.getData) {
this.$refs.detailComSI2.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
}
})
}
......@@ -528,11 +555,16 @@ export default {
this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
} else {
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
if (this.$refs.detailComSI2.$refs.asCom && this.$refs.detailComSI2.$refs.asCom.getData) {
this.$refs.detailComSI2.$refs.asCom.getData(this.activeNodeData)
this.$emit('getMissData', null)
}
}
})
},
......@@ -548,11 +580,16 @@ export default {
this.$refs.detailCom.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
} else {
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
if (this.$refs.detailComSI2.$refs.asCom && this.$refs.detailComSI2.$refs.asCom.getData) {
this.$refs.detailComSI2.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
}
})
}
......@@ -565,11 +602,16 @@ export default {
this.$refs.detailCom.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
} else {
} else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
} else if (this.activeTab === '2') {
if (this.$refs.detailComSI2.$refs.asCom && this.$refs.detailComSI2.$refs.asCom.getData) {
this.$refs.detailComSI2.$refs.asCom.getData(data)
this.$emit('getMissData', null)
}
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment