|
@@ -207,6 +207,7 @@ export default {
|
|
|
|
|
|
// 保存
|
|
// 保存
|
|
async toUpdate() {
|
|
async toUpdate() {
|
|
|
|
+ const msg = this.$message({ duration: 0, message: '正在处理,请稍后...' });
|
|
let dup = _.cloneDeep(this.info);
|
|
let dup = _.cloneDeep(this.info);
|
|
const { termid, batchid, classid, ...info } = dup;
|
|
const { termid, batchid, classid, ...info } = dup;
|
|
let updata = _.pick(info, ['day', 'subid', 'subname', 'teaid', 'teaname', 'time']);
|
|
let updata = _.pick(info, ['day', 'subid', 'subname', 'teaid', 'teaname', 'time']);
|
|
@@ -244,6 +245,7 @@ export default {
|
|
let planDup = _.cloneDeep(this.plan);
|
|
let planDup = _.cloneDeep(this.plan);
|
|
planDup.termnum = data;
|
|
planDup.termnum = data;
|
|
const res = await this.updatePlan(planDup);
|
|
const res = await this.updatePlan(planDup);
|
|
|
|
+ msg.close();
|
|
if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
|
|
if (this.$checkRes(res, '修改成功', res.errmsg || '修改失败')) {
|
|
this.getInfo('reload');
|
|
this.getInfo('reload');
|
|
this.toClose();
|
|
this.toClose();
|
|
@@ -251,11 +253,14 @@ export default {
|
|
},
|
|
},
|
|
// 发送通知
|
|
// 发送通知
|
|
async toSendMsg() {
|
|
async toSendMsg() {
|
|
|
|
+ const msg = this.$message({ duration: 0, message: '正在发送通知...' });
|
|
const { planid } = this.options;
|
|
const { planid } = this.options;
|
|
const dup = _.cloneDeep(this.msgForm);
|
|
const dup = _.cloneDeep(this.msgForm);
|
|
console.log(this.ctselect);
|
|
console.log(this.ctselect);
|
|
const res = await this.sendMsg({ planid, ids: dup, classtype: this.ctselect });
|
|
const res = await this.sendMsg({ planid, ids: dup, classtype: this.ctselect });
|
|
this.toClose();
|
|
this.toClose();
|
|
|
|
+ msg.close();
|
|
|
|
+ this.$message.success('发送完成');
|
|
},
|
|
},
|
|
// 确认指定期安排
|
|
// 确认指定期安排
|
|
async toConfirm() {
|
|
async toConfirm() {
|