|
|
@ -70,12 +70,14 @@ class ExamPaperAdd extends Component<any, States> { |
|
|
|
componentDidMount() { |
|
|
|
componentDidMount() { |
|
|
|
this.handleFindDict(); |
|
|
|
this.handleFindDict(); |
|
|
|
const { state } = this.props.location; |
|
|
|
const { state } = this.props.location; |
|
|
|
|
|
|
|
if (state){ |
|
|
|
const { id, isEdit } = state; |
|
|
|
const { id, isEdit } = state; |
|
|
|
this.setState({ id: id ,isEdit: isEdit}); |
|
|
|
this.setState({ id: id ,isEdit: isEdit}); |
|
|
|
if(isEdit === 'true'){ |
|
|
|
if(isEdit === 'true'){ |
|
|
|
this.handleGetDetail(id); |
|
|
|
this.handleGetDetail(id); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 字典
|
|
|
|
// 字典
|
|
|
|
handleFindDict() { |
|
|
|
handleFindDict() { |
|
|
|