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

页面修改

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