From e2d9978fe885d7855ad873d7f05cc98d00b4dcf0 Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 16 七月 2024 14:14:36 +0800
Subject: [PATCH] feat:默认选中当前部门

---
 src/views/exam/paper/edit.vue |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/src/views/exam/paper/edit.vue b/src/views/exam/paper/edit.vue
index d65df94..09df0c0 100644
--- a/src/views/exam/paper/edit.vue
+++ b/src/views/exam/paper/edit.vue
@@ -223,6 +223,7 @@
       },
       subjectIdList: [],
       form: {
+        deptId: '',
         menuIds: [],
         aggregateSource: 100,
         id: null,
@@ -282,11 +283,11 @@
     };
   },
   created() {
-    departmentApi.getCurrentDeptId().then(res => {
-      if (res.response && res.response[0]) {
-        this.form.deptId = res.response[0];
-      }
-    });
+    // 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