From 2d6ea51e0032bd996d540add707da25973b9e259 Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Fri, 9 Jun 2023 21:07:17 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=88=9D=E5=A7=8B=E5=8C=96=E5=BA=97?= =?UTF-8?q?=E9=93=BA=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/ShopManager/Shops/shop.js | 54 ++++ .../Shops/components/AddDialog.vue | 175 ++++++++++ .../Shops/components/DetailDialog.vue | 148 +++++++++ .../Shops/components/EditDialog.vue | 196 ++++++++++++ .../business/ShopManager/Shops/index.vue | 302 ++++++++++++++++++ 5 files changed, 875 insertions(+) create mode 100644 src/api/business/ShopManager/Shops/shop.js create mode 100644 src/views/business/ShopManager/Shops/components/AddDialog.vue create mode 100644 src/views/business/ShopManager/Shops/components/DetailDialog.vue create mode 100644 src/views/business/ShopManager/Shops/components/EditDialog.vue create mode 100644 src/views/business/ShopManager/Shops/index.vue diff --git a/src/api/business/ShopManager/Shops/shop.js b/src/api/business/ShopManager/Shops/shop.js new file mode 100644 index 0000000..4fb64ae --- /dev/null +++ b/src/api/business/ShopManager/Shops/shop.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +/** + * @Descripttion: 店铺Api接口 + * @version: (1.0) + * @Author: (黎文豪) + * @Date: (2023-06-09) + * @LastEditors: (黎文豪) + * @LastEditTime: (2023-06-09) +*/ + +// 店铺分页查询列表 +export function shopList(query) { + return request({ + url: '/business/Shop/getShopList', + method: 'get', + params: query + }) +} + +// 店铺新增或修改 +export function addOrUpdateShop(data) { + return request({ + url: '/business/Shop/addOrUpdateShop', + method: 'post', + data: data, + }) +} + +// 店铺删除 +export function delShop(ids) { + return request({ + url: '/business/Shop/'+ ids, + method: 'delete' + }) +} + +// 店铺导出 +export function exportShop(query) { + return request({ + url: 'business/Shop/exportShop', + method: 'get', + params: query + }) +} + +// 店铺审核 +export function audit(data) { + return request({ + url: 'business/Shop/audit', + method: 'put', + data: data + }) +} diff --git a/src/views/business/ShopManager/Shops/components/AddDialog.vue b/src/views/business/ShopManager/Shops/components/AddDialog.vue new file mode 100644 index 0000000..0f8dd94 --- /dev/null +++ b/src/views/business/ShopManager/Shops/components/AddDialog.vue @@ -0,0 +1,175 @@ + + + + + \ No newline at end of file diff --git a/src/views/business/ShopManager/Shops/components/DetailDialog.vue b/src/views/business/ShopManager/Shops/components/DetailDialog.vue new file mode 100644 index 0000000..f1d941b --- /dev/null +++ b/src/views/business/ShopManager/Shops/components/DetailDialog.vue @@ -0,0 +1,148 @@ + + + + diff --git a/src/views/business/ShopManager/Shops/components/EditDialog.vue b/src/views/business/ShopManager/Shops/components/EditDialog.vue new file mode 100644 index 0000000..1866c1c --- /dev/null +++ b/src/views/business/ShopManager/Shops/components/EditDialog.vue @@ -0,0 +1,196 @@ + + + + diff --git a/src/views/business/ShopManager/Shops/index.vue b/src/views/business/ShopManager/Shops/index.vue new file mode 100644 index 0000000..84bca4e --- /dev/null +++ b/src/views/business/ShopManager/Shops/index.vue @@ -0,0 +1,302 @@ + + +