| | |
| | | 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: '菜单'}) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | |
| | | 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: []}) |
| | | }) |
| | | } |
| | | |
| | |
| | | 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 => { |
| | |
| | | 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'}) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | } 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'}) |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | 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 = {} |
| | |
| | | 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 = '' |
| | | |
| | |
| | | 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) => { |
| | |
| | | } |
| | | } |
| | | |
| | | // 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) => { |
| | |
| | | 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 = () => { |
| | |
| | | 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 = []) => { |
| | |
| | | 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) => { |
| | |
| | | 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() { |
| | |
| | | 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' |
| | |
| | | {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> |
| | | ) |