king
2020-06-23 c83a50317baeba1a4771e4d802eee029ed2b7e31
src/templates/zshare/editcard/index.jsx
@@ -53,8 +53,8 @@
      <div className={'ant-card ant-card-bordered ' + (card.selected ? 'selected' : '')} >
        <div className="base" onClick={this.changeSelect}>
          <Icon type="check" />
          <p title={card.field}>{this.props.dict['header.form.field']}: <span>{card.field}</span></p>
          <p title={card.label}>{this.props.dict['header.form.name']}: <span>{card.label}</span></p>
          <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>
        </div>
        {type === 'search' ?
          <Radio.Group onChange={this.changeType} value={card.type} disabled={!card.selected}>
@@ -122,13 +122,14 @@
  }
  render() {
    const { dict } = this.props
    const { dataSource, type, loading } = this.state
    return (
      <div className="common-modal-edit-card">
        <Row className="search-row">
          <Col span={8}>
            {!loading ? <Search placeholder={this.props.dict['header.form.field.placeholder']} onSearch={value => {this.setState({searchKey: value})}} enterButton /> : null}
            {!loading ? <Search placeholder={dict['form.required.input'] + dict['header.form.field']} onSearch={value => {this.setState({searchKey: value})}} enterButton /> : null}
          </Col>
          <Col span={8}>
            <Button onClick={this.reset}>