king
2023-08-27 5e1d4d5155c57c43739d61914e2d29a64f9bb683
src/menu/datasource/verifycard/index.jsx
@@ -29,7 +29,8 @@
class VerifyCard extends Component {
  static propTpyes = {
    config: PropTypes.object,        // 组件配置信息
    config: PropTypes.object,
    updRecord: PropTypes.func
  }
  state = {
@@ -137,7 +138,7 @@
        width: '10%',
        render: (text, record) => {
          if (record.position === 'back') {
            return <span style={{color: 'orange'}}>后置</span>
            return <span style={{color: '#1890ff'}}>后置</span>
          } else {
            return <span style={{color: '#26C281'}}>前置</span>
          }
@@ -911,7 +912,14 @@
          this.setState({reload: false})
        })
      }
      this.props.updRecord({...res.data.setting})
    })
  }
  updateStatus = (res) => {
    this.setState({median: {...res}})
    this.props.updRecord({...res})
  }
  copyColumns = () => {
@@ -985,7 +993,7 @@
              subColumns={subColumns}
              setting={setting}
              scripts={scripts}
              updateStatus={(res) => this.setState({median: {...res}})}
              updateStatus={this.updateStatus}
              wrappedComponentRef={(inst) => this.settingForm = inst}
            /> : null}
          </TabPane>