From cb9ade2afd2a367ad767bc605ab7086c695dd010 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 十二月 2022 15:53:32 +0800 Subject: [PATCH] 2022-12-09 --- src/views/menudesign/popview/menuform/index.jsx | 44 +++----------------------------------------- 1 files changed, 3 insertions(+), 41 deletions(-) diff --git a/src/menu/popview/menuform/index.jsx b/src/views/menudesign/popview/menuform/index.jsx similarity index 65% rename from src/menu/popview/menuform/index.jsx rename to src/views/menudesign/popview/menuform/index.jsx index 4de1e6f..a925865 100644 --- a/src/menu/popview/menuform/index.jsx +++ b/src/views/menudesign/popview/menuform/index.jsx @@ -1,26 +1,14 @@ import React, {Component} from 'react' import PropTypes from 'prop-types' -import { Form, Row, Col, Radio, Input, Tooltip, InputNumber } from 'antd' +import { Form, Row, Col, Radio, Tooltip, InputNumber } from 'antd' import { QuestionCircleOutlined } from '@ant-design/icons' // import './index.scss' class CustomMenuForm extends Component { static propTpyes = { - dict: PropTypes.object, // 瀛楀吀椤� - btn: PropTypes.object, config: PropTypes.object, updateConfig: PropTypes.func - } - - // 鑿滃崟鍚嶇О - changeName = (e) => { - this.props.updateConfig({...this.props.config, MenuName: e.target.value}) - } - - // 鑿滃崟鍙傛暟 - changeNo = (e) => { - this.props.updateConfig({...this.props.config, MenuNo: e.target.value}) } changeCacheDay = (val) => { @@ -41,7 +29,7 @@ } render() { - const { dict, config } = this.props + const { config } = this.props const { getFieldDecorator } = this.props.form const formItemLayout = { labelCol: { @@ -57,32 +45,6 @@ return ( <Form {...formItemLayout}> <Row> - <Col span={24}> - <Form.Item label={dict['mob.menu'] + dict['mob.name']}> - {getFieldDecorator('MenuName', { - initialValue: config.MenuName, - rules: [ - { - required: true, - message: dict['mob.required.input'] + dict['mob.menu'] + dict['mob.name'] + '!' - } - ] - })(<Input placeholder="" autoComplete="off" onChange={this.changeName}/>)} - </Form.Item> - </Col> - <Col span={24}> - <Form.Item label={dict['mob.menu'] + dict['mob.param']}> - {getFieldDecorator('MenuNo', { - initialValue: config.MenuNo, - rules: [ - { - required: true, - message: dict['mob.required.input'] + dict['mob.menu'] + dict['mob.param'] + '!' - } - ] - })(<Input placeholder="" autoComplete="off" onChange={this.changeNo}/>)} - </Form.Item> - </Col> <Col span={24}> <Form.Item label={ <Tooltip placement="topLeft" title="瀵逛簬涓嶇粡甯告�у彉鍔ㄧ殑淇℃伅锛岀紦瀛樻暟鎹湁鍔╀簬鎻愰珮鏌ヨ鏁堢巼銆�"> @@ -119,7 +81,7 @@ rules: [ { required: true, - message: dict['mob.required.input'] + '鏃堕暱!' + message: '璇疯緭鍏ユ椂闀�!' } ] })( -- Gitblit v1.8.0