From 6c4005840d26686f6f6bb6398d8d688c4c192f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E5=A4=A7=E5=8F=94?= <494979559@qq.com> Date: Thu, 29 Aug 2024 15:28:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E5=AD=97=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/config.js | 17 ++++++ .../Business/Config/ConfigDialog.vue | 45 ++++++++++++++ src/components/Business/Config/ConfigForm.vue | 61 +++++++++++++++++++ src/components/Business/Store/StoreDialog.vue | 17 +++--- src/components/Business/Store/StoreInput.vue | 6 +- src/utils/constants.js | 12 +++- src/views/dashboard/component/TodoList.vue | 10 ++- src/views/mch/device/detail.vue | 7 ++- src/views/mch/device/index.vue | 12 ++-- .../mch/index/components/MchUserProfile.vue | 6 +- src/views/mch/recharge/detail.vue | 8 ++- src/views/mch/store/detail.vue | 12 ++-- src/views/mch/store/index.vue | 32 +++++----- src/views/mch/storeApply/detail.vue | 6 +- src/views/mch/storeApply/index.vue | 6 +- src/views/ss/channelWithdraw/index.vue | 25 ++++++++ src/views/ss/shareCode/index.vue | 21 ++++--- src/views/ss/store/detail.vue | 16 ++--- src/views/ss/store/index.vue | 18 +++--- src/views/ss/storeApply/detail.vue | 27 ++++---- src/views/ss/storeApply/index.vue | 18 ++++-- src/views/ss/storeInvestor/index.vue | 45 +++++++------- src/views/ss/suit/index.vue | 17 +++--- src/views/ss/transfer/detail.vue | 4 +- src/views/system/device/detail.vue | 12 ++-- src/views/system/device/index.vue | 27 ++++---- src/views/system/recharge/detail.vue | 11 ++-- src/views/system/recharge/index.vue | 13 ++-- src/views/system/smUser/detail.vue | 25 ++++---- src/views/system/smUser/index.vue | 15 +++-- 30 files changed, 385 insertions(+), 166 deletions(-) create mode 100644 src/components/Business/Config/ConfigDialog.vue create mode 100644 src/components/Business/Config/ConfigForm.vue diff --git a/src/api/system/config.js b/src/api/system/config.js index a404d82..91baf86 100644 --- a/src/api/system/config.js +++ b/src/api/system/config.js @@ -25,6 +25,23 @@ export function getConfigKey(configKey) { }) } +// 根据参数键名查询参数值 +export function getConfigKeys(configKeys) { + return request({ + url: '/system/config/configKeys/' + configKeys, + method: 'get' + }) +} + +// 批量更新参数值 +export function batchUpdateConfigValue(data) { + return request({ + url: '/system/config/batchUpdateValue', + method: 'put', + data + }) +} + // 新增参数配置 export function addConfig(data) { return request({ diff --git a/src/components/Business/Config/ConfigDialog.vue b/src/components/Business/Config/ConfigDialog.vue new file mode 100644 index 0000000..d1033d0 --- /dev/null +++ b/src/components/Business/Config/ConfigDialog.vue @@ -0,0 +1,45 @@ + + diff --git a/src/components/Business/Config/ConfigForm.vue b/src/components/Business/Config/ConfigForm.vue new file mode 100644 index 0000000..2d3da6c --- /dev/null +++ b/src/components/Business/Config/ConfigForm.vue @@ -0,0 +1,61 @@ + + + diff --git a/src/components/Business/Store/StoreDialog.vue b/src/components/Business/Store/StoreDialog.vue index f1f3637..2e87ed1 100644 --- a/src/components/Business/Store/StoreDialog.vue +++ b/src/components/Business/Store/StoreDialog.vue @@ -5,8 +5,8 @@ - - + + 搜索 @@ -25,13 +25,13 @@ > - + - - + + @@ -53,7 +53,7 @@ import {clone} from "@/utils"; import { listStore } from '@/api/ss/store' import { mapGetters } from 'vuex' -import { UserType } from '@/utils/constants' +import { FieldName, UserType } from '@/utils/constants' import { mchListStore } from '@/api/mch/store' export default { @@ -62,7 +62,7 @@ export default { // 标题 title: { type: String, - default: '选择经营场所' + default: `选择${FieldName.STORE}` }, value: { type: [String, Number, Array], @@ -100,6 +100,9 @@ export default { } }, computed: { + FieldName() { + return FieldName + }, ...mapGetters(['userType']) }, methods: { diff --git a/src/components/Business/Store/StoreInput.vue b/src/components/Business/Store/StoreInput.vue index eb4a900..bee1e12 100644 --- a/src/components/Business/Store/StoreInput.vue +++ b/src/components/Business/Store/StoreInput.vue @@ -43,7 +43,7 @@ import {isDeepEqual} from "@/utils"; import StoreDialog from '@/components/Business/Store/StoreDialog.vue' import { listStoreByIds } from '@/api/ss/store' import { mapGetters } from 'vuex' -import { UserType } from '@/utils/constants' +import { FieldName, UserType } from '@/utils/constants' import { mchListStoreByIds } from '@/api/mch/store' export default { @@ -53,11 +53,11 @@ export default { // 标题 title: { type: String, - default: "选择经营场所" + default: `选择${FieldName.STORE}` }, placeholder: { type: String, - default: "点击选择经营场所", + default: `点击选择${FieldName.STORE}`, }, // 展示值的属性 showProp: { diff --git a/src/utils/constants.js b/src/utils/constants.js index 992d527..5781e5f 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -1,6 +1,14 @@ -// 视图 -import { exp } from 'qrcode/lib/core/galois-field' +// 字段名称 +export const FieldName = { + AGENT: "合作伙伴", + BIZ: "渠道商", + INVESTOR: "创业者", + STORE: "经营场所", + USER: "用户", +} + +// 视图 export const views = { user: 'user', // 用户 device: 'device', // 设备 diff --git a/src/views/dashboard/component/TodoList.vue b/src/views/dashboard/component/TodoList.vue index e08a4db..673913c 100644 --- a/src/views/dashboard/component/TodoList.vue +++ b/src/views/dashboard/component/TodoList.vue @@ -7,7 +7,7 @@
-
+
商家合作申请
@@ -15,7 +15,7 @@
-
经营场所审核
+
{{FieldName.STORE}}审核
@@ -48,9 +48,15 @@