Commit 73114451eaaef00e69c748ccc69415b2397bfea0

Authored by fengtao
1 parent e15f11ac

refractor:重构报表配置表单配置项

@@ -380,11 +380,11 @@ export const formSchema: QFormSchema[] = [ @@ -380,11 +380,11 @@ export const formSchema: QFormSchema[] = [
380 }, 380 },
381 { 381 {
382 label: '计数', 382 label: '计数',
383 - value: AggregateDataEnum.COUNTALL, 383 + value: AggregateDataEnum.COUNT,
384 }, 384 },
385 { 385 {
386 label: '空', 386 label: '空',
387 - value: AggregateDataEnum.EMPTY, 387 + value: AggregateDataEnum.NONE,
388 }, 388 },
389 ], 389 ],
390 }, 390 },
@@ -437,7 +437,7 @@ export const formSchema: QFormSchema[] = [ @@ -437,7 +437,7 @@ export const formSchema: QFormSchema[] = [
437 }, 437 },
438 placeholder: '请选择时间段', 438 placeholder: '请选择时间段',
439 }, 439 },
440 - colProps: { span: 6 }, 440 + colProps: { span: 24 },
441 ifShow: ({ values }) => isDefultWeek(values.defaultWeek), 441 ifShow: ({ values }) => isDefultWeek(values.defaultWeek),
442 }, 442 },
443 { 443 {
@@ -78,13 +78,13 @@ export enum TypeEnum { @@ -78,13 +78,13 @@ export enum TypeEnum {
78 IS_TIMING = 'TIMING', 78 IS_TIMING = 'TIMING',
79 IS_WEEK = 'week', 79 IS_WEEK = 'week',
80 IS_MONTH = 'month', 80 IS_MONTH = 'month',
81 - IS_EMPTY = 'EMPTY', 81 + IS_EMPTY = 'NONE',
82 IS_DEFAULT_WEEK = 'defaultIsWeek', 82 IS_DEFAULT_WEEK = 'defaultIsWeek',
83 IS_MIN = 'MIN', 83 IS_MIN = 'MIN',
84 IS_MAX = 'MAX', 84 IS_MAX = 'MAX',
85 IS_AVG = 'AVG', 85 IS_AVG = 'AVG',
86 IS_SUM = 'SUM', 86 IS_SUM = 'SUM',
87 - COUNTALL = 'COUNTALL', 87 + COUNT = 'COUNT',
88 } 88 }
89 89
90 export enum AggregateDataEnum { 90 export enum AggregateDataEnum {
@@ -92,8 +92,8 @@ export enum AggregateDataEnum { @@ -92,8 +92,8 @@ export enum AggregateDataEnum {
92 MAX = 'MAX', 92 MAX = 'MAX',
93 AVG = 'AVG', 93 AVG = 'AVG',
94 SUM = 'SUM', 94 SUM = 'SUM',
95 - COUNTALL = 'COUNTALL',  
96 - EMPTY = 'EMPTY', 95 + COUNT = 'COUNT',
  96 + NONE = 'NONE',
97 } 97 }
98 98
99 export const isTiming = (type: string) => { 99 export const isTiming = (type: string) => {
@@ -132,5 +132,5 @@ export const isSum = (type: string) => { @@ -132,5 +132,5 @@ export const isSum = (type: string) => {
132 }; 132 };
133 133
134 export const isCountAll = (type: string) => { 134 export const isCountAll = (type: string) => {
135 - return type === TypeEnum.COUNTALL; 135 + return type === TypeEnum.COUNT;
136 }; 136 };