Commit 427bb19b by yuananting

feat:新增导入提示

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