评分账号生成 提交期间确定按钮禁用

main
wanglei 2 months ago
parent 4c4a2779e3
commit c093574559

@ -598,7 +598,7 @@
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="scpfzhSubmit"> </el-button>
<el-button type="primary" @click="scpfzhSubmit" :disabled="scpfzhLoading"> </el-button>
<el-button @click="scpfzhCancel"> </el-button>
</div>
</el-dialog>
@ -850,6 +850,7 @@ export default {
vote_options: [],
//
scpfzhOpen: false,
scpfzhLoading: false,
scpfzhForm: {},
scpfzhRules: {
deptId: [
@ -1564,6 +1565,7 @@ export default {
},
//
scpfzhSubmit(){
this.scpfzhLoading = true;
this.$refs["scpfzhForm"].validate(valid => {
if (valid) {
this.scpfzhForm.voteIds = this.scpfzhForm.votes.map(item => item.id).join(",");
@ -1576,8 +1578,11 @@ export default {
num: this.scpfzhForm.num,
itemNames: itemNames,
}).then(response => {
this.scpfzhLoading = false;
this.scpfzhOpen = false;
this.$modal.msgSuccess("生成成功")
}).catch(()=>{
this.scpfzhLoading = false;
})
}
})

Loading…
Cancel
Save