|
|
|
|
@ -90,7 +90,7 @@ var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
var _umi_production_exports = __webpack_require__(43788);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Shixuns/Overview/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Overviewmodules = ({"Onerow":"Onerow___l5_U0","MultiLine":"MultiLine___qt8pC","TitleStyle":"TitleStyle___p0pf3","BorderStyle":"BorderStyle___oy5wA","PathsBg":"PathsBg___UljVP","TopItemNum":"TopItemNum___gDLm4","DivInit":"DivInit___bF5ps","ChartStyle":"ChartStyle___iFZwr","PopularityChart":"PopularityChart___pXr97","HotChart":"HotChart___wLzkz","ClassChart":"ClassChart___Q1V6b","LearnChart":"LearnChart___j1dql","LearnChartItem":"LearnChartItem___BsFJP","LearnChartItemRank":"LearnChartItemRank___rr7UC","LearnChartItemName":"LearnChartItemName___wociN","LearnChartItemRole":"LearnChartItemRole___XLFSC","LearnChartItemId":"LearnChartItemId___La4j7","LearnChartItemNum":"LearnChartItemNum___v3_9o","ChartDiv":"ChartDiv___pSmxW","ChartDivItem":"ChartDivItem____ww5n","ChartDivItemph":"ChartDivItemph___yGQYQ","ChartDivItemName":"ChartDivItemName___dAox1","ChartDivItemNum":"ChartDivItemNum___zgfY2"});
|
|
|
|
|
/* harmony default export */ var Overviewmodules = ({"Onerow":"Onerow___l5_U0","MultiLine":"MultiLine___qt8pC","TitleStyle":"TitleStyle___p0pf3","TableStyle":"TableStyle___hqBKn","BorderStyle":"BorderStyle___oy5wA","PathsBg":"PathsBg___UljVP","TopItemNum":"TopItemNum___gDLm4","DivInit":"DivInit___bF5ps","ChartStyle":"ChartStyle___iFZwr","PopularityChart":"PopularityChart___pXr97","HotChart":"HotChart___wLzkz","ClassChart":"ClassChart___Q1V6b","LearnChart":"LearnChart___j1dql","LearnChartItem":"LearnChartItem___BsFJP","LearnChartItemRank":"LearnChartItemRank___rr7UC","LearnChartItemName":"LearnChartItemName___wociN","LearnChartItemRole":"LearnChartItemRole___XLFSC","LearnChartItemId":"LearnChartItemId___La4j7","LearnChartItemNum":"LearnChartItemNum___v3_9o","ChartDiv":"ChartDiv___pSmxW","ChartDivItem":"ChartDivItem____ww5n","ChartDivItemph":"ChartDivItemph___yGQYQ","ChartDivItemName":"ChartDivItemName___dAox1","ChartDivItemNum":"ChartDivItemNum___zgfY2"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
|
|
|
var row = __webpack_require__(95237);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
|
|
@ -160,6 +160,9 @@ var _excluded = ["index"],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var ToNumW = function ToNumW(value) {
|
|
|
|
|
return value / 10000 > 1 ? "".concat(Math.round(value / 10000 * 100) / 100, "w") : value;
|
|
|
|
|
};
|
|
|
|
|
var ChartImg = function ChartImg(_ref) {
|
|
|
|
|
var index = _ref.index,
|
|
|
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
|
|
|
@ -197,7 +200,7 @@ var ChartDiv = function ChartDiv(_ref2) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Overviewmodules.ChartDivItemNum,
|
|
|
|
|
children: item.num
|
|
|
|
|
children: ToNumW(item.num)
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
@ -280,7 +283,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}, {
|
|
|
|
|
title: "参与实践项目数",
|
|
|
|
|
dataIndex: "shixun_num",
|
|
|
|
|
width: 160,
|
|
|
|
|
width: 180,
|
|
|
|
|
ellipsis: true,
|
|
|
|
|
sorter: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
@ -288,7 +291,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: "评测关卡数",
|
|
|
|
|
width: 110,
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: "challenge_num",
|
|
|
|
|
sorter: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
@ -296,7 +299,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}
|
|
|
|
|
}, {
|
|
|
|
|
title: "评测总次数",
|
|
|
|
|
width: 110,
|
|
|
|
|
width: 200,
|
|
|
|
|
dataIndex: "evaluation_num",
|
|
|
|
|
sorter: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
@ -305,7 +308,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}, {
|
|
|
|
|
title: "关卡通过总次数",
|
|
|
|
|
dataIndex: "clearance_num",
|
|
|
|
|
width: 140,
|
|
|
|
|
width: 200,
|
|
|
|
|
sorter: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
return text;
|
|
|
|
|
@ -313,7 +316,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
}, {
|
|
|
|
|
title: "关卡平均通过率 (%)",
|
|
|
|
|
dataIndex: "clearance_rate",
|
|
|
|
|
width: 200,
|
|
|
|
|
width: 170,
|
|
|
|
|
sorter: true,
|
|
|
|
|
render: function render(text, record) {
|
|
|
|
|
return text;
|
|
|
|
|
@ -394,7 +397,8 @@ var Page = function Page(_ref3) {
|
|
|
|
|
type: 'value',
|
|
|
|
|
minInterval: 1,
|
|
|
|
|
axisLabel: {
|
|
|
|
|
color: "#9399A5"
|
|
|
|
|
color: "#9399A5",
|
|
|
|
|
formatter: ToNumW
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: false
|
|
|
|
|
@ -437,11 +441,11 @@ var Page = function Page(_ref3) {
|
|
|
|
|
var hanleItemDiffOption = function hanleItemDiffOption() {
|
|
|
|
|
// 实践项目难度分布
|
|
|
|
|
var Legend = {
|
|
|
|
|
"初级": "{name|\u521D\u7EA7} {value|".concat((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((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((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((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((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(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, "%}")
|
|
|
|
|
};
|
|
|
|
|
return {
|
|
|
|
|
title: [{
|
|
|
|
|
@ -524,7 +528,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
label: {
|
|
|
|
|
show: true,
|
|
|
|
|
position: 'center',
|
|
|
|
|
formatter: "{total|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) || 0, "}\n\r{active|\u5B9E\u8DF5\u9879\u76EE\u603B\u6570}"),
|
|
|
|
|
formatter: "{total|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_size) || 0), "}\n\r{active|\u5B9E\u8DF5\u9879\u76EE\u603B\u6570}"),
|
|
|
|
|
rich: {
|
|
|
|
|
total: {
|
|
|
|
|
fontSize: 24,
|
|
|
|
|
@ -621,7 +625,8 @@ var Page = function Page(_ref3) {
|
|
|
|
|
type: 'value',
|
|
|
|
|
minInterval: 1,
|
|
|
|
|
axisLabel: {
|
|
|
|
|
color: "#9399A5"
|
|
|
|
|
color: "#9399A5",
|
|
|
|
|
formatter: ToNumW
|
|
|
|
|
},
|
|
|
|
|
axisTick: {
|
|
|
|
|
show: false
|
|
|
|
|
@ -1003,7 +1008,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
|
|
|
|
className: Overviewmodules.LearnChartItemNum,
|
|
|
|
|
children: item.num
|
|
|
|
|
children: ToNumW(item.num)
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
@ -1066,6 +1071,7 @@ var Page = function Page(_ref3) {
|
|
|
|
|
},
|
|
|
|
|
children: "\u7528\u6237\u4F7F\u7528\u8BE6\u60C5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
|
|
|
|
|
className: Overviewmodules.TableStyle,
|
|
|
|
|
columns: columns,
|
|
|
|
|
dataSource: ShixunUseInfos === null || ShixunUseInfos === void 0 ? void 0 : ShixunUseInfos.list,
|
|
|
|
|
locale: {
|
|
|
|
|
|