king
2020-06-24 58a28e1faa15f638a136fefdcfcd0b3106c1fa16
src/templates/zshare/formconfig.jsx
@@ -65,8 +65,8 @@
      required: false,
      readonly: false,
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -183,8 +183,8 @@
      readonly: false,
      forbid: type !== 'main',
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -196,8 +196,8 @@
      readonly: false,
      forbid: type !== 'main',
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -220,8 +220,8 @@
      required: false,
      readonly: false,
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -298,8 +298,8 @@
      required: false,
      readonly: false,
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -497,8 +497,8 @@
      required: false,
      readonly: false,
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    },
    {
@@ -509,8 +509,8 @@
      required: false,
      readonly: false,
      options: [
        { value: 'true', text: Formdict['header.form.true'] },
        { value: 'false', text: Formdict['header.form.false'] }
        { value: 'true', text: Formdict['model.true'] },
        { value: 'false', text: Formdict['model.false'] }
      ]
    }
  ]
@@ -544,7 +544,7 @@
    {
      type: 'text',
      key: 'MenuName',
      label: Formdict['header.menu.menuName'],
      label: Formdict['model.menu'] + Formdict['model.name'],
      initVal: menu.MenuName,
      required: true,
      readonly: false
@@ -552,7 +552,7 @@
    {
      type: 'text',
      key: 'MenuNo',
      label: Formdict['header.menu.menuNo'],
      label: Formdict['model.menu'] + Formdict['model.param'],
      initVal: menu.MenuNo,
      required: true,
      readonly: false
@@ -560,7 +560,7 @@
    {
      type: 'select',
      key: 'opentype',
      label: Formdict['header.menu.openType'],
      label: Formdict['model.openway'],
      initVal: menu.PageParam.OpenType,
      required: true,
      options: [{
@@ -602,7 +602,7 @@
    {
      type: 'text',
      key: 'MenuNo',
      label: Formdict['header.menu.menuNo'],
      label: Formdict['model.menu'] + Formdict['model.param'],
      initVal: config.tabNo,
      required: true,
      readonly: false
@@ -628,7 +628,7 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['model.form.name'],
      label: Formdict['model.name'],
      initVal: card.label || '',
      required: true,
      readonly: false
@@ -645,7 +645,7 @@
    {
      type: 'select',
      key: 'type',
      label: Formdict['header.form.type'],
      label: Formdict['model.form.type'],
      initVal: card.type,
      required: true,
      options: [{
@@ -713,10 +713,10 @@
      initVal: card.setAll || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -864,10 +864,10 @@
      initVal: card.required || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -904,10 +904,10 @@
      tooltip: '数据查询时,类型字段是否作为参数传递,类型字段对应值为 {"日": "day", "周": "week", "月": "month", "季": "quarter", "年": "year", "自定义": "customized"}。',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    }
  ]
@@ -1114,10 +1114,10 @@
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1185,10 +1185,10 @@
      required: true,
      options: [{
        value: 'close',
        text: Formdict['header.close']
        text: Formdict['model.close']
      }, {
        value: 'notclose',
        text: Formdict['header.notclose']
        text: Formdict['model.notclose']
      }]
    },
    {
@@ -1199,10 +1199,10 @@
      required: true,
      options: [{
        value: 'close',
        text: Formdict['header.close']
        text: Formdict['model.close']
      }, {
        value: 'notclose',
        text: Formdict['header.notclose']
        text: Formdict['model.notclose']
      }]
    },
    {
@@ -1261,7 +1261,7 @@
    {
      type: 'select',
      key: 'icon',
      label: Formdict['model.form.icon'],
      label: Formdict['model.icon'],
      initVal: card.icon,
      required: false,
      options: []
@@ -1289,10 +1289,10 @@
      required: false,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1323,7 +1323,7 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['model.form.name'],
      label: Formdict['model.name'],
      initVal: card.label,
      required: true
    },
@@ -1338,7 +1338,7 @@
    {
      type: 'select',
      key: 'type',
      label: Formdict['header.form.type'],
      label: Formdict['model.form.type'],
      initVal: card.type,
      required: true,
      options: [{
@@ -1361,7 +1361,7 @@
    {
      type: 'text',
      key: 'nameField',
      label: Formdict['model.form.name'] + Formdict['model.form.field'],
      label: Formdict['model.name'] + Formdict['model.form.field'],
      initVal: card.nameField,
      required: false,
      readonly: false
@@ -1372,7 +1372,7 @@
      min: 1,
      max: 1000,
      decimal: 0,
      label: Formdict['header.form.columnWidth'],
      label: Formdict['model.form.columnWidth'],
      initVal: card.Width,
      required: true
    },
@@ -1384,10 +1384,10 @@
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1398,10 +1398,10 @@
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1412,10 +1412,10 @@
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1506,10 +1506,10 @@
      required: false,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1594,10 +1594,10 @@
      required: true,
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -1893,10 +1893,10 @@
      forbid: !['line', 'bar'].includes(card.chartType),
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2027,7 +2027,7 @@
    {
      type: 'text',
      key: 'label',
      label: Formdict['model.form.name'],
      label: Formdict['model.name'],
      initVal: card.label,
      required: true,
      readonly: false
@@ -2043,7 +2043,7 @@
    {
      type: 'select',
      key: 'type',
      label: Formdict['header.form.type'],
      label: Formdict['model.form.type'],
      initVal: card.type,
      required: true,
      options: [{
@@ -2110,10 +2110,10 @@
      initVal: card.setAll || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2297,10 +2297,10 @@
      initVal: card.readonly || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2310,23 +2310,23 @@
      initVal: card.required || 'true',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
      type: 'radio',
      key: 'hidden',
      label: Formdict['model.required'],
      label: Formdict['model.hidden'],
      initVal: card.hidden || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2350,10 +2350,10 @@
      initVal: card.readin || 'true',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    
@@ -2364,10 +2364,10 @@
      initVal: card.encryption || 'false',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2378,10 +2378,10 @@
      tooltip: '提交时,是否截取首尾的空白字符。',
      options: [{
        value: 'true',
        text: Formdict['header.form.true']
        text: Formdict['model.true']
      }, {
        value: 'false',
        text: Formdict['header.form.false']
        text: Formdict['model.false']
      }]
    },
    {
@@ -2435,7 +2435,7 @@
    {
      type: 'select',
      key: 'icon',
      label: Formdict['header.menu.icon'],
      label: Formdict['model.icon'],
      initVal: card.icon || '',
      required: false,
      options: [{