Commit 268d99c3 authored by 黄奎's avatar 黄奎

防止重复提交修改

parent 8a3edfba
......@@ -63,7 +63,7 @@
saveObj.AppointState == 1 &&
saveObj.GuestList.length >= saveObj.ScrollMinNum &&
auth.IsEdit
" @click="confirmSub" class="q-ml-md" />
" @click="confirmSub" class="q-ml-md" :loading="saveLoading" />
<q-badge rounded color="red" label="未成班" style="position:absolute;top:0;right:0" class="q-ml-sm" v-if="
saveObj.AppointState == 1 &&
isShowTag(saveObj.GuestList, saveObj.ScrollMinNum)
......@@ -172,7 +172,8 @@
showMakeUpDig: false,
showCancelDig: false,
showRoomDig: false,
CourseObj: {}
CourseObj: {},
saveLoading:false,
};
},
methods: {
......@@ -224,12 +225,14 @@
});
return;
}
this.saveLoading=true;
const msg = {
Date: this.dateObj.date,
TeacherId: this.saveObj.Tid,
ShiftSort: this.saveObj.ShiftSort
};
SetSureAppointment(msg).then(res => {
this.saveLoading=false;
if (res.Code == 1) {
this.$q.notify({
message: "操作成功",
......
......@@ -144,7 +144,7 @@
_item.TeacherId,
__item
)
" />
" :loading="saveLoading" />
</div>
</div>
<div class="flex no-wrap" v-if="__item.ClassType == 3">
......@@ -351,7 +351,8 @@
auth: {
IsEdit: false,
addBefore:false,//新增今天以前的约课
}
},
saveLoading:false,
};
},
components: {
......@@ -544,12 +545,14 @@
});
return;
}
this.saveLoading=true;
const msg = {
Date: date,
TeacherId: id,
ShiftSort: item.ShiftSort
};
SetSureAppointment(msg).then(res => {
this.saveLoading=false;
if (res.Code == 1) {
this.$q.notify({
message: "操作成功",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment