king
2021-11-24 daa026309b564d861491b33799e4935b402b8018
2021-11-24
9个文件已修改
58 ■■■■■ 已修改文件
src/locales/en-US/main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/zh-CN/main.js 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/card/cardcellcomponent/index.jsx 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/actionform/index.jsx 32 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/share/actioncomponent/formconfig.jsx 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/edit-table/columns/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/table/normal-table/columns/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/404/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/en-US/main.js
@@ -28,7 +28,7 @@
  'main.action.primarykey.required': 'Primary key not set!',
  'main.action.primarykey.repetition': 'There are multiple primary keys!',
  'main.action.primarykey.repetitionbid': 'There are multiple BID!',
  'main.view.unenabled': '抱歉,你访问的页面未启用,请联系管理员。',
  'main.view.unenabled': '抱歉,您访问的页面未启用,请联系管理员。',
  'main.excel.line': 'line',
  'main.excel.column': 'column',
  'main.excel.includekey': ' Contain keywords ',
@@ -46,7 +46,7 @@
  'main.form.link.error': '联动菜单设置错误!',
  'main.form.picture.check': '查看图片',
  'main.role.title': 'The role list',
  'main.view.notFound': '抱歉,你访问的页面不存在,请联系管理员。',
  'main.view.notFound': '抱歉,您访问的页面不存在,请联系管理员。',
  'form.required.input': 'Please enter the ',
  'form.required.select': 'Please select a '
}
src/locales/zh-CN/main.js
@@ -28,7 +28,7 @@
  'main.action.primarykey.required': '未设置主键!',
  'main.action.primarykey.repetition': '存在多个主键!',
  'main.action.primarykey.repetitionbid': '存在多个BID!',
  'main.view.unenabled': '抱歉,你访问的页面未启用,请联系管理员。',
  'main.view.unenabled': '抱歉,您访问的页面未启用,请联系管理员。',
  'main.excel.line': '行',
  'main.excel.column': '列',
  'main.excel.includekey': '含有关键字',
@@ -46,7 +46,7 @@
  'main.form.link.error': '联动菜单设置错误!',
  'main.form.picture.check': '查看图片',
  'main.role.title': '角色列表',
  'main.view.notFound': '抱歉,你访问的页面不存在,请联系管理员。',
  'main.view.notFound': '抱歉,您访问的页面不存在,请联系管理员。',
  'form.required.input': '请输入',
  'form.required.select': '请选择'
}
src/menu/components/card/cardcellcomponent/index.jsx
@@ -342,7 +342,6 @@
      let _elements = elements.map(cell => {
        if (cell.uuid === res.uuid) {
          res.style = cell.style || {}
          res.$type = cell.$type || ''
          if (res.eleType === 'splitline' && cell.eleType !== 'splitline') {
            res.style.paddingTop = '5px'
            res.style.paddingBottom = '5px'
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -16,7 +16,7 @@
  exec: ['label', 'OpenType', 'intertype', 'Ot', 'show', 'icon', 'class', 'execSuccess', 'execError', 'resetPageIndex', 'syncComponent', 'switchTab', 'width', 'openmenu', 'open', 'output', 'refreshTab', 'reload'],
  excelIn: ['label', 'Ot', 'OpenType', 'intertype', 'show', 'icon', 'class', 'sheet', 'execSuccess', 'execError', 'resetPageIndex', 'syncComponent', 'switchTab', 'width'],
  excelOut: ['label', 'OpenType', 'intertype', 'show', 'icon', 'class', 'execSuccess', 'execError', 'syncComponent', 'switchTab', 'resetPageIndex', 'pagination', 'search', 'width'],
  popview: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'popClose', 'resetPageIndex', 'width', 'display', 'ratio', 'placement'],
  popview: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'popClose', 'resetPageIndex', 'width', 'display', 'ratio', 'placement', 'syncComponent'],
  tab: ['label', 'Ot', 'OpenType', 'show', 'icon', 'class', 'linkmenu', 'width'],
  innerpage: ['label', 'Ot', 'OpenType', 'pageTemplate', 'show', 'icon', 'class', 'width', 'open'],
  funcbutton: ['label', 'OpenType', 'funcType', 'show', 'icon', 'class', 'width']
@@ -98,7 +98,7 @@
    let _intertype = card.intertype || 'system'  // 接口类型
    let _funcType = card.funcType || ''          // 功能按钮默认类型
    let _procMode = card.procMode || 'system'
    let _Ot = card.Ot || 'requiredSgl'
    let _Ot = card.Ot
    let _pageTemplate = card.pageTemplate || ''
    let control = card.control || ''
@@ -129,18 +129,14 @@
          let iscustom = ['pop', 'prompt', 'exec'].includes(_opentype)
          item.options = this.state.interTypeOptions.filter(op => (iscustom || op.value !== 'custom'))
        } else if (item.key === 'Ot') {
          if (type === 'card') {
            if (card.sqlType === 'insert') {
              item.options = this.state.requireOptions.filter(op => ['notRequired'].includes(op.value))
            } else {
              item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
            }
          if (card.sqlType === 'insert') {
            item.options = this.state.requireOptions.filter(op => ['notRequired'].includes(op.value))
          } else if (type === 'card') {
            item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
          } else if (_pageTemplate === 'pay') { // 行级按钮、支付按钮,只能选单行
            item.options = this.state.requireOptions.filter(op => ['requiredSgl'].includes(op.value))
          } else if (['innerpage', 'tab', 'popview', 'excelIn'].includes(_opentype)) {
            item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
          } else if (card.sqlType === 'insert') {
            item.options = this.state.requireOptions.filter(op => ['notRequired'].includes(op.value))
          } else {
            item.options = this.state.requireOptions
          }
@@ -251,7 +247,7 @@
   * 3、切换标签类型,重置可选标签
   */
  optionChange = (key, value) => {
    const { card, type } = this.props
    const { type } = this.props
    const { openType, procMode, Ot, pageTemplate, control } = this.state
    if (key === 'OpenType') {
@@ -369,16 +365,14 @@
      let _fieldval = {}
      this.setState({
        formlist: this.state.formlist.map(item => {
          if (item.key === 'Ot' && type === 'card') {
          if (item.key === 'Ot') {
            if (value === 'insert') {
              item.options = this.state.requireOptions.filter(op => ['notRequired'].includes(op.value))
            } else {
            } else if (type === 'card') {
              item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
            } else {
              item.options = this.state.requireOptions
            }
          } else if (item.key === 'Ot' && value === 'insert') {
            item.options = this.state.requireOptions.filter(op => ['notRequired'].includes(op.value))
          } else if (item.key === 'Ot') {
            item.options = this.state.requireOptions
          }
          return item
        })
@@ -399,10 +393,6 @@
          _fieldval.label = '删除'
          _fieldval.class = 'danger'
          _fieldval.Ot = 'requiredSgl'
        }
        if (card.$type === 'tableButton') { // 表格按钮
          delete _fieldval.Ot
        }
        this.props.form.setFieldsValue(_fieldval)
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -106,7 +106,7 @@
        { value: 'logout', text: '退出' },
        { value: 'mkBinding', text: '开通扫码登录' },
        { value: 'mkUnBinding', text: '用户解绑' },
        { value: 'reAuth', text: '切换系统' },
        { value: 'reAuth', text: '切换系统(清空缓存-小程序)' },
        { value: 'goBack', text: '返回' },
      ]
      pageTemps = [
@@ -360,9 +360,8 @@
      type: 'select',
      key: 'Ot',
      label: Formdict['header.form.isRequired'],
      initVal: card.Ot || 'requiredSgl',
      initVal: card.Ot || (card.sqlType === 'insert' ? 'notRequired' : 'requiredSgl'),
      required: true,
      forbid: card.$type === 'tableButton',
      options: []
    },
    {
@@ -570,7 +569,7 @@
      key: 'syncComponent',
      label: '刷新组件',
      initVal: card.syncComponent || [],
      tooltip: '执行成功后,需要同步刷新的组件',
      tooltip: '执行成功后(或弹窗标签关闭时),需要同步刷新的组件',
      required: false,
      options: modules
    },
src/menu/components/table/edit-table/columns/index.jsx
@@ -295,8 +295,7 @@
        intertype: 'system',
        execSuccess: 'grid',
        execError: 'never',
        show: 'link',
        $type: 'tableButton'
        show: 'link'
      }
      // 注册事件-添加元素
src/menu/components/table/normal-table/columns/index.jsx
@@ -331,8 +331,7 @@
        intertype: 'system',
        execSuccess: 'grid',
        execError: 'never',
        show: 'link',
        $type: 'tableButton'
        show: 'link'
      }
      // 注册事件-添加元素
src/utils/utils.js
@@ -1392,6 +1392,8 @@
          }
        }
        _initFormfields.push(`@${_key}=${val}`)
      } else if (['date', 'datemonth', 'datetime'].includes(form.type)) {
        _initFormfields.push(`@${_key}='${form.value || '1900-01-01'}'`)
      } else {
        _initFormfields.push(`@${_key}='${form.value}'`)
      }
src/views/404/index.jsx
@@ -18,7 +18,7 @@
            <Lostsvg />
          </div>
          <div className="ant-result-title">404</div>
          <div className="ant-result-subtitle">抱歉,你访问的页面不存在,请联系管理员。</div>
          <div className="ant-result-subtitle">抱歉,您访问的页面不存在,请联系管理员。</div>
          <div className="ant-result-extra">
            <Button onClick={() => {this.tomain()}} type="primary">返回主页</Button>
          </div>