Commit 926ee39d authored by 黄奎's avatar 黄奎

页面修改

parent 45ec3c08
...@@ -12,16 +12,17 @@ ...@@ -12,16 +12,17 @@
.employee_Dialog .EMP_Main { .employee_Dialog .EMP_Main {
margin: 20px 0; margin: 20px 0;
} }
.employee_Dialog .EMPList { .employee_Dialog .EMPList {
width: 65px; width: 65px;
height: auto; height: auto;
display:inline-block; display: inline-block;
background-color: #F0F5FB; background-color: #F0F5FB;
text-align: center; text-align: center;
color: #2D2D2D; color: #2D2D2D;
font-size: 12px; font-size: 12px;
padding: 6px 0; padding: 6px 0;
margin:0 10px 10px 0; margin: 0 10px 10px 0;
} }
.employee_Dialog .Emp_Line { .employee_Dialog .Emp_Line {
...@@ -40,14 +41,16 @@ ...@@ -40,14 +41,16 @@
.employee_Dialog .drawer_Span { .employee_Dialog .drawer_Span {
margin-left: 10px; margin-left: 10px;
} }
.employee_Dialog .emp_lingdaiDiv{
width:30px; .employee_Dialog .emp_lingdaiDiv {
height:30px; width: 30px;
height: 30px;
background-color: #DADBFB; background-color: #DADBFB;
color: #8175FB; color: #8175FB;
border-radius:50%; border-radius: 50%;
text-align: center; text-align: center;
} }
</style> </style>
<template> <template>
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeShenheForm"> <q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeShenheForm">
...@@ -123,17 +126,13 @@ ...@@ -123,17 +126,13 @@
</div> </div>
<div class="row" style="margin-top:20px;"> <div class="row" style="margin-top:20px;">
<div class="col-6"> <div class="col-6">
<q-select filled stack-label option-value="PostId" option-label="PostName" <q-select filled stack-label option-value="PostId" option-label="PostName" v-model="Post_Id" ref="Post_Id"
v-model="Post_Id" ref="Post_Id" :options="PostList" label="岗位" :dense="false" :options="PostList" label="岗位" :dense="false" class="col-6 q-pr-lg q-pb-lg" emit-value map-options />
class="col-6 q-pr-lg q-pb-lg" emit-value map-options />
</div> </div>
</div> </div>
</div> </div>
<div style="text-align:center"> <div style="text-align:center">
<q-btn color="primary" label="确定" @click="saveReuslt()" style="width:400px;" /> <q-btn color="primary" label="确定" @click="saveReuslt()" style="width:400px;" />
<!-- <q-btn size="xs" @click="saveReuslt()" icon="iconfont icon-chenggong" color="primary" style="font-weight:400"
class="q-mr-md" label="确定" :loading="saveLoading" /> -->
</div> </div>
</q-card> </q-card>
<div class="dialog-out-close" @click="closeShenheForm" <div class="dialog-out-close" @click="closeShenheForm"
...@@ -154,7 +153,7 @@ ...@@ -154,7 +153,7 @@
} from '../../../api/system/dept.js' } from '../../../api/system/dept.js'
//岗位 //岗位
import { import {
getPostList queryDeptPostList
} from '../../../api/system/post' } from '../../../api/system/post'
import selectTree from '../../../components/common/select-tree' import selectTree from '../../../components/common/select-tree'
export default { export default {
...@@ -171,22 +170,22 @@ ...@@ -171,22 +170,22 @@
return { return {
persistent: true, persistent: true,
saveLoading: false, saveLoading: false,
LeveaMsg:{ LeveaMsg: {
LeaveStatus:4, //是否离职 1是 2否 LeaveStatus: 4, //是否离职 1是 2否
LeaveTime:'' //离职时间 LeaveTime: '' //离职时间
}, },
returnString:[], //部门默认 returnString: [], //部门默认
DeptList: [], // 部门下拉 DeptList: [], // 部门下拉
PostList:[], //岗位下拉 PostList: [], //岗位下拉
departId:-2, // 部门 departId: -2, // 部门
Post_Id:0 //岗位 Post_Id: 0 //岗位
} }
}, },
mounted() { mounted() {
if(this.setingObj.type==4){ if (this.setingObj.type == 4) {
this.getDepartList(); this.getDepartList();
} }
if(this.setingObj.type==3){ if (this.setingObj.type == 3) {
this.queryPostList(); this.queryPostList();
} }
}, },
...@@ -208,15 +207,14 @@ ...@@ -208,15 +207,14 @@
//获取岗位下拉 //获取岗位下拉
queryPostList() { queryPostList() {
var postMsg = { var postMsg = {
RB_Dept_Id: this.setingObj.selected[0].Dept_Id QDeptIds: this.setingObj.selected[0].Dept_Id
}; };
getPostList(postMsg).then(res => { queryDeptPostList(postMsg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.PostList = res.Data; this.PostList = res.Data;
} }
}) })
}, },
//选择部门 //选择部门
getChild(deptArray) { getChild(deptArray) {
if (deptArray && deptArray != '') { if (deptArray && deptArray != '') {
...@@ -225,9 +223,9 @@ ...@@ -225,9 +223,9 @@
}, },
//保存信息 //保存信息
saveReuslt() { saveReuslt() {
if(this.setingObj.type==1){ if (this.setingObj.type == 1) {
let Msg=[]; let Msg = [];
if(this.LeveaMsg.LeaveTime==''){ if (this.LeveaMsg.LeaveTime == '') {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -235,14 +233,14 @@ ...@@ -235,14 +233,14 @@
}) })
return; return;
} }
if(this.setingObj.selected.length>0){ if (this.setingObj.selected.length > 0) {
this.setingObj.selected.forEach(x=>{ this.setingObj.selected.forEach(x => {
let obj = { let obj = {
Id:x.Id, Id: x.Id,
AccountId:x.AccountId, AccountId: x.AccountId,
AccountType:x.AccountType, AccountType: x.AccountType,
LeaveStatus:this.LeveaMsg.LeaveStatus, LeaveStatus: this.LeveaMsg.LeaveStatus,
LeaveTime:this.LeveaMsg.LeaveTime LeaveTime: this.LeveaMsg.LeaveTime
} }
Msg.push(obj); Msg.push(obj);
}) })
...@@ -254,9 +252,9 @@ ...@@ -254,9 +252,9 @@
} }
}) })
} }
if(this.setingObj.type==4){ if (this.setingObj.type == 4) {
let Msg=[]; let Msg = [];
if(this.departId==-2){ if (this.departId == -2) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -264,12 +262,12 @@ ...@@ -264,12 +262,12 @@
}) })
return; return;
} }
let obj={}; let obj = {};
if(this.setingObj.selected.length>0){ if (this.setingObj.selected.length > 0) {
obj.Id=this.setingObj.selected[0].Id; obj.Id = this.setingObj.selected[0].Id;
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;
} }
UpdateEmployeeDept(obj).then(res => { UpdateEmployeeDept(obj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -278,8 +276,8 @@ ...@@ -278,8 +276,8 @@
} }
}) })
} }
if(this.setingObj.type==3){ if (this.setingObj.type == 3) {
if(this.Post_Id==0){ if (this.Post_Id == 0) {
this.$q.notify({ this.$q.notify({
type: 'negative', type: 'negative',
position: "top", position: "top",
...@@ -287,20 +285,20 @@ ...@@ -287,20 +285,20 @@
}) })
return; return;
} }
let obj={}; let obj = {};
if(this.setingObj.selected.length>0){ if (this.setingObj.selected.length > 0) {
obj.Id=this.setingObj.selected[0].Id; obj.Id = this.setingObj.selected[0].Id;
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.Post_Id=this.Post_Id; obj.Post_Id = this.Post_Id;
} }
UpdateEmployeePost(obj).then(res => { UpdateEmployeePost(obj).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.$emit('success'); this.$emit('success');
this.$emit('close') this.$emit('close')
} }
}) })
} }
}, },
GetFirst(val) { GetFirst(val) {
if (val) { if (val) {
......
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