Browse Source

🚀 消息推送模块

master
wangxiang 2 years ago
parent
commit
c7afa9e7a5
  1. 50
      src/views/common/push/pushCustomType/customType.data.ts

50
src/views/common/push/pushCustomType/customType.data.ts

@ -8,8 +8,29 @@ export const columns: BasicColumn[] = [
dataIndex: 'name' dataIndex: 'name'
}, },
{ {
title: '紧急级别', title: '是否播放声音',
dataIndex: 'level' dataIndex: 'playSound',
customRender: ({record}) => {
return ~~record?.playSound === 0 ? '是' : '否';
}
},
{
title: '是否震动',
dataIndex: 'playVibrate',
customRender: ({record}) => {
return ~~record?.playVibrate === 0 ? '是' : '否';
}
},
{
title: '是否闪光',
dataIndex: 'playLights',
customRender: ({record}) => {
return ~~record?.playLights === 0 ? '是' : '否';
}
},
{
title: '自定义播放文件名称',
dataIndex: 'customPlayFileName'
}, },
{ {
title: '创建人', title: '创建人',
@ -53,18 +74,26 @@ export const formSchema: FormSchema[] = [
} }
}, },
{ {
field: 'level', field: 'playSound',
label: '紧急级别', label: '是否播放声音',
component: 'Input', component: 'RadioGroup',
required: true, required: true,
defaultValue: '0',
componentProps: {
options: [
{ label: '是', value: '0' },
{ label: '否', value: '1' }
]
},
colProps: { colProps: {
span: 12 span: 12
} }
}, },
{ {
field: 'isVibration', field: 'playVibrate',
label: '是否震动', label: '是否震动',
component: 'RadioGroup', component: 'RadioGroup',
required: true,
defaultValue: '0', defaultValue: '0',
componentProps: { componentProps: {
options: [ options: [
@ -77,9 +106,10 @@ export const formSchema: FormSchema[] = [
} }
}, },
{ {
field: 'isSound', field: 'playLights',
label: '是否响铃', label: '是否闪光',
component: 'RadioGroup', component: 'RadioGroup',
required: true,
defaultValue: '0', defaultValue: '0',
componentProps: { componentProps: {
options: [ options: [
@ -92,8 +122,8 @@ export const formSchema: FormSchema[] = [
} }
}, },
{ {
field: 'customSound', field: 'customPlayFileName',
label: '自定义响铃', label: '播放文件名称',
component: 'Input', component: 'Input',
required: true, required: true,
colProps: { colProps: {

Loading…
Cancel
Save