king
2020-02-09 6d0137932fcc8f9848123743c1aad5cff8172d8a
src/templates/tableshare/formconfig.js
@@ -677,6 +677,13 @@
        text: '绿色(背景)'
      }],
      required: false
    },
    {
      type: 'number',
      key: 'fieldlength',
      label: Formdict['header.form.field.length'],
      initVal: card.fieldlength || (card.type === 'text' ? 50 : 512),
      required: false
    }
  ]
}
@@ -688,12 +695,17 @@
 */
export function getModalForm (card, inputfields, subtable = false) {
  let _openType = []
  let _fieldlength = 50
  if (subtable) {
    _openType.push({
      value: 'linkMain',
      text: Formdict['header.form.linkMain']
    })
  }
  if (card.type === 'textarea' || card.type === 'fileupload') {
    _fieldlength = 512
  }
  return [
@@ -924,6 +936,27 @@
      }]
    },
    {
      type: 'number',
      key: 'fieldlength',
      label: Formdict['header.form.field.length'],
      initVal: card.fieldlength || _fieldlength,
      required: false
    },
    {
      type: 'radio',
      key: 'readin',
      label: Formdict['header.form.readin'],
      tooltip: Formdict['header.form.readin.tooltip'],
      initVal: card.readin || 'true',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
      }]
    },
    {
      type: 'multiselect',
      key: 'linkSubField',
      label: Formdict['header.form.linkForm'],