Commit 1cee7e6a authored by zhengke's avatar zhengke

修改

parent a5b429ca
......@@ -57,6 +57,14 @@ class CustomerService {
data
})
}
//获取部门-员工下拉数据
static async getEmployeeData(data: any): Promise<HttpResponse> {
return Axios('/User/GetEmployeeAddrBook', {
method: 'post',
responseType: 'json',
data
})
}
}
export {CutomerParams}
......
......@@ -36,12 +36,20 @@ const CustomerModule = () => {
//调用获取下拉
const getWayList =(param:any)=>{
customer2.getWayList(param).then(res=>{
console.log(res,'下拉数据');
if(res.data.Code==1){
data.WayList = res.data.Data;
}
})
}
//获取员工数据
const getEmployeeData =(param:any)=>{
customer2.getEmployeeData(param).then(res=>{
console.log(res,'员工数据');
if(res.data.Code==1){
data.EmployeeList = res.data.Data;
}
})
}
const title = ref(StaticConfig.appsuffix)
//控制页显示条数
const pagination = reactive({
......@@ -70,7 +78,8 @@ const CustomerModule = () => {
],
selected:[],
dataList:[],
WayList:[]
WayList:[],
EmployeeList:[]
})
const msg = reactive({
PageIndex: 1,
......@@ -168,15 +177,12 @@ const CustomerModule = () => {
msg.CustomerMobile = SeletObj.selectVal;
}
}
const getSelectTime = () =>{
console.log(TimeObj,'TimeObj');
}
const changePage = (val:any) => {
msg.PageIndex = val;
getCustomerList(msg);
}
return { getCustomerList,getWayList,data,msg,title,TypeList,SeletObj,getSelectWay,TimeObj,TimeList,changePage,pagination,getSelectTime,
return { getCustomerList,getWayList,getEmployeeData,data,msg,title,TypeList,SeletObj,getSelectWay,TimeObj,TimeList,changePage,pagination,
CustomList,customSetObj,friendObj,friendOptions}
}
......
......@@ -6,14 +6,15 @@
<div class="col-3">
<q-input filled v-model="SeletObj.selectVal" label='请输入'>
<template #before>
<q-select filled style="width:120px;" @update:model-value="getSelectWay" option-value="Id" option-label="Name" v-model="SeletObj.selectWay"
:options="TypeList" emit-value map-options label="选择类型" />
<q-select filled style="width:120px;" @update:model-value="getSelectWay" option-value="Id"
option-label="Name" v-model="SeletObj.selectWay" :options="TypeList" emit-value map-options
label="选择类型" />
</template>
</q-input>
</div>
<div class="col-2">
<q-select filled @update:model-value="getSelectTime" option-value="Id" option-label="Name" v-model="TimeObj.timeWay"
:options="TimeList" emit-value map-options />
<q-select filled option-value="Id" option-label="Name"
v-model="TimeObj.timeWay" :options="TimeList" emit-value map-options />
</div>
<template v-if="TimeObj.timeWay==1">
<div class="col-2">
......@@ -81,28 +82,34 @@
</template>
<div class="col-2">
<q-select filled option-value="Id" option-label="Name" v-model="customSetObj.customWay"
:options="CustomList" emit-value map-options />
:options="CustomList" emit-value map-options />
</div>
<div class="col-2" v-if="customSetObj.customWay==1">
<q-select filled label="请选择" use-chips
option-value="Id" option-label="Name" :options="friendOptions" v-model="friendObj.frendArr" multiple />
<q-select filled label="请选择" use-chips option-value="Id" option-label="Name" :options="friendOptions"
v-model="friendObj.frendArr" multiple />
</div>
<div class="col-2" v-if="customSetObj.customWay==2">
<q-select filled label="请选择" use-chips
option-value="Id" option-label="Name" :options="data.WayList" v-model="friendObj.wayArr" multiple />
<q-select filled label="请选择" use-chips option-value="Id" option-label="Name" :options="data.WayList"
v-model="friendObj.wayArr" multiple />
</div>
<div class="col-2" v-if="customSetObj.customWay==3">
<q-input filled v-model="msg.Q_NotFollowUpDay" label='请输入天数'></q-input>
<q-input filled v-model="msg.Q_NotFollowUpDay" label='几天未跟进'></q-input>
</div>
<div class="col-2">
<!-- <q-tree class="col-12 col-sm-6"
:nodes="data.EmployeeList"
node-key="DeptName"
tick-strategy="leaf"
v-model:selected="selected"
/> -->
<!-- <selectTree :treeData='data.EmployeeList' nodeKey="newId" :multiple="false"
labelKey="DeptName" childrenKey="ChildList" tipText="选择部门/人员"></selectTree> -->
</div>
</div>
</div>
<div class="page-content" style="margin-top:20px;">
<q-table :rows="data.dataList"
:columns="data.columns"
class="my-sticky-header-column-table"
row-key="name"
v-model:pagination="pagination"
selection="multiple">
<q-table :rows="data.dataList" :columns="data.columns" class="my-sticky-header-column-table" row-key="name"
v-model:pagination="pagination" selection="multiple">
<template v-slot:body-cell-CustomerName="props">
<q-td auto-width :props="props">
<div class="cutomer_Header">
......@@ -132,42 +139,78 @@
export default defineComponent({
setup() {
let {
getCustomerList,getWayList,data,msg,title,TypeList,SeletObj,getSelectWay,TimeObj,TimeList,changePage,pagination,getSelectTime,
CustomList,customSetObj,friendObj,friendOptions
getCustomerList,
getWayList,
data,
msg,
title,
TypeList,
SeletObj,
getSelectWay,
TimeObj,
TimeList,
changePage,
pagination,
CustomList,
customSetObj,
friendObj,
friendOptions,
getEmployeeData
} = CustomerModule()
onMounted(()=>{
onMounted(() => {
getCustomerList(msg)
getWayList({})
getEmployeeData({})
})
return {
getCustomerList,getWayList,data,msg,title,TypeList,SeletObj,getSelectWay,TimeObj,TimeList,changePage,pagination,getSelectTime,
CustomList,customSetObj,friendObj,friendOptions
getCustomerList,
getWayList,
data,
msg,
title,
TypeList,
SeletObj,
getSelectWay,
TimeObj,
TimeList,
changePage,
pagination,
CustomList,
customSetObj,
friendObj,
friendOptions,
getEmployeeData
}
}
})
</script>
<style lang="scss">
.customer .q-field__before{
padding-right:0!important;
.customer .q-field__before {
padding-right: 0 !important;
}
</style>
<style lang="scss" scoped>
.cutomer_Header{
display:flex;
.cutomer_Header {
display: flex;
}
.customer_Img{
width:40px;
height:40px;
.customer_Img {
width: 40px;
height: 40px;
border-radius: 5px;
overflow: hidden;
margin-right:14px;
margin-right: 14px;
}
.cutomer_Free{
color:#3470ff;
font-size:14px;
.cutomer_Free {
color: #3470ff;
font-size: 14px;
}
.customer_Wechat{
color:#9999a8;
.customer_Wechat {
color: #9999a8;
}
</style>
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