提交 2b837574 编写于 作者: qian.jie's avatar qian.jie

Merge branch 'feature/jq' into 'develop'

优化保存成功显示提示

See merge request !176
<template> <template>
<div <div
v-loading="loading"
style=" style="
width: 100%; width: 100%;
height: auto; height: auto;
...@@ -189,6 +190,7 @@ ...@@ -189,6 +190,7 @@
}, },
workingTicketVisible: false, // 工作表票详情页面 workingTicketVisible: false, // 工作表票详情页面
scrollerHeight: 0, scrollerHeight: 0,
loading: false,
}; };
}, },
watch: { watch: {
...@@ -412,6 +414,7 @@ ...@@ -412,6 +414,7 @@
this.handleInitSearch(true); this.handleInitSearch(true);
}, },
saveDoctoreScheduling() { saveDoctoreScheduling() {
this.loading = true;
const objParms = {}; const objParms = {};
objParms.week = this.week; objParms.week = this.week;
objParms.workId = this.schedulingTypeValue.id; objParms.workId = this.schedulingTypeValue.id;
...@@ -430,9 +433,15 @@ ...@@ -430,9 +433,15 @@
if (res.code === '000000') { if (res.code === '000000') {
// this.$toast(res.message); // this.$toast(res.message);
// this.handleInitSearch(true); // this.handleInitSearch(true);
this.$router.go(0); // this.$router.go(0);
this.loading = false;
this.$message({
message: '排班保存成功',
type: 'success'
});
} else { } else {
this.$toast(res.message); // this.$toast(res.message);
this.$message.error(res.message || '排班保存失败');
} }
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册