新增试题画面重置按钮追加

main
hujunpeng 3 months ago
parent f36c964ab3
commit 7b3e2547c7
  1. 10
      packages/examination/src/views/examPaper/examPaperAdd.tsx

@ -222,6 +222,11 @@ class ExamPaperAdd extends Component<any, States> {
this.setState({ selectedQuestionList: newQuestion, selectedRowKeys: newSelectedRowKeys }); this.setState({ selectedQuestionList: newQuestion, selectedRowKeys: newSelectedRowKeys });
}; };
// 重置
handleReset = () => {
this.formRefSub.current.resetFields();
};
// 处理查询 // 处理查询
handleQuery = () => { handleQuery = () => {
this.setState({ loading: true }); this.setState({ loading: true });
@ -583,7 +588,10 @@ class ExamPaperAdd extends Component<any, States> {
label="题干条件:" label="题干条件:"
name="questionContent" name="questionContent"
> >
<Input placeholder="请输入题干条件" style={{ width: 500 }}/> <Input placeholder="请输入题干条件" style={{ width: 400 }}/>
</Form.Item>
<Form.Item>
<Button type="default" onClick={this.handleReset}></Button>
</Form.Item> </Form.Item>
<Form.Item> <Form.Item>
<Button type="primary" onClick={this.handleQuery}></Button> <Button type="primary" onClick={this.handleQuery}></Button>

Loading…
Cancel
Save