From 907b2b7582fdc8a85e5f3d6cf49a3c85553de231 Mon Sep 17 00:00:00 2001 From: TianYu <332368756@qq.com> Date: Wed, 17 May 2023 14:37:27 +0800 Subject: [PATCH 1/7] =?UTF-8?q?feat:=20=E8=BD=AE=E6=92=AD=E5=9B=BE?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.dev | 2 +- yudao-ui-admin/src/api/mall/market/banner.js | 4 +- yudao-ui-admin/src/api/system/tenant.js | 9 ++ .../src/views/mall/market/banner/index.vue | 60 ++------- .../src/views/system/tenant/bannerSetting.vue | 13 ++ .../views/system/tenant/commissionSetting.vue | 117 ++++++++++++++++++ .../src/views/system/tenant/index.vue | 74 ++++++++++- .../src/views/system/tenant/noticeSetting.vue | 81 ++++++++++++ 8 files changed, 303 insertions(+), 57 deletions(-) create mode 100644 yudao-ui-admin/src/views/system/tenant/bannerSetting.vue create mode 100644 yudao-ui-admin/src/views/system/tenant/commissionSetting.vue create mode 100644 yudao-ui-admin/src/views/system/tenant/noticeSetting.vue diff --git a/yudao-ui-admin/.env.dev b/yudao-ui-admin/.env.dev index a836d5806..26b38c703 100644 --- a/yudao-ui-admin/.env.dev +++ b/yudao-ui-admin/.env.dev @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 创盈商户管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.2.71:48080' +VUE_APP_BASE_API = 'http://192.168.1.147:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/yudao-ui-admin/src/api/mall/market/banner.js b/yudao-ui-admin/src/api/mall/market/banner.js index 57c55def9..2e5c86956 100644 --- a/yudao-ui-admin/src/api/mall/market/banner.js +++ b/yudao-ui-admin/src/api/mall/market/banner.js @@ -38,8 +38,8 @@ export function getBanner(id) { export function getBannerPage(query) { return request({ url: '/market/banner/page', - method: 'get', - params: query + method: 'post', + data: query }) } diff --git a/yudao-ui-admin/src/api/system/tenant.js b/yudao-ui-admin/src/api/system/tenant.js index bef02c54c..34dfe69ba 100755 --- a/yudao-ui-admin/src/api/system/tenant.js +++ b/yudao-ui-admin/src/api/system/tenant.js @@ -63,3 +63,12 @@ export function exportTenantExcel(query) { responseType: 'blob' }) } + +// 创建租户 +export function setCommission(data) { + return request({ + url: '/system/tenant/update-commission', + method: 'put', + data: data + }) +} diff --git a/yudao-ui-admin/src/views/mall/market/banner/index.vue b/yudao-ui-admin/src/views/mall/market/banner/index.vue index 9b683eda9..8d9d688d2 100644 --- a/yudao-ui-admin/src/views/mall/market/banner/index.vue +++ b/yudao-ui-admin/src/views/mall/market/banner/index.vue @@ -1,22 +1,10 @@ - - - - - @@ -128,7 +137,8 @@ - + @@ -164,6 +174,10 @@ 取 消 + + + + @@ -178,10 +192,17 @@ import { } from '@/api/system/tenant'; import {CommonStatusEnum} from '@/utils/constants' import {getTenantPackageList} from '@/api/system/tenantPackage'; +import ImageUpload from '@/components/ImageUpload/index.vue'; +import CommissionSetting from '@/views/system/tenant/commissionSetting.vue'; +import NoticeSetting from '@/views/system/tenant/noticeSetting.vue'; export default { name: 'SystemTenant', - components: {}, + components: { + NoticeSetting, + CommissionSetting, + ImageUpload + }, data() { return { // 遮罩层 @@ -200,6 +221,21 @@ export default { title: '', // 是否显示弹出层 open: false, + commissionSetting: { + show: false, + data: { + id: '', + goodsCommission: '', + memberCommission: '' + } + }, + noticeSetting: { + show: false, + data: { + id: '', + notice: '' + } + }, // 查询参数 queryParams: { pageNo: 1, @@ -292,7 +328,23 @@ export default { this.resetForm('queryForm'); this.handleQuery(); }, - handleLook(row){ + handleCommission(row) { + Object.assign(this.commissionSetting.data, row) + this.commissionSetting.show = true + }, + handleNotice(row) { + Object.assign(this.noticeSetting.data, row) + this.noticeSetting.show = true + }, + handleBanner(row) { + this.$router.push({ + path: '/system/tenant/banner', + query: { + id: row.id + } + }) + }, + handleLook(row) { this.form = row this.open = true this.isLook = true @@ -370,3 +422,17 @@ export default { } }; + diff --git a/yudao-ui-admin/src/views/system/tenant/noticeSetting.vue b/yudao-ui-admin/src/views/system/tenant/noticeSetting.vue new file mode 100644 index 000000000..1cd4307cb --- /dev/null +++ b/yudao-ui-admin/src/views/system/tenant/noticeSetting.vue @@ -0,0 +1,81 @@ + + + + From b7241ecd09e4aaf15b6cec9cc7f949f7fce6c7e1 Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:39:25 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index df0e4935c..7382d1ee8 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -8,9 +8,9 @@ VUE_APP_TITLE = 创盈商户管理系统 VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api' # 根据服务器或域名修改 -PUBLIC_PATH = 'http://my-pi.com:8888/yudao-admin/' +PUBLIC_PATH = 'http://my-pi.com:8888/cy-admin/' # 二级部署路径 -VUE_APP_APP_NAME ='yudao-admin' +VUE_APP_APP_NAME ='cy-admin' # 多租户的开关 VUE_APP_TENANT_ENABLE = true From 79e5fafbfee5b74db63feb17f5952171e9076ac3 Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:41:02 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index 7382d1ee8..cd33ca681 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -8,7 +8,7 @@ VUE_APP_TITLE = 创盈商户管理系统 VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api' # 根据服务器或域名修改 -PUBLIC_PATH = 'http://my-pi.com:8888/cy-admin/' +PUBLIC_PATH = 'https://cmx.bskies.cc:8000/cy-admin/' # 二级部署路径 VUE_APP_APP_NAME ='cy-admin' From fec78bc6d8d3aa575ae70c8077ddc9deff6e270d Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:41:11 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index cd33ca681..6f42b8e6c 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -8,7 +8,7 @@ VUE_APP_TITLE = 创盈商户管理系统 VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api' # 根据服务器或域名修改 -PUBLIC_PATH = 'https://cmx.bskies.cc:8000/cy-admin/' +PUBLIC_PATH = 'https://cmx.bskies.cc:8000/' # 二级部署路径 VUE_APP_APP_NAME ='cy-admin' From df3f811ddf98e1cd088cb8a15e52137fd1342c3d Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:42:10 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index 6f42b8e6c..0e96694e6 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -8,7 +8,7 @@ VUE_APP_TITLE = 创盈商户管理系统 VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api' # 根据服务器或域名修改 -PUBLIC_PATH = 'https://cmx.bskies.cc:8000/' +PUBLIC_PATH = 'https://cmx.bskies.cc:8000/cy-admin' # 二级部署路径 VUE_APP_APP_NAME ='cy-admin' From 5af7c10fce6f06666d2fc78f405458795652c26e Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:46:31 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- builds/docker-compose-test.yml | 2 +- yudao-server/src/main/resources/application-test.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builds/docker-compose-test.yml b/builds/docker-compose-test.yml index 267950ae4..72f5cee3a 100644 --- a/builds/docker-compose-test.yml +++ b/builds/docker-compose-test.yml @@ -22,7 +22,7 @@ services: limits: memory: 800MB healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:48080/cyyywl-api/actuator/health"] + test: ["CMD", "curl", "-f", "http://localhost:48080/admin-api/actuator/health"] timeout: 30s interval: 45s retries: 3 \ No newline at end of file diff --git a/yudao-server/src/main/resources/application-test.yaml b/yudao-server/src/main/resources/application-test.yaml index cc95bc1ea..371a21538 100644 --- a/yudao-server/src/main/resources/application-test.yaml +++ b/yudao-server/src/main/resources/application-test.yaml @@ -1,7 +1,7 @@ server: port: 48080 servlet: - context-path: /cyyywl-api + context-path: /admin-api --- #################### 数据库相关配置 #################### From efd92962757f03a114de08f4a821fa6e67879c59 Mon Sep 17 00:00:00 2001 From: axzsd Date: Wed, 17 May 2023 14:49:13 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E6=9E=84=E5=BB=BA=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index 0e96694e6..32e93cdb5 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -5,7 +5,7 @@ ENV = 'production' VUE_APP_TITLE = 创盈商户管理系统 # 创盈管理系统/生产环境 -VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyyywl-api' +VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/admin-api' # 根据服务器或域名修改 PUBLIC_PATH = 'https://cmx.bskies.cc:8000/cy-admin'