Commit 49a20e2c authored by 沈良进's avatar 沈良进

save

parent 302cb1be
...@@ -4,11 +4,27 @@ ...@@ -4,11 +4,27 @@
<div class="tools-item"> <div class="tools-item">
<h1>每日引流统计</h1> <h1>每日引流统计</h1>
</div> </div>
<div style="width: 340px;"> <div class="row flex">
<div style="margin-right: 20px">
<el-date-picker v-model="msg.month" type="month" icon="el-icon-date" slot="append" class="input-with-select" <el-date-picker v-model="msg.month" type="month" icon="el-icon-date" slot="append" class="input-with-select"
@change="changeMonthHandler" placeholder="选择查询的月份"> @change="changeMonthHandler" placeholder="选择查询的月份">
</el-date-picker> </el-date-picker>
</div> </div>
<div>
<span class="font-size-12" style="padding-right: 10px"
>业务员</span
>
<!-- height: 40px; overflow: auto -->
<el-select style="width: 600px;" 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">
...@@ -158,6 +174,7 @@ export default { ...@@ -158,6 +174,7 @@ export default {
selfParams: { selfParams: {
queryTime: {}, queryTime: {},
}, },
EmployeeList: []
}; };
}, },
provide() { provide() {
...@@ -173,11 +190,39 @@ export default { ...@@ -173,11 +190,39 @@ export default {
}, },
mounted() { mounted() {
this.init(); this.init();
this.Employee()
}, },
methods: { methods: {
handleClose(done) { handleClose(done) {
done(); done();
}, },
// 获取业务员
Employee() {
let userInfo = this.getLocalStorage();
let msg = {
RB_Group_id: userInfo.RB_Group_id,
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
};
this.apipost2(
"admin_get_EmployeeGetList",
msg,
(res) => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
// let data = {
// EmName: "不限",
// EmployeeId: "0",
// };
// this.EmployeeList.unshift(data);
} else {
}
},
(err) => {}
);
},
// 查看详情 // 查看详情
seeDetails(row, type = 0, val = "0") { seeDetails(row, type = 0, val = "0") {
var d = new Date(); var d = new Date();
...@@ -252,6 +297,10 @@ export default { ...@@ -252,6 +297,10 @@ export default {
this.msg.MonthStr = val.getMonth() + 1; this.msg.MonthStr = val.getMonth() + 1;
this.init(); this.init();
}, },
changeEmployee() {
this.msg.QEmployeeIds =this.msg.QEmployeeIdsArr.join(',')
this.init();
},
handleCommand(command) { handleCommand(command) {
if (command == "1") { if (command == "1") {
this.downloadHandler(); this.downloadHandler();
...@@ -276,7 +325,9 @@ export default { ...@@ -276,7 +325,9 @@ export default {
<style> <style>
@import "../../assets/css/customerManage.css"; @import "../../assets/css/customerManage.css";
.flex {
display: flex;
}
.el-table__fixed-body-wrapper table { .el-table__fixed-body-wrapper table {
padding-bottom: 8px !important; padding-bottom: 8px !important;
} }
......
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