|
|
|
|
@ -19908,7 +19908,7 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var inputValue = Number(e.target.value);
|
|
|
|
|
if (Number.isInteger(inputValue) && inputValue >= 0 && inputValue <= 100) {
|
|
|
|
|
scoreLevel[record.index].max_score = inputValue;
|
|
|
|
|
scoreLevel[record.index + 1].min_score = inputValue ? inputValue + 1 : 0;
|
|
|
|
|
scoreLevel[record.index + 1].min_score = inputValue;
|
|
|
|
|
setScoreLevel(toConsumableArray_default()(scoreLevel));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -19969,7 +19969,7 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var checkALLOverlap = function checkALLOverlap() {
|
|
|
|
|
// 检查区间是否重复
|
|
|
|
|
function isOverlap(interval1, interval2) {
|
|
|
|
|
return interval1.min_score <= interval2.max_score && interval2.min_score <= interval1.max_score;
|
|
|
|
|
return interval1.min_score <= interval2.max_score && interval2.min_score < interval1.max_score;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查所有区间对
|
|
|
|
|
@ -20398,7 +20398,7 @@ var StatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
message/* default */.ZP.info('得分区间不能为空,请设置完整!');
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 4:
|
|
|
|
|
if (!checkALLOverlap()) {
|
|
|
|
|
if (!(checkALLOverlap() || scoreLevel[0].max_score === 100 || scoreLevel[1].max_score === 100)) {
|
|
|
|
|
_context2.next = 7;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
@ -20793,7 +20793,7 @@ var RandomStatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var inputValue = Number(e.target.value);
|
|
|
|
|
if (Number.isInteger(inputValue) && inputValue >= 0 && inputValue <= 100) {
|
|
|
|
|
scoreLevel[record.index].max_score = inputValue;
|
|
|
|
|
scoreLevel[record.index + 1].min_score = inputValue ? inputValue + 1 : 0;
|
|
|
|
|
scoreLevel[record.index + 1].min_score = inputValue;
|
|
|
|
|
setScoreLevel(toConsumableArray_default()(scoreLevel));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -20854,7 +20854,7 @@ var RandomStatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
var checkALLOverlap = function checkALLOverlap() {
|
|
|
|
|
// 检查区间是否重复
|
|
|
|
|
function isOverlap(interval1, interval2) {
|
|
|
|
|
return interval1.min_score <= interval2.max_score && interval2.min_score <= interval1.max_score;
|
|
|
|
|
return interval1.min_score <= interval2.max_score && interval2.min_score < interval1.max_score;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 检查所有区间对
|
|
|
|
|
@ -20981,7 +20981,7 @@ var RandomStatisticsResult_WorkList = function WorkList(_ref) {
|
|
|
|
|
message/* default */.ZP.info('得分区间不能为空,请设置完整!');
|
|
|
|
|
return _context2.abrupt("return");
|
|
|
|
|
case 4:
|
|
|
|
|
if (!checkALLOverlap()) {
|
|
|
|
|
if (!(checkALLOverlap() || scoreLevel[0].max_score === 100 || scoreLevel[1].max_score === 100)) {
|
|
|
|
|
_context2.next = 7;
|
|
|
|
|
break;
|
|
|
|
|
}
|