一日流程评估评估完毕自动刷新list

一日流程跨月不能继续评估
This commit is contained in:
zhanglipeng
2021-06-03 11:52:10 +08:00
parent 1c3020987c
commit 375934d3e9
3 changed files with 64 additions and 10 deletions

View File

@ -211,13 +211,23 @@ export default {
type: "warning",
callback: (action) => {
if (action === "confirm") {
this.loading = true;
this.form.list = this.dayflowstandardList;
this.form.status = "1";
addDayflowassessment(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("评估成功");
this.loading = false;
// 自动关闭 tab
this.$store.state.tagsView.visitedViews.splice(
this.$store.state.tagsView.visitedViews.findIndex(
(item) => item.path === this.$route.path
),
1
);
this.$router.push(
this.$store.state.tagsView.visitedViews[
this.$store.state.tagsView.visitedViews.length - 1
].path
);
}
});
}
@ -235,13 +245,23 @@ export default {
type: "warning",
callback: (action) => {
if (action === "confirm") {
this.loading = true;
this.form.list = this.dayflowstandardList;
this.form.status = "0";
addDayflowassessment(this.form).then((response) => {
if (response.code === 200) {
this.msgSuccess("保存成功");
this.loading = false;
// 自动关闭 tab
this.$store.state.tagsView.visitedViews.splice(
this.$store.state.tagsView.visitedViews.findIndex(
(item) => item.path === this.$route.path
),
1
);
this.$router.push(
this.$store.state.tagsView.visitedViews[
this.$store.state.tagsView.visitedViews.length - 1
].path
);
}
});
}