This commit is contained in:
fan 2021-03-08 10:12:21 +08:00
commit 2a977c8b43
3 changed files with 12 additions and 3 deletions

View File

@ -276,6 +276,7 @@ export default {
commitOperate(operate, {}, 2).then(({valid})=>{ commitOperate(operate, {}, 2).then(({valid})=>{
this.loading = false; this.loading = false;
if (valid) { if (valid) {
this.$emit('close');
this.doClose(); this.doClose();
} }
}).catch(() => { }).catch(() => {

View File

@ -36,10 +36,10 @@
<el-button :id="domIdCancel" @click="cancel">{{ $t('menu.cancel') }}</el-button> <el-button :id="domIdCancel" @click="cancel">{{ $t('menu.cancel') }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<confirm-control ref="confirmControl" :pop-class="popClass" /> <confirm-control ref="confirmControl" :pop-class="popClass" @close="doClose" />
<password-box ref="password" :pop-class="popClass" @checkOver="passWordCommit" />
<notice-info ref="noticeInfo" :pop-class="popClass" />
<ning-bo-confirm-tip ref="ningBoConfirmTip" @close="doClose" /> <ning-bo-confirm-tip ref="ningBoConfirmTip" @close="doClose" />
<password-box ref="password" :pop-class="popClass" @checkOver="passWordCommit" />
<notice-info ref="noticeInfo" :pop-class="popClass" />
</el-dialog> </el-dialog>
</template> </template>

View File

@ -89,6 +89,13 @@ export default {
'mode' 'mode'
]) ])
}, },
watch: {
index(val) {
if (val == -1) {
this.active = -1;
}
}
},
methods:{ methods:{
getDomId(item) { getDomId(item) {
if (item && item.operate) { if (item && item.operate) {
@ -121,6 +128,7 @@ export default {
type: 'bar', type: 'bar',
operation: item.operate.operation operation: item.operate.operation
}; };
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => { this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
if (valid) { if (valid) {
this.$emit('active', index); this.$emit('active', index);