feat:【antd】mp/account 的代码优化

This commit is contained in:
YunaiV
2025-10-25 14:16:10 +08:00
parent ec48c8859b
commit 402cab05b9
3 changed files with 31 additions and 38 deletions

View File

@@ -38,7 +38,7 @@ export function useFormSchema(): VbenFormSchema[] {
help: '在微信公众平台mp.weixin.qq.com的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者ID(AppID)」',
rules: 'required',
componentProps: {
placeholder: '请输入appId',
placeholder: '请输入公众号 appId',
},
},
{
@@ -48,7 +48,7 @@ export function useFormSchema(): VbenFormSchema[] {
help: '在微信公众平台mp.weixin.qq.com的菜单 [设置与开发 - 公众号设置 - 基本设置] 中能找到「开发者密码(AppSecret)」',
rules: 'required',
componentProps: {
placeholder: '请输入appSecret',
placeholder: '请输入公众号 appSecret',
},
},
{
@@ -57,7 +57,7 @@ export function useFormSchema(): VbenFormSchema[] {
component: 'Input',
rules: 'required',
componentProps: {
placeholder: '请输入token',
placeholder: '请输入公众号 token',
},
},
{
@@ -65,7 +65,7 @@ export function useFormSchema(): VbenFormSchema[] {
label: '消息加解密密钥',
component: 'Input',
componentProps: {
placeholder: '请输入aesKey',
placeholder: '请输入消息加解密密钥',
},
},
{
@@ -88,6 +88,7 @@ export function useGridFormSchema(): VbenFormSchema[] {
component: 'Input',
componentProps: {
placeholder: '请输入名称',
allowClear: true,
},
},
];
@@ -99,18 +100,22 @@ export function useGridColumns(): VxeGridPropTypes.Columns {
{
title: '名称',
field: 'name',
minWidth: 150,
},
{
title: '微信号',
field: 'account',
minWidth: 180,
},
{
title: 'appId',
field: 'appId',
minWidth: 180,
},
{
title: '服务器地址(URL)',
field: 'utl',
minWidth: 360,
slots: {
default: ({ row }) => {
return `http://服务端地址/admin-api/mp/open/${row.appId}`;
@@ -120,17 +125,17 @@ export function useGridColumns(): VxeGridPropTypes.Columns {
{
title: '二维码',
field: 'qrCodeUrl',
slots: {
default: 'qrCodeUrl',
},
minWidth: 120,
cellRender: { name: 'CellImage' },
},
{
title: '备注',
field: 'remark',
minWidth: 150,
},
{
title: '操作',
width: 260,
width: 200,
fixed: 'right',
slots: { default: 'actions' },
},