Commit 18402c29 authored by 黄奎's avatar 黄奎

页面修改

parent b8d0f02a
......@@ -337,9 +337,9 @@ export function saveManager(data) {
/**
* 获取管理者信息
*/
export function queryManagerInfo(data) {
export function queryEmployeeInfo(data) {
return request({
url: '/User/GetManager',
url: '/User/GetEmployee',
method: 'post',
data
})
......
......@@ -7,12 +7,12 @@
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<div class="text-caption q-mb-md q-px-xs text-grey-6">基本资料</div>
<div class="row wrap">
<q-select filled stack-label option-value="SId" @input="queryDeptTree(objOption.School_Id)" option-label="SName" v-model="objOption.School_Id"
ref="School_Id" :options="schoolList" label="所属校区" :dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value
map-options />
<selectTree :treeData='DeptList' :defaultArray="returnString"
nodeKey="DeptId" :multiple="false" labelKey="DeptName" childrenKey="ChildList" tipText="选择部门"
@getChild="getChild" classStr="col-6 q-pr-lg q-pb-lg"></selectTree>
<q-select filled stack-label option-value="SId" @input="queryDeptTree(objOption.School_Id)"
option-label="SName" v-model="objOption.School_Id" ref="School_Id" :options="schoolList" label="所属校区"
:dense="false" class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
<selectTree :treeData='DeptList' :defaultArray="returnString" nodeKey="DeptId" :multiple="false"
labelKey="DeptName" childrenKey="ChildList" tipText="选择部门" @getChild="getChild"
classStr="col-6 q-pr-lg q-pb-lg"></selectTree>
<q-select filled stack-label option-value="PostId" option-label="PostName" v-model="objOption.Post_Id"
ref="Post_Id" :options="PostList" label="岗位" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
......@@ -67,8 +67,8 @@
class="col-6 q-pr-lg q-pb-lg" label="密码" :rules="[val => !!val || '密码']" />
<q-select filled stack-label option-value="Id" option-label="Name" v-model="objOption.LeaveStatus"
ref="Education" :options="LeaveStatusList" label="在职状态" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value
map-options />
ref="Education" :options="LeaveStatusList" label="在职状态" :dense="false" class="col-6 q-pr-lg q-pb-lg"
emit-value map-options />
<div class="col-6 q-pb-lg" style="margin-top:20px;">
<q-uploader style="display: inline-block;max-height: 320px;max-width: 100%; background-repeat:no-repeat"
......@@ -95,7 +95,7 @@
import {
getSchoolDropdown,
saveManager,
queryManagerInfo,
queryEmployeeInfo,
getEducation,
GetLeaveStatus
} from '../../../api/school/index'
......@@ -143,9 +143,9 @@
BirthDate: '', //生日、
Address: '', //地址
LeaveStatus: 0, //在职状态
Account:'', //账号
Password:'', //密码
Isteacher:1,// 是否是老师
Account: '', //账号
Password: '', //密码
Isteacher: 1, // 是否是老师
},
optionTitle: "",
schoolList: [],
......@@ -161,7 +161,7 @@
Name: '女'
}],
EducationList: [], //学历数组
LeaveStatusList:[], //在职状态
LeaveStatusList: [], //在职状态
}
},
created() {
......@@ -212,12 +212,14 @@
})
},
initObj() {
console.log("this.saveObj", this.saveObj);
if (this.saveObj) {
this.optionTitle = "修改管理者信息"
queryManagerInfo({
MId: this.saveObj.MId
this.optionTitle = "修改员工信息"
queryEmployeeInfo({
Id: this.saveObj.TabKeyId
}).then(res => {
this.objOption.MId = res.Data.MId;
console.log("res", res);
this.objOption.Id = res.Data.Id;
this.objOption.School_Id = res.Data.School_Id;
this.objOption.MName = res.Data.MName;
this.objOption.MTel = res.Data.MTel;
......@@ -301,7 +303,7 @@
})
},
//获取在职状态
getLeaveState(){
getLeaveState() {
GetLeaveStatus({}).then(res => {
if (res.Code == 1) {
this.LeaveStatusList = res.Data;
......
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