修改
This commit is contained in:
parent
6569d4fd53
commit
5c33f154e1
@ -1033,7 +1033,11 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$router.go(-1);
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/question/question",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("编辑保存成功");
|
||||
});
|
||||
@ -1045,7 +1049,11 @@ export default {
|
||||
cancelButtonText: '取消',
|
||||
type: 'success'
|
||||
}).then(() => {
|
||||
this.$router.go(-1);
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/question/question",
|
||||
});
|
||||
})
|
||||
}).catch(() => {
|
||||
this.$modal.msgSuccess("新增保存成功");
|
||||
});
|
||||
@ -1108,7 +1116,11 @@ export default {
|
||||
})
|
||||
},
|
||||
goback() {
|
||||
this.$router.go(-1);
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/question/question",
|
||||
});
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
@ -259,18 +259,22 @@ export default {
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.$router.push({
|
||||
path: "/question/addQuestionnaire",
|
||||
});
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/question/addQuestionnaire",
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.$router.push({
|
||||
path: "/question/addQuestionnaire",
|
||||
query: {
|
||||
id: row.id,
|
||||
},
|
||||
});
|
||||
this.$store.dispatch('tagsView/delView', this.$route).then(({ visitedViews }) => {
|
||||
this.$router.push({
|
||||
path: "/question/addQuestionnaire",
|
||||
query: {
|
||||
id: row.id,
|
||||
},
|
||||
});
|
||||
})
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user