新增试题的选项内容限制100字修改

main
hujunpeng 3 months ago
parent 88c50b0df1
commit 73fbcb2a0a
  1. 16
      packages/examination/src/views/question/questionAdd.tsx
  2. 8
      packages/examination/src/views/question/questionEdit.tsx

@ -376,13 +376,13 @@ class QuestionAdd extends Component<any, States> {
<Form.Item name={`optionA_${formId}`} <Form.Item name={`optionA_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
<Radio value="B">B</Radio> <Radio value="B">B</Radio>
<Form.Item name={`optionB_${formId}`} <Form.Item name={`optionB_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
</div> </div>
<div style={{ display: "flex", marginTop: 10 }}> <div style={{ display: "flex", marginTop: 10 }}>
@ -390,13 +390,13 @@ class QuestionAdd extends Component<any, States> {
<Form.Item name={`optionC_${formId}`} <Form.Item name={`optionC_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
<Radio value="D">D</Radio> <Radio value="D">D</Radio>
<Form.Item name={`optionD_${formId}`} <Form.Item name={`optionD_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
</div> </div>
</Radio.Group> </Radio.Group>
@ -407,13 +407,13 @@ class QuestionAdd extends Component<any, States> {
<Form.Item name={`optionA_${formId}`} <Form.Item name={`optionA_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
<Checkbox value="B">B</Checkbox> <Checkbox value="B">B</Checkbox>
<Form.Item name={`optionB_${formId}`} <Form.Item name={`optionB_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
</div> </div>
<div style={{ display: "flex", marginTop: 10 }}> <div style={{ display: "flex", marginTop: 10 }}>
@ -421,13 +421,13 @@ class QuestionAdd extends Component<any, States> {
<Form.Item name={`optionC_${formId}`} <Form.Item name={`optionC_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
<Checkbox value="D">D</Checkbox> <Checkbox value="D">D</Checkbox>
<Form.Item name={`optionD_${formId}`} <Form.Item name={`optionD_${formId}`}
rules={[{ required: true, message: "请输入答案" }]} rules={[{ required: true, message: "请输入答案" }]}
> >
<Input placeholder="请输入答案" style={{ width: 500 }} /> <Input placeholder="请输入答案" maxLength={100} style={{ width: 500 }} />
</Form.Item> </Form.Item>
</div> </div>
</Checkbox.Group> </Checkbox.Group>

@ -204,6 +204,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -214,6 +215,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -226,6 +228,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -236,6 +239,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -251,6 +255,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -261,6 +266,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -273,6 +279,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>
@ -283,6 +290,7 @@ class QuestionEdit extends Component<any, States> {
> >
<Input <Input
placeholder="请输入答案" placeholder="请输入答案"
maxLength={100}
style={{ width: 500 }} style={{ width: 500 }}
/> />
</Form.Item> </Form.Item>

Loading…
Cancel
Save