This commit is contained in:
zyy 2020-02-06 11:20:27 +08:00
commit 3053bdc26e
5 changed files with 9 additions and 2 deletions

View File

@ -82,6 +82,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.$emit('iscsChange', this.$route.params.id);
}, },
beforeDestroy() { beforeDestroy() {

View File

@ -103,6 +103,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.$emit('iscsChange', this.$route.params.id);
}, },
beforeDestroy() { beforeDestroy() {

View File

@ -170,6 +170,9 @@ export default {
enabledTab: 'frozenPump' enabledTab: 'frozenPump'
}; };
}, },
mounted() {
this.$emit('iscsChange', this.$route.params.id);
},
methods:{ methods:{
createDataModel(model) { createDataModel(model) {
const newModel = deviceFactory(model._type, model); const newModel = deviceFactory(model._type, model);

View File

@ -93,9 +93,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.$emit('iscsChange', this.$route.params.id);
}, },
beforeDestroy() { beforeDestroy() {
}, },
methods: { methods: {
createDataModel(model) { createDataModel(model) {

View File

@ -152,7 +152,9 @@ export default {
}, },
// //
onContextMenu(em) { onContextMenu(em) {
if (em.eventTarget) {
this.$store.dispatch('iscs/setUpdateDeviceData', em.eventTarget.model); this.$store.dispatch('iscs/setUpdateDeviceData', em.eventTarget.model);
}
}, },
// //
drawIscsInit() { drawIscsInit() {