From e9640ccdc9fe57f91919e3f51462c780e44fadb0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 23 十二月 2020 13:14:20 +0800 Subject: [PATCH] 2020-12-23 --- src/menu/components/card/data-card/wrapsetting/settingform/index.jsx | 13 ++++++------- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/menu/components/card/data-card/wrapsetting/settingform/index.jsx b/src/menu/components/card/data-card/wrapsetting/settingform/index.jsx index f1690da..035ceab 100644 --- a/src/menu/components/card/data-card/wrapsetting/settingform/index.jsx +++ b/src/menu/components/card/data-card/wrapsetting/settingform/index.jsx @@ -6,7 +6,6 @@ class SettingForm extends Component { static propTpyes = { - MenuType: PropTypes.any, // 鑿滃崟绫诲瀷 dict: PropTypes.object, // 瀛楀吀椤� config: PropTypes.object, // 鍗$墖琛屼俊鎭� wrap: PropTypes.object, // 鏁版嵁婧愰厤缃� @@ -54,7 +53,7 @@ } render() { - const { wrap, config, MenuType } = this.props + const { wrap, config } = this.props const { getFieldDecorator } = this.props.form const { roleList } = this.state @@ -133,7 +132,7 @@ )} </Form.Item> </Col> : null} - {MenuType !== 'billPrint' && config.subtype === 'datacard' ? <Col span={12}> + {config.subtype === 'datacard' ? <Col span={12}> <Form.Item label={ <Tooltip placement="topLeft" title="鏁版嵁婧愪腑閫夋嫨鍒嗛〉鏃舵湁鏁堛��"> <Icon type="question-circle" /> @@ -150,7 +149,7 @@ )} </Form.Item> </Col> : null} - {MenuType !== 'billPrint' && config.subtype !== 'tablecard' ? <Col span={12}> + {config.subtype !== 'tablecard' ? <Col span={12}> <Form.Item label="鍗$墖灞炴��"> {getFieldDecorator('cardType', { initialValue: wrap.cardType || '' @@ -222,7 +221,7 @@ })(<InputNumber min={100} max={2000} precision={0} onPressEnter={this.handleSubmit} />)} </Form.Item> </Col> : null} - {MenuType === 'billPrint' && config.subtype === 'propcard' ? <Col span={12}> + {config.subtype === 'propcard' ? <Col span={12}> <Form.Item label={ <Tooltip placement="topLeft" title="閫夋嫨绫诲瀷涓恒�婇〉鐪�/椤佃剼銆嬫椂锛屾墦鍗扮殑姣忛〉閲岄兘浼氬甫鏈夎缁勪欢銆�"> <Icon type="question-circle" /> @@ -239,7 +238,7 @@ )} </Form.Item> </Col> : null} - {MenuType !== 'billPrint' ? <Col span={12}> + <Col span={12}> <Form.Item label="榛戝悕鍗�"> {getFieldDecorator('blacklist', { initialValue: wrap.blacklist || [] @@ -255,7 +254,7 @@ </Select> )} </Form.Item> - </Col> : null} + </Col> </Row> </Form> </div> -- Gitblit v1.8.0