king
2021-04-13 16145059198ba7c7ff8a73f4ac207d3ba2269e5a
src/menu/components/card/data-card/wrapsetting/settingform/index.jsx
@@ -13,7 +13,8 @@
  }
  state = {
    roleList: []
    roleList: [],
    MenuType: ''
  }
  UNSAFE_componentWillMount () {
@@ -28,7 +29,13 @@
      roleList = []
    }
    this.setState({roleList})
    let MenuType = ''
    if (window.GLOB.customMenu && window.GLOB.customMenu.parentId === 'BillPrintTemp') {
      MenuType = 'billPrint'
    }
    this.setState({roleList, MenuType})
  }
  handleConfirm = () => {
@@ -55,7 +62,7 @@
  render() {
    const { wrap, config } = this.props
    const { getFieldDecorator } = this.props.form
    const { roleList } = this.state
    const { roleList, MenuType } = this.state
    const formItemLayout = {
      labelCol: {
@@ -197,7 +204,7 @@
                )}
              </Form.Item>
            </Col> : null}
            {config.subtype === 'propcard' ? <Col span={12}>
            {config.subtype === 'propcard' && MenuType === 'billPrint' ? <Col span={12}>
              <Form.Item label={
                <Tooltip placement="topLeft" title="选择类型为《页眉/页脚》时,打印的每页里都会带有该组件。">
                  <Icon type="question-circle" />