update: 修正启用状态 1启用0停用
This commit is contained in:
@ -19,8 +19,8 @@ export const searchFormSchema: FormSchema[] = [
|
|||||||
componentProps: {
|
componentProps: {
|
||||||
datasourceType: 'staticData',
|
datasourceType: 'staticData',
|
||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: '启用', value: '0' },
|
{ key: 1, label: '启用', value: 1 },
|
||||||
{ key: 2, label: '停用', value: '1' },
|
{ key: 2, label: '停用', value: 0 },
|
||||||
],
|
],
|
||||||
labelField: 'label',
|
labelField: 'label',
|
||||||
valueField: 'value',
|
valueField: 'value',
|
||||||
@ -57,8 +57,8 @@ export const columns: BasicColumn[] = [
|
|||||||
|
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
const staticOptions = [
|
const staticOptions = [
|
||||||
{ key: 1, label: '启用', value: 0 },
|
{ key: 1, label: '启用', value: 1 },
|
||||||
{ key: 2, label: '停用', value: 1 },
|
{ key: 2, label: '停用', value: 0 },
|
||||||
];
|
];
|
||||||
return staticOptions.filter((x) => x.value === record.enabledMark)[0]?.label;
|
return staticOptions.filter((x) => x.value === record.enabledMark)[0]?.label;
|
||||||
},
|
},
|
||||||
@ -229,8 +229,8 @@ export const formProps: FormProps = {
|
|||||||
disabled: false,
|
disabled: false,
|
||||||
optionType: 'default',
|
optionType: 'default',
|
||||||
staticOptions: [
|
staticOptions: [
|
||||||
{ key: 1, label: '启用', value: 0 },
|
{ key: 1, label: '启用', value: 1 },
|
||||||
{ key: 2, label: '停用', value: 1 },
|
{ key: 2, label: '停用', value: 0 },
|
||||||
],
|
],
|
||||||
datasourceType: 'staticData',
|
datasourceType: 'staticData',
|
||||||
labelField: 'label',
|
labelField: 'label',
|
||||||
|
|||||||
Reference in New Issue
Block a user