king
2024-08-01 3e8e31324cbd53134e8fe483c9a6de137ade41c5
Merge branch 'develop'
16个文件已修改
122 ■■■■■ 已修改文件
src/api/index.js 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/editor/index.scss 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/editorcontent/index.scss 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/basetable/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/card/data-card/index.jsx 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/base-table/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/edit-table/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/table/normal-table/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/index.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/popview/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.jsx 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkCheckCard/index.jsx 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/mkInput/index.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/formconfig.jsx 5 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobdesign/index.jsx 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js
@@ -103,23 +103,10 @@
  wxAccessToken (appId, domain = '') {
    let _url = domain || window.GLOB.baseurl
    return new Promise(resolve => {
      if (window.GLOB.accessToken.appId === appId && window.GLOB.accessToken.accessTime && (parseInt(new Date().getTime() / 1000) - window.GLOB.accessToken.accessTime < 30)) {
        resolve(window.GLOB.accessToken)
      } else {
        window.GLOB.accessToken = {appId}
        axios({
          url: _url + 'wechat/getaccesstoken',
          method: 'post',
          data: JSON.stringify({app_id: appId})
        }).then(res => {
          if (res.access_token) {
            window.GLOB.accessToken.accessTime = parseInt(new Date().getTime() / 1000)
            window.GLOB.accessToken.access_token = res.access_token
          }
          resolve(res)
        })
      }
    return axios({
      url: _url + 'wechat/getaccesstoken',
      method: 'post',
      data: JSON.stringify({app_id: appId})
    })
  }
src/components/editor/index.scss
@@ -11,6 +11,15 @@
    padding-bottom: 0px;
    .public-DraftEditor-content {
      padding-bottom: 0;
      * {
        font-weight: inherit;
        font-style: inherit;
      }
    }
    .DraftEditor-root, .DraftEditor-editorContainer, .public-DraftEditor-content {
      height: var(--editor-height, auto);
      min-height: var(--editor-height, 500px);
    }
  }
  .bf-content::-webkit-scrollbar {
src/index.js
@@ -51,7 +51,6 @@
    GLOB.WXMerchID = config.WXMerchID || ''
    GLOB.WXNotice = config.WXNotice + '' === 'true'
    GLOB.execType = config.execType === 'x' ? 'x' : ''
    GLOB.accessToken = {}
    GLOB.mkHS = false
    GLOB.debugger = false
    GLOB.dataFormat = false
src/menu/components/editor/braft-editor/editorcontent/index.scss
@@ -4,11 +4,4 @@
  >.anticon-form {
    color: purple;
  }
}
.model-menu-edit-content-form {
  .normal-braft-editor {
    .bf-container .DraftEditor-root, .bf-container .public-DraftEditor-content {
      min-height: 500px;
    }
  }
}
src/tabviews/basetable/index.jsx
@@ -504,6 +504,8 @@
    if (cell.OpenType === 'excelOut') { // 导出
      cell.$menuName = item.$menuname
    } else if (cell.OpenType === 'pop' && cell.modal) {
      cell.modal.uuid = cell.uuid + 'pop'
    }
    if (cell.verify) {
src/tabviews/custom/components/card/data-card/index.jsx
@@ -949,6 +949,12 @@
        _data.$$BID = BID || ''
        _data.$$BData = BData || ''
        if (config.wrap.controlField) {
          if (config.wrap.controlVal.includes(_data[config.wrap.controlField] + '')) {
            _data.$disabled = true
          }
        }
        data = data.map(item => {
          if (item.$$uuid === _data.$$uuid) {
            _data.key = item.key
src/tabviews/custom/components/table/base-table/index.jsx
@@ -288,6 +288,12 @@
        _data.$$BID = BID || ''
        _data.$$BData = BData || ''
        if (setting.controlField) {
          if (setting.controlVal.includes(_data[setting.controlField] + '')) {
            _data.$disabled = true
          }
        }
        if (config.absFields) {
          config.absFields.forEach(f => {
            if (!isNaN(_data[f])) {
@@ -597,9 +603,7 @@
    if (config.$searchId !== searchId) return
    
    this.setState({pageIndex: 1}, () => {
      this.reloadtable()
    })
    this.reloadtable()
  }
  autoExec = (times) => {
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -805,9 +805,7 @@
    if (config.$searchId !== searchId) return
    
    this.setState({pageIndex: 1}, () => {
      this.reloadtable()
    })
    this.reloadtable()
  }
  shouldComponentUpdate (nextProps, nextState) {
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -724,6 +724,12 @@
        _data.$$uuid = _data[setting.primaryKey] || ''
        _data.$$BID = BID || ''
        _data.$$BData = BData || ''
        if (setting.controlField) {
          if (setting.controlVal.includes(_data[setting.controlField] + '')) {
            _data.$disabled = true
          }
        }
  
        if (config.absFields) {
          config.absFields.forEach(f => {
@@ -1027,9 +1033,7 @@
    if (config.$searchId !== searchId) return
    
    this.setState({pageIndex: 1}, () => {
      this.reloadtable()
    })
    this.reloadtable()
  }
  render() {
src/tabviews/custom/index.jsx
@@ -956,9 +956,11 @@
    if (cell.OpenType === 'excelOut') { // 导出
      cell.$menuName = item.$menuname
    } else if (cell.OpenType === 'pop' && item.$cache && item.$time && cell.modal) {
      cell.modal.$cache = item.$cache
      cell.modal.$time = item.$time
    } else if (cell.OpenType === 'pop' && cell.modal) {
      if (item.$cache && item.$time) {
        cell.modal.$cache = item.$cache
        cell.modal.$time = item.$time
      }
      cell.modal.uuid = cell.uuid + 'pop'
    }
src/tabviews/custom/popview/index.jsx
@@ -667,6 +667,8 @@
    if (cell.OpenType === 'excelOut') { // 导出
      cell.$menuName = item.$menuname
    } else if (cell.OpenType === 'pop' && cell.modal) {
      cell.modal.uuid = cell.uuid + 'pop'
    }
    if (cell.verify) {
src/tabviews/zshare/mutilform/index.jsx
@@ -69,11 +69,18 @@
    let fieldMap = new Map()
    let check = action.setting.formType === 'check'
    if (this.props.data) {
    if (this.props.data && !this.props.data.$$empty) {
      Object.keys(this.props.data).forEach(key => {
        data[key.toLowerCase()] = this.props.data[key]
      })
    } else if (action.uuid && sessionStorage.getItem('local_' + action.uuid)) {
      let _data = JSON.parse(sessionStorage.getItem('local_' + action.uuid))
      Object.keys(_data).forEach(key => {
        data[key.toLowerCase()] = _data[key]
      })
    }
    if (this.props.BData) {
      Object.keys(this.props.BData).forEach(key => {
        BData[key.toLowerCase()] = this.props.BData[key]
@@ -146,6 +153,7 @@
      // 数据自动填充
      let readin = item.readin !== 'false'
      item.local = item.readin === 'local'
      item.readin = item.readin !== 'false' && item.readin !== 'top'
      item.readonly = check || item.readonly === 'true'
      item.writein = item.writein !== 'false'
@@ -1368,6 +1376,7 @@
  }
  handleConfirm = (formId) => {
    const { action } = this.props
    const { formlist, send_type, timestamp, n_id } = this.state
    // 表单提交时检查输入值是否正确
@@ -1379,6 +1388,7 @@
        }
        let forms = []
        let record = {...this.record, ...values}
        let locals = null
        formlist.forEach(item => {
          if (!item.field || ['hint', 'split', 'formula'].includes(item.type)) return
@@ -1475,12 +1485,21 @@
              value: n_id || ''
            })
          }
          if (item.local) {
            locals = locals || {}
            locals[item.field] = _item.value
          }
    
          forms.push(_item)
        })
        this.submitId = formId || ''
        if (locals) {
          sessionStorage.setItem('local_' + action.uuid, JSON.stringify(locals))
        }
        resolve(forms)
      })
    })
src/tabviews/zshare/mutilform/mkCheckCard/index.jsx
@@ -28,6 +28,8 @@
      selectKeys = config.initval ? config.initval.split(',') : []
      initlength = selectKeys.length
      selectKeys = this.filterVals(config.options, selectKeys)
    } else if (config.options[0] && typeof(config.options[0].$value) === 'number' && /^([0-9]|[1-9]\d{0,2})$/.test(config.initval)) {
      selectKeys = +config.initval
    }
    if (!config.selectStyle && config.backgroundColor) {
src/tabviews/zshare/mutilform/mkInput/index.jsx
@@ -85,7 +85,9 @@
    let val = e.target.value
    let submit = /\n/g.test(val)
    val = val.replace(/\n/g, '')
    if (submit) {
      val = val.replace(/\n|'/g, '')
    }
    if (submit && /^\s+$/.test(val)) {
      submit = false
src/templates/zshare/formconfig.jsx
@@ -1915,7 +1915,7 @@
      type: 'radio',
      key: 'readin',
      label: '自动填充',
      tooltip: '将表格选中的数据自动填充到表单中。注:在批量操作时,如想要所选行(当前字段)全部修改请设为否或首行。',
      tooltip: '将表格选中的数据自动填充到表单中。注:在批量操作时,如想要所选行(当前字段)全部修改请设为否或首行;使用“缓存”时,将在本地保存与读取表单信息,选行时使用行信息填充。',
      initVal: card.readin || 'true',
      options: [{
        value: 'true',
@@ -1926,6 +1926,9 @@
      }, {
        value: 'top',
        text: '首行'
      }, {
        value: 'local',
        text: '缓存'
      }]
    },
    {
src/views/mobdesign/index.jsx
@@ -1528,6 +1528,7 @@
      }
      delete config.miniTitle
      delete config.miniReloadUp
      config.components.forEach(item => {
        if (item.type === 'login') {
@@ -1536,8 +1537,13 @@
          config.loginview = true
        } else if (item.type === 'navbar') {
          config.tabview = true
        } else if (item.type === 'topbar' && adapters.includes('wxmini') && item.wrap.minishow !== 'true') {
          config.miniTitle = item.wrap.title || ''
        } else if (item.type === 'topbar' && adapters.includes('wxmini')) {
          if (item.wrap.minishow !== 'true') {
            config.miniTitle = item.wrap.title || ''
          }
          if (item.wrap.reload === 'true') {
            config.miniReloadUp = true
          }
        }
      })