From 58a28e1faa15f638a136fefdcfcd0b3106c1fa16 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 24 六月 2020 10:18:54 +0800 Subject: [PATCH] 2020-06-24 --- src/templates/sharecomponent/columncomponent/colspanform/index.jsx | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/templates/sharecomponent/columncomponent/colspanform/index.jsx b/src/templates/sharecomponent/columncomponent/colspanform/index.jsx index 7f50da6..2fdbe29 100644 --- a/src/templates/sharecomponent/columncomponent/colspanform/index.jsx +++ b/src/templates/sharecomponent/columncomponent/colspanform/index.jsx @@ -77,13 +77,13 @@ <Form {...formItemLayout} className="commontable-cospan-column-form" id="columncolspan"> <Row gutter={24}> <Col span={12}> - <Form.Item label={this.props.dict['header.form.name']}> + <Form.Item label={this.props.dict['model.name']}> {getFieldDecorator('label', { initialValue: this.props.card.label, rules: [ { required: true, - message: this.props.dict['form.required.input'] + this.props.dict['header.form.name'] + '!' + message: this.props.dict['form.required.input'] + this.props.dict['model.name'] + '!' }, { max: formRule.input.max, @@ -94,66 +94,66 @@ </Form.Item> </Col> <Col span={12}> - <Form.Item label={this.props.dict['header.form.type']}> + <Form.Item label={this.props.dict['model.form.type']}> {getFieldDecorator('type', { initialValue: this.props.dict['model.form.colspan'], rules: [ { required: true, - message: this.props.dict['form.required.input'] + this.props.dict['header.form.type'] + '!' + message: this.props.dict['form.required.input'] + this.props.dict['model.form.type'] + '!' } ] })(<Input placeholder="" autoComplete="off" disabled={true}/>)} </Form.Item> </Col> <Col span={12}> - <Form.Item label={this.props.dict['header.form.align']}> + <Form.Item label={this.props.dict['model.form.align']}> {getFieldDecorator('Align', { initialValue: this.props.card.Align, rules: [ { required: true, - message: this.props.dict['form.required.select'] + this.props.dict['header.form.align'] + '!' + message: this.props.dict['form.required.select'] + this.props.dict['model.form.align'] + '!' } ] })( <Select getPopupContainer={() => document.getElementById('columncolspan')} > - <Select.Option value="left">{this.props.dict['header.form.alignLeft']}</Select.Option> - <Select.Option value="right">{this.props.dict['header.form.alignRight']}</Select.Option> - <Select.Option value="center">{this.props.dict['header.form.alignCenter']}</Select.Option> + <Select.Option value="left">{this.props.dict['model.form.alignLeft']}</Select.Option> + <Select.Option value="right">{this.props.dict['model.form.alignRight']}</Select.Option> + <Select.Option value="center">{this.props.dict['model.form.alignCenter']}</Select.Option> </Select> )} </Form.Item> </Col> <Col span={12}> - <Form.Item label={this.props.dict['header.form.columnWidth']}> + <Form.Item label={this.props.dict['model.form.columnWidth']}> {getFieldDecorator('Width', { initialValue: this.props.card.Width, rules: [ { required: true, - message: this.props.dict['form.required.input'] + this.props.dict['header.form.columnWidth'] + '!' + message: this.props.dict['form.required.input'] + this.props.dict['model.form.columnWidth'] + '!' } ] })(<InputNumber min={1} max={1000} precision={0} />)} </Form.Item> </Col> <Col span={12}> - <Form.Item label={this.props.dict['header.form.Hide']}> + <Form.Item label={this.props.dict['model.hidden']}> {getFieldDecorator('Hide', { - initialValue: this.props.card.Hide, + initialValue: this.props.card.Hide || 'false', rules: [ { required: true, - message: this.props.dict['form.required.select'] + this.props.dict['header.form.Hide'] + '!' + message: this.props.dict['form.required.select'] + this.props.dict['model.hidden'] + '!' } ] })( <Radio.Group> - <Radio value="true">{this.props.dict['header.form.true']}</Radio> - <Radio value="false">{this.props.dict['header.form.false']}</Radio> + <Radio value="true">{this.props.dict['model.true']}</Radio> + <Radio value="false">{this.props.dict['model.false']}</Radio> </Radio.Group> )} </Form.Item> -- Gitblit v1.8.0