| | |
| | | import React, { Component } from 'react' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Modal, Radio, notification, Button, Spin, Select, Cascader } from 'antd' |
| | | // import { ClockCircleOutlined, SyncOutlined, WarningOutlined, CheckCircleOutlined } from '@ant-design/icons' |
| | | import moment from 'moment' |
| | | import md5 from 'md5' |
| | | |
| | |
| | | visible: false, |
| | | loading: false, |
| | | saveing: false, |
| | | lang: '', |
| | | type: '', |
| | | dicts: [], |
| | | menus: [], |
| | |
| | | } |
| | | |
| | | trigger = () => { |
| | | let langs = sessionStorage.getItem('subLangList') |
| | | langs = JSON.parse(langs) |
| | | |
| | | this.setState({ |
| | | lang: langs[0], |
| | | loading: true, |
| | | visible: true, |
| | | saveing: false, |
| | |
| | | }) |
| | | |
| | | this.getDicts() |
| | | this.getMenus(langs[0]) |
| | | this.getMenus() |
| | | } |
| | | |
| | | getDicts = () => { |
| | |
| | | }) |
| | | } |
| | | |
| | | getMenus = (lang) => { |
| | | getMenus = () => { |
| | | if (this.state.menus.length > 0) { |
| | | this.setState({loading: false}) |
| | | return |
| | |
| | | func: 's_get_pc_menus', |
| | | systemType: window.GLOB.sysType, |
| | | pro_sys: '', |
| | | lang: lang, |
| | | lang: 'zh-CN', |
| | | debug: 'Y' |
| | | } |
| | | |
| | |
| | | |
| | | transThdMenu = (menu, reload) => { |
| | | const { menulist } = this.props |
| | | const { lang, dicts } = this.state |
| | | const { dicts } = this.state |
| | | |
| | | let _param = { |
| | | func: 'sPC_Get_LongParam', |
| | | MenuID: menu.value, |
| | | lang: lang |
| | | lang: 'zh-CN' |
| | | } |
| | | |
| | | let creat = true |
| | |
| | | |
| | | tail = tail.slice(-8) |
| | | |
| | | setLangTrans(config, btnDict, titDict, lisDict, regs, tail) |
| | | setLangTrans(config, btnDict, titDict, lisDict, {}, regs, tail) |
| | | |
| | | if (config.components) { |
| | | let commonId = Utils.getuuid() |
| | |
| | | config.tables = config.tables || [] |
| | | config.style = config.style || {} |
| | | } |
| | | |
| | | delete config.tbkey |
| | | |
| | | config.enabled = false |
| | | config.MenuName = menu.label |
| | |
| | | |
| | | tail = tail.slice(-8) |
| | | |
| | | setLangTrans(config, btnDict, titDict, lisDict, regs, tail) |
| | | setLangTrans(config, btnDict, titDict, lisDict, {}, regs, tail) |
| | | |
| | | if (config.components) { |
| | | let commonId = Utils.getuuid() |
| | |
| | | config.style = config.style || {} |
| | | } |
| | | |
| | | delete config.tbkey |
| | | |
| | | config.enabled = false |
| | | config.MenuNo = temp.PrintTempNO || '' |
| | | config.MenuName = temp.PrintTempName || '' |