From cae5ba5cd5140c26f796d6e11949094a85a028fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=8A=E9=92=8A?= <13512071256@163.com> Date: Tue, 24 Dec 2024 16:06:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=95=86=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3=E5=8F=8A=E4=BC=98=E5=8C=96=E5=A4=9A?= =?UTF-8?q?=E5=A4=84=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/manage/product/index.ts | 11 +++ src/api/manage/scenic/types.ts | 1 + src/components/noteList/index.vue | 18 +++-- src/types/global.d.ts | 1 + src/views/manage/articleManage/index.vue | 29 ++++---- src/views/manage/dyUser/index.vue | 61 ++++++++++++---- src/views/manage/mkConfig/index.vue | 82 ++++++++++++++-------- src/views/manage/mkPostcard/index.vue | 33 ++++++--- src/views/manage/orders/index.vue | 7 +- src/views/manage/product/index.vue | 3 +- src/views/manage/productCategory/index.vue | 2 +- src/views/manage/scenic/index.vue | 44 ++++++------ src/views/manage/userLevel/index.vue | 5 +- src/views/manage/vendor/index.vue | 2 +- 14 files changed, 193 insertions(+), 106 deletions(-) diff --git a/src/api/manage/product/index.ts b/src/api/manage/product/index.ts index 6d4f5fe..dcc28a3 100644 --- a/src/api/manage/product/index.ts +++ b/src/api/manage/product/index.ts @@ -61,3 +61,14 @@ export const delProduct = (id: string | number | Array) => { method: 'delete' }); }; + +/** + * 获取所有商品列表,用于表单下拉选择 + * @returns + */ +export const productAll = () => { + return request({ + url: '/manage/product/all', + method: 'get' + }); +}; diff --git a/src/api/manage/scenic/types.ts b/src/api/manage/scenic/types.ts index 03c4f2d..839d5d9 100644 --- a/src/api/manage/scenic/types.ts +++ b/src/api/manage/scenic/types.ts @@ -4,6 +4,7 @@ export interface ArticleVO { /** * 景点ID/租赁ID/游艇ID */ + name: string; id: string | number; tagId_copy: string[] | number[]; region?: string; diff --git a/src/components/noteList/index.vue b/src/components/noteList/index.vue index 662a28c..9da223c 100644 --- a/src/components/noteList/index.vue +++ b/src/components/noteList/index.vue @@ -1,7 +1,7 @@