From c7afa9e7a5867f4c2ff5e3d0a8f82fb8992804be Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Mon, 27 Feb 2023 19:43:21 +0800 Subject: [PATCH] =?UTF-8?q?:rocket:=20=E6=B6=88=E6=81=AF=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../push/pushCustomType/customType.data.ts | 50 +++++++++++++++---- 1 file changed, 40 insertions(+), 10 deletions(-) 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: {