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

页面修改

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