From a3ed9dee62068a393039ce6f0e4e8c2b8bdc5e6e Mon Sep 17 00:00:00 2001 From: DaxPay Date: Tue, 6 Aug 2024 19:12:20 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E5=BA=94=E7=94=A8=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E8=AE=A2=E9=98=85=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/notify/MerchantNotifyConfig.api.ts | 31 +++++ .../notify/MerchantNotifyConfigList.vue | 108 ++++++++++++++++++ .../daxpay/admin/merchant/app/MchAppList.vue | 36 +++++- .../notice/callback/CallbackRecordList.vue | 2 +- src/views/iam/user/UserList.vue | 16 +-- 5 files changed, 179 insertions(+), 14 deletions(-) create mode 100644 src/views/daxpay/admin/config/notify/MerchantNotifyConfig.api.ts create mode 100644 src/views/daxpay/admin/config/notify/MerchantNotifyConfigList.vue diff --git a/src/views/daxpay/admin/config/notify/MerchantNotifyConfig.api.ts b/src/views/daxpay/admin/config/notify/MerchantNotifyConfig.api.ts new file mode 100644 index 000000000..e1c474b1b --- /dev/null +++ b/src/views/daxpay/admin/config/notify/MerchantNotifyConfig.api.ts @@ -0,0 +1,31 @@ +import { defHttp } from '@/utils/http/axios' +import { Result } from '#/axios' +import { BaseEntity } from '#/web' +import { unref } from 'vue' +/** + * 分页 + */ +export const findAllByAppId = (appId) => { + return defHttp.get>({ + url: '/merchant/notify/config/findAllByAppId', + params: { appId: unref(appId) }, + }) +} + +export function subscribe(params) { + return defHttp.post>({ + url: '/merchant/notify/config/subscribe', + data: params, + }) +} + +export interface NotifyConfigResult extends BaseEntity { + /** 消息通知类型编码 */ + code?: string + /** 订阅名称 */ + name?: string + /** 是否订阅 */ + subscribe?: boolean + /** 描述 */ + description?: string +} diff --git a/src/views/daxpay/admin/config/notify/MerchantNotifyConfigList.vue b/src/views/daxpay/admin/config/notify/MerchantNotifyConfigList.vue new file mode 100644 index 000000000..c46fe9146 --- /dev/null +++ b/src/views/daxpay/admin/config/notify/MerchantNotifyConfigList.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/src/views/daxpay/admin/merchant/app/MchAppList.vue b/src/views/daxpay/admin/merchant/app/MchAppList.vue index 21088c100..df5439598 100644 --- a/src/views/daxpay/admin/merchant/app/MchAppList.vue +++ b/src/views/daxpay/admin/merchant/app/MchAppList.vue @@ -47,15 +47,29 @@ - + @@ -70,6 +84,7 @@ /> + @@ -89,6 +104,8 @@ import { dropdown as merchantDropdown } from '@/views/daxpay/admin/merchant/info/Merchant.api' import { LabeledValue } from 'ant-design-vue/lib/select' import ChannelConfigList from '@/views/daxpay/admin/merchant/channel/ChannelConfigList.vue' + import MerchantNotifyConfigList from '../../config/notify/MerchantNotifyConfigList.vue' + import Icon from '@/components/Icon/Icon.vue' // 使用hooks const { @@ -120,6 +137,7 @@ const xToolbar = ref() const mchApp: any = ref() const channelSetup: any = ref() + const merchantNotifyConfigList: any = ref() const mchNoOptions = ref([]) onMounted(() => { @@ -166,13 +184,21 @@ } /** - * channelSetup + * 通道配置 */ function showChannelSetup(record) { channelSetup.value.init(record.appId) } + /** + * 通知配置 + */ + function showNotifyConfig(record) { + merchantNotifyConfigList.value.init(record.appId) + } - // 删除 + /** + * 删除 + */ function remove(record) { createConfirm({ iconType: 'warning', diff --git a/src/views/daxpay/admin/notice/callback/CallbackRecordList.vue b/src/views/daxpay/admin/notice/callback/CallbackRecordList.vue index 34d28ef93..b95677ca6 100644 --- a/src/views/daxpay/admin/notice/callback/CallbackRecordList.vue +++ b/src/views/daxpay/admin/notice/callback/CallbackRecordList.vue @@ -4,7 +4,7 @@ v-bind="$attrs" title="通知明细列表" width="60%" - :visible="visible" + :open="visible" @close="visible = false" > diff --git a/src/views/iam/user/UserList.vue b/src/views/iam/user/UserList.vue index 795ea73b4..ad4465b74 100644 --- a/src/views/iam/user/UserList.vue +++ b/src/views/iam/user/UserList.vue @@ -22,12 +22,12 @@ 角色分配 - - - - - - + + + + + + 重置密码 @@ -81,10 +81,10 @@ 封禁账号封禁账号 解锁账号解锁账号