Commit 21281987 authored by “lixuyan”'s avatar “lixuyan”

修改导入文件之后不刷新的问题

parent 8bc78750
...@@ -152,7 +152,11 @@ export default { ...@@ -152,7 +152,11 @@ export default {
created() { created() {
this.getAddModel() this.getAddModel()
}, },
mounted() {}, mounted() {
this.$bus.$on('getCurrentData', () => {
this.getCurrentData(this.activeNodeData)
})
},
methods: { methods: {
/** /**
* 获取机型 * 获取机型
...@@ -363,6 +367,21 @@ export default { ...@@ -363,6 +367,21 @@ export default {
}) })
} }
}, },
getCurrentData(data) {
if (data.level === 2 || data.level === 3) {
this.$nextTick(() => {
if (this.activeTab === '0') {
if (this.$refs.detailCom.$refs.asCom && this.$refs.detailCom.$refs.asCom.getData) {
this.$refs.detailCom.$refs.asCom.getData(data)
}
} else {
if (this.$refs.detailCom2.$refs.asCom && this.$refs.detailCom2.$refs.asCom.getData) {
this.$refs.detailCom2.$refs.asCom.getData(data)
}
}
})
}
},
rowClick(data) { rowClick(data) {
this.$emit('getMissData', data) this.$emit('getMissData', data)
} }
......
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