king
2023-05-18 e9e8b1c7b481415714fff9a0d83099fd5a7d6ff0
src/menu/transfer/index.jsx
@@ -8,8 +8,7 @@
import Api from '@/api'
import Utils from '@/utils/utils.js'
import { getTables } from '@/utils/utils-custom.js'
// import MKEmitter from '@/utils/events.js'
import './index.scss'
// import './index.scss'
const { confirm } = Modal
@@ -84,8 +83,9 @@
              }
            }
          })
          tab.components[0].cols = tab.components[0].cols.filter(col => !(col.field && col.Hide === 'true'))
          tab.components[0].cols.forEach(col => {
            if (col.type !== 'action') return
            if (col.type !== 'custom') return
            col.elements.forEach(btn => {
              if (btn.OpenType === 'popview' && btn.config) {
                btn.config.Template = 'CustomPage'
@@ -109,8 +109,9 @@
            }
          }
        })
        item.cols = item.cols.filter(col => !(col.field && col.Hide === 'true'))
        item.cols.forEach(col => {
          if (col.type !== 'action') return
          if (col.type !== 'custom') return
          col.elements.forEach(btn => {
            if (btn.OpenType === 'popview' && btn.config) {
              btn.config.Template = 'CustomPage'
@@ -226,15 +227,14 @@
    Api.getSystemConfig(param).then(res => {
      _resolve()
      if (!res.status) {
        notification.warning({
          top: 92,
          message: res.message,
          duration: 5
        Modal.warning({
          title: res.message,
          okText: '知道了'
        })
        return
      }
      localStorage.setItem('menuUpdate', new Date().getTime())
      localStorage.setItem('menuUpdate', new Date().getTime() + ',' + _config.uuid)
      notification.success({
        top: 92,
        message: '切换成功。',
@@ -254,9 +254,7 @@
  render() {
    return (
      <div className="mk-replace-field" style={{display: 'inline-block'}}>
        <Button className="mk-border-green" icon="retweet" onClick={this.trigger}>模板切换</Button>
      </div>
      <Button className="mk-border-green" icon="retweet" onClick={this.trigger}>模板切换</Button>
    )
  }
}