From cc946c83335960ef39e9b41f1a0f0ea1f108104e Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Tue, 2 Mar 2021 16:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theme/components/menus/eachChildMenu.vue | 2 +- .../menus/menuDialog/trainDistribution.vue | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/jmapNew/theme/components/menus/eachChildMenu.vue b/src/jmapNew/theme/components/menus/eachChildMenu.vue index f4ce0ea04..8ace80f66 100644 --- a/src/jmapNew/theme/components/menus/eachChildMenu.vue +++ b/src/jmapNew/theme/components/menus/eachChildMenu.vue @@ -245,7 +245,7 @@ export default { display: flex; flex-direction: column; padding:0; - max-height: 200px; + // max-height: 200px; overflow: auto; position: fixed; border-left: 1px #CACACA solid; diff --git a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue index 43c15db7c..4d68e01d7 100644 --- a/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue +++ b/src/jmapNew/theme/ningbo_03/menus/menuDialog/trainDistribution.vue @@ -155,8 +155,6 @@ export default { this.$store.dispatch('training/emitTipFresh'); this.$refs.runLineTable.setCurrentRow(); // mouseCancelState(this.selected); - const runPath = this.$store.state.training.runPathList; - this.setRunPath(runPath, false); this.$store.dispatch('training/setRunPathSelected', []); }, commit() { @@ -165,14 +163,20 @@ export default { }, handleChange(row) { - const runPath = row.runPath; - if (runPath && runPath.length > 0) { - const oldRunPath = this.$store.state.training.runPathList; - this.setRunPath(oldRunPath, false); - this.setRunPath(runPath, true); - this.$store.dispatch('training/setRunPathSelected', runPath); + if (row) { + const runPath = row.runPath; + if (runPath && runPath.length > 0) { + const oldRunPath = this.$store.state.training.runPathList; + this.setRunPath(oldRunPath, false); + this.setRunPath(runPath, true); + this.$store.dispatch('training/setRunPathSelected', runPath); + } + } else { + const runPath = this.$store.state.training.runPathList; + this.setRunPath(runPath, false); } + }, setRunPath(runPath, isShow) { runPath.forEach(sectionCode=>{