Commit 876ee4c0 authored by 黄奎's avatar 黄奎

页面修改

parent c2a851f4
......@@ -80,9 +80,9 @@
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="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 />
<q-select filled stack-label option-value="Id" option-label="EmployeeName" ref="ID"
v-model="objOption.DirectSupervisor" :options="EmployeeList" label="直属上级" :dense="false"
class="col-6 q-pr-lg q-pb-lg" emit-value map-options />
</div>
</q-card-section>
<q-separator />
......@@ -152,7 +152,7 @@
AccountType: 1, // 是否是老师
AccountId: 0, //账号对应的表主键编号
Email: "", //邮箱
DirectSupervisor:0 //直属上级
DirectSupervisor: 0 //直属上级
},
optionTitle: "",
schoolList: [],
......@@ -171,7 +171,20 @@
LeaveStatusList: [], //在职状态
isEditShow: false, //是否显示修改应该隐藏
//账号类型
AccountTypeList: [],
AccountTypeList: [{
Id: 1,
Value: "后台用户"
},
{
Id: 2,
Value: "教师"
},
{
Id: 3,
Value: "助教"
},
],
EmployeeList: [], //员工列表
}
},
created() {
......@@ -192,12 +205,12 @@
}
queryEmployee(qMsg).then(res => {
if (res.Code == 1) {
this.AccountTypeList = res.Data;
this.EmployeeList = res.Data;
var obj = {
EmployeeName: '请选择',
Id: 0
}
this.AccountTypeList.unshift(obj);
this.EmployeeList.unshift(obj);
}
}).catch(() => {
......@@ -392,7 +405,6 @@
this.saveLoading = false
})
},
//获取学历数据
getEducationList() {
getEducation({}).then(res => {
......
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