Commit d138a3a5 authored by 黄奎's avatar 黄奎

页面修改

parent 846f145c
...@@ -110,6 +110,19 @@ ...@@ -110,6 +110,19 @@
<div class="Emp_Line"></div> <div class="Emp_Line"></div>
<div>修改部门</div> <div>修改部门</div>
</div> </div>
<div class="row" style="margin-top:20px;">
<div class="col-6">
<q-radio v-model="deptObj.schoolType" :val="0" label="本校区" />
<q-radio v-model="deptObj.schoolType" :val="1" label="其他校区" />
</div>
</div>
<div class="row" style="margin-top:20px;" v-if="deptObj.schoolType==1">
<div class="col-6">
<q-select filled stack-label @input="getDepartList()" option-value="SId" option-label="SName"
class="col-6 q-pr-lg q-pb-lg" v-model="deptObj.School_Id" ref="School_Id" :options="schoolList"
label="所属校区" :dense="false" emit-value map-options />
</div>
</div>
<div class="row" style="margin-top:20px;"> <div class="row" style="margin-top:20px;">
<div class="col-6"> <div class="col-6">
<selectTree :treeData='DeptList' :defaultArray="returnString" nodeKey="DeptId" :multiple="false" <selectTree :treeData='DeptList' :defaultArray="returnString" nodeKey="DeptId" :multiple="false"
...@@ -155,6 +168,9 @@ ...@@ -155,6 +168,9 @@
import { import {
queryDeptPostList queryDeptPostList
} from '../../../api/system/post' } from '../../../api/system/post'
import {
getSchoolDropdown,
} from '../../../api/school/index'
import selectTree from '../../../components/common/select-tree' import selectTree from '../../../components/common/select-tree'
export default { export default {
props: { props: {
...@@ -178,11 +194,17 @@ ...@@ -178,11 +194,17 @@
DeptList: [], // 部门下拉 DeptList: [], // 部门下拉
PostList: [], //岗位下拉 PostList: [], //岗位下拉
departId: -2, // 部门 departId: -2, // 部门
Post_Id: 0 //岗位 Post_Id: 0, //岗位
schoolList: [], //校区列表
deptObj: {
schoolType: 0, //校区类型
School_Id: 0,
}
} }
}, },
mounted() { mounted() {
if (this.setingObj.type == 4) { if (this.setingObj.type == 4) {
this.getSchool();
this.getDepartList(); this.getDepartList();
} }
if (this.setingObj.type == 3) { if (this.setingObj.type == 3) {
...@@ -190,13 +212,28 @@ ...@@ -190,13 +212,28 @@
} }
}, },
methods: { methods: {
getSchool() {
getSchoolDropdown({}).then(res => {
this.schoolList = res.Data;
var obj = {
SName: '全部',
SId: 0
}
this.schoolList.unshift(obj);
})
},
closeShenheForm() { closeShenheForm() {
this.$emit('close') this.$emit('close')
}, },
//获取部门下拉数据 //获取部门下拉数据
getDepartList() { getDepartList() {
let msg = { let msg = {
School_Id: this.setingObj.selected[0].School_Id School_Id: 0
}
if (this.deptObj.schoolType == 0) {
msg.School_Id = this.setingObj.selected[0].School_Id;
} else {
msg.School_Id = this.deptObj.School_Id;
} }
getDeptTree(msg).then(res => { getDeptTree(msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -212,8 +249,8 @@ ...@@ -212,8 +249,8 @@
queryDeptPostList(postMsg).then(res => { queryDeptPostList(postMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
let obj = { let obj = {
PostName:'不限', PostName: '不限',
PostId:0 PostId: 0
} }
this.PostList = res.Data; this.PostList = res.Data;
this.PostList.unshift(obj); this.PostList.unshift(obj);
...@@ -273,6 +310,7 @@ ...@@ -273,6 +310,7 @@
obj.AccountId = this.setingObj.selected[0].AccountId; obj.AccountId = this.setingObj.selected[0].AccountId;
obj.AccountType = this.setingObj.selected[0].AccountType; obj.AccountType = this.setingObj.selected[0].AccountType;
obj.Dept_Id = this.departId; obj.Dept_Id = this.departId;
obj.School_Id = this.deptObj.School_Id;
} }
UpdateEmployeeDept(obj).then(res => { UpdateEmployeeDept(obj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
......
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