代码调整

This commit is contained in:
dong 2022-11-02 13:30:07 +08:00
parent 42112659c5
commit 215fb23f20
3 changed files with 6 additions and 3 deletions

View File

@ -197,7 +197,7 @@ export default {
methods: {
updateDetails(data) {
this.editData = data;
this.$emit('closeAllDialog', 'editDetails');
this.$emit('closeAllDialog', 'designIndex');
this.getStepList(data);
this.showList = false;
},

View File

@ -107,6 +107,9 @@ export default {
changeTagIndex(index) {
this.tagIndex = index;
},
doClose() {
this.dialogVisible = false;
},
backStepList() {
const tipPosition = {};
if (this.stepDetail.operations[this.tagIndex] && this.trainingType === 'SINGLE') {
@ -115,7 +118,7 @@ export default {
tipPosition.operateIndex = this.tagIndex;
}
this.$emit('backStepList', { index: this.dataIndex, stepDetail: this.stepDetail, tipPosition: tipPosition });
this.dialogVisible = false;
this.doClose();
this.stepDetail = {
id: '',
description: '',

View File

@ -34,7 +34,7 @@ export default {
hoverBtn: false,
btnWidth: -600,
materialsList: [],
refsList: ['create', 'editCondition', 'trackList'],
refsList: ['create', 'editCondition', 'trackList', 'editOperate', 'designIndex'],
editData: {}
};
},