Commit 010b7bbc authored by 黄奎's avatar 黄奎

页面修改

parent 9de1fefc
......@@ -34,36 +34,31 @@
v-model="msg.Post_Id" ref="Post_Id" :options="PostList" label="岗位" :dense="false" emit-value map-options />
</div>
<div class="col-3">
<q-select filled @input="resetSearch" clearable stack-label option-value="Id" option-label="Name"
v-model="msg.LeaveStatus" ref="LeaveStatus" :options="LeaveStatusList" label="在职状态" :dense="false"
emit-value map-options />
<q-select filled @input="resetSearch" stack-label option-value="Id" option-label="Name"
v-model="msg.IsLeave " :options="LeaveStatusList" label="在职状态" :dense="false" emit-value map-options />
</div>
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<q-field filled>
<template v-slot:control>
<el-date-picker v-model="dateListOne" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="入职开始日期"  end-placeholder="入职结束日期">
 </el-date-picker>       
 range-separator="至"  start-placeholder="入职开始日期"  end-placeholder="入职结束日期" />
</template>
</q-field>
</div>
<div class="col-3 Sysuser_Date">
<q-field filled>
  <template v-slot:control>           
<q-field filled>
<template v-slot:control>
<el-date-picker v-model="dateListThree" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
  range-separator="至"  start-placeholder="离职开始日期"  end-placeholder="离职结束日期">
</el-date-picker>
 
  range-separator="至"  start-placeholder="离职开始日期"  end-placeholder="离职结束日期" />
</template>
 </q-field>
</q-field>
</div>
<div class="col-3 Sysuser_Date">
<q-field filled class="col-6">
  <template v-slot:control>
<q-field filled class="col-6">
<template v-slot:control>
<el-date-picker v-model="dateListTwo" @change="resetSearch()" format="MM-dd"  value-format="yyyy-MM-dd"
 type="daterange"  style="border:none;"   range-separator="至"  start-placeholder="生日开始时间"
 end-placeholder="生日结束时间">
</el-date-picker>  
 end-placeholder="生日结束时间" />
</template>
</q-field>
</div>
......@@ -73,13 +68,12 @@
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat selection="multiple"
:selected.sync="selected" class="sticky-right-column-table sticky-column-table" separator="none" :data="data"
:columns="columns" row-key="Id">
<template v-slot:top="props">
<template v-slot:top>
<div class="col-2 q-table__title">员工管理</div>
<q-space />
<div class="page-option">
<q-btn color="accent" size="sm" class="q-mr-md" label="同步到微信" @click="synchronization()"
v-if="DeptEmpEnable==1" />
<q-btn color="accent" size="sm" class="q-mr-md" icon="add" label="新增员工" @click="EditManager(null,0)" />
<q-btn-dropdown outline size="sm" color="dark" label="更多">
<q-list>
......@@ -389,7 +383,7 @@
School_Id: "", //校区
Dept_Id: 0, //部门
Post_Id: "", //岗位编号
LeaveStatus: 0, //在职状态
IsLeave: 1, //在职状态
StartEntryTime: "", //入职开始时间
EndEntryTime: "", //入职结束时间
StartLeaveTime: "", //开始离职时间
......@@ -406,7 +400,15 @@
resetLoading: false,
returnString: [], //默认岗位
PostList: [], //岗位
LeaveStatusList: [], //在职状态
LeaveStatusList: [{
Id: 1,
Name: "在职"
},
{
Id: 2,
Name: "离职"
}
], //在职状态
dateListOne: [], //入职-离职日期
dateListTwo: [], //生日开始-结束日期
dateListThree: [], //开始-结束离职日期
......@@ -425,7 +427,7 @@
},
Employeelist: [],
AllEmployeelist: [],
DeptEmpEnable: 0,//是否显示企业微信信息 1 显示
DeptEmpEnable: 0, //是否显示企业微信信息 1 显示
}
},
mounted() {
......@@ -434,9 +436,8 @@
this.getManager();
this.getDepartList(0);
this.queryPostList(0);
this.getLeaveState();
this.queryEmployee()
this.getmicrodeploy()//获取企业微信的配置
this.getmicrodeploy() //获取企业微信的配置
},
methods: {
resetSearch() {
......@@ -695,14 +696,7 @@
}
})
},
//获取在职状态
getLeaveState() {
GetLeaveStatus({}).then(res => {
if (res.Code == 1) {
this.LeaveStatusList = res.Data;
}
})
},
getType(num) {
this.setObj.type = num;
if (this.selected.length == 0) {
......@@ -784,8 +778,10 @@
},
queryEmployee() {//下拉人员列表
queryEmployee({ IsLeave: 1 }).then(res => {
queryEmployee() { //下拉人员列表
queryEmployee({
IsLeave: 1
}).then(res => {
if (res.Code == 1) {
this.AllEmployeelist = JSON.parse(JSON.stringify(res.Data));
this.Employeelist = res.Data
......@@ -805,13 +801,13 @@
}
})
},
khHandover(row) {//客户交接
khHandover(row) { //客户交接
this.joinMsg.TransferUserId = row.EmAccountId
this.joinMsg.CustomerTransfer = '1'
this.joinMsg.ChannelTransfer = '1'
this.isDetails = true
},
saveOrderInfo() {//保存
saveOrderInfo() { //保存
if (this.joinMsg.ReceiveUserId == '') {
this.$q.notify({
type: 'negative',
......@@ -864,7 +860,6 @@
}
},
}
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
......
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