king
2020-03-02 ba7c54e0029456e6b1bf7f0e0d31af69a3d74db3
src/views/printTemplate/index.jsx
@@ -2,6 +2,23 @@
import './index.scss'
class PrintTemplate extends Component {
  state = {
    ID: null
  }
  componentDidMount () {
    let _param = window.atob(this.props.match.params.param)
    let _params = {}
    _param.split('&').forEach(cell => {
      let _cell = cell.split('=')
      _params[_cell[0]] = _cell[1]
    })
    this.setState({
      ID: _params.ID
    })
  }
  render () {
    return (
      <div className="print-template">