diff --git a/src/api/data.ts b/src/api/data.ts index f1a05af..2fe75de 100644 --- a/src/api/data.ts +++ b/src/api/data.ts @@ -13,4 +13,8 @@ export function getsourcelist(query: any) { } export function getCategoryHeaderlist(query: any) { return request.get({ url: '/data/listForCategoryHeader',query }) +} + +export function getSourceHeaderlist(query: any) { + return request.get({ url: '/data/listForSourceHeader',query }) } \ No newline at end of file diff --git a/src/views/data/source.vue b/src/views/data/source.vue index 81c4178..8910b04 100644 --- a/src/views/data/source.vue +++ b/src/views/data/source.vue @@ -49,35 +49,24 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
@@ -96,7 +85,7 @@ import { useDictData } from "@/hooks/useDictOptions"; import useMailStore from "@/stores/modules/mail"; import { ref, reactive, watchEffect } from "vue"; -import { getsourcelist} from '@/api/data' +import { getsourcelist,getSourceHeaderlist} from '@/api/data' import { useDictOptions } from '@/hooks/useDictOptions' import { deptEasyLists,listSecond } from '@/api/org/department' import { getToken } from '@/utils/auth' @@ -151,7 +140,7 @@ const totalSize = reactive({ }) const statistics = ref([]); - +const columns = ref([]); const handleMailTimeQuery = (val: any) => { if (val) { query.value.searchStartTime = val[0]; @@ -167,11 +156,15 @@ const handleMailTimeQuery = (val: any) => { function getList() { + getSourceHeaderlist(query.value).then((data) => { + columns.value = data; + }); getsourcelist(query.value).then((data) => { statistics.value = data.records; totalSize.total = data.total; totalSize.pages = data.pages; }); + } function reset() {