| | |
| | | import React, {Component} from 'react' |
| | | import PropTypes from 'prop-types' |
| | | import { is, fromJS } from 'immutable' |
| | | import { Icon, Button, Modal, notification } from 'antd' |
| | | import { Button, Modal, notification } from 'antd' |
| | | |
| | | import Api from '@/api' |
| | | import options from '@/store/options.js' |
| | | import asyncComponent from '@/utils/asyncSpinComponent' |
| | | import './index.scss' |
| | | |
| | |
| | | confirmLoading: false, |
| | | revertLoading: false |
| | | }) |
| | | |
| | | // let deffers = [] |
| | | // config.tabgroups.forEach(group => { |
| | | // group.sublist.forEach(tab => { |
| | | // deffers.push(new Promise(resolve => { |
| | | // let param = { |
| | | // func: 'sPC_Get_LongParam', |
| | | // MenuID: tab.linkTab |
| | | // } |
| | | // Api.getCacheConfig(param).then(res => { |
| | | // res.tab = tab |
| | | // resolve(res) |
| | | // }) |
| | | // })) |
| | | // }) |
| | | // }) |
| | | |
| | | // if (deffers.length > 0) { |
| | | // Promise.all(deffers).then(result => { |
| | | // let errors = result.filter(res => !res.status) |
| | | // if (errors.length > 0) { |
| | | // notification.warning({ |
| | | // top: 92, |
| | | // message: errors[0].message, |
| | | // duration: 5 |
| | | // }) |
| | | // this.setState({ |
| | | // loading: false |
| | | // }) |
| | | // return |
| | | // } |
| | | |
| | | // let roleId = sessionStorage.getItem('role_id') || '' // 角色ID |
| | | // result.forEach(res => { |
| | | // if (!res.LongParam) return |
| | | |
| | | // let subconfig = '' |
| | | // let subUserConfig = userConfig ? userConfig[res.tab.uuid] : '' |
| | | // } |
| | | } |
| | | |
| | | changeMenuParam = (param) => { |
| | |
| | | render() { |
| | | |
| | | return ( |
| | | <div> |
| | | <Icon className="custom-control" type="setting" onClick={this.controlCustomSetting} /> |
| | | <div className="page-setting-wrap"> |
| | | {options.sysType === 'local' ? <Button |
| | | icon="setting" |
| | | shape="circle" |
| | | className="page-setting" |
| | | onClick={this.handleviewconfig} |
| | | /> : null} |
| | | {/* <Icon className="custom-control" type="setting" onClick={this.controlCustomSetting} /> */} |
| | | <Modal |
| | | wrapClassName="common-table-custom-modal" |
| | | title={'自定义设置'} |