diff --git a/src/views/crm/backlog/tables/FollowCustomer.vue b/src/views/crm/backlog/tables/FollowCustomer.vue index 5d98c04d..72cfaced 100644 --- a/src/views/crm/backlog/tables/FollowCustomer.vue +++ b/src/views/crm/backlog/tables/FollowCustomer.vue @@ -1,15 +1,162 @@ - +const { push } = useRouter() + +const FOLLOWUP_STATUS = [ + { label: '已跟进', value: true }, + { label: '待跟进', value: false } +] + +const loading = ref(true) // 列表的加载中 +const total = ref(0) // 列表的总页数 +const list = ref([]) // 列表的数据 +const queryParams = ref({ + pageNo: 1, + pageSize: 10, + followUpStatus: false, + sceneType: 1 +}) +const queryFormRef = ref() // 搜索的表单 + +/** 查询列表 */ +const getList = async () => { + loading.value = true + try { + const data = await CustomerApi.getCustomerPage(queryParams.value) + list.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} - + diff --git a/src/views/crm/backlog/tables/FollowLeads.vue b/src/views/crm/backlog/tables/FollowLeads.vue index afb09bcc..9fa9aa5e 100644 --- a/src/views/crm/backlog/tables/FollowLeads.vue +++ b/src/views/crm/backlog/tables/FollowLeads.vue @@ -1,15 +1,127 @@ - - + +const FOLLOWUP_STATUS = [ + { label: '已跟进', value: true }, + { label: '待跟进', value: false } +] + +const loading = ref(true) // 列表的加载中 +const total = ref(0) // 列表的总页数 +const list = ref([]) // 列表的数据 +const queryParams = reactive({ + pageNo: 1, + pageSize: 10, + followUpStatus: false +}) +const queryFormRef = ref() // 搜索的表单 + +/** 查询列表 */ +const getList = async () => { + loading.value = true + try { + const data = await ClueApi.getCluePage(queryParams) + list.value = data.list + total.value = data.total + } finally { + loading.value = false + } +} - +