Commit 3957cf04 authored by 李维's avatar 李维

添加卷面基础分配置

parent fa0a16f7
......@@ -2518,6 +2518,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
const resultData = {
details: [],
scoreCconfigArr: [],
basicScore: 0,
totalScore: 0,
}
this.data.scoreConfigArr.forEach(scoreGroup => {
......@@ -2595,6 +2596,12 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
})
// 检查是否配置了卷面基础分,为了拉平分值,有的试卷不满15分 30分 100分,或者有画图题
if(this.data.basicScore != null && !isNaN(Number(this.data.basicScore)) && Number(this.data.basicScore) > 0) {
totalScore += Number(this.data.basicScore);
resultData.basicScore = Number(this.data.basicScore);
}
resultData.totalScore = totalScore;
this.resultData = resultData;
console.log("答案校验完毕", resultData)
......
export const defaultData = {"header_image_url":"http://teach.cdn.ireadabc.com/20a20d5e22df179f1465f600ec94eef2.jpg","footer_image_url":"http://teach.cdn.ireadabc.com/665e4c3e6a80563b4c33dd7bbcd18014.jpg","bgItem":{"url":"http://teach.cdn.ireadabc.com/241fbccf3ac865d3b64ce9df322ee040.jpg","rect":{"x":0,"y":1666.1066666666666,"width":1408,"height":1663.7866666666669}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-2door划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":696.53,"y":83.3,"width":74.75,"height":32.04}},{"index":1,"itemType":"rect","itemName":"1-2door","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":444.5,"y":355.61,"width":74.75,"height":32.04}},{"index":2,"itemType":"rect","itemName":"1-3pen划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":477.61,"y":85.43,"width":64.07,"height":32.04}},{"index":3,"itemType":"rect","itemName":"1-3pen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":692.25,"y":355.61,"width":64.07,"height":32.04}},{"index":4,"itemType":"rect","itemName":"1-4bag划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":953.89,"y":84.36,"width":64.07,"height":32.04}},{"index":5,"itemType":"rect","itemName":"1-4bag","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":935.74,"y":357.75,"width":64.07,"height":32.04}},{"index":6,"itemType":"rect","itemName":"1-5folder划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":819.33,"y":83.3,"width":85.43,"height":32.04}},{"index":7,"itemType":"rect","itemName":"1-5folder","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1163.2,"y":356.68,"width":85.43,"height":32.04}},{"index":8,"itemType":"rect","itemName":"2-2pencil","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":428.48,"y":736.85,"width":138.83,"height":32.04}},{"index":9,"itemType":"rect","itemName":"2-3ruler","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":661.29,"y":733.65,"width":106.79,"height":32.04}},{"index":10,"itemType":"rect","itemName":"2-4eraser","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":909.04,"y":732.58,"width":138.83,"height":32.04}},{"index":11,"itemType":"rect","itemName":"2-5window","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1150.38,"y":732.58,"width":149.51,"height":32.04}},{"index":12,"itemType":"rect","itemName":"3-2It’s a pen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1014.76,"y":909.85,"width":213.58,"height":32.04}},{"index":13,"itemType":"rect","itemName":"3-3It’s an eraser","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":378.29,"y":1098.87,"width":213.58,"height":32.04}},{"index":14,"itemType":"rect","itemName":"3-4 It’s a bag","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1013.69,"y":1099.94,"width":213.58,"height":32.04}},{"index":15,"itemType":"rect","itemName":"4-2连d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1379.59,"width":32.04,"height":32.04}},{"index":16,"itemType":"rect","itemName":"4-2d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1500.4,"width":32.04,"height":32.04}},{"index":17,"itemType":"rect","itemName":"4-2正确","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":47.24,"y":1255.85,"width":32.04,"height":32.04}},{"index":18,"itemType":"rect","itemName":"4-3连c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1438.46,"width":32.04,"height":32.04}},{"index":19,"itemType":"rect","itemName":"4-3c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1443.8,"width":32.04,"height":32.04}},{"index":20,"itemType":"rect","itemName":"4-4连a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1499.33,"width":32.04,"height":32.04}},{"index":21,"itemType":"rect","itemName":"4-4a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1324.19,"width":32.04,"height":32.04}},{"index":22,"itemType":"rect","itemName":"4-5连e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1559.13,"width":32.04,"height":32.04}},{"index":23,"itemType":"rect","itemName":"4-5e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1557,"width":32.04,"height":32.04}},{"index":24,"itemType":"rect","itemName":"4-50","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1554.89,"width":40,"height":40}},{"index":25,"itemType":"rect","itemName":"4-30","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1433.89,"width":40,"height":40}},{"index":26,"itemType":"rect","itemName":"4-20","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1374.89,"width":40,"height":40}},{"index":27,"itemType":"rect","itemName":"4-40","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1494.89,"width":40,"height":40}}],"hotZoneConfigArr":[{"hotZoneType":"0","linkHotZoneIndex":-1,"audio_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","contentList":[{"uuid":"f6fd393e-e21e-47df-97f7-899a54dd4e79","text":"door","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":1,"selectStrikeOutHotZoneIndex":0,"selectOptionListIndex":1},{"uuid":"80a44f6d-d4e3-48eb-986a-04fa1c0700e5","text":"pen","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":3,"selectStrikeOutHotZoneIndex":2,"selectOptionListIndex":0},{"uuid":"447e5fb5-8d07-4ca8-a8ff-54f8f4869575","text":"bag","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":5,"selectStrikeOutHotZoneIndex":4,"selectOptionListIndex":3},{"uuid":"20182f19-bbcf-41e1-a962-3bbbab9aac8d","text":"folder","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":7,"selectStrikeOutHotZoneIndex":6,"selectOptionListIndex":2}],"useSelectOptionList":true,"selectOptionList":[{"text":"pen","optionShowText":"pen","selectStrikeOutHotZoneIndex":2},{"text":"door","optionShowText":"door","selectStrikeOutHotZoneIndex":0},{"text":"folder","optionShowText":"folder","selectStrikeOutHotZoneIndex":6},{"text":"bag","optionShowText":"bag","selectStrikeOutHotZoneIndex":4}]},{"hotZoneType":"5","linkHotZoneIndex":8,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"pencil","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":9,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"ruler","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":10,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"eraser","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":11,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"window","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":12,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's a pen|It is a pen","contentList":[],"isCaseInsensitive":true,"keyWordMatch":true},{"hotZoneType":"5","linkHotZoneIndex":13,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's an eraser","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":14,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's a bag","contentList":[]},{"hotZoneType":"6","linkHotZoneIndex":-1,"audio_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","contentList":[{"uuid":"d0a8f273-a9d5-47a5-8d30-3eca7c271d05","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"d","selectStartHotZoneIndex":15,"selectEndHotZoneIndex":16,"selectEndHotZoneShowIndex":26},{"uuid":"ac7ff5c6-df75-4ee2-8560-4a5d9be79978","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"c","selectStartHotZoneIndex":18,"selectEndHotZoneIndex":19,"selectEndHotZoneShowIndex":25},{"uuid":"e98a3364-1af8-4a8d-95cb-97ea81517ec8","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"a","selectStartHotZoneIndex":20,"selectEndHotZoneIndex":21,"selectEndHotZoneShowIndex":27},{"uuid":"2ae078b7-f8c1-482d-85c9-d5d05aaca539","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"e","selectStartHotZoneIndex":22,"selectEndHotZoneIndex":23,"selectEndHotZoneShowIndex":24}],"linkResultShowHotZoneIndex":17}],"scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0,1,2,3,4,5,6,7]},{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[8]}],"alignMode":"left"}
\ No newline at end of file
export const defaultData = {"header_image_url":"http://teach.cdn.ireadabc.com/20a20d5e22df179f1465f600ec94eef2.jpg","footer_image_url":"http://teach.cdn.ireadabc.com/665e4c3e6a80563b4c33dd7bbcd18014.jpg","bgItem":{"url":"http://teach.cdn.ireadabc.com/241fbccf3ac865d3b64ce9df322ee040.jpg","rect":{"x":0,"y":1666.1066666666666,"width":1408,"height":1663.7866666666669}},"hotZoneItemArr":[{"index":0,"itemType":"rect","itemName":"1-2door划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":696.53,"y":83.3,"width":74.75,"height":32.04}},{"index":1,"itemType":"rect","itemName":"1-2door","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":444.5,"y":355.61,"width":74.75,"height":32.04}},{"index":2,"itemType":"rect","itemName":"1-3pen划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":477.61,"y":85.43,"width":64.07,"height":32.04}},{"index":3,"itemType":"rect","itemName":"1-3pen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":692.25,"y":355.61,"width":64.07,"height":32.04}},{"index":4,"itemType":"rect","itemName":"1-4bag划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":953.89,"y":84.36,"width":64.07,"height":32.04}},{"index":5,"itemType":"rect","itemName":"1-4bag","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":935.74,"y":357.75,"width":64.07,"height":32.04}},{"index":6,"itemType":"rect","itemName":"1-5folder划掉","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":819.33,"y":83.3,"width":85.43,"height":32.04}},{"index":7,"itemType":"rect","itemName":"1-5folder","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1163.2,"y":356.68,"width":85.43,"height":32.04}},{"index":8,"itemType":"rect","itemName":"2-2pencil","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":428.48,"y":736.85,"width":138.83,"height":32.04}},{"index":9,"itemType":"rect","itemName":"2-3ruler","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":661.29,"y":733.65,"width":106.79,"height":32.04}},{"index":10,"itemType":"rect","itemName":"2-4eraser","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":909.04,"y":732.58,"width":138.83,"height":32.04}},{"index":11,"itemType":"rect","itemName":"2-5window","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1150.38,"y":732.58,"width":149.51,"height":32.04}},{"index":12,"itemType":"rect","itemName":"3-2It’s a pen","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1014.76,"y":909.85,"width":213.58,"height":32.04}},{"index":13,"itemType":"rect","itemName":"3-3It’s an eraser","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":378.29,"y":1098.87,"width":213.58,"height":32.04}},{"index":14,"itemType":"rect","itemName":"3-4 It’s a bag","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":1013.69,"y":1099.94,"width":213.58,"height":32.04}},{"index":15,"itemType":"rect","itemName":"4-2连d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1379.59,"width":32.04,"height":32.04}},{"index":16,"itemType":"rect","itemName":"4-2d","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1500.4,"width":32.04,"height":32.04}},{"index":17,"itemType":"rect","itemName":"4-2正确","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":47.24,"y":1255.85,"width":32.04,"height":32.04}},{"index":18,"itemType":"rect","itemName":"4-3连c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1438.46,"width":32.04,"height":32.04}},{"index":19,"itemType":"rect","itemName":"4-3c","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1443.8,"width":32.04,"height":32.04}},{"index":20,"itemType":"rect","itemName":"4-4连a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1499.33,"width":32.04,"height":32.04}},{"index":21,"itemType":"rect","itemName":"4-4a","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1324.19,"width":32.04,"height":32.04}},{"index":22,"itemType":"rect","itemName":"4-5连e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":468.35,"y":1559.13,"width":32.04,"height":32.04}},{"index":23,"itemType":"rect","itemName":"4-5e","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":712.54,"y":1557,"width":32.04,"height":32.04}},{"index":24,"itemType":"rect","itemName":"4-50","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1554.89,"width":40,"height":40}},{"index":25,"itemType":"rect","itemName":"4-30","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1433.89,"width":40,"height":40}},{"index":26,"itemType":"rect","itemName":"4-20","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1374.89,"width":40,"height":40}},{"index":27,"itemType":"rect","itemName":"4-40","fontSize":50,"fontName":"BRLNSR_1","fontColor":"#8f3758","fontScale":1.1,"imgScale":1,"mapScale":1.1,"rect":{"x":422,"y":1494.89,"width":40,"height":40}}],"hotZoneConfigArr":[{"hotZoneType":"0","linkHotZoneIndex":-1,"audio_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","contentList":[{"uuid":"f6fd393e-e21e-47df-97f7-899a54dd4e79","text":"door","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":1,"selectStrikeOutHotZoneIndex":0,"selectOptionListIndex":1},{"uuid":"80a44f6d-d4e3-48eb-986a-04fa1c0700e5","text":"pen","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":3,"selectStrikeOutHotZoneIndex":2,"selectOptionListIndex":0},{"uuid":"447e5fb5-8d07-4ca8-a8ff-54f8f4869575","text":"bag","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":5,"selectStrikeOutHotZoneIndex":4,"selectOptionListIndex":3},{"uuid":"20182f19-bbcf-41e1-a962-3bbbab9aac8d","text":"folder","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"6","isCorrect":false,"isCheck":false,"linkedShowText":"","selectStartHotZoneIndex":null,"selectEndHotZoneIndex":null,"selectEndHotZoneShowIndex":null,"selectHotZoneIndex":7,"selectStrikeOutHotZoneIndex":6,"selectOptionListIndex":2}],"useSelectOptionList":true,"selectOptionList":[{"text":"pen","optionShowText":"pen","selectStrikeOutHotZoneIndex":2},{"text":"door","optionShowText":"door","selectStrikeOutHotZoneIndex":0},{"text":"folder","optionShowText":"folder","selectStrikeOutHotZoneIndex":6},{"text":"bag","optionShowText":"bag","selectStrikeOutHotZoneIndex":4}]},{"hotZoneType":"5","linkHotZoneIndex":8,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"pencil","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":9,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"ruler","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":10,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"eraser","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":11,"audio_url":"","score":"5","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"window","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":12,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's a pen|It is a pen","contentList":[],"isCaseInsensitive":true,"keyWordMatch":true},{"hotZoneType":"5","linkHotZoneIndex":13,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's an eraser","contentList":[]},{"hotZoneType":"5","linkHotZoneIndex":14,"audio_url":"","score":"8","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"It's a bag","contentList":[]},{"hotZoneType":"6","linkHotZoneIndex":-1,"audio_url":"","score":"0","unselectedStyle":"none","selectedStyle":"border","rightOrWrongStyleType":"symbol","inputText":"","contentList":[{"uuid":"d0a8f273-a9d5-47a5-8d30-3eca7c271d05","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"d","selectStartHotZoneIndex":15,"selectEndHotZoneIndex":16,"selectEndHotZoneShowIndex":26},{"uuid":"ac7ff5c6-df75-4ee2-8560-4a5d9be79978","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"c","selectStartHotZoneIndex":18,"selectEndHotZoneIndex":19,"selectEndHotZoneShowIndex":25},{"uuid":"e98a3364-1af8-4a8d-95cb-97ea81517ec8","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"a","selectStartHotZoneIndex":20,"selectEndHotZoneIndex":21,"selectEndHotZoneShowIndex":27},{"uuid":"2ae078b7-f8c1-482d-85c9-d5d05aaca539","text":"","optionShowText":"","image_url":"","hotZoneIndex":null,"score":"8","isCorrect":false,"isCheck":false,"linkedShowText":"e","selectStartHotZoneIndex":22,"selectEndHotZoneIndex":23,"selectEndHotZoneShowIndex":24}],"linkResultShowHotZoneIndex":17}],"scoreConfigArr":[{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[0,1,2,3,4,5,6,7]},{"linkHotZoneIndex":-1,"linkHotZoneIndexArr":[8]}],"alignMode":"left","basicScore":"100"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -516,6 +516,11 @@
</div>
<button nz-button nzType="danger" nzDanger nz-popconfirm nzPopconfirmTitle="删除后不可恢复,确定删除吗?" nzPopconfirmPlacement="bottom" (nzOnConfirm)="deleteScoreConfig(i)" style="position: absolute; right: 10px; bottom: 10px;">删除</button>
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">基础分:</span>
<input type="text" nz-input [(ngModel)]="item.basicScore" (blur)="save()" style="display: inline-block; width: 180px;">
</div>
<div style="margin: 10px 10px;">
<span style="display: inline-block; text-align: right; width: 100px;">总分显示:</span>
<nz-select nzShowSearch nzAllowClear [(ngModel)]="item.totalScoreHotZoneIndex" style="width: 180px;" (ngModelChange)="save()">
......
......@@ -279,6 +279,7 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.configCheckResult = ""
const hotZoneIndexErr = [];
const scoreConfigErr = [];
const otherInfo = [];
let allScoreIndex = []
let totalScore = 0;
this.item.scoreConfigArr.forEach(config => {
......@@ -480,7 +481,10 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
}
});
if(this.item.basicScore != null && !isNaN(Number(this.item.basicScore)) && Number(this.item.basicScore) > 0) {
totalScore += Number(this.item.basicScore);
otherInfo.push(`配置了基础分: ${this.item.basicScore}`)
}
this.item.hotZoneConfigArr.forEach((content, contentIndex) => {
if(content.hotZoneType != this.AUDIO_PLAY) {
......@@ -503,6 +507,14 @@ export class FormComponent implements OnInit, OnChanges, OnDestroy, AfterViewIni
this.configCheckResult += `\n\n【分数配置检查】${scoreConfigErr.length}处\n`
this.configCheckResult += scoreConfigErr.join("\n");
}
if(otherInfo.length == 0) {
this.configCheckResult += "\n\n【其他信息】无\n"
} else {
this.configCheckResult += `\n\n【其他信息】${otherInfo.length}条\n`
this.configCheckResult += otherInfo.join("\n");
}
this.configCheckResult += `\n\n总分:【${totalScore}】`
}
......
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