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] =?UTF-8?q?feat:=20=E8=BD=AE=E6=92=AD=E5=9B=BE=E5=8A=9F?= =?UTF-8?q?=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 @@ + + + +