autoUpdataFile

dev_local_v9_xingongda
eduauto 2 years ago
parent 884e511cc6
commit fd4e803d29

@ -184,6 +184,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);
@ -221,7 +224,7 @@ var ChartDiv = function ChartDiv(_ref2) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: Overviewmodules.ChartDivItemNum,
children: item.num
children: ToNumW(item.num)
})]
}, index);
})
@ -367,11 +370,11 @@ var Page = function Page(_ref3) {
var hanleLearnPieOption = function hanleLearnPieOption() {
// 发布的作业概览
var Legend = {
"课堂实验": "{name|\u8BFE\u5802\u5B9E\u9A8C} {value|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_homework_size) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"分组作业": "{name|\u5206\u7EC4\u4F5C\u4E1A} {value|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.group_homework_size) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.group_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"图文作业": "{name|\u56FE\u6587\u4F5C\u4E1A} {value|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.common_homework_size) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.common_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"编程作业": "{name|\u7F16\u7A0B\u4F5C\u4E1A} {value|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.program_homework_size) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.program_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"在线考试": "{name|\u5728\u7EBF\u8003\u8BD5} {value|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.exercise_size) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.exercise_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}")
"课堂实验": "{name|\u8BFE\u5802\u5B9E\u9A8C} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_homework_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.shixun_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"分组作业": "{name|\u5206\u7EC4\u4F5C\u4E1A} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.group_homework_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.group_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"图文作业": "{name|\u56FE\u6587\u4F5C\u4E1A} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.common_homework_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.common_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"编程作业": "{name|\u7F16\u7A0B\u4F5C\u4E1A} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.program_homework_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.program_homework_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}"),
"在线考试": "{name|\u5728\u7EBF\u8003\u8BD5} {value|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.exercise_size) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 ? void 0 : SBody.exercise_size) / (SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) * 10000) / 100, "%}")
};
return {
title: [{
@ -455,7 +458,7 @@ var Page = function Page(_ref3) {
label: {
show: true,
position: 'center',
formatter: "{total|".concat((SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) || 0, "}\n\r{active|\u53D1\u5E03\u4F5C\u4E1A\u603B\u6570}"),
formatter: "{total|".concat(ToNumW((SBody === null || SBody === void 0 ? void 0 : SBody.all_work_size) || 0), "}\n\r{active|\u53D1\u5E03\u4F5C\u4E1A\u603B\u6570}"),
rich: {
total: {
fontSize: 24,
@ -552,7 +555,8 @@ var Page = function Page(_ref3) {
type: 'value',
minInterval: 1,
axisLabel: {
color: "#9399A5"
color: "#9399A5",
formatter: ToNumW
},
axisTick: {
show: false
@ -813,7 +817,7 @@ var Page = function Page(_ref3) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "".concat(Overviewmodules.Onerow, " ").concat(Overviewmodules.TeacherChartItemName),
onClick: function onClick() {
(0,util/* openNewWindow */.xg)("/users/".concat(item.login, "/shixuns?category=study"));
(0,util/* openNewWindow */.xg)("/users/".concat(item.login, "/classrooms"));
},
children: index == 0 ? item.name : /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",
@ -902,7 +906,7 @@ var Page = function Page(_ref3) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: " ".concat(Overviewmodules.Onerow, " ").concat(Overviewmodules.StudentChartItemName),
onClick: function onClick() {
(0,util/* openNewWindow */.xg)("/users/".concat(item.login, "/shixuns?category=study"));
(0,util/* openNewWindow */.xg)("/users/".concat(item.login, "/classrooms"));
},
children: index == 0 ? item.name : /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "topLeft",

@ -369,6 +369,9 @@ var Page = function Page(_ref) {
src: index == 1 ? ph1_namespaceObject : index == 2 ? ph2_namespaceObject : ph3_namespaceObject
}, props));
};
var ToNumW = function ToNumW(value) {
return value / 10000 > 1 ? "".concat(Math.round(value / 10000 * 100) / 100, "w") : value;
};
var hanleLearnOption = function hanleLearnOption() {
var _SBody$times, _SBody$list, _SBody$list2;
// 累计学习人数统计
@ -444,7 +447,8 @@ var Page = function Page(_ref) {
type: 'value',
minInterval: 1,
axisLabel: {
color: "#9399A5"
color: "#9399A5",
formatter: ToNumW
},
axisTick: {
show: false
@ -511,8 +515,8 @@ var Page = function Page(_ref) {
// 累计学习总人数统计
var Legend = {
"累计Spoc学习人数": "{name|\u7D2F\u8BA1Spoc\u5B66\u4E60\u4EBA\u6570} {value|".concat((SBody === null || SBody === void 0 || (_SBody$all_data = SBody.all_data) === null || _SBody$all_data === void 0 ? void 0 : _SBody$all_data.spoc_num) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 || (_SBody$all_data2 = SBody.all_data) === null || _SBody$all_data2 === void 0 ? void 0 : _SBody$all_data2.spoc_num) / (SBody === null || SBody === void 0 || (_SBody$all_data3 = SBody.all_data) === null || _SBody$all_data3 === void 0 ? void 0 : _SBody$all_data3.all_size) * 10000) / 100, "%}"),
"累计自主学习人数": "{name|\u7D2F\u8BA1\u81EA\u4E3B\u5B66\u4E60\u4EBA\u6570} {value|".concat((SBody === null || SBody === void 0 || (_SBody$all_data4 = SBody.all_data) === null || _SBody$all_data4 === void 0 ? void 0 : _SBody$all_data4.self_learn_num) || 0, "} {percent|").concat(Math.round((SBody === null || SBody === void 0 || (_SBody$all_data5 = SBody.all_data) === null || _SBody$all_data5 === void 0 ? void 0 : _SBody$all_data5.self_learn_num) / (SBody === null || SBody === void 0 || (_SBody$all_data6 = SBody.all_data) === null || _SBody$all_data6 === void 0 ? void 0 : _SBody$all_data6.all_size) * 10000) / 100, "%}")
"累计Spoc学习人数": "{name|\u7D2F\u8BA1Spoc\u5B66\u4E60\u4EBA\u6570} {value|".concat(ToNumW((SBody === null || SBody === void 0 || (_SBody$all_data = SBody.all_data) === null || _SBody$all_data === void 0 ? void 0 : _SBody$all_data.spoc_num) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 || (_SBody$all_data2 = SBody.all_data) === null || _SBody$all_data2 === void 0 ? void 0 : _SBody$all_data2.spoc_num) / (SBody === null || SBody === void 0 || (_SBody$all_data3 = SBody.all_data) === null || _SBody$all_data3 === void 0 ? void 0 : _SBody$all_data3.all_size) * 10000) / 100, "%}"),
"累计自主学习人数": "{name|\u7D2F\u8BA1\u81EA\u4E3B\u5B66\u4E60\u4EBA\u6570} {value|".concat(ToNumW((SBody === null || SBody === void 0 || (_SBody$all_data4 = SBody.all_data) === null || _SBody$all_data4 === void 0 ? void 0 : _SBody$all_data4.self_learn_num) || 0), "} {percent|").concat(Math.round((SBody === null || SBody === void 0 || (_SBody$all_data5 = SBody.all_data) === null || _SBody$all_data5 === void 0 ? void 0 : _SBody$all_data5.self_learn_num) / (SBody === null || SBody === void 0 || (_SBody$all_data6 = SBody.all_data) === null || _SBody$all_data6 === void 0 ? void 0 : _SBody$all_data6.all_size) * 10000) / 100, "%}")
};
return {
legend: {
@ -568,7 +572,7 @@ var Page = function Page(_ref) {
label: {
show: true,
position: 'center',
formatter: "{total|".concat((SBody === null || SBody === void 0 || (_SBody$all_data9 = SBody.all_data) === null || _SBody$all_data9 === void 0 ? void 0 : _SBody$all_data9.all_size) || 0, "}\n\r{active|\u7D2F\u8BA1\u5B66\u4E60\u603B\u4EBA\u6570}"),
formatter: "{total|".concat(ToNumW((SBody === null || SBody === void 0 || (_SBody$all_data9 = SBody.all_data) === null || _SBody$all_data9 === void 0 ? void 0 : _SBody$all_data9.all_size) || 0), "}\n\r{active|\u7D2F\u8BA1\u5B66\u4E60\u603B\u4EBA\u6570}"),
rich: {
total: {
fontSize: 24,
@ -670,7 +674,8 @@ var Page = function Page(_ref) {
type: 'value',
minInterval: 1,
axisLabel: {
color: "#9399A5"
color: "#9399A5",
formatter: ToNumW
},
axisTick: {
show: false
@ -1023,7 +1028,7 @@ var Page = function Page(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
flex: 1,
className: Overviewmodules.LearnChartItemData,
children: item.data
children: ToNumW(item.data)
})]
}, index);
})

@ -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: {

@ -21,6 +21,12 @@
color: #282F3F;
line-height: 22px;
}
.TableStyle___hqBKn .ant-table-column-sorters {
justify-content: left !important;
}
.TableStyle___hqBKn .ant-table-column-title {
flex: none !important;
}
.BorderStyle___oy5wA {
margin: 0 74px;
width: 1px;

Loading…
Cancel
Save