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

防止重复提交修改

parent 8a3edfba
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
saveObj.AppointState == 1 && saveObj.AppointState == 1 &&
saveObj.GuestList.length >= saveObj.ScrollMinNum && saveObj.GuestList.length >= saveObj.ScrollMinNum &&
auth.IsEdit 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=" <q-badge rounded color="red" label="未成班" style="position:absolute;top:0;right:0" class="q-ml-sm" v-if="
saveObj.AppointState == 1 && saveObj.AppointState == 1 &&
isShowTag(saveObj.GuestList, saveObj.ScrollMinNum) isShowTag(saveObj.GuestList, saveObj.ScrollMinNum)
...@@ -172,7 +172,8 @@ ...@@ -172,7 +172,8 @@
showMakeUpDig: false, showMakeUpDig: false,
showCancelDig: false, showCancelDig: false,
showRoomDig: false, showRoomDig: false,
CourseObj: {} CourseObj: {},
saveLoading:false,
}; };
}, },
methods: { methods: {
...@@ -224,12 +225,14 @@ ...@@ -224,12 +225,14 @@
}); });
return; return;
} }
this.saveLoading=true;
const msg = { const msg = {
Date: this.dateObj.date, Date: this.dateObj.date,
TeacherId: this.saveObj.Tid, TeacherId: this.saveObj.Tid,
ShiftSort: this.saveObj.ShiftSort ShiftSort: this.saveObj.ShiftSort
}; };
SetSureAppointment(msg).then(res => { SetSureAppointment(msg).then(res => {
this.saveLoading=false;
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
message: "操作成功", message: "操作成功",
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
_item.TeacherId, _item.TeacherId,
__item __item
) )
" /> " :loading="saveLoading" />
</div> </div>
</div> </div>
<div class="flex no-wrap" v-if="__item.ClassType == 3"> <div class="flex no-wrap" v-if="__item.ClassType == 3">
...@@ -351,7 +351,8 @@ ...@@ -351,7 +351,8 @@
auth: { auth: {
IsEdit: false, IsEdit: false,
addBefore:false,//新增今天以前的约课 addBefore:false,//新增今天以前的约课
} },
saveLoading:false,
}; };
}, },
components: { components: {
...@@ -544,12 +545,14 @@ ...@@ -544,12 +545,14 @@
}); });
return; return;
} }
this.saveLoading=true;
const msg = { const msg = {
Date: date, Date: date,
TeacherId: id, TeacherId: id,
ShiftSort: item.ShiftSort ShiftSort: item.ShiftSort
}; };
SetSureAppointment(msg).then(res => { SetSureAppointment(msg).then(res => {
this.saveLoading=false;
if (res.Code == 1) { if (res.Code == 1) {
this.$q.notify({ this.$q.notify({
message: "操作成功", 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