Commit fce87c62 authored by 黄奎's avatar 黄奎

11

parent 7c63bd1a
......@@ -7,7 +7,7 @@
<el-select
v-model="parameters.branchId"
style="margin-right: 20px;"
@change="handleDateChange()"
@change="getEmpList(),parameters.empIdList=[],handleDateChange()"
>
<el-option
v-for="(x, i) in branchs"
......@@ -16,6 +16,21 @@
:value="x.Id"
></el-option>
</el-select>
<el-select
v-model="parameters.empIdList"
style="margin-right: 20px;"
@change="handleDateChange()"
multiple
filterable
>
<el-option
v-for="(x, i) in empList"
:key="i"
:label="x.EmName"
:value="x.EmployeeId"
></el-option>
</el-select>
<el-date-picker
v-model="parameters.dateRange"
type="daterange"
......@@ -679,8 +694,10 @@ export default {
branchId: -1,
dateRange: [],
StartDate: "",
EndDate: ""
EndDate: "",
empIdList:[],
},
empList:[],//员工列表
coreId: 1,
coreLists: [
{
......@@ -832,6 +849,7 @@ export default {
},
created() {
this.getCompanyList();
this.getEmpList()
const end = new Date();
const start = new Date();
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
......@@ -916,7 +934,26 @@ export default {
query
});
}
},
getEmpList(){
let userInfo = this.getLocalStorage();
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: "-1",
DepartmentId: "-1",
PostId: "-1",
IsLeave: "0",
};
msg.BranchId=this.parameters.branchId;
this.apipost(
"admin_get_EmployeeGetList", msg,
(res) => {
if (res.data.resultCode == 1) {
this.empList = res.data.data;
}
},
(err) => {}
);
},
handleDateChange() {
this.getCustomerStatic();
......
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