| | |
| | | component: 'Input', |
| | | colProps: { span: 8 }, |
| | | }, |
| | | { |
| | | field: 'status', |
| | | label: '状态', |
| | | component: 'Select', |
| | | componentProps: { |
| | | options: [ |
| | | { label: '启用', value: '1' }, |
| | | { label: '停用', value: '0' }, |
| | | ], |
| | | }, |
| | | colProps: { span: 8 }, |
| | | }, |
| | | // { |
| | | // field: 'status', |
| | | // label: '状态', |
| | | // component: 'Select', |
| | | // componentProps: { |
| | | // options: [ |
| | | // { label: '启用', value: '1' }, |
| | | // { label: '停用', value: '0' }, |
| | | // ], |
| | | // }, |
| | | // colProps: { span: 8 }, |
| | | // }, |
| | | ]; |
| | | |
| | | export const formSchema: FormSchema[] = [ |
| | |
| | | field: 'btnType', |
| | | label: '按钮类型', |
| | | component: 'ApiSelect', |
| | | defaultValue: '', |
| | | defaultValue: 0, |
| | | componentProps: { |
| | | api: GetEnum, |
| | | params: { name: 'SYS_MENU+BUTTON_TYPEs' }, |
| | | resultField: 'Data', |
| | | labelField: unref(getLocale) == 'zh_CN' ? 'Desc' : 'Name', |
| | | valueField: 'Value', |
| | | placeholder: '请选择按钮类型' |
| | | placeholder: '请选择按钮类型', |
| | | }, |
| | | ifShow: ({ values }) => isButton(values.func_type), |
| | | }, |