king
2020-10-20 7b01bec1609710729a868093ad69484ebea82d80
src/templates/zshare/formconfig.jsx
@@ -226,7 +226,7 @@
      min: 2,
      max: 12,
      label: '宽度',
      tooltip: '每行分为24份,树形比例可设置为2-12(最大50%)',
      tooltip: '栅格布局,每行等分为24列,树形比例可设置为2-12(最大50%)',
      initVal: setting.width || 5,
      required: true
    },
@@ -529,7 +529,7 @@
      min: 1,
      max: 24,
      label: Formdict['header.form.ratio'],
      tooltip: '每行分为24份,比例可设置为1-24',
      tooltip: '栅格布局,每行等分为24列。',
      initVal: card.ratio,
      required: false
    },
@@ -1356,7 +1356,7 @@
      max: 24,
      decimal: 0,
      label: '图表宽度',
      tooltip: '每行等分为24列,24即为100%。',
      tooltip: '栅格布局,每行等分为24列。',
      initVal: card.width || 24,
      required: true
    },
@@ -1398,7 +1398,7 @@
      max: card.widthType === 'absolute' ? 1000 : 24,
      decimal: 0,
      label: '卡片宽度',
      tooltip: '类型为比例时,范围1-24,24即为100%;类型为绝对值,范围50-1000。',
      tooltip: '类型为比例时,栅格布局,每行等分为24列;类型为绝对值,范围50-1000。',
      initVal: card.cardWidth || 6,
      hidden: true,
      required: true
@@ -1771,7 +1771,7 @@
    })
  }
  if (card.type === 'textarea' || card.type === 'fileupload' || card.type === 'multiselect') {
  if (card.type === 'textarea' || card.type === 'fileupload' || card.type === 'multiselect' || card.type === 'checkbox') {
    _fieldlength = 512
  }
@@ -1841,6 +1841,9 @@
        value: 'textarea',
        text: Formdict['model.form.textarea']
      }, {
        value: 'hint',
        text: '提示'
      }, {
        value: 'color',
        text: Formdict['model.form.color']
      }, {
@@ -1856,6 +1859,14 @@
      tooltip: '下拉多选与多选框,添加多个初始值请使用“,”号分隔。',
      initVal: card.initval || '',
      required: false
    },
    {
      type: 'textarea',
      key: 'message',
      label: '提示信息',
      initVal: card.message || '',
      required: true,
      readonly: false
    },
    {
      type: 'text',
@@ -1900,6 +1911,50 @@
      }]
    },
    {
      type: 'number',
      key: 'width',
      label: '卡片宽度',
      initVal: card.width || 4,
      tooltip: '栅格布局,每行等分为24列。',
      required: true
    },
    {
      type: 'text',
      key: 'cardValField',
      label: Formdict['header.form.valueField'],
      initVal: card.cardValField || 'Value',
      required: true,
      readonly: false
    },
    {
      type: 'text',
      key: 'urlField',
      label: '地址字段',
      initVal: card.urlField || '',
      required: true,
      readonly: false
    },
    {
      type: 'radio',
      key: 'ratio',
      label: '图片比例',
      initVal: card.ratio || '1:1',
      required: true,
      options: [{
        value: '1:1',
        text: '1:1'
      }, {
        value: '3:2',
        text: '3:2'
      }, {
        value: '4:3',
        text: '4:3'
      }, {
        value: '16:9',
        text: '16:9'
      }]
    },
    {
      type: 'radio',
      key: 'setAll',
      label: Formdict['header.form.setAll'],
@@ -1913,18 +1968,26 @@
      }]
    },
    {
      type: 'textarea',
      key: 'dataSource',
      label: Formdict['header.form.datasource'],
      initVal: card.dataSource || '',
      type: 'fields',
      key: 'fields',
      label: '字段集',
      initVal: card.fields || [],
      required: true,
      readonly: false
    },
    {
      type: 'options',
      key: 'options',
      label: '',
      label: '选项',
      initVal: card.options || [],
      required: true,
      readonly: false
    },
    {
      type: 'codemirror',
      key: 'dataSource',
      label: Formdict['header.form.datasource'],
      initVal: card.dataSource || '',
      required: true,
      readonly: false
    },
@@ -1972,6 +2035,20 @@
      }, {
        value: 'desc',
        text: Formdict['header.form.desc']
      }]
    },
    {
      type: 'radio',
      key: 'multiple',
      label: '可多选',
      initVal: card.multiple || 'false',
      required: true,
      options: [{
        value: 'true',
        text: '是'
      }, {
        value: 'false',
        text: '否'
      }]
    },
    {
@@ -2028,25 +2105,6 @@
        value: 'letter&number',
        text: Formdict['header.form.letter&number']
      }]
    },
    {
      type: 'select',
      key: 'supField',
      label: '上级表单',
      tooltip: '上级表单为下拉选择或联动菜单,设置上级表单后,该表单受控于上级菜单,注:受控关系在该表单隐藏时失效。',
      initVal: card.supField || '',
      required: false,
      readonly: false,
      options: linksupFields
    },
    {
      type: 'text',
      key: 'supvalue',
      label: '显示值',
      tooltip: '选择上级表单后,填写显示值,只有上级表单值与显示值相同时,该表单才会显示,注:多个值用逗号分隔。',
      initVal: card.supvalue || '',
      required: true,
      readonly: false
    },
    {
      type: 'select',
@@ -2140,7 +2198,7 @@
    {
      type: 'radio',
      key: 'writein',
      label: '写入',
      label: '执行运算',
      tooltip: '表单提交时,是否将该字段值写入默认sql语句中。',
      initVal: card.writein || 'true',
      options: [{
@@ -2193,13 +2251,41 @@
      }]
    },
    {
      type: 'select',
      key: 'supField',
      label: '上级表单',
      tooltip: '上级表单为下拉选择、联动菜单、单选框及多选框,添加后该表单显示及隐藏将受上级表单控制,注:受控关系在该表单隐藏时失效。',
      initVal: card.supField || '',
      required: false,
      readonly: false,
      options: linksupFields
    },
    {
      type: 'text',
      key: 'supvalue',
      label: '显示值',
      tooltip: '请填写显示值,只有上级表单值与显示值相同时,该表单才会显示,注:多个值用逗号分隔。',
      initVal: card.supvalue || '',
      required: true,
      readonly: false
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['model.form.linkform'],
      tooltip: '在切换选项时会把信息自动填入关联的表单(文本或数字表单)中。',
      initVal: card.linkSubField || [],
      options: inputfields
    },
    {
      type: 'text',
      key: 'tooltip',
      label: '表单注释',
      tooltip: '鼠标悬浮于提示文字上方时,显示注释。',
      initVal: card.tooltip || '',
      required: false
    },
    {
      type: 'multiselect',
      key: 'blacklist',
      label: Formdict['header.form.blacklist'],