Commit 427bb19b by yuananting

feat:新增导入提示

parent acb5ccd5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yuananting * @Author: yuananting
* @Date: 2021-02-25 14:34:29 * @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting * @LastEditors: yuananting
* @LastEditTime: 2021-03-18 14:11:46 * @LastEditTime: 2021-03-18 14:52:18
* @Description: 助学工具-题库-题目管理-新建题目Tab * @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -512,7 +512,6 @@ class NewQuestionTab extends Component { ...@@ -512,7 +512,6 @@ class NewQuestionTab extends Component {
} }
changeBlankCount = (data) => { changeBlankCount = (data) => {
console.log("data:", data);
data.forEach((item) => { data.forEach((item) => {
if (!item.answerTagList) { if (!item.answerTagList) {
item.answerTagList = []; item.answerTagList = [];
...@@ -592,7 +591,7 @@ class NewQuestionTab extends Component { ...@@ -592,7 +591,7 @@ class NewQuestionTab extends Component {
}} }}
value={tag} value={tag}
size="small" size="small"
suffix={<CloseOutlined style={{ color: "#999999" }} />} suffix={<CloseOutlined onClick={() => this.handleInputConfirm(optionItem)} style={{ color: "#999999" }} />}
onBlur={(e) => onBlur={(e) =>
this.handleInputConfirm(optionItem, e.target.value, index) this.handleInputConfirm(optionItem, e.target.value, index)
} }
...@@ -1019,7 +1018,6 @@ class NewQuestionTab extends Component { ...@@ -1019,7 +1018,6 @@ class NewQuestionTab extends Component {
* @memberof QuestionInputItem * @memberof QuestionInputItem
*/ */
handleReupload = (uploadItem) => { handleReupload = (uploadItem) => {
console.log("uploadItem:", uploadItem);
uploadItem.status = "init"; uploadItem.status = "init";
Upload.uploadToOSSEvent( Upload.uploadToOSSEvent(
uploadItem.mediaFile, uploadItem.mediaFile,
...@@ -1130,7 +1128,6 @@ class NewQuestionTab extends Component { ...@@ -1130,7 +1128,6 @@ class NewQuestionTab extends Component {
); );
let acceptType = ""; let acceptType = "";
let selectTypeList = []; let selectTypeList = [];
console.log("mediaType", mediaType);
switch (mediaType) { switch (mediaType) {
case "PICTURE": case "PICTURE":
acceptType = MEDIA_FILE_ACCEPT.PICTURE; acceptType = MEDIA_FILE_ACCEPT.PICTURE;
...@@ -1146,8 +1143,6 @@ class NewQuestionTab extends Component { ...@@ -1146,8 +1143,6 @@ class NewQuestionTab extends Component {
break; break;
} }
console.log(acceptType, selectTypeList);
return ( return (
<div className="question-input-item_wrapper"> <div className="question-input-item_wrapper">
{/* 题干 */} {/* 题干 */}
...@@ -1217,10 +1212,6 @@ class NewQuestionTab extends Component { ...@@ -1217,10 +1212,6 @@ class NewQuestionTab extends Component {
questionOptionContentList, questionOptionContentList,
isCorrectAnswer, isCorrectAnswer,
} = optionItem; } = optionItem;
console.log(
"questionOptionContentList:",
questionOptionContentList
);
optionItem.optionSort = optionIndex; optionItem.optionSort = optionIndex;
const mediaBtn = ["VOICE", "AUDIO", "PICTURE"]; const mediaBtn = ["VOICE", "AUDIO", "PICTURE"];
const placeHold = const placeHold =
......
...@@ -39,7 +39,6 @@ class BatchImportQuestionModal extends Component { ...@@ -39,7 +39,6 @@ class BatchImportQuestionModal extends Component {
// 选择云盘资源 // 选择云盘资源
handleSelectExcel = (file) => { handleSelectExcel = (file) => {
console.log(file);
this.setState({ uploadFile: file }); this.setState({ uploadFile: file });
this.setState({ this.setState({
showSelectFileModal: false, showSelectFileModal: false,
...@@ -133,6 +132,9 @@ class BatchImportQuestionModal extends Component { ...@@ -133,6 +132,9 @@ class BatchImportQuestionModal extends Component {
</div> </div>
<div className="step-section"> <div className="step-section">
<h4 className="step-title">2.选择需要导入的Excel文件</h4> <h4 className="step-title">2.选择需要导入的Excel文件</h4>
<p style={{ marginBottom: 16, color: "gray" }}>
导入限制:一次最多导入1000个题目
</p>
<Button <Button
type="primary" type="primary"
className="add-btn" className="add-btn"
...@@ -220,9 +222,9 @@ class BatchImportQuestionModal extends Component { ...@@ -220,9 +222,9 @@ class BatchImportQuestionModal extends Component {
type="primary" type="primary"
className="down-btn" className="down-btn"
onClick={() => { onClick={() => {
this.setState({ status: "init" }) this.setState({ status: "init" });
this.setState({ uploadFile: null }) this.setState({ uploadFile: null });
this.setState({ showSelectFileModal: true }) this.setState({ showSelectFileModal: true });
}} }}
> >
重新上传文件 重新上传文件
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
.step-title { .step-title {
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
margin-bottom: 16px;
color: #333; color: #333;
} }
.tip-box { .tip-box {
......
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