king
2020-07-07 e771ba19739b537526ddb9a6fb2499b58a45a8ab
2020-07-07
8个文件已修改
77 ■■■■■ 已修改文件
src/locales/en-US/model.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/zh-CN/model.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/store/options.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/actionform/index.jsx 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/sharecomponent/actioncomponent/index.jsx 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/subtableconfig/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/formconfig.jsx 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/locales/en-US/model.js
@@ -33,6 +33,7 @@
  'model.new': 'New ',
  'model.window': 'Window',
  'model.empty': 'Empty',
  'model.pay': 'Pay',
  'model.switch.open': 'Open',
  'model.switch.close': 'Close',
  'model.menu.level1': 'Level 1 menu',
src/locales/zh-CN/model.js
@@ -33,6 +33,7 @@
  'model.new': '新',
  'model.window': '窗口',
  'model.empty': '空',
  'model.pay': '支付',
  'model.switch.open': '开',
  'model.switch.close': '关',
  'model.menu.level1': '一级菜单',
src/store/options.js
@@ -3,5 +3,5 @@
  sysType: 'bG9j$mkYWw=', // yun ( Y2xv$mkdWQ= ) 、 dandian ( U1$mkNP ) 、 yewu ( bG9j$mkYWw= )
  caId: 'MjAyMDAxMTYxMjMzMzU1MDd$mkGQzkyMzI1Rjk4MDY0QUNGQjQ2Mg==', // mk
  cakey: 'MjAyMDAxMTYxMjQwMDQ2NDM$mk2N0QzODE2MjExNUI0MTc4OTVDMQ==', // mk
  cdomain: 'aHR0cDovL2Nsb3V$mkkLm1rOWguY24=' // mk
  cdomain: 'aHR0cDovL2Nsb3V$mkkLm1rOWguY24=' // window.btoa('')
}
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -81,16 +81,7 @@
      let msg = '&uid=' + sessionStorage.getItem('UserID') + '&sid=' + sessionStorage.getItem('SessionUid') + '&lid=' + sessionStorage.getItem('LoginUID') + '&un=' + sessionStorage.getItem('User_Name')
      let src = '#/print/' + window.btoa('ID=' + Id + msg + cloudmsg)
      window.open(src)
    } else if (btn.pageTemplate === 'custom' && btn.url === 'pay') {
      if (data.length !== 1) {
        // 支付时,需要选择单行数据
        notification.warning({
          top: 92,
          message: this.state.dict['main.action.confirm.selectSingleLine'],
          duration: 5
        })
        return
      }
    } else if (btn.pageTemplate === 'pay') {
      let url = '#/pay/' +  window.btoa(`ID=${Id}&LoginUID=${sessionStorage.getItem('LoginUID')}`)
      window.open(url)
src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -140,7 +140,7 @@
        } else if (item.key === 'icon') {
          item.options = btnIcons
        } else if (item.key === 'Ot') {
          if (card.position === 'grid') {
          if (card.position === 'grid' || card.pageTemplate === 'pay') { // 行级按钮、支付按钮,只能选单行
            item.options = this.state.requireOptions.filter(op => ['requiredSgl'].includes(op.value))
          } else if (['innerpage', 'blank', 'tab', 'popview', 'excelIn'].includes(_opentype)) {
            item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
@@ -397,8 +397,9 @@
      })
    } else if (key === 'pageTemplate') {
      let _options = null
      let _fieldval = {}
      if (value === 'custom') {
        _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'url', 'icon', 'class', 'position']
        _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'url', 'joint', 'icon', 'class', 'position']
      } else {
        _options = ['label', 'Ot', 'OpenType', 'pageTemplate', 'icon', 'class', 'position']
      }
@@ -408,8 +409,19 @@
        formlist: this.state.formlist.map(item => {
          item.hidden = !_options.includes(item.key)
  
          if (item.key === 'Ot') {
            if (value === 'pay') {
              item.options = this.state.requireOptions.filter(op => ['requiredSgl'].includes(op.value))
              _fieldval.Ot = 'requiredSgl'
            } else {
              item.options = this.state.requireOptions.filter(op => ['notRequired', 'requiredSgl'].includes(op.value))
            }
          }
          return item
        })
      }, () => {
        this.props.form.setFieldsValue(_fieldval)
      })
    } else if (key === 'tabTemplate') {
      let _options = ['label', 'Ot', 'OpenType', 'icon', 'class', 'position', 'tabTemplate']
src/templates/sharecomponent/actioncomponent/index.jsx
@@ -97,15 +97,18 @@
      <p>{this.state.dict['model.tooltip.func.outface']}</p>
    </div>
    let menulist = menu.fstMenuList.map(item => {
    let menulist = []
    if (menu.fstMenuList) {
      menulist = menu.fstMenuList.map(item => {
      return {
        value: item.MenuID,
        label: item.text,
        isLeaf: false
      }
    })
    }
    if (card.linkmenu && card.linkmenu.length > 0) {
    if (menu.fstMenuList && card.linkmenu && card.linkmenu.length > 0) {
      let _param = {
        func: 'sPC_Get_FunMenu',
        ParentID: card.linkmenu[0],
src/templates/subtableconfig/index.jsx
@@ -1196,7 +1196,7 @@
                        {config.charts.length > 1 ? <p className="chart-title">{item.title}</p> : null}
                        <ActionComponent
                          type="subtable"
                          menu={{MenuID: config.uuid, MenuName: config.tabName, MenuNo: config.tabNo}}
                          menu={{MenuID: config.uuid, MenuName: config.tabName, MenuNo: config.tabNo, fstMenuList: this.props.menu.fstMenuList}}
                          config={config}
                          tabs={this.state.tabviews}
                          menuformRef={this.menuformRef}
src/templates/zshare/formconfig.jsx
@@ -941,16 +941,7 @@
    }, {
      value: 'popview',
      text: Formdict['model.form.popview']
    }
  ]
  if (type === 'subtable') {
    opentypes.push({
      value: 'funcbutton',
      text: Formdict['model.form.funcbutton']
    })
  } else {
    opentypes.push({
    }, {
      value: 'tab',
      text: Formdict['model.form.tab']
    }, {
@@ -959,7 +950,16 @@
    }, {
      value: 'funcbutton',
      text: Formdict['model.form.funcbutton']
    })
    }
  ]
  // 标签类型,主表才会存在表单标签页
  let tabTems = [{
    value: 'FormTab',
    text: '表单标签页'
  }]
  if (type === 'subtable') {
    tabTems = []
  }
  let refresh = []
@@ -1095,6 +1095,9 @@
        value: 'print',
        text: Formdict['header.menu.printTemplate']
      }, {
        value: 'pay',
        text: Formdict['model.pay']
      }, {
        value: 'custom',
        text: Formdict['header.form.custom']
      }]
@@ -1170,15 +1173,15 @@
      type: 'select',
      key: 'tabTemplate',
      label: '标签类型',
      initVal: card.tabTemplate || 'FormTab',
      initVal: card.tabTemplate || '',
      required: true,
      options: [{
        value: 'FormTab',
        text: '表单标签页'
      }, {
      options: [
        {
        value: 'ThdMenu',
        text: Formdict['model.menu.level3']
      }]
        },
        ...tabTems
      ]
    },
    {
      type: 'cascader',