king
2021-10-12 4eae7af1ce6cd0ea8ac6485e26528625e83c3c70
src/menu/popview/index.jsx
@@ -178,6 +178,11 @@
      MenuID: MenuId
    }
    if (sessionStorage.getItem('appType') === 'pc') {
      param.TypeCharOne = sessionStorage.getItem('kei_no')
      param.Typename = 'pc'
    }
    Api.getSystemConfig(param).then(result => {
      if (result.status) {
        let config = null
@@ -379,11 +384,18 @@
        LText: []
      }
      btnParam.LText = this.getMenuMessage()
      btnParam.LText = btnParam.LText.join(' union all ')
      btnParam.LText = Utils.formatOptions(btnParam.LText)
      btnParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
      btnParam.secretkey = Utils.encrypt(btnParam.LText, btnParam.timestamp)
      if (sessionStorage.getItem('appType') === 'pc') {
        param.TypeCharOne = sessionStorage.getItem('kei_no')
        param.Typename = 'pc'
        btnParam.LText = ''
      } else {
        btnParam.LText = this.getMenuMessage()
        btnParam.LText = btnParam.LText.join(' union all ')
        btnParam.LText = Utils.formatOptions(btnParam.LText)
        btnParam.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
        btnParam.secretkey = Utils.encrypt(btnParam.LText, btnParam.timestamp)
      }
      new Promise(resolve => {
        if (delButtons.length === 0) {
@@ -496,6 +508,8 @@
          error = `组件《${item.name}》未设置数据源!`
        } else if (item.setting.interType && !item.setting.primaryKey) {
          error = `组件《${item.name}》未设置主键!`
        } else if (!item.setting.supModule) {
          error = `组件《${item.name}》未设置上级组件!`
        }
      }
      if (item.type === 'bar' || item.type === 'line' || item.type === 'pie') {