From ac207c8ecae2b9c83b3aedff1cd687383a4c5553 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Thu, 14 Mar 2024 11:29:06 +0800 Subject: [PATCH] add --- src/views/custom/index.vue | 41 ++------------- src/views/custom_contacts/edit.vue | 80 +++++++++++------------------- src/views/custom_service/index.vue | 7 +-- 3 files changed, 37 insertions(+), 91 deletions(-) diff --git a/src/views/custom/index.vue b/src/views/custom/index.vue index dddd223..06c10cb 100644 --- a/src/views/custom/index.vue +++ b/src/views/custom/index.vue @@ -101,54 +101,20 @@ import { usePaging } from '@/hooks/usePaging' import { useDictData } from '@/hooks/useDictOptions' import { apiCustomLists, apiCustomDelete, apiCustomDetail } from '@/api/custom' -import { timeFormat } from '@/utils/util' import feedback from '@/utils/feedback' import EditPopup from './edit.vue' import DetailPopup from './detail.vue' +import { useRoute } from 'vue-router' import { apiProvinceList, } from "@/api/common"; -import Statistics from '@/components/statistics/index.vue' const editRef = shallowRef>() const detailRef = shallowRef>() // 是否显示编辑框 const showEdit = ref(false) const showDtail = ref(false) -const list = reactive([ - { - name: "全部客户", - count: 1000, - }, - { - name: "公海客户", - count: 1000, - }, - { - name: "私有客户", - count: 1000, - }, - { - name: "今日新增", - count: 1000, - }, - { - name: "今日分配公海客户", - count: 1000, - }, +const route = useRoute() - { - name: "今日应联系", - count: 1000, - }, - { - name: "今日未联系", - count: 1000, - }, - { - name: "今日已联系", - count: 1000, - }, -]); // 查询条件 @@ -158,9 +124,12 @@ const queryParams = reactive({ master_phone: '', master_name: '', province: '', + year: route.query?.year || '' }) + + // 选中数据 const selectData = ref([]) diff --git a/src/views/custom_contacts/edit.vue b/src/views/custom_contacts/edit.vue index f5d6df6..c22876f 100644 --- a/src/views/custom_contacts/edit.vue +++ b/src/views/custom_contacts/edit.vue @@ -1,58 +1,36 @@ @@ -230,4 +232,3 @@ customlist() projectlist() getLists() -