Commit 50ef66d1 authored by zhengke's avatar zhengke

修改

parent d3db4bd6
...@@ -167,6 +167,32 @@ ...@@ -167,6 +167,32 @@
label="我下属的" label="我下属的"
/> />
</div> </div>
<div class="col-3">
<q-select
dense
clearable
filled
option-value="Id"
option-label="Name"
v-model="msg.CreateType"
:options="customFromList"
emit-value
map-options
label="客户来源"
/>
</div>
<div class="col-3">
<q-select filled v-model="msg.StuChannel" dense :options="StuChannelList" option-label="Name" option-value="Id" emit-value map-options use-input
@filter="filterStuChannel">
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -206,7 +232,11 @@ import { queryEmployee } from "../../api/users/user"; ...@@ -206,7 +232,11 @@ import { queryEmployee } from "../../api/users/user";
import { resetPassword } from "../../api/users/user.js"; import { resetPassword } from "../../api/users/user.js";
import stulist from "../../components/school/student/stulist"; import stulist from "../../components/school/student/stulist";
import { getMyCustomerList } from "../../api/sale/sale"; import {
getMyCustomerList,
CreateTypeList,
GetStuChannelList
} from "../../api/sale/sale";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
export default { export default {
meta: { meta: {
...@@ -238,7 +268,9 @@ export default { ...@@ -238,7 +268,9 @@ export default {
WechatNo: "", WechatNo: "",
StuType: "", StuType: "",
CreateIds: [], CreateIds: [],
ExistCourseConsultant: "" //是否存在课程顾问(1-存在,2=不存在) ExistCourseConsultant: "", //是否存在课程顾问(1-存在,2=不存在)
CreateType:'', //客户来源
StuChannel: "" //收客渠道
}, },
dateArray: [], //日期数组 dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
...@@ -279,7 +311,10 @@ export default { ...@@ -279,7 +311,10 @@ export default {
], ],
isJudgeTrans: 1, //用于判断转交是否有条件 isJudgeTrans: 1, //用于判断转交是否有条件
SubordList: [], //我的下属数据 SubordList: [], //我的下属数据
AllSubordList: [] AllSubordList: [],
customFromList: [], //客户来源
StuChannelList: [], //收客渠道
allStuChannelList: [], //所有收客渠道
}; };
}, },
created() { created() {
...@@ -292,12 +327,46 @@ export default { ...@@ -292,12 +327,46 @@ export default {
this.currentUrl = this.$route.path; this.currentUrl = this.$route.path;
this.getStudent(); this.getStudent();
this.getCustomerList(); this.getCustomerList();
this.getCustomFrom();
this.GetStuChannelList();
}, },
computed: { computed: {
...mapGetters(["userInfo"]) ...mapGetters(["userInfo"])
}, },
methods: { methods: {
//获取收客渠道
GetStuChannelList() {
GetStuChannelList({}).then(res => {
if (res.Code == 1) {
this.StuChannelList = res.Data;
this.allStuChannelList = res.Data;
}
});
},
//筛选渠道
filterStuChannel(val, update) {
update(() => {
if (val === "") {
this.StuChannelList = JSON.parse(
JSON.stringify(this.allStuChannelList)
);
} else {
const needle = val.toLowerCase();
this.StuChannelList = this.allStuChannelList.filter(
v => v.Name.toLowerCase().indexOf(needle) > -1
);
}
});
},
//获取客户来源
getCustomFrom() {
CreateTypeList({}).then(res => {
if (res.Code == 1) {
this.customFromList = res.Data;
}
});
},
//获取我下属的下拉数据 //获取我下属的下拉数据
GetSubordList() { GetSubordList() {
GetPersonalDimension().then(res => { GetPersonalDimension().then(res => {
......
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