|
@@ -10,7 +10,7 @@ const { t } = useI18n();
|
|
|
export const columns: BasicColumn[] = [
|
|
|
{
|
|
|
title: 'ID',
|
|
|
- dataIndex: 'menuId',
|
|
|
+ dataIndex: 'id',
|
|
|
width: 80,
|
|
|
},
|
|
|
{
|
|
@@ -76,13 +76,13 @@ export const columns: BasicColumn[] = [
|
|
|
},
|
|
|
{
|
|
|
title: t('routes.system.sortOrder'),
|
|
|
- dataIndex: 'orderNum',
|
|
|
+ dataIndex: 'sort',
|
|
|
width: 50,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: t('routes.system.status'),
|
|
|
- dataIndex: 'status',
|
|
|
+ dataIndex: 'isShow',
|
|
|
width: 80,
|
|
|
customRender: ({ record }) => {
|
|
|
const status = record.status;
|
|
@@ -110,6 +110,13 @@ const isButton = (type: number) => type === 2;
|
|
|
const idShowExt = (isExt: number) => isExt === 1;
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
|
+
|
|
|
+ {
|
|
|
+ field: 'id',
|
|
|
+ label: 'id',
|
|
|
+ show:false,
|
|
|
+ component: 'Input',
|
|
|
+ },
|
|
|
{
|
|
|
field: 'name',
|
|
|
label: t('routes.system.menuName'),
|
|
@@ -192,7 +199,7 @@ export const formSchema: FormSchema[] = [
|
|
|
},
|
|
|
|
|
|
{
|
|
|
- field: 'orderNum',
|
|
|
+ field: 'sort',
|
|
|
label: t('routes.system.sortOrder'),
|
|
|
defaultValue: 0,
|
|
|
component: 'InputNumber',
|
|
@@ -202,7 +209,7 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'icon',
|
|
|
label: t('routes.system.icon'),
|
|
|
component: 'IconPicker',
|
|
|
- required: true,
|
|
|
+ // required: true,
|
|
|
ifShow: ({ values }) => !isButton(values.type),
|
|
|
},
|
|
|
|
|
@@ -227,37 +234,37 @@ export const formSchema: FormSchema[] = [
|
|
|
ifShow: ({ values }) => !isDir(values.type),
|
|
|
},
|
|
|
{
|
|
|
- field: 'status',
|
|
|
+ field: 'isShow',
|
|
|
label: t('routes.system.status'),
|
|
|
component: 'RadioButtonGroup',
|
|
|
- defaultValue: 0,
|
|
|
- componentProps: {
|
|
|
- options: [
|
|
|
- { label: t('routes.system.enable'), value: 0 },
|
|
|
- { label: t('routes.system.stopUsing'), value: 1 },
|
|
|
- ],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- field: 'isExt',
|
|
|
- label: t('routes.system.isExt.title'),
|
|
|
- component: 'RadioButtonGroup',
|
|
|
- defaultValue: 0,
|
|
|
+ defaultValue: 1,
|
|
|
componentProps: {
|
|
|
options: [
|
|
|
- { label: t('routes.system.isExt.1'), value: 1 },
|
|
|
- { label: t('routes.system.isExt.0'), value: 0 },
|
|
|
+ { label: t('routes.system.enable'), value: 1 },
|
|
|
+ { label: t('routes.system.stopUsing'), value: 0 },
|
|
|
],
|
|
|
},
|
|
|
- ifShow: ({ values }) => !isButton(values.type),
|
|
|
},
|
|
|
+ // {
|
|
|
+ // field: 'isExt',
|
|
|
+ // label: t('routes.system.isExt.title'),
|
|
|
+ // component: 'RadioButtonGroup',
|
|
|
+ // defaultValue: 0,
|
|
|
+ // componentProps: {
|
|
|
+ // options: [
|
|
|
+ // { label: t('routes.system.isExt.1'), value: 1 },
|
|
|
+ // { label: t('routes.system.isExt.0'), value: 0 },
|
|
|
+ // ],
|
|
|
+ // },
|
|
|
+ // ifShow: ({ values }) => !isButton(values.type),
|
|
|
+ // },
|
|
|
|
|
|
- {
|
|
|
- field: 'url',
|
|
|
- label: t('routes.system.menuUrl'),
|
|
|
- component: 'Input',
|
|
|
- ifShow: ({ values }) => idShowExt(values.isExt),
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // field: 'url',
|
|
|
+ // label: t('routes.system.menuUrl'),
|
|
|
+ // component: 'Input',
|
|
|
+ // ifShow: ({ values }) => idShowExt(values.isExt),
|
|
|
+ // },
|
|
|
|
|
|
{
|
|
|
field: 'hideMenu',
|
|
@@ -266,8 +273,8 @@ export const formSchema: FormSchema[] = [
|
|
|
defaultValue: 0,
|
|
|
componentProps: {
|
|
|
options: [
|
|
|
- { label: t('routes.system.isExt.1'), value: 0 },
|
|
|
{ label: t('routes.system.isExt.0'), value: 1 },
|
|
|
+ { label: t('routes.system.isExt.1'), value: 0 },
|
|
|
],
|
|
|
},
|
|
|
ifShow: ({ values }) => !isButton(values.type),
|