|
|
|
@ -55,7 +55,7 @@ export const columns = (refreshPushType: Function) => [
@@ -55,7 +55,7 @@ export const columns = (refreshPushType: Function) => [
|
|
|
|
|
width: 80, |
|
|
|
|
customRender: ({ record }) => { |
|
|
|
|
const playSound = record?.playSound; |
|
|
|
|
const enable = ~~playSound === 0; |
|
|
|
|
const enable = ~~playSound === 1; |
|
|
|
|
const color = enable ? 'green' : 'red'; |
|
|
|
|
const text = enable ? '是' : '否'; |
|
|
|
|
return h(Tag, { color: color }, () => text); |
|
|
|
@ -67,7 +67,7 @@ export const columns = (refreshPushType: Function) => [
@@ -67,7 +67,7 @@ export const columns = (refreshPushType: Function) => [
|
|
|
|
|
width: 80, |
|
|
|
|
customRender: ({ record }) => { |
|
|
|
|
const playVibrate = record?.playVibrate; |
|
|
|
|
const enable = ~~playVibrate === 0; |
|
|
|
|
const enable = ~~playVibrate === 1; |
|
|
|
|
const color = enable ? 'green' : 'red'; |
|
|
|
|
const text = enable ? '是' : '否'; |
|
|
|
|
return h(Tag, { color: color }, () => text); |
|
|
|
@ -79,7 +79,7 @@ export const columns = (refreshPushType: Function) => [
@@ -79,7 +79,7 @@ export const columns = (refreshPushType: Function) => [
|
|
|
|
|
width: 80, |
|
|
|
|
customRender: ({ record }) => { |
|
|
|
|
const playLights = record?.playLights; |
|
|
|
|
const enable = ~~playLights === 0; |
|
|
|
|
const enable = ~~playLights === 1; |
|
|
|
|
const color = enable ? 'green' : 'red'; |
|
|
|
|
const text = enable ? '是' : '否'; |
|
|
|
|
return h(Tag, { color: color }, () => text); |
|
|
|
@ -146,8 +146,8 @@ export const formSchema: FormSchema[] = [
@@ -146,8 +146,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
defaultValue: '0', |
|
|
|
|
componentProps: { |
|
|
|
|
options: [ |
|
|
|
|
{ label: '是', value: '0' }, |
|
|
|
|
{ label: '否', value: '1' } |
|
|
|
|
{ label: '否', value: '0' }, |
|
|
|
|
{ label: '是', value: '1' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
@ -162,8 +162,8 @@ export const formSchema: FormSchema[] = [
@@ -162,8 +162,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
defaultValue: '0', |
|
|
|
|
componentProps: { |
|
|
|
|
options: [ |
|
|
|
|
{ label: '是', value: '0' }, |
|
|
|
|
{ label: '否', value: '1' } |
|
|
|
|
{ label: '否', value: '0' }, |
|
|
|
|
{ label: '是', value: '1' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
@ -178,8 +178,8 @@ export const formSchema: FormSchema[] = [
@@ -178,8 +178,8 @@ export const formSchema: FormSchema[] = [
|
|
|
|
|
defaultValue: '0', |
|
|
|
|
componentProps: { |
|
|
|
|
options: [ |
|
|
|
|
{ label: '是', value: '0' }, |
|
|
|
|
{ label: '否', value: '1' } |
|
|
|
|
{ label: '否', value: '0' }, |
|
|
|
|
{ label: '是', value: '1' } |
|
|
|
|
] |
|
|
|
|
}, |
|
|
|
|
colProps: { |
|
|
|
|