Commit d326ebf7 by 姜雷

提交后重置名字电话为当前用户

parent a797b86e
...@@ -72,10 +72,11 @@ class ReprtRepair extends Component { ...@@ -72,10 +72,11 @@ class ReprtRepair extends Component {
}); });
} }
resetApplyForm = () => { resetApplyForm = () => {
const { userinfo } = this.props;
this.setState({ this.setState({
applyForm: { applyForm: {
name: '', name: userinfo.name,
repairCellphone: '', repairCellphone: userinfo.cellphone,
applyIdentity: '学生', applyIdentity: '学生',
area: '', area: '',
areaId: '', areaId: '',
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import styles from './style.css'; import styles from './style.css';
import titleIcon from '../images/dropdown_icon@2x.png'; import titleIcon from '../images/dropdown_icon@2x.png';
import { formatDate } from '../../../utils/index';
class RepairItem extends Component { class RepairItem extends Component {
constructor(props) { constructor(props) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment