MinsoftK

HTML 수정

...@@ -119,7 +119,7 @@ const Html = ({ visible, onCancel, callback }) => { ...@@ -119,7 +119,7 @@ const Html = ({ visible, onCancel, callback }) => {
119 const onFinish = async values => { 119 const onFinish = async values => {
120 console.log(qnoCheck); 120 console.log(qnoCheck);
121 if(!qnoCheck){ 121 if(!qnoCheck){
122 - message.warning("문제 번호를 확인해 주세요.") 122 + message.warning("그림 번호를 확인해 주세요.")
123 return; 123 return;
124 }else{ 124 }else{
125 const creator = sessionStorage.getItem('id'); 125 const creator = sessionStorage.getItem('id');
...@@ -187,11 +187,11 @@ const Html = ({ visible, onCancel, callback }) => { ...@@ -187,11 +187,11 @@ const Html = ({ visible, onCancel, callback }) => {
187 > 187 >
188 <Form.Item 188 <Form.Item
189 name="qno" 189 name="qno"
190 - label="문제 번호" 190 + label="그림 번호"
191 rules={[ 191 rules={[
192 { 192 {
193 required: true, 193 required: true,
194 - message: '저장할 html의 문항번호를 입력해 주세요.', 194 + message: '저장할 그림의 문항번호를 입력해 주세요.',
195 }, 195 },
196 ]}> 196 ]}>
197 <Row> 197 <Row>
...@@ -204,39 +204,26 @@ const Html = ({ visible, onCancel, callback }) => { ...@@ -204,39 +204,26 @@ const Html = ({ visible, onCancel, callback }) => {
204 </InputNumber> 204 </InputNumber>
205 </Col> 205 </Col>
206 <Col> 206 <Col>
207 - <Button onClick={onClickQno}>번호 확인</Button> 207 + <Button onClick={onClickQno}>그림 번호 확인</Button>
208 </Col> 208 </Col>
209 </Row> 209 </Row>
210 </Form.Item> 210 </Form.Item>
211 <Form.Item 211 <Form.Item
212 name="typeSol" 212 name="typeSol"
213 - label="문제 타입" 213 + label="그림 타입"
214 rules={[ 214 rules={[
215 { 215 {
216 required: true, 216 required: true,
217 - message: '저장할 html의 문제 타입을 선택해 주세요.', 217 + message: '저장할 그림의 타입을 선택해 주세요.',
218 }, 218 },
219 ]}> 219 ]}>
220 <Select onChange={onChangeTypeSol}> 220 <Select onChange={onChangeTypeSol}>
221 - <Option value="오지선다형">오지선다형</Option> 221 + <Option value="오지선다형">JPEG</Option>
222 - <Option value="단답형">단답형</Option> 222 + <Option value="단답형">PNG</Option>
223 - <Option value="계산식">계산식</Option> 223 +
224 - </Select>
225 - </Form.Item>
226 - <Form.Item
227 - name="typeQue"
228 - label="문제/풀이 구분"
229 - rules={[
230 - {
231 - required: true,
232 - message: '저장할 html의 문제/풀이 구분을 선택해 주세요.',
233 - },
234 - ]}>
235 - <Select onChange={onChangeTypeQue}>
236 - <Option value="문제">문제</Option>
237 - <Option value="풀이">풀이</Option>
238 </Select> 224 </Select>
239 </Form.Item> 225 </Form.Item>
226 +
240 <Form.Item label="파일 업로드"> 227 <Form.Item label="파일 업로드">
241 <Form.Item 228 <Form.Item
242 name="html" 229 name="html"
......
...@@ -43,15 +43,15 @@ const fetchCheckQno = async(qno) => { ...@@ -43,15 +43,15 @@ const fetchCheckQno = async(qno) => {
43 const result = await checkQno(qno); 43 const result = await checkQno(qno);
44 if(result.status===200){ 44 if(result.status===200){
45 console.log(result); 45 console.log(result);
46 - message.info("사용 가능한 문항 번호 입니다."); 46 + message.info("사용 가능한 그림 번호 입니다.");
47 return true; 47 return true;
48 }else{ 48 }else{
49 - message.info("존재 하지 않는 문항 번호 입니다."); 49 + message.info("존재 하지 않는 그림 번호 입니다.");
50 return false; 50 return false;
51 } 51 }
52 }catch(e){ 52 }catch(e){
53 console.log(e); 53 console.log(e);
54 - message.info("존재 하지 않는 문항 번호 입니다."); 54 + message.info("존재 하지 않는 그림 번호 입니다.");
55 return false; 55 return false;
56 } 56 }
57 } 57 }
......
...@@ -24,11 +24,11 @@ console.log(fields); ...@@ -24,11 +24,11 @@ console.log(fields);
24 24
25 <Form.Item 25 <Form.Item
26 name="qno" 26 name="qno"
27 - label="문제 번호" 27 + label="그림 번호"
28 rules={[ 28 rules={[
29 { 29 {
30 required: true, 30 required: true,
31 - message: '문항번호를 입력해 주세요.', 31 + message: '그림번호를 입력해 주세요.',
32 }, 32 },
33 ]}><Row> 33 ]}><Row>
34 <Col> 34 <Col>
...@@ -46,23 +46,6 @@ console.log(fields); ...@@ -46,23 +46,6 @@ console.log(fields);
46 </Form.Item> 46 </Form.Item>
47 47
48 <Form.Item 48 <Form.Item
49 - name="typeSol"
50 - label="문제 타입"
51 - wrapperCol={{span: 2 }}
52 - rules={[
53 - {
54 - required: true,
55 - message: '문제 타입을 선택해 주세요.',
56 - },
57 - ]}>
58 - <Select onChange={onChangeTypeSol}>
59 - <Option value="오지선다형">오지선다형</Option>
60 - <Option value="단답형">단답형</Option>
61 - <Option value="계산식">계산식</Option>
62 - </Select>
63 - </Form.Item>
64 -
65 - <Form.Item
66 name="typeQue" 49 name="typeQue"
67 label="문제/풀이 구분" 50 label="문제/풀이 구분"
68 rules={[ 51 rules={[
......