|
|
|
|
@ -323,7 +323,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}
|
|
|
|
|
}];
|
|
|
|
|
var hanleLevelNumOption = function hanleLevelNumOption() {
|
|
|
|
|
var _SBody$evaluation_lis, _SBody$evaluation_lis2;
|
|
|
|
|
var _SBody$clearance_list, _SBody$clearance_list2;
|
|
|
|
|
// 关卡通关次数统计
|
|
|
|
|
return {
|
|
|
|
|
title: [{
|
|
|
|
|
@ -371,7 +371,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
type: 'category',
|
|
|
|
|
data: (SBody === null || SBody === void 0 || (_SBody$evaluation_lis = SBody.evaluation_list) === null || _SBody$evaluation_lis === void 0 || (_SBody$evaluation_lis = _SBody$evaluation_lis.times) === null || _SBody$evaluation_lis === void 0 ? void 0 : _SBody$evaluation_lis.map(function (item) {
|
|
|
|
|
data: (SBody === null || SBody === void 0 || (_SBody$clearance_list = SBody.clearance_list) === null || _SBody$clearance_list === void 0 || (_SBody$clearance_list = _SBody$clearance_list.times) === null || _SBody$clearance_list === void 0 ? void 0 : _SBody$clearance_list.map(function (item) {
|
|
|
|
|
return dayjs_min_default()(item).format("MM.DD");
|
|
|
|
|
})) || [],
|
|
|
|
|
silent: false,
|
|
|
|
|
@ -418,7 +418,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
name: '关卡通关次数',
|
|
|
|
|
type: 'line',
|
|
|
|
|
stack: 'Total',
|
|
|
|
|
data: SBody === null || SBody === void 0 || (_SBody$evaluation_lis2 = SBody.evaluation_list) === null || _SBody$evaluation_lis2 === void 0 ? void 0 : _SBody$evaluation_lis2.num,
|
|
|
|
|
data: SBody === null || SBody === void 0 || (_SBody$clearance_list2 = SBody.clearance_list) === null || _SBody$clearance_list2 === void 0 ? void 0 : _SBody$clearance_list2.num,
|
|
|
|
|
areaStyle: {},
|
|
|
|
|
color: {
|
|
|
|
|
type: 'linear',
|
|
|
|
|
@ -441,12 +441,13 @@ var Page = function Page(_ref3) {
|
|
|
|
|
var hanleItemDiffOption = function hanleItemDiffOption() {
|
|
|
|
|
// 实践项目难度分布
|
|
|
|
|
var Legend = {
|
|
|
|
|
"初级": "{name|\u521D\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.primary_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.primary_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) * 10000) / 100, "%}"),
|
|
|
|
|
"中级": "{name|\u4E2D\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.middle_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.middle_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) * 10000) / 100, "%}"),
|
|
|
|
|
"中高级": "{name|\u4E2D\u9AD8\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.middle_high_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.middle_high_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) * 10000) / 100, "%}"),
|
|
|
|
|
"高级": "{name|\u9AD8\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.high_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.high_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) * 10000) / 100, "%}"),
|
|
|
|
|
"其它": "{name|\u5176\u5B83} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.other_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.other_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) * 10000) / 100, "%}")
|
|
|
|
|
"初级": "{name|\u521D\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.primary_size) || 0), "} {percent|").concat((0,util/* getTwoDecimalPlaces */.tw)((SBody === null || SBody === void 0 ? void 0 : SBody.primary_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size)), "%}"),
|
|
|
|
|
"中级": "{name|\u4E2D\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.middle_size) || 0), "} {percent|").concat((0,util/* getTwoDecimalPlaces */.tw)((SBody === null || SBody === void 0 ? void 0 : SBody.middle_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size)), "%}"),
|
|
|
|
|
"中高级": "{name|\u4E2D\u9AD8\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.middle_high_size) || 0), "} {percent|").concat((0,util/* getTwoDecimalPlaces */.tw)((SBody === null || SBody === void 0 ? void 0 : SBody.middle_high_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size)), "%}"),
|
|
|
|
|
"高级": "{name|\u9AD8\u7EA7} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.high_size) || 0), "} {percent|").concat((0,util/* getTwoDecimalPlaces */.tw)((SBody === null || SBody === void 0 ? void 0 : SBody.high_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size)), "%}")
|
|
|
|
|
// "其它": `{name|其它} {value|${ToNumW(SBody?.other_size || 0)}} {percent|${getTwoDecimalPlaces(SBody?.other_size / SBody?.shixun_size)}%}`,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
title: [{
|
|
|
|
|
text: "实践项目难度分布",
|
|
|
|
|
@ -465,7 +466,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
return Legend[name];
|
|
|
|
|
},
|
|
|
|
|
textStyle: {
|
|
|
|
|
lineHeight: 36,
|
|
|
|
|
lineHeight: 50,
|
|
|
|
|
rich: {
|
|
|
|
|
name: {
|
|
|
|
|
fontSize: 12,
|
|
|
|
|
@ -514,13 +515,10 @@ var Page = function Page(_ref3) {
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "#F9D699"
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
value: (SBody === null || SBody === void 0 ? void 0 : SBody.other_size) || 0,
|
|
|
|
|
name: "其它",
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "#BEDCF2"
|
|
|
|
|
}
|
|
|
|
|
}],
|
|
|
|
|
}
|
|
|
|
|
// { value: SBody?.other_size || 0, name: "其它", itemStyle: { color: "#BEDCF2" }, }
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
type: 'pie',
|
|
|
|
|
center: ['50%', '35%'],
|
|
|
|
|
//饼图位置
|
|
|
|
|
@ -551,7 +549,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
var hanleEvaluationOption = function hanleEvaluationOption() {
|
|
|
|
|
var _SBody$clearance_list, _SBody$clearance_list2;
|
|
|
|
|
var _SBody$evaluation_lis, _SBody$evaluation_lis2;
|
|
|
|
|
// 评测次数统计
|
|
|
|
|
return {
|
|
|
|
|
title: [{
|
|
|
|
|
@ -599,7 +597,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
},
|
|
|
|
|
xAxis: {
|
|
|
|
|
type: 'category',
|
|
|
|
|
data: (SBody === null || SBody === void 0 || (_SBody$clearance_list = SBody.clearance_list) === null || _SBody$clearance_list === void 0 || (_SBody$clearance_list = _SBody$clearance_list.times) === null || _SBody$clearance_list === void 0 ? void 0 : _SBody$clearance_list.map(function (item) {
|
|
|
|
|
data: (SBody === null || SBody === void 0 || (_SBody$evaluation_lis = SBody.evaluation_list) === null || _SBody$evaluation_lis === void 0 || (_SBody$evaluation_lis = _SBody$evaluation_lis.times) === null || _SBody$evaluation_lis === void 0 ? void 0 : _SBody$evaluation_lis.map(function (item) {
|
|
|
|
|
return dayjs_min_default()(item).format("MM.DD");
|
|
|
|
|
})) || [],
|
|
|
|
|
silent: false,
|
|
|
|
|
@ -646,7 +644,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
name: '评测次数',
|
|
|
|
|
type: 'line',
|
|
|
|
|
stack: 'Total',
|
|
|
|
|
data: SBody === null || SBody === void 0 || (_SBody$clearance_list2 = SBody.clearance_list) === null || _SBody$clearance_list2 === void 0 ? void 0 : _SBody$clearance_list2.num,
|
|
|
|
|
data: SBody === null || SBody === void 0 || (_SBody$evaluation_lis2 = SBody.evaluation_list) === null || _SBody$evaluation_lis2 === void 0 ? void 0 : _SBody$evaluation_lis2.num,
|
|
|
|
|
areaStyle: {},
|
|
|
|
|
color: {
|
|
|
|
|
type: 'linear',
|
|
|
|
|
|