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

页面修改

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