From f80bb62e6f919657dae66506cbcc152c517373ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=8A=E9=92=8A?= <13512071256@163.com> Date: Tue, 17 Dec 2024 19:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A0=87=E7=AD=BE=E7=AD=9B?= =?UTF-8?q?=E9=80=89=E5=8F=8A=E7=AC=94=E8=AE=B0=E8=AF=A6=E6=83=85=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/article/index.ts | 13 ++++ src/api/manage/article/types.ts | 6 +- src/components/noteList/index.vue | 104 +++++++++++++++++++++++++----- src/views/manage/scenic/index.vue | 70 ++++++++++++++------ 4 files changed, 157 insertions(+), 36 deletions(-) diff --git a/src/api/manage/article/index.ts b/src/api/manage/article/index.ts index 58d82bc..d366540 100644 --- a/src/api/manage/article/index.ts +++ b/src/api/manage/article/index.ts @@ -68,3 +68,16 @@ export const geocoder = (address: string) => { method: 'get' }); }; + +/** + * + * @param query 根据标签查询相关笔记 + * @returns + */ +export const listByTagIdNotebook = (query: any): AxiosPromise => { + return request({ + url: '/manage/notebook/listByTagId', + method: 'get', + params: query + }); +}; diff --git a/src/api/manage/article/types.ts b/src/api/manage/article/types.ts index ed6b34a..8cc4a20 100644 --- a/src/api/manage/article/types.ts +++ b/src/api/manage/article/types.ts @@ -5,7 +5,7 @@ export interface ArticleVO { * 景点ID/租赁ID/游艇ID */ id: string | number; - + tagId_copy: string[] | number[]; /** * */ @@ -94,7 +94,8 @@ export interface ArticleVO { export interface ArticleForm extends BaseEntity { icon?: string; - regionCode?: string; + region?: string; + tagId_copy: string[] | number[]; /** * 景点名称 商家名称 */ @@ -202,6 +203,7 @@ export interface ArticleQuery extends PageQuery { */ type?: string; name?: string; + tagId_copy: string[] | number[]; /** * 二级类别(未定) */ diff --git a/src/components/noteList/index.vue b/src/components/noteList/index.vue index d2017f8..b4d6a93 100644 --- a/src/components/noteList/index.vue +++ b/src/components/noteList/index.vue @@ -1,21 +1,38 @@ diff --git a/src/views/manage/scenic/index.vue b/src/views/manage/scenic/index.vue index b5d183a..0ac17bd 100644 --- a/src/views/manage/scenic/index.vue +++ b/src/views/manage/scenic/index.vue @@ -37,8 +37,7 @@ - - + @@ -109,8 +108,16 @@ 11{{ scope.row.noteNumber }} - - + + + + + + - - + +