Commit 4b739bf8 authored by 黄奎's avatar 黄奎

页面修改

parent 90edd4c3
...@@ -15,16 +15,16 @@ ...@@ -15,16 +15,16 @@
<q-input @input="resetSearch" dense clearable filled v-model="msg.WechatNo" label="微信号" maxlength="20" /> <q-input @input="resetSearch" dense clearable filled v-model="msg.WechatNo" label="微信号" maxlength="20" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.StuType" dense clearable :options="customTypeList" option-label="Name" <q-select @input="resetSearch" filled v-model="msg.StuType" dense clearable :options="customTypeList"
option-value="Id" emit-value map-options label="客户类型" /> option-label="Name" option-value="Id" emit-value map-options label="客户类型" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" dense filled v-model="msg.StuStage" :options="customState" option-label="Name" <q-select @input="resetSearch" dense filled v-model="msg.StuStage" :options="customState" option-label="Name"
option-value="Id" emit-value map-options label="客户状态" clearable /> option-value="Id" emit-value map-options label="客户状态" clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" dense v-model="msg.CustomerId" :options="myCustomerList" filled use-input label="同行" <q-select @input="resetSearch" dense v-model="msg.CustomerId" :options="myCustomerList" filled use-input
option-label="CustomerName" option-value="CustomerId" ref="CustomerName" class="col-6" emit-value label="同行" option-label="CustomerName" option-value="CustomerId" ref="CustomerName" class="col-6" emit-value
map-options @filter="cusfilterFn"> map-options @filter="cusfilterFn">
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <q-item>
...@@ -36,21 +36,29 @@ ...@@ -36,21 +36,29 @@
</q-select> </q-select>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetBelong" dense filled option-value="Id" option-label="Name" <q-select @input="resetBelong" dense filled option-value="Id" option-label="Name" v-model="msg.BelongType"
v-model="msg.BelongType" :options="BelongTypeList" emit-value map-options label="归属类型" /> :options="BelongTypeList" emit-value map-options label="归属类型" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled dense> <q-field filled dense>
<template v-slot:control> <template v-slot:control>
<el-date-picker v-model="dateArray" size="mini" @change="resetSearch" value-format="yyyy-MM-dd" type="daterange" <el-date-picker v-model="dateArray" size="mini" @change="resetSearch" value-format="yyyy-MM-dd"
style="border:none;" range-separator="至" start-placeholder="开始时间" end-placeholder="结束时间" /> type="daterange" style="border:none;" range-separator="至" start-placeholder="开始时间"
end-placeholder="结束时间" />
</template> </template>
</q-field> </q-field>
</div>
<div class="col-3" >
<q-select @input="resetSearch" dense filled clearable use-input option-value="Id"
option-label="Name" v-model="msg.ExistCourseConsultant" :options="consultantList" emit-value map-options
label="是否存在课程顾问" />
</div> </div>
<div class="col-3" v-if="msg.BelongType==4"> <div class="col-3" v-if="msg.BelongType==4">
<q-select @input="resetSearch" dense clearable @filter="filterSubord" use-input filled option-value="Id" option-label="EmployeeName" <q-select @input="resetSearch" dense clearable @filter="filterSubord" use-input filled option-value="Id"
v-model="msg.CreateIds" multiple :options="SubordList" emit-value map-options label="我下属的" /> option-label="EmployeeName" v-model="msg.CreateIds" multiple :options="SubordList" emit-value map-options
label="我下属的" />
</div> </div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -84,7 +92,9 @@ ...@@ -84,7 +92,9 @@
import { import {
getMyCustomerList getMyCustomerList
} from "../../api/sale/sale"; } from "../../api/sale/sale";
import { mapGetters } from "vuex"; import {
mapGetters
} from "vuex";
export default { export default {
meta: { meta: {
title: "客户管理" title: "客户管理"
...@@ -111,10 +121,11 @@ ...@@ -111,10 +121,11 @@
StartTime: "", //开始时间 StartTime: "", //开始时间
EndTime: "", //结束时间 EndTime: "", //结束时间
CustomerId: 0, CustomerId: 0,
QQ:'', QQ: '',
WechatNo:'', WechatNo: '',
StuType:'', StuType: '',
CreateIds:[] CreateIds: [],
ExistCourseConsultant:"",//是否存在课程顾问(1-存在,2=不存在)
}, },
dateArray: [], //日期数组 dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
...@@ -141,9 +152,19 @@ ...@@ -141,9 +152,19 @@
Name: "我下属的" Name: "我下属的"
} }
], ],
isJudgeTrans:1, //用于判断转交是否有条件 //课程顾问
SubordList:[], //我的下属数据 consultantList: [{
AllSubordList:[] Id: 1,
Name: "是"
},
{
Id: 2,
Name: "否"
},
],
isJudgeTrans: 1, //用于判断转交是否有条件
SubordList: [], //我的下属数据
AllSubordList: []
}; };
}, },
created() { created() {
...@@ -163,9 +184,9 @@ ...@@ -163,9 +184,9 @@
methods: { methods: {
//获取我下属的下拉数据 //获取我下属的下拉数据
GetSubordList(){ GetSubordList() {
GetPersonalDimension().then(res => { GetPersonalDimension().then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.SubordList = res.Data; this.SubordList = res.Data;
this.AllSubordList = res.Data; this.AllSubordList = res.Data;
} }
...@@ -186,7 +207,7 @@ ...@@ -186,7 +207,7 @@
}); });
}, },
//获取客户类型 //获取客户类型
getCustomTypeList(){ getCustomTypeList() {
GetStudentTypeList().then(res => { GetStudentTypeList().then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.customTypeList = res.Data; this.customTypeList = res.Data;
...@@ -197,8 +218,8 @@ ...@@ -197,8 +218,8 @@
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getStudent(); this.getStudent();
}, },
resetBelong(){ resetBelong() {
if(this.msg.BelongType!=4){ if (this.msg.BelongType != 4) {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getStudent(); this.getStudent();
} }
...@@ -226,11 +247,11 @@ ...@@ -226,11 +247,11 @@
this.loading = false; this.loading = false;
this.data = res.Data.PageData; this.data = res.Data.PageData;
this.pageCount = res.Data.PageCount; this.pageCount = res.Data.PageCount;
this.data.forEach(x=>{ this.data.forEach(x => {
if(x.CreateBy!=this.userInfo.Id){ if (x.CreateBy != this.userInfo.Id) {
x.BelongType=3 x.BelongType = 3
}else{ } else {
x.BelongType=1 x.BelongType = 1
} }
}) })
}) })
...@@ -272,8 +293,9 @@ ...@@ -272,8 +293,9 @@
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
<style scoped> <style scoped>
/deep/.el-input__inner, /deep/.el-range-input { /deep/.el-input__inner,
/deep/.el-range-input {
background-color: transparent; background-color: transparent;
border: none; border: none;
} }
</style> </style>
\ No newline at end of file
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