From eeebb8d40266d614c14133b96bf40c57e30424ea Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 16 七月 2024 11:47:35 +0800 Subject: [PATCH] feat:默认选中当前部门 --- src/views/exam/paper/edit.vue | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/views/exam/paper/edit.vue b/src/views/exam/paper/edit.vue index b9c2e96..d65df94 100644 --- a/src/views/exam/paper/edit.vue +++ b/src/views/exam/paper/edit.vue @@ -282,6 +282,11 @@ }; }, created() { + departmentApi.getCurrentDeptId().then(res => { + if (res.response && res.response[0]) { + this.form.deptId = res.response[0]; + } + }); let id = this.$route.query.id; let _this = this; this.initSubject(function () { -- Gitblit v1.8.0