初版代码’
This commit is contained in:
@@ -66,6 +66,11 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'servePrice',
|
||||
label: '服务总价格',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'dataStauts',
|
||||
label: '数据状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'serveImage',
|
||||
@@ -82,6 +87,10 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '分类id',
|
||||
field: 'classificationId',
|
||||
@@ -130,6 +139,10 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '服务总价格',
|
||||
field: 'servePrice',
|
||||
},
|
||||
{
|
||||
title: '数据状态',
|
||||
field: 'dataStauts',
|
||||
},
|
||||
{
|
||||
title: '产品图片',
|
||||
field: 'serveImage',
|
||||
@@ -227,20 +240,20 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '数据状态',
|
||||
fieldName: 'dataStauts',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '产品图片',
|
||||
fieldName: 'serveImage',
|
||||
component: 'ImageUpload',
|
||||
componentProps: {
|
||||
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
|
||||
// maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
|
||||
},
|
||||
rules: 'required',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '排序',
|
||||
fieldName: 'sort',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
Reference in New Issue
Block a user