diff --git a/src/components/NetworkManagement.vue b/src/components/NetworkManagement.vue index 016f047..5235053 100644 --- a/src/components/NetworkManagement.vue +++ b/src/components/NetworkManagement.vue @@ -198,8 +198,13 @@ export default { }, created() { this.GetUserAnswer(); + let that = this; + window.getParameter = that.getParameter; }, methods: { + getParameter(data) { + alert(data); + }, async save() { var obj = { wlgl_nw_name: this.tableData[0].wlgl_nw_name, diff --git a/src/components/netConfiguration.vue b/src/components/netConfiguration.vue index d4664ab..7101250 100644 --- a/src/components/netConfiguration.vue +++ b/src/components/netConfiguration.vue @@ -223,9 +223,15 @@ export default { } this.loading = false; }, + //交互方法 + getParameter(data) { + alert(data); + }, }, created() { this.GetUserAnswer(); + let that = this; + window.getParameter = that.getParameter; }, }; diff --git a/src/views/Cockpit.vue b/src/views/Cockpit.vue index ef54a87..a78ea8c 100644 --- a/src/views/Cockpit.vue +++ b/src/views/Cockpit.vue @@ -100,6 +100,8 @@ export default { }; }, created() { + let that = this; + window.getParameter = that.getParameter; this.time = this.$moment().format("HH:mm:ss"); this.productChartOption = productChart; this.mainshaftChartOption = mainshaftChart; @@ -109,6 +111,9 @@ export default { this.stopChartOption = stopChart; }, methods: { + getParameter(data) { + alert(data); + }, //根据屏幕自适应图表字体 fontSize(res) { const clientWidth =