龚焕茏
2024-07-16 e2d9978fe885d7855ad873d7f05cc98d00b4dcf0
feat:默认选中当前部门
2个文件已修改
12 ■■■■■ 已修改文件
src/views/exam/paper/edit.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/exam/personalRandomTemplate/edit.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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 () {
src/views/exam/personalRandomTemplate/edit.vue
@@ -239,6 +239,7 @@
      },
      subjectIdList: [],
      form: {
        deptId: '',
        aggregateSource: '100',
        id: null,
        departmentIds: [],