mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
防止多次点击确定按钮
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-input v-model:value="formData.examinationName" style="width: 400px; height: 40px; border-radius: 8px"
|
<a-input v-model:value="formData.examinationName" style="width: 400px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入考试名称" :maxlength="20" :disabled="taskIndex >= 0 && isEdit" />
|
placeholder="请输入考试名称" :maxlength="20" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
<a-tag closable color="processing" @close="delTag" :closeIcon="true">
|
<a-tag closable color="processing" @close="delTag" :closeIcon="true">
|
||||||
<span style="font-size: 14px; line-height: 33px">{{ formData.examinationTestName }}</span>
|
<span style="font-size: 14px; line-height: 33px">{{ formData.examinationTestName }}</span>
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</div>
|
</div>
|
||||||
<s-test v-if="taskIndex < 0" v-model:id="formData.examinationPaperId" v-model:name="formData.examinationTestName">
|
<s-test v-if="taskIndex < 0" v-model:id="formData.examinationPaperId" v-model:name="formData.examinationTestName">
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<button class="xkbtn" style="margin:0" >
|
<button class="xkbtn" style="margin:0" >
|
||||||
@@ -123,7 +123,7 @@
|
|||||||
<div class="textarea">
|
<div class="textarea">
|
||||||
<a-textarea :disabled="taskIndex >= 0 && isEdit" v-model:value="formData.examinationExplain" placeholder="请输入考试说明"
|
<a-textarea :disabled="taskIndex >= 0 && isEdit" v-model:value="formData.examinationExplain" placeholder="请输入考试说明"
|
||||||
allow-clear show-count :maxlength="200" :rows="6" />
|
allow-clear show-count :maxlength="200" :rows="6" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main_item2">
|
<div class="main_item2">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
@@ -206,7 +206,7 @@
|
|||||||
<span style="margin-right: 3px">考试名称:</span>
|
<span style="margin-right: 3px">考试名称:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-input v-model:value="formData.examinationName" style="width: 400px; height: 40px; border-radius: 8px" :disabled="taskIndex >= 0 && isEdit"
|
<a-input v-model:value="formData.examinationName" style="width: 400px; height: 40px; border-radius: 8px"
|
||||||
placeholder="请输入考试名称" :maxlength="20" />
|
placeholder="请输入考试名称" :maxlength="20" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -218,7 +218,7 @@
|
|||||||
<span style="margin-right: 3px">数据来源:</span>
|
<span style="margin-right: 3px">数据来源:</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnbox">
|
<div class="btnbox">
|
||||||
<a-input v-model:value="formData.source"
|
<a-input v-model:value="formData.source"
|
||||||
style="width: 400px; height: 40px; border-radius: 8px" :disabled="taskIndex >= 0 && isEdit"
|
style="width: 400px; height: 40px; border-radius: 8px" :disabled="taskIndex >= 0 && isEdit"
|
||||||
placeholder="请输入数据来源" show-count :maxlength="420" />
|
placeholder="请输入数据来源" show-count :maxlength="420" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1765,7 +1765,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="pubtn">
|
<div class="pubtn">
|
||||||
<a-button class="pubtn1" @click="closeModal2">取消</a-button>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
@@ -2262,6 +2262,7 @@ export default {
|
|||||||
choosedStageIndex: 0,
|
choosedStageIndex: 0,
|
||||||
hasTask: false,
|
hasTask: false,
|
||||||
tabFlag: true,
|
tabFlag: true,
|
||||||
|
buttonLoading: false,
|
||||||
stage: [],
|
stage: [],
|
||||||
stuColumns: [
|
stuColumns: [
|
||||||
{
|
{
|
||||||
@@ -3948,14 +3949,15 @@ export default {
|
|||||||
return message.warn(d[0].leaderName + "已是小组长,请重新选择");
|
return message.warn(d[0].leaderName + "已是小组长,请重新选择");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state.isEdit = false;
|
state.isEdit = false;
|
||||||
|
state.buttonLoading = true;
|
||||||
await editGroup({ ...state.groupInfo, projectId: state.projectId });
|
await editGroup({ ...state.groupInfo, projectId: state.projectId });
|
||||||
message.success(id ? "小组编辑成功" : "小组创建成功");
|
message.success(id ? "小组编辑成功" : "小组创建成功");
|
||||||
getGroup();
|
getGroup();
|
||||||
console.log("state.groupPageList:");
|
console.log("state.groupPageList:");
|
||||||
getStu();
|
getStu();
|
||||||
closeModal2();
|
closeModal2();
|
||||||
|
state.buttonLoading = false;
|
||||||
};
|
};
|
||||||
//搜索小组重置
|
//搜索小组重置
|
||||||
const resetGroupName = () => {
|
const resetGroupName = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user