Commit 6dd3c2b5 authored by 黄奎's avatar 黄奎

页面修改

parent 7c579bc3
This diff is collapsed.
...@@ -5,26 +5,20 @@ ...@@ -5,26 +5,20 @@
<h1>月度引流统计</h1> <h1>月度引流统计</h1>
</div> </div>
<div class="flex"> <div class="flex">
<div style="margin-right: 20px"> <div style="margin-right: 20px">
<el-date-picker v-model="msg.month" type="year" icon="el-icon-date" slot="append" class="input-with-select" <el-date-picker v-model="msg.month" type="year" icon="el-icon-date" slot="append" class="input-with-select"
format="yyyy 年" @change="changeMonthHandler" placeholder="选择查询的月份"> format="yyyy 年" @change="changeMonthHandler" placeholder="选择查询的月份">
</el-date-picker> </el-date-picker>
</div>
<div>
<span class="font-size-12" style="padding-right: 10px">业务员</span>
<el-select style="width: 220px;" filterable multiple clearable v-model="msg.QEmployeeIdsArr"
@change="changeEmployee">
<el-option v-for="(item, index) in EmployeeList" :key="index" :label="item.EmName" :value="item.EmployeeId">
</el-option>
</el-select>
</div>
</div> </div>
<div>
<span class="font-size-12" style="padding-right: 10px"
>业务员</span
>
<!-- height: 40px; overflow: auto -->
<el-select style="width: 220px;" filterable multiple clearable v-model="msg.QEmployeeIdsArr" @change="changeEmployee">
<el-option
v-for="(item, index) in EmployeeList"
:key="index"
:label="item.EmName"
:value="item.EmployeeId"
>
</el-option>
</el-select>
</div></div>
<div class="rightmenu"> <div class="rightmenu">
<el-dropdown @command="handleCommand"> <el-dropdown @command="handleCommand">
<el-button class="crm-btn crm-btn-more easy-btn margin-right0"> <el-button class="crm-btn crm-btn-more easy-btn margin-right0">
...@@ -238,7 +232,7 @@ ...@@ -238,7 +232,7 @@
selfParams: { selfParams: {
queryTime: {}, queryTime: {},
}, },
EmployeeList: [] EmployeeList: []
}; };
}, },
provide() { provide() {
...@@ -254,40 +248,39 @@ ...@@ -254,40 +248,39 @@
mounted() { mounted() {
this.init(); this.init();
this.initRate(); this.initRate();
this.Employee() this.Employee()
}, },
methods: { methods: {
changeEmployee() { changeEmployee() {
this.msg.QEmployeeIds =this.msg.QEmployeeIdsArr.join(',') this.msg.QEmployeeIds = this.msg.QEmployeeIdsArr.join(',')
this.init(); this.init();
}, },
// 获取业务员 // 获取业务员
Employee() { Employee() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
let msg = { let msg = {
RB_Group_id: userInfo.RB_Group_id, RB_Group_id: userInfo.RB_Group_id,
BranchId: -1, BranchId: 1245,
DepartmentId: 0, DepartmentId: 0,
PostId: 0, PostId: 0,
IsLeave: 0, IsLeave: 0,
}; };
this.apipost2( this.apipost2(
"admin_get_EmployeeGetList", "admin_get_EmployeeGetList",
msg, msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data; this.EmployeeList = res.data.data;
// let data = { // let data = {
// EmName: "不限", // EmName: "不限",
// EmployeeId: "0", // EmployeeId: "0",
// }; // };
// this.EmployeeList.unshift(data); // this.EmployeeList.unshift(data);
} else { } else {}
} },
}, (err) => {}
(err) => {} );
); },
},
handleClose(done) { handleClose(done) {
done(); done();
}, },
......
This diff is collapsed.
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