king
2022-12-27 c78e2e555201789537bf176a349bbb34f8c0ca8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { is, fromJS } from 'immutable'
// import { Button, Select, Input, DatePicker } from 'antd'
// import { EditOutlined, ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
 
import Api from '@/api'
// import MKEmitter from '@/utils/events.js'
import './index.scss'
 
class AccountModule extends Component {
  static propTpyes = {
    config: PropTypes.object
  }
 
  state = {
    BID: '',
    type: '',
    config: null
  }
 
  UNSAFE_componentWillMount () {
    const { config } = this.props
 
    let BID = ''
    let BData = ''
 
    if (config.wrap.supModule) {
      BData = window.GLOB.CacheData.get(config.wrap.supModule)
    } else {
      BData = window.GLOB.CacheData.get(config.$pageId)
    }
    if (BData) {
      BID = BData.$BID || ''
    }
 
    this.setState({
      config: fromJS(config).toJS(),
      BID: BID || '',
      type: config.wrap.type
    }, () => {
      this.loadData()
    })
  }
 
  componentDidMount () {
 
  }
 
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.state), fromJS(nextState))
  }
 
  /**
   * @description 组件销毁,清除state更新,清除快捷键设置
   */
  componentWillUnmount () {
    this.setState = () => {
      return
    }
  }
 
  loadData = () => {
    let param = {
      func: 's_get_fcc_account_data'
    }
    Api.genericInterface(param)
 
    let _param = {
      func: 's_get_fcc_book_data'
    }
    Api.genericInterface(_param)
  }
 
  render() {
    const { config } = this.state
 
    return (
      <div className="menu-account-wrap" style={config.style}>
        
      </div>
    )
  }
}
 
export default AccountModule