|
|
@@ -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 = [];
|