Commit ebf9dbb8 authored by zhengke's avatar zhengke

修改

parent 63701d4f
......@@ -80,7 +80,7 @@
option-label="Value" ref="ID" v-model="objOption.AccountType" :options="AccountTypeList" label="用户类型"
:dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value map-options />
<q-select filled stack-label option-value="Id" option-label="Value" ref="ID" v-model="objOption.DirectSupervisor"
<q-select filled stack-label option-value="Id" option-label="EmployeeName" ref="ID" v-model="objOption.DirectSupervisor"
:options="AccountTypeList" label="直属上级" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
</div>
......@@ -114,6 +114,9 @@
UploadSelfFile,
} from '../../../api/common/common'
import selectTree from '../../common/select-tree'
import {
queryEmployee //员工列表
} from '../../../api/users/user'
export default {
components: {},
props: {
......@@ -149,6 +152,7 @@
AccountType: 1, // 是否是老师
AccountId: 0, //账号对应的表主键编号
Email: "", //邮箱
DirectSupervisor:0 //直属上级
},
optionTitle: "",
schoolList: [],
......@@ -167,19 +171,7 @@
LeaveStatusList: [], //在职状态
isEditShow: false, //是否显示修改应该隐藏
//账号类型
AccountTypeList: [{
Id: 1,
Value: "后台用户"
},
{
Id: 2,
Value: "教师"
},
{
Id: 3,
Value: "助教"
},
],
AccountTypeList: [],
}
},
created() {
......@@ -188,11 +180,29 @@
this.getSchool();
this.getEducationList();
this.getLeaveState();
this.Employee();
},
mounted() {
this.initObj();
},
methods: {
Employee() {
var qMsg = {
EmployeeName: ''
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.AccountTypeList = res.Data;
var obj = {
EmployeeName: '请选择',
Id: 0
}
this.AccountTypeList.unshift(obj);
}
}).catch(() => {
})
},
//学校改变
schoolChagne() {
this.objOption.Dept_Id = 0;
......@@ -279,6 +289,7 @@
this.objOption.AccountType = res.Data.AccountType;
this.objOption.AccountId = res.Data.AccountId;
this.objOption.Email = res.Data.Email;
this.objOption.DirectSupervisor = res.Data.DirectSupervisor;
if (this.objOption.School_Id) {
this.queryDeptTree();
}
......
......@@ -281,6 +281,12 @@
field: 'LeaveStatus',
align: 'left',
},
{
name:'DirectSupervisorName',
label:'直属上级',
field: 'DirectSupervisorName',
align: 'left',
},
{
name: 'AccountRemark',
label: '行政备注',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment