Commit 5644a9f43e8ce7ed7ebc55def6e933a17de9dcbe

Authored by fengtao
1 parent fb81a7f1

pref:优化报表配置表单字段

@@ -360,7 +360,7 @@ export const formSchema: QFormSchema[] = [ @@ -360,7 +360,7 @@ export const formSchema: QFormSchema[] = [
360 options: [ 360 options: [
361 { label: '历史数据', value: '1' }, 361 { label: '历史数据', value: '1' },
362 { label: '同比', value: '2' }, 362 { label: '同比', value: '2' },
363 - { label: '环比', value: '2' }, 363 + { label: '环比', value: '3' },
364 ], 364 ],
365 }, 365 },
366 colProps: { span: 24 }, 366 colProps: { span: 24 },
@@ -394,32 +394,49 @@ export const formSchema: QFormSchema[] = [ @@ -394,32 +394,49 @@ export const formSchema: QFormSchema[] = [
394 colProps: { span: 24 }, 394 colProps: { span: 24 },
395 }, 395 },
396 { 396 {
397 - field: '9', 397 + field: '91112',
398 label: '查询周期', 398 label: '查询周期',
399 required: true, 399 required: true,
400 component: 'Select', 400 component: 'Select',
401 componentProps: { 401 componentProps: {
402 placeholder: '请选择查询周期', 402 placeholder: '请选择查询周期',
403 options: [ 403 options: [
404 - { label: '1分钟', value: '60000' },  
405 - { label: '2分钟', value: '120000' },  
406 - { label: '3分钟', value: '180000' }, 404 + { label: '1秒', value: '1000' },
  405 + { label: '5秒', value: '5000' },
  406 + { label: '10秒', value: '10000' },
  407 + { label: '15秒', value: '15000' },
  408 + { label: '30秒', value: '30000' },
  409 + { label: '1分', value: '60000' },
  410 + { label: '2分', value: '120000' },
  411 + { label: '5分', value: '300000' },
  412 + { label: '10分', value: '600000' },
  413 + { label: '15分', value: '900000' },
  414 + { label: '30分', value: '1800000' },
  415 + { label: '1小时', value: '3600000' },
  416 + { label: '2小时', value: '7200000' },
  417 + { label: '5小时', value: '18000000' },
  418 + { label: '10小时', value: '36000000' },
  419 + { label: '12小时', value: '43200000' },
  420 + { label: '1天', value: '86400000' },
  421 + { label: '7天', value: '604800000' },
  422 + { label: '30天', value: '2592000000' },
407 ], 423 ],
408 }, 424 },
409 colProps: { span: 24 }, 425 colProps: { span: 24 },
410 }, 426 },
411 { 427 {
412 - field: '10', 428 + field: '102121',
413 label: '间隔时间', 429 label: '间隔时间',
414 required: true, 430 required: true,
415 component: 'Select', 431 component: 'Select',
416 componentProps: { 432 componentProps: {
417 placeholder: '请选择间隔时间', 433 placeholder: '请选择间隔时间',
418 options: [ 434 options: [
419 - { label: '1秒', value: '1000' },  
420 - { label: '5秒', value: '5000' },  
421 - { label: '10秒', value: '10000' },  
422 - { label: '15秒', value: '150000' }, 435 + { label: '2小时', value: '7200000' },
  436 + { label: '5小时', value: '18000000' },
  437 + { label: '10小时', value: '36000000' },
  438 + { label: '12小时', value: '43200000' },
  439 + { label: '1天', value: '86400000' },
423 ], 440 ],
424 }, 441 },
425 colProps: { span: 24 }, 442 colProps: { span: 24 },