|
@@ -1,4 +1,5 @@
|
|
|
// import { ModuleVersionOptions, ModuleChartTypeOptions, ModulePositionOptions, ModuleSizeOptions } from './options';
|
|
|
+import { ModulePositionOptions, ModuleSizeOptions, ModuleVersionOptions } from './options';
|
|
|
import { BasicColumn } from '/@/components/Table';
|
|
|
import { FormSchema } from '/@/components/Table';
|
|
|
import _ from 'lodash-es';
|
|
@@ -17,18 +18,10 @@ export const columns: BasicColumn[] = [
|
|
|
dataIndex: 'moduleName',
|
|
|
},
|
|
|
{
|
|
|
- title: '模块主体配置',
|
|
|
+ title: '预设类型',
|
|
|
dataIndex: 'moduleData.main',
|
|
|
},
|
|
|
{
|
|
|
- title: '模块页头配置',
|
|
|
- dataIndex: 'moduleData.header',
|
|
|
- },
|
|
|
- {
|
|
|
- title: '模块图表配置',
|
|
|
- dataIndex: 'moduleData.chart',
|
|
|
- },
|
|
|
- {
|
|
|
title: '模块尺寸',
|
|
|
dataIndex: 'showStyle.size',
|
|
|
},
|
|
@@ -40,10 +33,6 @@ export const columns: BasicColumn[] = [
|
|
|
title: '模块定位',
|
|
|
dataIndex: 'showStyle.position',
|
|
|
},
|
|
|
- {
|
|
|
- title: '模块图表类型',
|
|
|
- dataIndex: 'showStyle.charttype',
|
|
|
- },
|
|
|
];
|
|
|
|
|
|
export const searchFormSchema: FormSchema[] = [
|
|
@@ -102,38 +91,11 @@ export const formSchema: FormSchema[] = [
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- label: '模块主体配置',
|
|
|
- field: 'moduleData.main',
|
|
|
- component: 'JAddInput',
|
|
|
- componentProps: {
|
|
|
- min: 0,
|
|
|
- placeholders: ['请输入点位', '请输入名称'],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模块页头配置',
|
|
|
- field: 'moduleData.header',
|
|
|
- component: 'JAddInput',
|
|
|
- componentProps: {
|
|
|
- min: 0,
|
|
|
- placeholders: ['请输入点位', '请输入名称'],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模块图表配置',
|
|
|
- field: 'moduleData.chart',
|
|
|
- component: 'JAddInput',
|
|
|
- componentProps: {
|
|
|
- min: 0,
|
|
|
- placeholders: ['请输入点位', '请输入名称'],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
label: '模块尺寸',
|
|
|
field: 'showStyle.size',
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
- options: [],
|
|
|
+ options: ModuleSizeOptions,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -141,7 +103,7 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'showStyle.version',
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
- options: [],
|
|
|
+ options: ModuleVersionOptions,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -149,15 +111,7 @@ export const formSchema: FormSchema[] = [
|
|
|
field: 'showStyle.position',
|
|
|
component: 'Select',
|
|
|
componentProps: {
|
|
|
- options: [],
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: '模块图表类型',
|
|
|
- field: 'showStyle.charttype',
|
|
|
- component: 'Select',
|
|
|
- componentProps: {
|
|
|
- options: [],
|
|
|
+ options: ModulePositionOptions,
|
|
|
},
|
|
|
},
|
|
|
];
|