Commit f42644eb authored by 李维's avatar 李维

添加二级连线题型

parent f93e3ab1
This diff is collapsed.
export const defaultData = {"hotZoneConfigArr":[{"hotZoneType":"16","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[{"uuid":"b6cd8072-9f74-40d0-9f89-bd67b52060f7","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":0,"selectEndHotZoneIndex_1":1,"selectStartHotZoneIndex_2":2,"selectEndHotZoneIndex_2":3,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false}],"linkResultShowHotZoneIndex":4},{"hotZoneType":"15","linkHotZoneIndex":6,"audio_url":"","video_url":"","score":"66","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[],"drawingCheckCorrectColors":["color_red","color_orange","color_yellow","color_green","color_blue","color_purple","color_pink"],"drawingCheckStrictEqual":true}],"bgItem":{"rect":{"x":124.37271750805587,"y":0,"width":1073.2545649838883,"height":4996},"url":"http://staging-teach.cdn.ireadabc.com/d82192902671c1567c237f8b8b6c17b0.jpg"},"hotZoneItemArr":[],"hotZoneBgSliceList":[{"image_url":"http://staging-teach.cdn.ireadabc.com/0e8c2d62dd2c2ce008a931ec24d87db9.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/6c9238d99ab6613e74e76cf817baae45.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/3a159494342e25e0f4513108b065c22d.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/2f9451ae09101f0d0f30568814a30a53.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/5594532559d5cd73f2c08b8badbb25d9.png"}],"scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0,1]}]}
\ No newline at end of file
export const defaultData = {"hotZoneConfigArr":[{"hotZoneType":"16","linkHotZoneIndex":-1,"audio_url":"","video_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","keyWordMatch":false,"isCaseInsensitive":false,"openAnswer":false,"useSelectOptionList":false,"keyWordMatchInOrder":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"selectOptionList":[],"contentList":[{"uuid":"b6cd8072-9f74-40d0-9f89-bd67b52060f7","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":0,"selectEndHotZoneIndex_1":1,"selectStartHotZoneIndex_2":2,"selectEndHotZoneIndex_2":3,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false},{"uuid":"298f6e4b-639c-461d-a72b-1b57b0008cb7","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":0,"isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectStartHotZoneIndex_1":4,"selectEndHotZoneIndex_1":5,"selectStartHotZoneIndex_2":6,"selectEndHotZoneIndex_2":7,"inputText":"","keyWordMatch":false,"keyWordMatchInOrder":false,"isCaseInsensitive":false,"openAnswer":false,"capitalizedFirstLetter":false,"notAdaptContraction":false,"textAlignLeft":false,"drawingCheckCorrectColors":[],"drawingCheckStrictEqual":false}],"linkResultShowHotZoneIndex":8}],"bgItem":{"rect":{"x":138.37271750805587,"y":0,"width":1073.2545649838883,"height":4996},"url":"http://staging-teach.cdn.ireadabc.com/d82192902671c1567c237f8b8b6c17b0.jpg"},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":221.63,"y":1235,"width":28,"height":28}},{"index":1,"itemType":"rect","itemName":"2","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":274.63,"y":1208,"width":26,"height":26}},{"index":2,"itemType":"rect","itemName":"3","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":356.63,"y":1206,"width":26,"height":26}},{"index":3,"itemType":"rect","itemName":"4","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":404.63,"y":1207,"width":26,"height":26}},{"index":4,"itemType":"rect","itemName":"5","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":219.63,"y":1266,"width":32,"height":32}},{"index":5,"itemType":"rect","itemName":"6","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":266.63,"y":1249,"width":34,"height":34}},{"index":6,"itemType":"rect","itemName":"7","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":344.63,"y":1252,"width":32,"height":32}},{"index":7,"itemType":"rect","itemName":"8","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":396.63,"y":1246,"width":38,"height":38}},{"index":8,"itemType":"rect","itemName":"9","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.0546875,"imgScale":1,"mapScale":1.0546875,"rect":{"x":75.63,"y":1197,"width":42,"height":42}}],"hotZoneBgSliceList":[{"image_url":"http://staging-teach.cdn.ireadabc.com/0e8c2d62dd2c2ce008a931ec24d87db9.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/6c9238d99ab6613e74e76cf817baae45.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/3a159494342e25e0f4513108b065c22d.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/2f9451ae09101f0d0f30568814a30a53.png"},{"image_url":"http://staging-teach.cdn.ireadabc.com/5594532559d5cd73f2c08b8badbb25d9.png"}],"scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0]}]}
\ No newline at end of file
......@@ -8800,6 +8800,38 @@ let FormComponent = /*@__PURE__*/ (() => {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1}: 结果显示热区为空`);
}
break;
// 2级连线组
case this.CONNECTION_2LEVEL:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
// 分数检查
if (contentItem.score != null && !isNaN(Number(contentItem.score)) && Number(contentItem.score) > 0) {
totalScore += Number(contentItem.score);
}
else {
scoreConfigErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 分数配置为0或者有异常`);
}
// 起点1热区配置检查
if (contentItem.selectStartHotZoneIndex_1 == null || contentItem.selectStartHotZoneIndex_1 == undefined || contentItem.selectStartHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线起点1热区为空`);
}
// 终点1热区配置检查
if (contentItem.selectEndHotZoneIndex_1 == null || contentItem.selectEndHotZoneIndex_1 == undefined || contentItem.selectEndHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线终点1热区为空`);
}
// 起点2热区配置检查
if (contentItem.selectStartHotZoneIndex_2 == null || contentItem.selectStartHotZoneIndex_2 == undefined || contentItem.selectStartHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线起点2热区为空`);
}
// 终点2热区配置检查
if (contentItem.selectEndHotZoneIndex_2 == null || contentItem.selectEndHotZoneIndex_2 == undefined || contentItem.selectEndHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1} - 内容清单${contentIndex + 1}: 连线终点2热区为空`);
}
});
// 结果显示热区配置检查
if (hotZoneConfg.linkResultShowHotZoneIndex == null || hotZoneConfg.linkResultShowHotZoneIndex == undefined || hotZoneConfg.linkResultShowHotZoneIndex < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex + 1}: 结果显示热区为空`);
}
break;
// 判断对错
case this.RIGHT_OR_WRONG:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
......
This diff is collapsed.
......@@ -15681,6 +15681,43 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, ": \u7ED3\u679C\u663E\u793A\u70ED\u533A\u4E3A\u7A7A"));
}
break;
// 2级连线组
case _this55.CONNECTION_2LEVEL:
hotZoneConfg.contentList.forEach(function (contentItem, contentIndex) {
// 分数检查
if (contentItem.score != null && !isNaN(Number(contentItem.score)) && Number(contentItem.score) > 0) {
totalScore += Number(contentItem.score);
} else {
scoreConfigErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u5206\u6570\u914D\u7F6E\u4E3A0\u6216\u8005\u6709\u5F02\u5E38"));
} // 起点1热区配置检查
if (contentItem.selectStartHotZoneIndex_1 == null || contentItem.selectStartHotZoneIndex_1 == undefined || contentItem.selectStartHotZoneIndex_1 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u8D77\u70B91\u70ED\u533A\u4E3A\u7A7A"));
} // 终点1热区配置检查
if (contentItem.selectEndHotZoneIndex_1 == null || contentItem.selectEndHotZoneIndex_1 == undefined || contentItem.selectEndHotZoneIndex_1 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u7EC8\u70B91\u70ED\u533A\u4E3A\u7A7A"));
} // 起点2热区配置检查
if (contentItem.selectStartHotZoneIndex_2 == null || contentItem.selectStartHotZoneIndex_2 == undefined || contentItem.selectStartHotZoneIndex_2 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u8D77\u70B92\u70ED\u533A\u4E3A\u7A7A"));
} // 终点2热区配置检查
if (contentItem.selectEndHotZoneIndex_2 == null || contentItem.selectEndHotZoneIndex_2 == undefined || contentItem.selectEndHotZoneIndex_2 < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, " - \u5185\u5BB9\u6E05\u5355").concat(contentIndex + 1, ": \u8FDE\u7EBF\u7EC8\u70B92\u70ED\u533A\u4E3A\u7A7A"));
}
}); // 结果显示热区配置检查
if (hotZoneConfg.linkResultShowHotZoneIndex == null || hotZoneConfg.linkResultShowHotZoneIndex == undefined || hotZoneConfg.linkResultShowHotZoneIndex < 0) {
hotZoneIndexErr.push("\u5185\u5BB9".concat(hotZoneConfigIndex + 1, ": \u7ED3\u679C\u663E\u793A\u70ED\u533A\u4E3A\u7A7A"));
}
break;
// 判断对错
This diff is collapsed.
......@@ -453,6 +453,37 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1}: 结果显示热区为空`)
}
break;
// 2级连线组
case this.CONNECTION_2LEVEL:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
// 分数检查
if(contentItem.score != null && !isNaN(Number(contentItem.score)) && Number(contentItem.score) > 0) {
totalScore += Number(contentItem.score);
} else {
scoreConfigErr.push(`内容${hotZoneConfigIndex+1} - 内容清单${contentIndex+1}: 分数配置为0或者有异常`)
}
// 起点1热区配置检查
if(contentItem.selectStartHotZoneIndex_1 == null || contentItem.selectStartHotZoneIndex_1 == undefined || contentItem.selectStartHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1} - 内容清单${contentIndex+1}: 连线起点1热区为空`)
}
// 终点1热区配置检查
if(contentItem.selectEndHotZoneIndex_1 == null || contentItem.selectEndHotZoneIndex_1 == undefined || contentItem.selectEndHotZoneIndex_1 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1} - 内容清单${contentIndex+1}: 连线终点1热区为空`)
}
// 起点2热区配置检查
if(contentItem.selectStartHotZoneIndex_2 == null || contentItem.selectStartHotZoneIndex_2 == undefined || contentItem.selectStartHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1} - 内容清单${contentIndex+1}: 连线起点2热区为空`)
}
// 终点2热区配置检查
if(contentItem.selectEndHotZoneIndex_2 == null || contentItem.selectEndHotZoneIndex_2 == undefined || contentItem.selectEndHotZoneIndex_2 < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1} - 内容清单${contentIndex+1}: 连线终点2热区为空`)
}
});
// 结果显示热区配置检查
if(hotZoneConfg.linkResultShowHotZoneIndex == null || hotZoneConfg.linkResultShowHotZoneIndex == undefined || hotZoneConfg.linkResultShowHotZoneIndex < 0) {
hotZoneIndexErr.push(`内容${hotZoneConfigIndex+1}: 结果显示热区为空`)
}
break;
// 判断对错
case this.RIGHT_OR_WRONG:
hotZoneConfg.contentList.forEach((contentItem, contentIndex) => {
......
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