sunlupeng 1 年間 前
コミット
d24935da64

+ 2 - 2
src/views/oa/entry/edit.vue

@@ -122,7 +122,7 @@ import { listSimplePosts } from "@/api/system/post";
 import { getDetail, create,reCommit, save, deleteById,closeById } from "@/api/oa/entry"
 import {getDate} from "@/utils/dateUtils";
 import { getUserProfile } from "@/api/system/user";
-import { listDept } from "@/api/system/dept";
+import { listSimpleDeptsRole } from "@/api/system/dept";
 import PeopleSelect from "@/components/PeopleSelect/index.vue";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
@@ -351,7 +351,7 @@ export default {
     },
     /** 查询部门列表 */
     getDeptList() {
-      listDept(this.queryParams).then(response => {
+      listSimpleDeptsRole(this.queryParams).then(response => {
         this.deptOptions = this.handleTree(response.data, "id");
       });
       getOpenDicts('tenant_employee_type').then(response => {

+ 5 - 2
src/views/personnel/relations/entry/index.vue

@@ -119,7 +119,7 @@
           </el-col>
           <el-col :span="12">
             <el-form-item label="部门">
-              <treeselect :default-expand-level="1" v-model="form.deptId" :options="deptOptions"
+              <treeselect :default-expand-level="1" v-model="form.deptId" :options="deptOptionsRole"
                 :normalizer="normalizer" placeholder="请选选择部门" />
             </el-form-item>
           </el-col>
@@ -357,7 +357,7 @@ import { listSimplePosts } from "@/api/system/post";
 import { listEntry, getEntry, delEntry, addEntry, updateEntry, exportEntry } from "@/api/personnel/relations/entry/index";
 import Treeselect from "@riophae/vue-treeselect";
 import "@riophae/vue-treeselect/dist/vue-treeselect.css";
-import { listDept } from "@/api/system/dept";
+import { listDept,listSimpleDeptsRole } from "@/api/system/dept";
 import { DICT_TYPE } from '@/utils/dict'
 import { getBaseHeader } from "@/utils/request";
 export default {
@@ -497,6 +497,9 @@ export default {
       listDept().then(response => {
         this.deptOptions = this.handleTree(response.data, "id");
       });
+      listSimpleDeptsRole().then(response => {
+        this.deptOptionsRole = this.handleTree(response.data, "id");
+      });
       listSimplePosts().then(response => {
         // 处理 postOptions 参数
         this.postOptions = [];