防止多次点击确定按钮

This commit is contained in:
lpq
2023-03-06 00:30:57 +08:00
parent 7deebe30ab
commit fea2f8219c
2 changed files with 9 additions and 7 deletions

View File

@@ -1765,7 +1765,7 @@
</div>
<div class="pubtn">
<a-button class="pubtn1" @click="closeModal2">取消</a-button>
<a-button class="pubtn2" @click="createG">确定</a-button>
<a-button class="pubtn2" :loading="buttonLoading" @click="createG">确定</a-button>
</div>
</div>
</a-modal>
@@ -2262,6 +2262,7 @@ export default {
choosedStageIndex: 0,
hasTask: false,
tabFlag: true,
buttonLoading: false,
stage: [],
stuColumns: [
{
@@ -3948,14 +3949,15 @@ export default {
return message.warn(d[0].leaderName + "已是小组长,请重新选择");
}
}
state.isEdit = false;
state.buttonLoading = true;
await editGroup({ ...state.groupInfo, projectId: state.projectId });
message.success(id ? "小组编辑成功" : "小组创建成功");
getGroup();
console.log("state.groupPageList:");
getStu();
closeModal2();
state.buttonLoading = false;
};
//搜索小组重置
const resetGroupName = () => {