diff --git a/src/views/system/addQuestionnaire/index.vue b/src/views/system/addQuestionnaire/index.vue index 71ba2bc..963d9c8 100644 --- a/src/views/system/addQuestionnaire/index.vue +++ b/src/views/system/addQuestionnaire/index.vue @@ -592,11 +592,9 @@ export default { this.departmentlist = res.data }) if (this.$route.query.departmentId) { + this.list.departmentId = Number(this.$route.query.departmentId) this.changedepartment(this.$route.query.departmentId) } - if (this.$route.query.adddepartmentId) { - this.list.departmentId = Number(this.$route.query.adddepartmentId) - } }, computed: { questionnaireTotalScore: function () { diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue index 3a93888..6827364 100644 --- a/src/views/system/question/index.vue +++ b/src/views/system/question/index.vue @@ -344,7 +344,7 @@ export default { query: { path: "/knowledge/question", hospitalAgencyId: this.queryParams.hospitalAgencyId, - adddepartmentId: this.queryParams.departmentId + departmentId: this.queryParams.departmentId }, }); // })