king
2024-10-18 df2a8398142b7a5176552e254422300b5a014ece
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -307,16 +307,16 @@
      }
    }
    // if (window.GLOB.systemType === 'production') {
    //   let _change = {
    //     prompt: '提示框',
    //     exec: '直接执行',
    //     pop: '弹窗(表单)',
    //     formSubmit: '表单',
    //     form: '表单',
    //   }
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _change[btn.OpenType]})
    // }
    if (window.GLOB.systemType === 'production') {
      let _change = {
        prompt: '提示框',
        exec: '直接执行',
        pop: '弹窗(表单)',
        formSubmit: '表单',
        form: '表单',
      }
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _change[btn.OpenType]})
    }
  }
  preTrigger = (callback) => {
@@ -2779,7 +2779,11 @@
          duration: 5
        })
      } else if (window.GLOB.localSystemApi) {
        Api.cacheInterface({rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')}).then(result => {
        Api.cacheInterface({
          userid: sessionStorage.getItem('LocalUserID') || sessionStorage.getItem('UserID') || '',
          LoginUID: sessionStorage.getItem('LocalLoginUID') || sessionStorage.getItem('LoginUID') || '',
          rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')
        }).then(result => {
          if (!result.status) {
            notification.warning({
              top: 92,
@@ -2934,6 +2938,10 @@
      tabId = btn.refreshTab[btn.refreshTab.length - 1]
    }
    if (btn.excache === 'true') {
      this.clearBackSqlCache()
    }
    if (tabId && btn.$MenuID === tabId) { // 刷新当前菜单时,停止其他操作
      MKEmitter.emit('reloadMenuView', tabId)
      return
@@ -3044,6 +3052,20 @@
    }
  }
  clearBackSqlCache = () => {
    if (!window.backend) return
    Api.cacheInterface({}).then(res => {
      if (!res.status) {
        notification.warning({
          top: 92,
          message: res.message || '缓存清空失败!',
          duration: 5
        })
      }
    })
  }
  triggerNote = (res, ID) => {
    const { btn } = this.props