|
@@ -212,7 +212,7 @@
|
|
|
collapse-tags
|
|
|
v-model.trim="form.organIdLists"
|
|
|
multiple>
|
|
|
- <el-option v-for="item in selects.branchs"
|
|
|
+ <el-option v-for="item in organList"
|
|
|
:key="item.id"
|
|
|
:label="item.name"
|
|
|
:value="item.id"></el-option>
|
|
@@ -318,7 +318,7 @@
|
|
|
<script>
|
|
|
import pagination from '@/components/Pagination/index'
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
-import { queryEmployByOrganId, employeeOperate, getUserRole, employeeAdd, employeeUpdate, hasCourseGroupRelation, updateEducationTeacherId } from '@/api/systemManage'
|
|
|
+import { queryEmployByOrganId, employeeOperate, getUserRole, employeeAdd, employeeUpdate, hasCourseGroupRelation, updateEducationTeacherId, queryEmployeeOrganByUser } from '@/api/systemManage'
|
|
|
import { findEducationTeacher } from '@/api/specialSetting'
|
|
|
import { findEducationUsers } from '@/api/buildTeam'
|
|
|
import Tooltip from '@/components/Tooltip/index'
|
|
@@ -338,6 +338,7 @@ export default {
|
|
|
components: { pagination, Tooltip, handover },
|
|
|
data () {
|
|
|
return {
|
|
|
+ organList: [],
|
|
|
tableList: [],
|
|
|
educationList: [],
|
|
|
educationForm: {
|
|
@@ -478,7 +479,13 @@ export default {
|
|
|
})
|
|
|
this.$store.dispatch('setBranchs')
|
|
|
},
|
|
|
- roleOperation (type, data) {
|
|
|
+ async roleOperation (type, data) {
|
|
|
+ // 获取分部
|
|
|
+ await queryEmployeeOrganByUser().then(res => {
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.organList = res.data
|
|
|
+ }
|
|
|
+ })
|
|
|
this.formActionTitle = type
|
|
|
this.roleStatus = true
|
|
|
// 修改的时候
|