Commit be3fe9d1 authored by zhengke's avatar zhengke

增加公司筛选

parent a3234326
......@@ -5,6 +5,20 @@
<div class="flexOne currentManage">
<div class="query-box">
<ul>
<li>
<span>
<em>公司别</em>
<el-select filterable v-model="msg.RB_Branch_Id" :placeholder="$t('system.ph_choice')">
<el-option label="不限" :value="-1"></el-option>
<el-option
v-for="item in companyList"
:label="item.BName"
:value="item.Id"
:key="item.Id"
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>员工</em>
......@@ -106,18 +120,21 @@
PeriodsId:"",
TCID:"",
TCNUM:"",
RB_Branch_Id:-1
},
DataList:[],
loading:false,
currentPage:1,
total:0,
EmployeeList:[],
companyList:[]
}
},created(){
this.msg.PeriodsId=this.$route.query.PeriodsId?this.$route.query.PeriodsId:this.msg.PeriodsId;
this.msg.EmployeeId=this.$route.query.EmployeeId?Number(this.$route.query.EmployeeId):this.msg.EmployeeId;
},
mounted(){
this.getCompany();
this.getEmployeeList();
this.getList();
},
......@@ -161,7 +178,29 @@
}
}, err => {})
},
//获取公司下拉
getCompany() {
let userInfo = this.getLocalStorage()
var RB_Group_id = userInfo.RB_Group_id
let msg = {
Status: 0,
is_show: 0,
RB_Group_Id: RB_Group_id
}
this.apipost(
'admin_get_BranchGetList',
msg,
res => {
if (res.data.resultCode == 1) {
this.companyList = res.data.data
}else{
this.Error(res.data.message);
}
},
err => {}
)
},
getEmployeeList () {
let userInfo = this.getLocalStorage()
let msg = {
......
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