From 84183cb2171cc29af1128bd5cae1375e6c7afb14 Mon Sep 17 00:00:00 2001 From: lwh <2679599887@qq.com> Date: Thu, 15 Jun 2023 15:16:19 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=AE=A1=E6=A0=B8=E5=90=8E=E5=88=86=E5=8F=91?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=EF=BC=8C=E5=90=8E=E5=8F=B0=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/api/business/ShopManager/Shops/shop.js | 2 + .../ShopManager/Shops/shopOperator.js | 28 +++++ src/api/system/user.js | 2 +- src/views/business/Custom/Customers/index.vue | 15 ++- .../ShopManager/ShopOperator/index.vue | 103 ++++++++++++++++++ .../business/ShopManager/Shops/index.vue | 7 +- src/views/system/user/index.vue | 1 + 8 files changed, 156 insertions(+), 4 deletions(-) create mode 100644 src/api/business/ShopManager/Shops/shopOperator.js create mode 100644 src/views/business/ShopManager/ShopOperator/index.vue diff --git a/.env.development b/.env.development index 5729747..488868c 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 开发环境配置 ENV = 'development' -VITE_APP_API_HOST = 'http://192.168.1.102:8888' +VITE_APP_API_HOST = 'http://localhost:8888' # 开发环境 VITE_APP_BASE_API = '/dev-api' diff --git a/src/api/business/ShopManager/Shops/shop.js b/src/api/business/ShopManager/Shops/shop.js index d4ad10c..8a305fa 100644 --- a/src/api/business/ShopManager/Shops/shop.js +++ b/src/api/business/ShopManager/Shops/shop.js @@ -79,3 +79,5 @@ export function audit(data) { data: data }) } + + diff --git a/src/api/business/ShopManager/Shops/shopOperator.js b/src/api/business/ShopManager/Shops/shopOperator.js new file mode 100644 index 0000000..7f38514 --- /dev/null +++ b/src/api/business/ShopManager/Shops/shopOperator.js @@ -0,0 +1,28 @@ +import request from '@/utils/request' + +/** + * @Descripttion: 店详情Api接口 + * @version: (1.0) + * @Author: (黎文豪) + * @Date: (2023-06-15) + * @LastEditors: (黎文豪) + * @LastEditTime: (2023-06-15) +*/ + +// 获取商户店铺详情 +export function getShopOperatorDetail(query) { + return request({ + url: '/business/Shop/getShopOperatorDetail', + method: 'get', + params: query + }) +} + +// 编辑店铺详情 +export function editShopOperatorDetail(data) { + return request({ + url: '/business/Shop/editShopOperatorDetail', + method: 'post', + data: data, + }) +} \ No newline at end of file diff --git a/src/api/system/user.js b/src/api/system/user.js index c660261..916cc5c 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -22,7 +22,7 @@ export function getUser(userId) { // 新增用户 export function addUser(data) { return request({ - url: '/system/user/edit', + url: '/system/user/add', method: 'post', data: data }) diff --git a/src/views/business/Custom/Customers/index.vue b/src/views/business/Custom/Customers/index.vue index 3f69141..f4e24f4 100644 --- a/src/views/business/Custom/Customers/index.vue +++ b/src/views/business/Custom/Customers/index.vue @@ -66,6 +66,11 @@ + + +