|
@@ -24,11 +24,6 @@ export const columns: BasicColumn[] = [
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: t('wechat.whatsapp.wxid'),
|
|
|
- dataIndex: 'wxid',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
title: t('wechat.whatsapp.account'),
|
|
|
dataIndex: 'account',
|
|
|
width: 100,
|
|
@@ -64,29 +59,9 @@ export const columns: BasicColumn[] = [
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
- title: t('wechat.whatsapp.allowList'),
|
|
|
- dataIndex: 'allowList',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('wechat.whatsapp.groupAllowList'),
|
|
|
- dataIndex: 'groupAllowList',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('wechat.whatsapp.blockList'),
|
|
|
- dataIndex: 'blockList',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
- title: t('wechat.whatsapp.groupBlockList'),
|
|
|
- dataIndex: 'groupBlockList',
|
|
|
- width: 100,
|
|
|
- },
|
|
|
- {
|
|
|
title: t('common.status'),
|
|
|
dataIndex: 'status',
|
|
|
- width: 50,
|
|
|
+ width: 80,
|
|
|
customRender: ({ record }) => {
|
|
|
if (!Reflect.has(record, 'pendingStatus')) {
|
|
|
record.pendingStatus = false;
|
|
@@ -113,7 +88,7 @@ export const columns: BasicColumn[] = [
|
|
|
{
|
|
|
title: t('common.createTime'),
|
|
|
dataIndex: 'createdAt',
|
|
|
- width: 70,
|
|
|
+ width: 170,
|
|
|
customRender: ({ record }) => {
|
|
|
return formatToDateTime(record.createdAt);
|
|
|
},
|
|
@@ -167,12 +142,6 @@ export const formSchema: FormSchema[] = [
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
|
- field: 'wxid',
|
|
|
- label: t('wechat.whatsapp.wxid'),
|
|
|
- component: 'Input',
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
field: 'account',
|
|
|
label: t('wechat.whatsapp.account'),
|
|
|
component: 'Input',
|
|
@@ -215,30 +184,6 @@ export const formSchema: FormSchema[] = [
|
|
|
required: true,
|
|
|
},
|
|
|
{
|
|
|
- field: 'allowList',
|
|
|
- label: t('wechat.whatsapp.allowList'),
|
|
|
- component: 'Input',
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'groupAllowList',
|
|
|
- label: t('wechat.whatsapp.groupAllowList'),
|
|
|
- component: 'Input',
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'blockList',
|
|
|
- label: t('wechat.whatsapp.blockList'),
|
|
|
- component: 'Input',
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'groupBlockList',
|
|
|
- label: t('wechat.whatsapp.groupBlockList'),
|
|
|
- component: 'Input',
|
|
|
- required: true,
|
|
|
- },
|
|
|
- {
|
|
|
field: 'status',
|
|
|
label: t('wechat.whatsapp.status'),
|
|
|
component: 'RadioButtonGroup',
|