king
2024-08-25 a240a459ae980040672cc3a62569d13c1fc592db
src/views/tabledesign/index.jsx
@@ -9,7 +9,7 @@
import md5 from 'md5'
import Api from '@/api'
import Utils, { setGLOBFuncs } from '@/utils/utils.js'
import Utils from '@/utils/utils.js'
import { langs } from '@/store/options'
import MKEmitter from '@/utils/events.js'
import { getTables, getFuncsAndInters, getLangTrans } from '@/utils/utils-custom.js'
@@ -121,7 +121,7 @@
    MKEmitter.addListener('triggerMenuSave', this.triggerMenuSave)
    setTimeout(() => {
      this.getRoleFields()
      setGLOBFuncs()
      // setGLOBFuncs()
    }, 1000)
    document.onkeydown = (event) => {
@@ -540,6 +540,8 @@
    } else if (this.checklog()) {
      if (sessionStorage.getItem('langList') && !config.trans) {
      // } else if (window.backend && config.enabled && !config.allSqls) {
      } else {
        notification.success({
          top: 92,
@@ -565,6 +567,14 @@
        config.enabled = true
        delete config.force
      }
      // let sqls = []
      // delete config.allSqls
      // if (window.backend && config.enabled) {
      //   sqls = getAllSqls(config)
      //   config.allSqls = sqls
      // }
      let tbs = []
      let btns = this.getMenuMessage(tbs)
@@ -934,7 +944,7 @@
                    <PasteBaseTable type="page" insert={this.insert}/>
                    {config ? <Switch className="big" checkedChildren="启" unCheckedChildren="停" checked={config.enabled} onChange={this.onEnabledChange} /> : null}
                    <Button type="primary" id="save-config" onClick={this.submitConfig} loading={menuloading}>保存</Button>
                    <Button type="default" onClick={this.closeView}>关闭</Button>
                    <Button type="default" disabled={menuloading} onClick={this.closeView}>关闭</Button>
                  </div>
                } style={{ width: '100%' }}>
                  {config && !comloading ? <MenuShell menu={config} handleList={this.updateConfig} /> : null}