king
2022-08-02 f248207e3cb568b3d1f1e5be07a92dc915e89731
2022-08-02
6个文件已修改
43 ■■■■ 已修改文件
public/options.json 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/index.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/index.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/modalform/fieldtable/index.jsx 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/templates/zshare/modalform/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/design/index.jsx 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/options.json
@@ -1,20 +1,20 @@
{
  "appId": "201912040924165801464FF1788654BC5AC73",
  "appkey": "20191106103859640976D6E924E464D029CF0",
  "mainSystemApi": "http://sso.mk9h.cn/cloud/webapi/dostars",
  "appId": "202108312122504607B107A83F55B40C98CCF",
  "appkey": "20210831212235413F287EC3BF489424496C8",
  "mainSystemApi": "https://sso.mk9h.cn/cloud/webapi/dostars",
  "systemType": "",
  "externalDatabase": "false",
  "lineColor": "",
  "filter": "false",
  "defaultApp": "mk",
  "defaultApp": "mkindustry",
  "defaultLang": "zh-CN",
  "WXAppID": "",
  "WXAppID": "wx4d8a34c8d4494872",
  "WXminiAppID": "",
  "debugger": false,
  "licenseKey": "",
  "probation": "",
  "keepPassword": "true",
  "platforms": ["H5", "wechat", "android", "ios", "wxMiniProgram"],
  "host": "http://qingqiumarket.cn",
  "service": "MKWMS/"
  "host": "http://demo.mk9h.cn",
  "service": "erp_new/"
}
src/api/index.js
@@ -144,6 +144,17 @@
    if (process.env.NODE_ENV === 'production') {
      _url = document.location.origin + '/' + url
    }
    if (/^http:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) {
      _url = window.GLOB.location + ':8080/' + url
      if (process.env.NODE_ENV === 'production') {
        _url = document.location.origin + ':8080/' + url
      }
    } else if (/^https:\/\/(qingqiumarket.cn|cloud.mk9h.cn|sso.mk9h.cn)/.test(_url)) {
      _url = window.GLOB.location + ':8443/' + url
      if (process.env.NODE_ENV === 'production') {
        _url = document.location.origin + ':8443/' + url
      }
    }
    
    if (param) {
      return axios({
src/index.js
@@ -106,7 +106,7 @@
      // GLOB.mainSystemApi = 'https://cloud.positecgroup.com/webapi/dostars'
      GLOB.mainSystemApi = 'http://sso.mk9h.cn/cloud/webapi/dostars'
      GLOB.mainSystemApi = 'https://sso.mk9h.cn/cloud/webapi/dostars'
      if (GLOB.watermark) {
        GLOB.dataFormat = true
src/templates/zshare/modalform/fieldtable/index.jsx
@@ -11,7 +11,6 @@
class EdiFieldsTable extends Component {
  static propTpyes = {
    dict: PropTypes.object,         // 字典项
    onChange: PropTypes.func        // 数据变化
  }
@@ -118,6 +117,16 @@
        this.setState({loading: false})
      })
      return
    } else if (fields.filter(f => f.toLowerCase() === 'value').length > 0) {
      notification.warning({
        top: 92,
        message: '字段名不可使用value!',
        duration: 5
      })
      this.setState({loading: true}, () => {
        this.setState({loading: false})
      })
      return
    }
    this.setState({ data }, () => {
src/templates/zshare/modalform/index.jsx
@@ -669,7 +669,7 @@
          { required: item.required, message: '请添加' + item.label + '!' }
        ]
        content = <FieldsTable dict={this.props.dict} onChange={this.changeField}/>
        content = <FieldsTable onChange={this.changeField}/>
      } else if (item.type === 'color') {
        className = 'color-form-item'
        rules = [
src/views/design/index.jsx
@@ -22,6 +22,7 @@
    if (window.GLOB.systemType !== 'production' && window.GLOB.WXAppID && !sessionStorage.getItem('wxTemplates')) {
      Api.wxAccessToken().then(res => {
        let wxtoken = res.oa_access_token || ''
        wxtoken = '59_DH0hrAp0B8jtdJvU-7BV_-nG01qh2rUU1L8ihj-2pMWlUFLE2eEtVv4zZYAUIKcxCit4SgOTwxvUGdYHltaha3RmgnZqkQSgkxXRm9hz18kGbGhMc5r11W5Iv9Xr50Pz-Sz7FUVHCM-6GZLXJPIjAIAVBU'
        let minitoken = res.mini_access_token || ''
  
        if (wxtoken) {
@@ -29,7 +30,7 @@
            if (res.template_list) {
              let temps = res.template_list.filter(item => item.primary_industry)
              sessionStorage.setItem('wxTemplates', JSON.stringify(temps))
            } else {
            } else if (res.errcode === 0) {
              sessionStorage.setItem('wxTemplates', JSON.stringify([]))
            }
          })