From 0e8fb5c838f1989d5dfb7f4153a67e43b9c713d7 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Fri, 5 Sep 2025 21:43:22 +0800 Subject: [PATCH 01/11] =?UTF-8?q?refactor:=20=E6=B7=BB=E5=8A=A0=E5=9B=BD?= =?UTF-8?q?=E5=A4=96=E9=A1=B5=E9=9D=A2=E6=9F=A5=E8=AF=A2=E5=AD=97=E6=AE=B5?= =?UTF-8?q?isDomestic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/foreign/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pages/foreign/index.vue b/pages/foreign/index.vue index 47fc700..ba97ecb 100644 --- a/pages/foreign/index.vue +++ b/pages/foreign/index.vue @@ -35,13 +35,19 @@ import { page } from '~/api/upnew/index' import type { pageRes, pageReq } from '~/api/upnew/types' - const query = reactive({ + const query = reactive< + pageReq & { + isDomestic: number + } + >({ pageNo: 1, pageSize: 10, projectType: '-1', editions: '-1', source: -1, type: 1, + /**是否是国内: 1是 0否 */ + isDomestic: 1, }) // const result = reactive({ // list: [], From d24ece1724073285cd0608c1277e83bfe60822ea Mon Sep 17 00:00:00 2001 From: wangqiao Date: Fri, 5 Sep 2025 21:47:20 +0800 Subject: [PATCH 02/11] =?UTF-8?q?refactor:=20=E8=B0=83=E6=95=B4=E5=88=86?= =?UTF-8?q?=E9=A1=B5=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/toolbox/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/toolbox/index.vue b/pages/toolbox/index.vue index ed7e1ae..f58fa72 100644 --- a/pages/toolbox/index.vue +++ b/pages/toolbox/index.vue @@ -37,11 +37,11 @@ -
+
Date: Fri, 5 Sep 2025 22:06:29 +0800 Subject: [PATCH 03/11] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E7=AE=B1=E5=88=86=E9=A1=B5=E5=92=8C=E6=8E=A8=E8=8D=90?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/toolbox/index.vue | 40 ++++++++++++++++++++++------------------ 1 file changed, 22 insertions(+), 18 deletions(-) diff --git a/pages/toolbox/index.vue b/pages/toolbox/index.vue index f58fa72..1184e99 100644 --- a/pages/toolbox/index.vue +++ b/pages/toolbox/index.vue @@ -37,18 +37,16 @@
-
- -
+
@@ -115,10 +113,16 @@ // total: 0, // }) - const {data: pageRes, refresh: getPage } = await useAsyncData(`draw-page-list-${Date.now()}`, async () => { - const res = await page(pageReq) - return res.data - }) + const { data: pageRes, refresh: getPage } = await useAsyncData( + `draw-page-toobox-list`, + async () => { + const res = await page(pageReq) + return res.data + }, + { + immediate: true, + } + ) const loading = ref(false) // const getPage = () => { @@ -153,13 +157,13 @@ getPage() } - const {data: recommendList} = await useAsyncData(`draw-recommend-list-${Date.now()}`, async () => { + const { data: recommendList } = await useAsyncData(`draw-recommend-list-getRelationRecommend`, async () => { const res = await getRelationRecommend({ type: 4, }) return res.data }) - + // 猜你喜欢 // const recommendList = ref([]) // 猜你喜欢数据 // const getRelationRecommendList = () => { From b7d6b37e8795910ec81b6a0b1656133d9af3cc97 Mon Sep 17 00:00:00 2001 From: wangqiao Date: Sat, 6 Sep 2025 18:39:16 +0800 Subject: [PATCH 04/11] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E8=A1=A8=E5=8D=95=E7=BB=84=E4=BB=B6=E5=92=8C=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/upnew/index.ts | 4 +- api/upnew/types.ts | 4 +- pages/upnew/components/DrawForm.vue | 77 +++++++++++++++------------- pages/upnew/components/DrawType.vue | 79 ++++++++++++----------------- pages/upnew/components/Preview.vue | 20 ++++---- pages/upnew/index.vue | 10 ++-- 6 files changed, 92 insertions(+), 102 deletions(-) diff --git a/api/upnew/index.ts b/api/upnew/index.ts index d339297..fa155ab 100644 --- a/api/upnew/index.ts +++ b/api/upnew/index.ts @@ -16,7 +16,7 @@ export const create = (params: TcreateReq) => { * @returns */ export const parent = (params: { type: string | number; parentId: number | string }) => { - return useFetchRequest.get>('/prod-api/app-api/business/app/dict/parent', { query: params }) + return useDollarFetchRequest.get>('/prod-api/app-api/business/app/dict/parent', { query: params }) } /** * 获取具有上下级的字典信息 @@ -32,7 +32,7 @@ export const parentV2 = (params: { type: string | number; parentId: number | str * @returns */ export const indexTabs = () => { - return useFetchRequest.get>('/prod-api/app-api/business/project/index/index-tab3') + return useDollarFetchRequest.get>('/prod-api/app-api/business/project/index/index-tab3') } /** * 模糊查询获取标签内容 diff --git a/api/upnew/types.ts b/api/upnew/types.ts index 9f077b6..8e60383 100644 --- a/api/upnew/types.ts +++ b/api/upnew/types.ts @@ -10,9 +10,9 @@ export interface FileItem { // 定义整个 JSON 对象的类型 export interface TcreateReq { - activeName: string + activeName: string | number id: number | string - type: any[] + type: number isDomestic: number | string province: string // 省份编码 city: string // 城市编码 diff --git a/pages/upnew/components/DrawForm.vue b/pages/upnew/components/DrawForm.vue index c978df5..3cd88de 100644 --- a/pages/upnew/components/DrawForm.vue +++ b/pages/upnew/components/DrawForm.vue @@ -1,6 +1,6 @@ @@ -216,7 +218,7 @@ formatTypeList.value = res.data }) } - getFormatTypeList() + // getFormatTypeList() const projectTypeList = ref([]) /** 获取分类下拉框 */ @@ -225,7 +227,6 @@ projectTypeList.value = res.data }) } - getParent() /** 版本 */ const editionsList = ref([]) @@ -237,11 +238,15 @@ editionsList.value = res.data }) } - getEditionsList() const handlePreview = (val: any) => { emit('preview', val) } + + onMounted(() => { + getEditionsList() + getParent() + })