From 5cfe6db94c1449810a44660b299dba8e7e98e5c5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 10 六月 2021 14:43:39 +0800
Subject: [PATCH] 2021-06-10

---
 src/templates/sharecomponent/fieldscomponent/editcard/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx b/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx
index 4be536b..2d89188 100644
--- a/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx
+++ b/src/templates/sharecomponent/fieldscomponent/editcard/index.jsx
@@ -54,7 +54,7 @@
         <div className="base" onClick={this.changeSelect}>
           <Icon type="check" />
           <p title={card.field}>{this.props.dict['model.form.field']}锛� <span>{card.field}</span></p>
-          <p title={card.label}>{this.props.dict['model.form.name']}锛� <span>{card.label}</span></p>
+          <p title={card.label}>{this.props.dict['model.name']}锛� <span>{card.label}</span></p>
         </div>
         {type === 'search' ?
           <Radio.Group onChange={this.changeType} value={card.type} disabled={!card.selected}>
@@ -129,7 +129,7 @@
       <div className="common-modal-edit-card">
         <Row className="search-row">
           <Col span={8}>
-            {!loading ? <Search placeholder={dict['form.required.input'] + dict['header.form.field']} onSearch={value => {this.setState({searchKey: value})}} enterButton /> : null}
+            {!loading ? <Search placeholder={dict['form.required.input'] + dict['model.form.field']} onSearch={value => {this.setState({searchKey: value})}} enterButton /> : null}
           </Col>
           <Col span={8}>
             <Button onClick={this.reset}>
@@ -139,7 +139,7 @@
         </Row>
         <Row>
           {dataSource.map((item, index) => {
-            if (item.field.toLowerCase().indexOf(this.state.searchKey.toLowerCase()) >= 0) {
+            if (item.field.toLowerCase().indexOf(this.state.searchKey.toLowerCase()) >= 0 || item.label.indexOf(this.state.searchKey) >= 0) {
               return (
                 <Col key={index} span={8}>
                   <EditCardCell ref={'cellCard' + index} type={type} card={item} dict={this.props.dict} changeCard={this.changeCard} />

--
Gitblit v1.8.0