加点击状态

dev-scheduling
zhangdi 2 months ago
parent 34608a9bc9
commit 5e8e454fde
  1. 7
      src/views/processManagement/components/processMainte/dsPartIndex.vue

@ -21,7 +21,7 @@
<template #footer v-if="activeName == '1'">
<div class="dialog-footer">
<el-button @click="cancel()">取消</el-button>
<el-button type="primary" @click="submit()">
<el-button type="primary" @click="submit()" :loading="submitLoading">
确认
</el-button>
</div>
@ -68,6 +68,7 @@ export default {
},
data() {
return {
submitLoading: false,
setCrewShow: false,
activeName: '1',
dsPartInfo:{},
@ -95,7 +96,9 @@ export default {
this.$refs.partSubRef.loadData(this.partId, true);
},
cancelClose(flag, dsPart) {
this.submitLoading = false;
if (flag) {
this.cancel(true);
} else {
this.partId = dsPart.partId;
@ -105,10 +108,12 @@ export default {
this.activeName = '1';
// this.$refs.dsPartRef.clear();
this.setCrewShow = false
this.$emit('cancel', typeof refresh === 'boolean' && refresh);
},
submit(){
if(this.activeName=='1'){
this.submitLoading = true
this.$refs.dsPartRef.submit()
}
}

Loading…
Cancel
Save