From 4b8f1e30a4856c38dc18ae81ea3c927b38c921f7 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 12 Mar 2025 17:21:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E4=BA=8C=E7=BB=B4=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/active/indexconfig/api.ts | 10 ++- .../indexconfig/component/AddButton.vue | 17 +++-- .../indexconfig/component/downloadQR.vue | 63 +++++++++++++++++++ 3 files changed, 83 insertions(+), 7 deletions(-) create mode 100644 src/views/user/active/indexconfig/component/downloadQR.vue diff --git a/src/views/user/active/indexconfig/api.ts b/src/views/user/active/indexconfig/api.ts index 3af6c5b..2981ba8 100644 --- a/src/views/user/active/indexconfig/api.ts +++ b/src/views/user/active/indexconfig/api.ts @@ -18,6 +18,14 @@ const AuthAPI = { params, }); }, + // 获取会员码 +getVipCode(data: any) { + return request({ + url: `${baseURL}/getVipCode`, + method: "post", + data: { ...data }, + }); +}, // 新增 add(data: any) { return request({ @@ -57,4 +65,4 @@ export interface Responseres { [property: string]: any; } -export default AuthAPI; \ No newline at end of file +export default AuthAPI; diff --git a/src/views/user/active/indexconfig/component/AddButton.vue b/src/views/user/active/indexconfig/component/AddButton.vue index 90eb9aa..d3869d2 100644 --- a/src/views/user/active/indexconfig/component/AddButton.vue +++ b/src/views/user/active/indexconfig/component/AddButton.vue @@ -1,19 +1,24 @@ \ No newline at end of file + diff --git a/src/views/user/active/indexconfig/component/downloadQR.vue b/src/views/user/active/indexconfig/component/downloadQR.vue new file mode 100644 index 0000000..11fb63a --- /dev/null +++ b/src/views/user/active/indexconfig/component/downloadQR.vue @@ -0,0 +1,63 @@ + + + From 0c1b74a06e2af43cdd7c8b7a02b6fbf4f4755c3f Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Thu, 13 Mar 2025 16:31:25 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E8=80=97?= =?UTF-8?q?=E6=9D=90=E7=AD=9B=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inventory/consumables/config/content.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/inventory/consumables/config/content.ts b/src/views/inventory/consumables/config/content.ts index dffe55f..44b65e0 100644 --- a/src/views/inventory/consumables/config/content.ts +++ b/src/views/inventory/consumables/config/content.ts @@ -13,7 +13,12 @@ const contentConfig: IContentConfig = { pageSizes: [10, 20, 30, 50], }, indexAction: function (params) { - return Api.getList(params); + let obj = { ...params } + if (obj.createAt) { + obj.beginTime = obj.createAt[0] + obj.endTime = obj.createAt[1] + } + return Api.getList(obj); }, // deleteAction: Api.delete, // modifyAction: function (data) {