king
2024-10-17 044a4ec4ebe85f8c00e889fe3914de17a6ea1f28
2024-10-17
11个文件已修改
153 ■■■■ 已修改文件
src/components/header/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/querylog/index.jsx 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/sidemenu/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/excelInbutton/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/exceloutbutton/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/newpagebutton/index.jsx 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/normalbutton/index.jsx 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/popupbutton/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/printbutton/index.jsx 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/zshare/actionList/tabbutton/index.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/main/index.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/header/index.jsx
@@ -561,9 +561,9 @@
        MKEmitter.emit('modifyTabs', menu)
      }
  
      // if (window.GLOB.systemType === 'production') {
      //   MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '菜单'})
      // }
      if (window.GLOB.systemType === 'production') {
        MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '菜单'})
      }
    }
  }
src/components/querylog/index.jsx
@@ -48,51 +48,42 @@
    })
    let userid = sessionStorage.getItem('UserID') || ''
    let LText = [...logMap.values()].map(item => `select '${item.menuId}','${item.times}','${item.name}','${window.GLOB.appkey}','${userid}'`)
    let LText = [...logMap.values()].map(item => `select '${item.menuId}','${item.times}','${item.name || ''}','${window.GLOB.appkey}','${userid}'`)
    Api.genericInterface({func: 's_get_local_users_operation_log'}).then(res => {
      if (!res.status) {
    if (LText.length === 0) {
      setTimeout(() => {
        this.sendLog()
      }, 600000)
      return
    }
    // {func: 's_get_local_users_operation_log'} 本地接口 返回 long_param 传入 sso 的 s_get_users_operation_log
    let param = {
      func: 's_get_users_operation_log',
      exec_type: window.GLOB.execType || 'y',
      LText: LText.join(' union all '),
      long_param: ''
    }
    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
    param.secretkey = Utils.encrypt('', param.timestamp)
    param.LText = Utils.formatOptions(param.LText, param.exec_type)
    Api.getSystemConfig(param).then(result => {
      if (!result.status) {
        notification.warning({
          top: 92,
          message: res.message,
          message: result.message,
          duration: 3
        })
        return
      }
      if (LText.length === 0 && !res.long_param) {
        setTimeout(() => {
          this.sendLog()
        }, 600000)
        return
      }
      let param = {
        func: 's_get_users_operation_log',
        exec_type: window.GLOB.execType || 'y',
        LText: LText.join(' union all '),
        long_param: res.long_param
      }
      param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
      param.secretkey = Utils.encrypt('', param.timestamp)
      param.LText = Utils.formatOptions(param.LText, param.exec_type)
      Api.getSystemConfig(param).then(result => {
        if (!result.status) {
          notification.warning({
            top: 92,
            message: result.message,
            duration: 3
          })
          return
        }
        setTimeout(() => {
          this.sendLog()
        }, 600000)
        this.setState({logs: []})
      })
      setTimeout(() => {
        this.sendLog()
      }, 600000)
      this.setState({logs: []})
    })
  }
src/components/sidemenu/index.jsx
@@ -79,9 +79,9 @@
      MKEmitter.emit('modifyTabs', menu)
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '菜单'})
    // }
    if (window.GLOB.systemType === 'production') {
      MKEmitter.emit('queryTrigger', {menuId: menu.MenuID, name: '菜单'})
    }
  }
  onOpenChange = openKeys => {
src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -144,9 +144,9 @@
        this.refs.excelIn.exceltrigger()
      })
  
      // if (window.GLOB.systemType === 'production') {
      //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '导入Excel'})
      // }
      if (window.GLOB.systemType === 'production') {
        MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '导入Excel'})
      }
    }
  }
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -107,9 +107,9 @@
      })
    } else {
      MKEmitter.emit('queryModuleParam', btn.$menuId, this.triggerExcelout)
      // if (window.GLOB.systemType === 'production') {
      //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '导出Excel'})
      // }
      if (window.GLOB.systemType === 'production') {
        MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '导出Excel'})
      }
    }
  }
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -159,10 +159,7 @@
      lang = data[0].lang_s || ''
    }
    // let _name = '新页面'
    if (btn.pageTemplate === 'billprint') {
      // _name = '单据打印'
      if (btn.preHandle === 'true' && btn.pre_func) {
        MKEmitter.emit('queryModuleParam', btn.$menuId, (res) => {
          let searches = {}
@@ -273,8 +270,6 @@
      let src = '#/print/' + window.btoa(window.encodeURIComponent(JSON.stringify({ ID: Id, lang })))
      window.open(src)
    } else if (btn.pageTemplate === 'pay') {
      // _name = '支付'
      let appId = ''
      let merchId = ''
@@ -372,9 +367,14 @@
      window.open(url)
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _name})
    // }
    if (window.GLOB.systemType === 'production') {
      let _temname = {
        billprint: '单据打印',
        pay: '直接执行',
      }
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: _temname[btn.pageTemplate] || '新页面'})
    }
  }
  prequest = (ID, data, appId, merchId) => {
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) => {
src/tabviews/zshare/actionList/popupbutton/index.jsx
@@ -184,9 +184,9 @@
      visible: true
    })
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '弹窗(标签)'})
    // }
    if (window.GLOB.systemType === 'production') {
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '弹窗(标签)'})
    }
  }
  syspopclose = () => {
src/tabviews/zshare/actionList/printbutton/index.jsx
@@ -205,9 +205,9 @@
      this.triggerPrint(data)
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签打印'})
    // }
    if (window.GLOB.systemType === 'production') {
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签打印'})
    }
  }
  triggerPrint = (data, formlist = []) => {
src/tabviews/zshare/actionList/tabbutton/index.jsx
@@ -213,9 +213,9 @@
      MKEmitter.emit('openNewTab')
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'})
    // }
    if (window.GLOB.systemType === 'production') {
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'})
    }
  }
  triggerMenu = (tab) => {
@@ -300,9 +300,9 @@
      MKEmitter.emit('openNewTab')
    }
    // if (window.GLOB.systemType === 'production') {
    //   MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'})
    // }
    if (window.GLOB.systemType === 'production') {
      MKEmitter.emit('queryTrigger', {menuId: btn.uuid, name: '标签页'})
    }
  }
  render() {
src/views/main/index.jsx
@@ -4,7 +4,7 @@
import Header from '@/components/header'
import MKEmitter from '@/utils/events.js'
import Sidemenu from '@/components/sidemenu'
// import QueryLog from '@/components/querylog'
import QueryLog from '@/components/querylog'
import ImgScale from '@/components/imgScale'
// import './index.scss'
@@ -78,7 +78,7 @@
        {navBar === 'shutter' || navBar === 'menu_board_navigation' ?
          <Tabview key="tabview"/> :
          <Breadview key="breadview"/>}
        {/* {window.GLOB.systemType === 'production' ? <QueryLog /> : null} */}
        {window.GLOB.systemType === 'production' ? <QueryLog /> : null}
        <ImgScale />
      </div>
    )