|
@@ -1744,10 +1744,28 @@ export default {
|
|
}).then(async () => {
|
|
}).then(async () => {
|
|
try {
|
|
try {
|
|
const res = await setNoneCloudTeacher({ id: row.id });
|
|
const res = await setNoneCloudTeacher({ id: row.id });
|
|
- this.$message.success("解除预约成功");
|
|
|
|
- this.getList();
|
|
|
|
|
|
+ console.log('code',res.code)
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success("解除预约成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ } else if (res.code == 100) {
|
|
|
|
+ this.$confirm(res.msg, "提示", {
|
|
|
|
+ confirmButtonText: "确定",
|
|
|
|
+ cancelButtonText: "取消",
|
|
|
|
+ type: "warning",
|
|
|
|
+ }).then(async (some) => {
|
|
|
|
+ const res = await setNoneCloudTeacher({
|
|
|
|
+ id: row.id,
|
|
|
|
+ isContinue: true,
|
|
|
|
+ });
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.$message.success("解除预约成功");
|
|
|
|
+ this.getList();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
} catch (e) {
|
|
} catch (e) {
|
|
- console.log(e);
|
|
|
|
|
|
+ console.log('错误',e);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|