king
2023-12-01 7a6874905fa9c6cec03040b29c455db7e81fb22e
2023-12-01
6个文件已修改
39 ■■■■ 已修改文件
public/manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/fileupload/index.jsx 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/fileupload/index.scss 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/mutilform/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/utils/utils.js 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/menudesign/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/manifest.json
@@ -6,5 +6,5 @@
  "display": "standalone",
  "theme_color": "#000000",
  "background_color": "#ffffff",
  "mk_version": "20230712"
  "mk_version": "20231201"
}
src/tabviews/zshare/fileupload/index.jsx
@@ -12,8 +12,9 @@
class FileUpload extends Component {
  static propTpyes = {
    config: PropTypes.object,  // 表单信息
    onChange: PropTypes.func,  // 表单变化
    data: PropTypes.any,
    config: PropTypes.object,
    onChange: PropTypes.func,
  }
  state = {
@@ -31,7 +32,7 @@
  }
  UNSAFE_componentWillMount () {
    const { config } = this.props
    const { config, data } = this.props
    let filelist = []
    if (config.initval) {
@@ -56,6 +57,12 @@
          })
        } catch (e) {
          filelist = []
        }
        if (data && config.subFields && config.subFields.length === 1 && filelist.length === 1) {
          if (data[config.subFields[0].field]) {
            filelist[0].name = data[config.subFields[0].field]
          }
        }
      }
    }
@@ -270,7 +277,7 @@
      percent: 0
    })
    let file_name = file.name.replace(/\.{1}[^.]*$/ig, '')
    let file_name = file.name
    if (compress === 'true' || compress === 'base64') {
      let reader = new FileReader()
src/tabviews/zshare/fileupload/index.scss
@@ -34,6 +34,9 @@
      display: none;
    }
  }
  .ant-upload-list-item-card-actions {
    opacity: 1;
  }
}
.fileupload-form-container.limit-fileupload {
  > .ant-upload {
src/tabviews/zshare/mutilform/index.jsx
@@ -1244,7 +1244,7 @@
        } else if (item.type === 'fileupload') {
          className = item.readonly ? 'readonly' : ''
          className += item.fileType === 'picture-card' ? ' file-upload' : ''
          content = (<MKFileUpload config={item} onChange={(val, other = {}) => this.recordChange({[item.field]: val, ...other})} />)
          content = (<MKFileUpload config={item} data={this.record} onChange={(val, other = {}) => this.recordChange({[item.field]: val, ...other})} />)
        } else if (item.type === 'textarea') {
          content = (<MKTextArea config={item} onChange={(val, defer) => !defer && this.recordChange({[item.field]: val})}/>)
        } else if (item.type === 'rate') {
src/utils/utils.js
@@ -1118,10 +1118,19 @@
    let _insert = ''
    if (btn.default !== 'false') {
      let _fields = []
      btn.columns.forEach(col => {
        if (col.import === 'false' || col.import === 'init') return
        _fields.push(col.Column)
      })
      _fields = _fields.join(',')
      _insert = `
      /* 默认sql */
      Insert into ${database}${sheet} (${fields},createuserid,createuser,createstaff,bid)
      Select ${fields},'${sessionStorage.getItem('UserID') || ''}',@username,@fullname,'${BID}' From #${sheet}
      Insert into ${database}${sheet} (${_fields},createuserid,createuser,createstaff,bid)
      Select ${_fields},'${sessionStorage.getItem('UserID') || ''}',@username,@fullname,'${BID}' From #${sheet}
      `
    }
src/views/menudesign/index.jsx
@@ -749,6 +749,10 @@
        config.components = this.resetSyncQuery(config.components)
      }
      if (config.MenuID === 'home_page_id') {
        config.permission = 'false'
      }
      let tbs = []
      let btns = this.getMenuMessage(config, tbs)
      let arr = []