king
2020-05-08 2031a460f6c0827fe80f8c625dd98333d1631d2f
src/templates/zshare/formconfig.jsx
@@ -357,7 +357,6 @@
      key: 'field',
      label: Formdict['header.form.field'],
      initVal: card.field || '',
      tooltip: '字段名可以使用逗号分隔,进行多字段综合搜索,注:综合搜索仅在文本类型时有效',
      tooltipClass: 'middle',
      required: true,
      readonly: false
@@ -392,7 +391,18 @@
      }, {
        value: 'daterange',
        text: Formdict['header.form.daterange']
      }, {
        value: 'group',
        text: '日期(组合)'
      }]
    },
    {
      type: 'text',
      key: 'datefield',
      label: '时间字段',
      initVal: card.datefield || '',
      required: true,
      readonly: false
    },
    {
      type: 'text',
@@ -443,6 +453,33 @@
      initVal: card.options || [],
      required: true,
      readonly: false
    },
    {
      type: 'checkbox',
      key: 'items',
      label: '选项',
      initVal: card.items || ['day', 'week', 'month', 'quarter', 'year', 'customized'],
      required: true,
      readonly: false,
      options: [{
        value: 'day',
        label: '日'
      }, {
        value: 'week',
        label: '周'
      }, {
        value: 'month',
        label: '月'
      }, {
        value: 'quarter',
        label: '季'
      }, {
        value: 'year',
        label: '年'
      }, {
        value: 'customized',
        label: '自'
      }]
    },
    {
      type: 'text',
@@ -577,6 +614,20 @@
      initVal: card.blacklist || [],
      required: false,
      options: roleList || []
    },
    {
      type: 'radio',
      key: 'transfer',
      label: '传递',
      initVal: card.transfer || 'false',
      tooltip: '数据查询时,类型字段是否作为参数传递。',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
      }]
    }
  ]
}