diff --git a/src/views/common/push/pushCustomType/customType.data.ts b/src/views/common/push/pushCustomType/customType.data.ts index e0f70d0..c14bd6e 100644 --- a/src/views/common/push/pushCustomType/customType.data.ts +++ b/src/views/common/push/pushCustomType/customType.data.ts @@ -8,8 +8,29 @@ export const columns: BasicColumn[] = [ dataIndex: 'name' }, { - title: '紧急级别', - dataIndex: 'level' + title: '是否播放声音', + 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: '创建人', @@ -53,18 +74,26 @@ export const formSchema: FormSchema[] = [ } }, { - field: 'level', - label: '紧急级别', - component: 'Input', + field: 'playSound', + label: '是否播放声音', + component: 'RadioGroup', required: true, + defaultValue: '0', + componentProps: { + options: [ + { label: '是', value: '0' }, + { label: '否', value: '1' } + ] + }, colProps: { span: 12 } }, { - field: 'isVibration', + field: 'playVibrate', label: '是否震动', component: 'RadioGroup', + required: true, defaultValue: '0', componentProps: { options: [ @@ -77,9 +106,10 @@ export const formSchema: FormSchema[] = [ } }, { - field: 'isSound', - label: '是否响铃', + field: 'playLights', + label: '是否闪光', component: 'RadioGroup', + required: true, defaultValue: '0', componentProps: { options: [ @@ -92,8 +122,8 @@ export const formSchema: FormSchema[] = [ } }, { - field: 'customSound', - label: '自定义响铃', + field: 'customPlayFileName', + label: '播放文件名称', component: 'Input', required: true, colProps: {