代码调整

This commit is contained in:
joylink_cuiweidong 2021-03-02 16:02:00 +08:00
parent 398e813490
commit cc946c8333
2 changed files with 13 additions and 9 deletions

View File

@ -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;

View File

@ -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=>{