king
2020-11-12 f830c733cbc071f023c9a9a4e1571b7c81d672bf
src/tabviews/zshare/actionList/newpagebutton/index.jsx
@@ -1,5 +1,6 @@
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { is, fromJS } from 'immutable'
import { Button, notification, Modal } from 'antd'
@@ -47,7 +48,7 @@
   * @description 触发按钮操作
   */
  actionTrigger = (triggerId) => {
    const { setting, btn, selectedData } = this.props
    const { setting, btn, selectedData, dataManager } = this.props
    const _this = this
    if (triggerId && btn.uuid !== triggerId) return
@@ -91,7 +92,7 @@
    }
    if (btn.pageTemplate === 'billprint') {
      let src = '#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify({ id: Id, tempId: btn.printTemp })))
      let src = '#/billprint/' + window.btoa(window.encodeURIComponent(JSON.stringify({ id: Id, tempId: btn.printTemp, dataManager: dataManager })))
      window.open(src)
    } else if (btn.pageTemplate === 'billprintTemp') {
      let src = '#/menudesign/' + window.btoa(window.encodeURIComponent(JSON.stringify({ MenuType: 'billPrint', MenuId: Id, MenuNo: MenuNo, MenuName: name || '打印', Remark: Remark })))
@@ -162,4 +163,14 @@
  }
}
export default NewPageButton
const mapStateToProps = (state) => {
  return {
    dataManager: state.dataManager
  }
}
const mapDispatchToProps = () => {
  return {}
}
export default connect(mapStateToProps, mapDispatchToProps)(NewPageButton)