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 @@