Commit 44facacf authored by 罗超's avatar 罗超

1

parent 7acd2fc8
...@@ -23,7 +23,7 @@ interface ClueParams { ...@@ -23,7 +23,7 @@ interface ClueParams {
} }
class clueService { class clueService {
// 获取客户线索规则列表 // 获取客户线索规则列表
static async getCustomerClueRuleList(data: ClueParams): Promise<HttpResponse> { static async getCustomerClueList(data: ClueParams): Promise<HttpResponse> {
return Axios('/QYCustomer/GetCustomerCluePageList', { return Axios('/QYCustomer/GetCustomerCluePageList', {
method: 'post', method: 'post',
responseType: 'json', responseType: 'json',
......
...@@ -58,13 +58,33 @@ const ClueModule = () => { ...@@ -58,13 +58,33 @@ const ClueModule = () => {
EmployeeList: [], EmployeeList: [],
rowsPerPage: 0 rowsPerPage: 0
}) })
const TypeList = reactive([
{
Name: '企业',
Id: 0
},
{
Name: '昵称',
Id: 1
},
{
Name: '备注名',
Id: 2
},
{
Name: '电话',
Id: 3
}
])
//获取线索列表 //获取线索列表
const getCluerList = (param: ClueParams) => { const getCluerList = (param: ClueParams) => {
clueService.getCustomerClueRuleList(param).then(res => { clueService.getCustomerClueList(param).then(res => {
console.log(res, '数据') console.log(res, '数据')
data.dataList = res.data.Data.PageData
msg.pageCount = res.data.Data.PageCount
}) })
} }
return { useTab, msg,data, getCluerList } return { useTab, msg, data, getCluerList, TypeList }
} }
export default ClueModule export default ClueModule
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
<q-tabs <q-tabs
v-model="tab" v-model="tab"
dense dense
class="text-grey" class="text-grey q-mb-md"
align="left" align="left"
active-color="primary" active-color="primary"
indicator-color="primary" indicator-color="primary"
narrow-indicator narrow-indicator
> >
<q-tab name="1" label="业务模式" /> <q-tab :name="1" label="未处理" />
<q-tab name="2" label="客户字段" /> <q-tab :name="2" label="待回访" />
<q-tab name="3" label="标签" /> <q-tab :name="3" label="无效线索" />
<q-tab name="4" label="线索分配规则" /> <q-tab :name="4" label="已转客户" />
</q-tabs> </q-tabs>
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
:options="TimeList" emit-value map-options /> :options="TimeList" emit-value map-options />
<q-date v-model="days" multiple /> --> <q-date v-model="days" multiple /> -->
</div> </div>
<div class="col-3">
<a-date-picker v-model:value="value1" />
</div>
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -37,11 +40,10 @@ ...@@ -37,11 +40,10 @@
:columns="data.columns" :columns="data.columns"
class="my-sticky-header-column-table" class="my-sticky-header-column-table"
row-key="name" row-key="name"
v-model:pagination="data.pagination"
selection="multiple"> selection="multiple">
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.PageIndex" color="primary" :max="msg.pageCount" <q-pagination class="full-width justify-end" v-model="msg.PageIndex" color="primary" :max="msg.pageCount"
:input="true" @input="changePage" /> :input="true" />
</template> </template>
</q-table> </q-table>
</div> </div>
...@@ -49,13 +51,13 @@ ...@@ -49,13 +51,13 @@
</div> </div>
</template> </template>
<script lang='ts'> <script lang='ts'>
import {defineComponent,onMounted} from 'vue' import {defineComponent,ref,onMounted} from 'vue'
import ClueModule from '@/module/customer/clueModule' import ClueModule from '@/module/customer/clueModule'
export default defineComponent({ export default defineComponent({
setup() { setup() {
let { let {
useTab, getCluerList,msg,data useTab, getCluerList,msg,data,TypeList
} = ClueModule() } = ClueModule()
let [ tab ,setTab]=useTab() let [ tab ,setTab]=useTab()
onMounted(()=>{ onMounted(()=>{
...@@ -63,7 +65,7 @@ ...@@ -63,7 +65,7 @@
}) })
return { return {
tab,setTab,msg, getCluerList,data tab,setTab,msg, getCluerList,data,TypeList,value1:ref("")
} }
} }
}) })
......
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