|
...
|
...
|
@@ -18,18 +18,18 @@ export const columns: BasicColumn[] = [ |
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'buttonName',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: '按钮开关',
|
|
|
|
align: 'center',
|
|
|
|
dataIndex: 'buttonSwitch',
|
|
|
|
customRender: ({ text, record }) => {
|
|
|
|
return h(Switch, {
|
|
|
|
checked: text === 'Y',
|
|
|
|
loading: switchLoading[record.id],
|
|
|
|
onChange: (checked: boolean) => handleSwitchChange(checked, record),
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// title: '按钮开关',
|
|
|
|
// align: 'center',
|
|
|
|
// dataIndex: 'buttonSwitch',
|
|
|
|
// customRender: ({ text, record }) => {
|
|
|
|
// return h(Switch, {
|
|
|
|
// checked: text === 'Y',
|
|
|
|
// loading: switchLoading[record.id],
|
|
|
|
// onChange: (checked: boolean) => handleSwitchChange(checked, record),
|
|
|
|
// });
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
title: '发送内容',
|
|
|
|
align: 'center',
|
|
...
|
...
|
@@ -90,13 +90,13 @@ export const formSchema: FormSchema[] = [ |
|
|
|
component: 'Input',
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: '按钮开关',
|
|
|
|
field: 'buttonSwitch',
|
|
|
|
component: 'JSwitch',
|
|
|
|
required: true,
|
|
|
|
componentProps: {},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// label: '按钮开关',
|
|
|
|
// field: 'buttonSwitch',
|
|
|
|
// component: 'JSwitch',
|
|
|
|
// required: true,
|
|
|
|
// componentProps: {},
|
|
|
|
// },
|
|
|
|
{
|
|
|
|
label: '按钮code',
|
|
|
|
field: 'code',
|
...
|
...
|
|