代码调整
This commit is contained in:
parent
398e813490
commit
cc946c8333
@ -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;
|
||||
|
@ -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=>{
|
||||
|
Loading…
Reference in New Issue
Block a user