Commit 2e7e86e1 authored by jingnan's avatar jingnan 👀

站位计划维护每个站位计划下发增加转移工作包联调

parent fdbe82eb
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<dee-as-com <dee-as-com
ref="detailCom" ref="detailCom"
:key="layConfig.typeName" :key="layConfig.typeName"
:basic-data="{activeNodeData}" :basic-data="{activeNodeData,requestParams}"
:lay-config="layConfig" :lay-config="layConfig"
table-height="calc(100vh - 200px)" table-height="calc(100vh - 200px)"
@row-click="rowClick" @row-click="rowClick"
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
<dee-as-com <dee-as-com
ref="detailCom2" ref="detailCom2"
:key="layConfig.typeName" :key="layConfig.typeName"
:basic-data="{activeNodeData}" :basic-data="{activeNodeData,requestParams}"
:lay-config="layConfig1" :lay-config="layConfig1"
table-height="calc(100vh - 200px)" table-height="calc(100vh - 200px)"
@row-click="rowClick" @row-click="rowClick"
...@@ -190,7 +190,8 @@ export default { ...@@ -190,7 +190,8 @@ export default {
activeTab: '0', activeTab: '0',
activeNodeData: {}, activeNodeData: {},
currentNodekey: '', currentNodekey: '',
areaUpdatingLists: {} areaUpdatingLists: {},
requestParams: []
} }
}, },
watch: { watch: {
...@@ -575,12 +576,12 @@ export default { ...@@ -575,12 +576,12 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (this.activeTab === '0') { if (this.activeTab === '0') {
if (this.$refs.detailCom.$refs.asCom && this.$refs.detailCom.$refs.asCom.getData) { if (this.$refs.detailCom.$refs.asCom && this.$refs.detailCom.$refs.asCom.getData) {
this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData) this.$refs.detailCom.$refs.asCom.getData(this.activeNodeData.level !== 4 ? this.activeNodeData : null)
this.$emit('getMissData', null) this.$emit('getMissData', null)
} }
} else if (this.activeTab === '1') { } else if (this.activeTab === '1') {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) { if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData) this.$refs.detailCom2.$refs.asCom.getData(this.activeNodeData.level !== 4 ? this.activeNodeData : null)
this.$emit('getMissData', null) this.$emit('getMissData', null)
} }
} else if (this.activeTab === '2') { } else if (this.activeTab === '2') {
...@@ -592,6 +593,7 @@ export default { ...@@ -592,6 +593,7 @@ export default {
}) })
}, },
handleNodeClick(data, node) { handleNodeClick(data, node) {
this.requestParams = []
if (data.name === '转移工作包') { if (data.name === '转移工作包') {
this.getQueryRetention(data, node) this.getQueryRetention(data, node)
} else { } else {
...@@ -619,6 +621,30 @@ export default { ...@@ -619,6 +621,30 @@ export default {
} }
}) })
} }
if (node.level === 4) {
this.requestParams = [
`sorties=${this.form.sortiesName}`,
`position=${data.parentPosition}`,
`assemblyUnit=${data.serialNumber}`
]
this.$nextTick(() => {
let tableRefName = ''
switch (this.activeTab) {
case '0':
tableRefName = 'detailCom'
break
case '1':
tableRefName = 'detailCom2'
break
default:
break
}
if (this.$refs[tableRefName] && this.$refs[tableRefName].$refs.asCom && this.$refs[tableRefName].$refs.asCom.getData) {
this.$refs[tableRefName].$refs.asCom.getData()
this.$emit('getMissData', null)
}
})
}
} }
}, },
getQueryRetention(data, node) { getQueryRetention(data, node) {
...@@ -665,6 +691,7 @@ export default { ...@@ -665,6 +691,7 @@ export default {
.then((res) => { .then((res) => {
const newChildren = res.items && res.items.map(item => { const newChildren = res.items && res.items.map(item => {
item.leaf = true item.leaf = true
item.parentPosition = node.parent.data && node.parent.data.serialNumber || ''
return item return item
}) })
if (newChildren) { if (newChildren) {
......
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