|
|
|
|
@ -46,29 +46,54 @@ if (false) {}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 80409:
|
|
|
|
|
/*!***************************************!*\
|
|
|
|
|
!*** ./src/pages/Dashboard/index.tsx ***!
|
|
|
|
|
\***************************************/
|
|
|
|
|
/***/ 10386:
|
|
|
|
|
/*!***************************************************!*\
|
|
|
|
|
!*** ./src/pages/Dashboard/index.tsx + 1 modules ***!
|
|
|
|
|
\***************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
// ESM COMPAT FLAG
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js */ 79800);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js */ 70236);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
|
|
|
|
|
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/utils/fetch */ 1833);
|
|
|
|
|
/* harmony import */ var _utils_hooks_useCustomRequest__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/utils/hooks/useCustomRequest */ 14502);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! antd */ 9951);
|
|
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! antd */ 93948);
|
|
|
|
|
/* harmony import */ var _utils_env__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/env */ 63648);
|
|
|
|
|
/* harmony import */ var echarts_for_react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! echarts-for-react */ 42441);
|
|
|
|
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
"default": function() { return /* binding */ Dashboard; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
|
|
|
var slicedToArray = __webpack_require__(79800);
|
|
|
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
|
|
|
|
|
var objectDestructuringEmpty = __webpack_require__(70236);
|
|
|
|
|
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
|
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
|
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
|
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
|
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
|
|
var fetch = __webpack_require__(1833);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/hooks/useCustomRequest.ts
|
|
|
|
|
var useCustomRequest = __webpack_require__(14502);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/carousel/index.js + 10 modules
|
|
|
|
|
var carousel = __webpack_require__(9951);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/progress/index.js + 13 modules
|
|
|
|
|
var progress = __webpack_require__(93948);
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
|
|
var env = __webpack_require__(63648);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
|
|
|
|
|
var lib = __webpack_require__(42441);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Dashboard/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Dashboardmodules = ({"ProgressStyle":"ProgressStyle___p7Fsd"});
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
|
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/Dashboard/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -83,11 +108,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var getStatistic = /*#__PURE__*/function () {
|
|
|
|
|
var _ref = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee$(_context) {
|
|
|
|
|
var _ref = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(params) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP)('/api/home/statistic.json', {
|
|
|
|
|
return _context.abrupt("return", (0,fetch/* default */.ZP)('/api/home/statistic.json', {
|
|
|
|
|
method: 'Get',
|
|
|
|
|
params: params
|
|
|
|
|
}));
|
|
|
|
|
@ -103,12 +128,12 @@ var getStatistic = /*#__PURE__*/function () {
|
|
|
|
|
}();
|
|
|
|
|
var Page = function Page(_ref2) {
|
|
|
|
|
var _StatisticData$data2, _StatisticData$data4, _StatisticData$data6, _StatisticData$data7, _StatisticData$data8, _StatisticData$data9, _StatisticData$data10, _StatisticData$data11, _StatisticData$data12, _StatisticData$data13, _StatisticData$data14, _StatisticData$data15, _StatisticData$data16, _StatisticData$data17, _StatisticData$data18, _StatisticData$data19, _StatisticData$data20, _StatisticData$data21, _StatisticData$data22, _StatisticData$data23, _StatisticData$data24, _StatisticData$data25, _StatisticData$data26, _StatisticData$data27, _StatisticData$data28, _StatisticData$data29;
|
|
|
|
|
_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectDestructuringEmpty_js__WEBPACK_IMPORTED_MODULE_1___default()(_ref2);
|
|
|
|
|
var _useCustomRequest = (0,_utils_hooks_useCustomRequest__WEBPACK_IMPORTED_MODULE_6__/* .useCustomRequest */ .U)(getStatistic, {}),
|
|
|
|
|
_useCustomRequest2 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0___default()(_useCustomRequest, 4),
|
|
|
|
|
objectDestructuringEmpty_default()(_ref2);
|
|
|
|
|
var _useCustomRequest = (0,useCustomRequest/* useCustomRequest */.U)(getStatistic, {}),
|
|
|
|
|
_useCustomRequest2 = slicedToArray_default()(_useCustomRequest, 4),
|
|
|
|
|
GetStatistic = _useCustomRequest2[2],
|
|
|
|
|
StatisticData = _useCustomRequest2[3];
|
|
|
|
|
var homeworkStatistics = (0,react__WEBPACK_IMPORTED_MODULE_4__.useMemo)(function () {
|
|
|
|
|
var homeworkStatistics = (0,_react_17_0_2_react.useMemo)(function () {
|
|
|
|
|
var _StatisticData$data;
|
|
|
|
|
var Data = StatisticData === null || StatisticData === void 0 || (_StatisticData$data = StatisticData.data) === null || _StatisticData$data === void 0 ? void 0 : _StatisticData$data.homework_publish_statistic;
|
|
|
|
|
var data = [{
|
|
|
|
|
@ -135,6 +160,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
orient: 'vertical',
|
|
|
|
|
right: "right",
|
|
|
|
|
top: "center",
|
|
|
|
|
itemWidth: 14,
|
|
|
|
|
formatter: function formatter(name) {
|
|
|
|
|
var item = data === null || data === void 0 ? void 0 : data.find(function (item) {
|
|
|
|
|
return (item === null || item === void 0 ? void 0 : item.name) == name;
|
|
|
|
|
@ -161,7 +187,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
}, [StatisticData === null || StatisticData === void 0 || (_StatisticData$data2 = StatisticData.data) === null || _StatisticData$data2 === void 0 ? void 0 : _StatisticData$data2.homework_publish_statistic]);
|
|
|
|
|
var studentStatistics = (0,react__WEBPACK_IMPORTED_MODULE_4__.useMemo)(function () {
|
|
|
|
|
var studentStatistics = (0,_react_17_0_2_react.useMemo)(function () {
|
|
|
|
|
var _StatisticData$data3;
|
|
|
|
|
var Data = StatisticData === null || StatisticData === void 0 || (_StatisticData$data3 = StatisticData.data) === null || _StatisticData$data3 === void 0 || (_StatisticData$data3 = _StatisticData$data3.student_learn_data) === null || _StatisticData$data3 === void 0 ? void 0 : _StatisticData$data3.charts;
|
|
|
|
|
var data = Data === null || Data === void 0 ? void 0 : Data.map(function (item) {
|
|
|
|
|
@ -236,7 +262,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}]
|
|
|
|
|
};
|
|
|
|
|
}, [StatisticData === null || StatisticData === void 0 || (_StatisticData$data4 = StatisticData.data) === null || _StatisticData$data4 === void 0 || (_StatisticData$data4 = _StatisticData$data4.student_learn_data) === null || _StatisticData$data4 === void 0 ? void 0 : _StatisticData$data4.charts]);
|
|
|
|
|
var homeworkNumberStatistics = (0,react__WEBPACK_IMPORTED_MODULE_4__.useMemo)(function () {
|
|
|
|
|
var homeworkNumberStatistics = (0,_react_17_0_2_react.useMemo)(function () {
|
|
|
|
|
var _StatisticData$data5;
|
|
|
|
|
var Data = StatisticData === null || StatisticData === void 0 || (_StatisticData$data5 = StatisticData.data) === null || _StatisticData$data5 === void 0 || (_StatisticData$data5 = _StatisticData$data5.homework_number_statistic) === null || _StatisticData$data5 === void 0 ? void 0 : _StatisticData$data5.charts;
|
|
|
|
|
var data = Data === null || Data === void 0 ? void 0 : Data.map(function (item) {
|
|
|
|
|
@ -312,9 +338,9 @@ var Page = function Page(_ref2) {
|
|
|
|
|
};
|
|
|
|
|
}, [StatisticData === null || StatisticData === void 0 || (_StatisticData$data6 = StatisticData.data) === null || _StatisticData$data6 === void 0 || (_StatisticData$data6 = _StatisticData$data6.homework_number_statistic) === null || _StatisticData$data6 === void 0 ? void 0 : _StatisticData$data6.charts]);
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref3 = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().mark(function _callee2() {
|
|
|
|
|
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var res;
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2___default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
|
|
|
|
while (1) switch (_context2.prev = _context2.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context2.next = 2;
|
|
|
|
|
@ -336,22 +362,22 @@ var Page = function Page(_ref2) {
|
|
|
|
|
return _ref3.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
(0,react__WEBPACK_IMPORTED_MODULE_4__.useEffect)(function () {
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
}, []);
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-20px-rem py-20px-rem px-24px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex gap-18px-rem ",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem flex-2",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium",
|
|
|
|
|
children: "\u5E73\u53F0\u6210\u5458"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex item-center justify-between",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "学习总人数",
|
|
|
|
|
@ -366,23 +392,23 @@ var Page = function Page(_ref2) {
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data9 = StatisticData.data) === null || _StatisticData$data9 === void 0 || (_StatisticData$data9 = _StatisticData$data9.platform_member) === null || _StatisticData$data9 === void 0 ? void 0 : _StatisticData$data9.student_count,
|
|
|
|
|
icon: '#icon-hjj-xueshengshu'
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex item-center gap-10px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("svg", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
|
|
|
className: "icon text-36px-rem",
|
|
|
|
|
"aria-hidden": true,
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("use", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("use", {
|
|
|
|
|
xlinkHref: "".concat(item === null || item === void 0 ? void 0 : item.icon)
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-4px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-20px-rem font-bold",
|
|
|
|
|
style: {
|
|
|
|
|
lineHeight: "20rem"
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.num
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-666 text-12px-rem",
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
})]
|
|
|
|
|
@ -390,42 +416,42 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
flex: "1.5"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium",
|
|
|
|
|
children: "\u5B66\u4E60\u4EBA\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex item-center justify-between",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "今日学习人数",
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data10 = StatisticData.data) === null || _StatisticData$data10 === void 0 || (_StatisticData$data10 = _StatisticData$data10.learn_number) === null || _StatisticData$data10 === void 0 ? void 0 : _StatisticData$data10.today_learn_count,
|
|
|
|
|
title: "7天内活跃用户",
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data10 = StatisticData.data) === null || _StatisticData$data10 === void 0 || (_StatisticData$data10 = _StatisticData$data10.learn_number) === null || _StatisticData$data10 === void 0 ? void 0 : _StatisticData$data10.weekly_active_user_count,
|
|
|
|
|
icon: "#icon-hjj-jinrixuexirenshu1"
|
|
|
|
|
}, {
|
|
|
|
|
title: "正在学习人数",
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data11 = StatisticData.data) === null || _StatisticData$data11 === void 0 || (_StatisticData$data11 = _StatisticData$data11.learn_number) === null || _StatisticData$data11 === void 0 ? void 0 : _StatisticData$data11.learning_count,
|
|
|
|
|
icon: "#icon-hjj-zhengzaixuexirenshu"
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex item-center gap-10px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("svg", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
|
|
|
className: "icon text-36px-rem",
|
|
|
|
|
"aria-hidden": true,
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("use", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("use", {
|
|
|
|
|
xlinkHref: "".concat(item === null || item === void 0 ? void 0 : item.icon)
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-4px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-20px-rem font-bold",
|
|
|
|
|
style: {
|
|
|
|
|
lineHeight: "20rem"
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.num
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-666 text-12px-rem",
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
})]
|
|
|
|
|
@ -433,12 +459,12 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-20px-rem rounded-8px-rem bg-white py-14px-rem px-20px-rem flex-2",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium",
|
|
|
|
|
children: "\u6559\u5B66\u5185\u5BB9\u6982\u89C8"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex item-center justify-between",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "实践项目数",
|
|
|
|
|
@ -453,23 +479,23 @@ var Page = function Page(_ref2) {
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data14 = StatisticData.data) === null || _StatisticData$data14 === void 0 || (_StatisticData$data14 = _StatisticData$data14.teaching_content_overview) === null || _StatisticData$data14 === void 0 ? void 0 : _StatisticData$data14.course_count,
|
|
|
|
|
icon: "#icon-hjj-jiaoxueketangshu"
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex item-center gap-10px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("svg", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
|
|
|
className: "icon text-36px-rem",
|
|
|
|
|
"aria-hidden": true,
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("use", {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("use", {
|
|
|
|
|
xlinkHref: "".concat(item === null || item === void 0 ? void 0 : item.icon)
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-4px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-20px-rem font-bold",
|
|
|
|
|
style: {
|
|
|
|
|
lineHeight: "20rem"
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.num
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-666 text-12px-rem",
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
})]
|
|
|
|
|
@ -478,21 +504,21 @@ var Page = function Page(_ref2) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex gap-18px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex-2 rounded-8px-rem ",
|
|
|
|
|
style: {
|
|
|
|
|
overflow: "hidden"
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z, {
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(carousel/* default */.Z, {
|
|
|
|
|
className: "w-full h-full",
|
|
|
|
|
autoplay: true,
|
|
|
|
|
children: StatisticData === null || StatisticData === void 0 || (_StatisticData$data15 = StatisticData.data) === null || _StatisticData$data15 === void 0 ? void 0 : _StatisticData$data15.images_url.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "w-full h-full",
|
|
|
|
|
children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("img", {
|
|
|
|
|
src: "".concat(_utils_env__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z.IMG_SERVER).concat(item === null || item === void 0 ? void 0 : item.image_url),
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: "".concat(env/* default */.Z.IMG_SERVER).concat(item === null || item === void 0 ? void 0 : item.image_url),
|
|
|
|
|
style: {
|
|
|
|
|
width: "100%",
|
|
|
|
|
height: "196px"
|
|
|
|
|
@ -501,23 +527,23 @@ var Page = function Page(_ref2) {
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-10px-rem flex-1 minW-0 rounded-8px-rem bg-white py-14px-rem px-16px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-333 font-medium",
|
|
|
|
|
children: "\u4F5C\u4E1A\u53D1\u5E03\u6570\u7EDF\u8BA1"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(echarts_for_react__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
|
|
|
|
style: {
|
|
|
|
|
height: "137px"
|
|
|
|
|
},
|
|
|
|
|
option: homeworkStatistics
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-10px-rem flex-1 minW-0 rounded-8px-rem bg-white py-14px-rem px-16px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-333 font-medium",
|
|
|
|
|
children: "\u5B9E\u9A8C\u7EDF\u8BA1"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex-1 minW-0 flex flex-col gap-8px-rem",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "评测总次数",
|
|
|
|
|
@ -533,24 +559,24 @@ var Page = function Page(_ref2) {
|
|
|
|
|
icon: "icon-hjj-pingjuntongguoshuai",
|
|
|
|
|
unit: "%"
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex-1 minW-0 flex gap-8px-rem item-center rounded-4px-rem pl-12px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
background: "linear-gradient( 90deg, #E8F3FD 0%, #FFFFFF 100%)"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("span", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: "iconfont ".concat(item === null || item === void 0 ? void 0 : item.icon),
|
|
|
|
|
style: {
|
|
|
|
|
color: "#6898FE",
|
|
|
|
|
fontSize: "12rem"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-12px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "rgba(11,15,23,0.6)"
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "ml-auto",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
@ -561,49 +587,49 @@ var Page = function Page(_ref2) {
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "grid gap-18px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
gridTemplateColumns: "1fr 1fr"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-10px-rem py-14px-rem px-20px-rem rounded-8px-rem bg-white",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium c-grey-333",
|
|
|
|
|
children: "\u5B66\u751F\u5B66\u4E60\u6570\u636E"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex-1 flex gap-20px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "rounded-6px-rem h-full py-14px-rem px-10px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
background: "linear-gradient( 180deg, #F2F8FF 0%, #FFFFFF 100%)"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-12px-rem c-grey-666",
|
|
|
|
|
children: "\u4ECA\u65E5\u5B66\u4E60\u4EBA\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: "\u4ECA\u65E5\u8BC4\u6D4B\u603B\u6B21\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-bold text-20px-rem mt-4px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: (StatisticData === null || StatisticData === void 0 || (_StatisticData$data19 = StatisticData.data) === null || _StatisticData$data19 === void 0 || (_StatisticData$data19 = _StatisticData$data19.student_learn_data) === null || _StatisticData$data19 === void 0 ? void 0 : _StatisticData$data19.today_learn_count) || 0
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "w-full mt-14px-rem ",
|
|
|
|
|
style: {
|
|
|
|
|
height: "1rem",
|
|
|
|
|
border: "1rem dashed rgba(33,135,217,0.43)"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-12px-rem c-grey-666 text-nowrap mt-14px-rem",
|
|
|
|
|
children: "\u8FD17\u5929\u5B66\u4E60\u603B\u4EBA\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: "\u8FD17\u65E5\u8BC4\u6D4B\u603B\u6B21\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-bold text-20px-rem mt-4px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: (StatisticData === null || StatisticData === void 0 || (_StatisticData$data20 = StatisticData.data) === null || _StatisticData$data20 === void 0 || (_StatisticData$data20 = _StatisticData$data20.student_learn_data) === null || _StatisticData$data20 === void 0 ? void 0 : _StatisticData$data20.recently_learn_count) || 0
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(echarts_for_react__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
|
|
|
|
className: "flex-1",
|
|
|
|
|
style: {
|
|
|
|
|
height: "162rem"
|
|
|
|
|
@ -611,44 +637,44 @@ var Page = function Page(_ref2) {
|
|
|
|
|
option: studentStatistics
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-10px-rem py-14px-rem px-20px-rem rounded-8px-rem bg-white",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium c-grey-333",
|
|
|
|
|
children: "\u4F5C\u4E1A\u53D1\u5E03\u6570\u7EDF\u8BA1"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex-1 flex gap-20px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "rounded-6px-rem h-full py-14px-rem px-10px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
background: "linear-gradient( 180deg, #F2F8FF 0%, #FFFFFF 100%)"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-12px-rem c-grey-666",
|
|
|
|
|
children: "\u4ECA\u65E5\u4F5C\u4E1A\u53D1\u5E03\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-bold text-20px-rem mt-4px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: (StatisticData === null || StatisticData === void 0 || (_StatisticData$data21 = StatisticData.data) === null || _StatisticData$data21 === void 0 || (_StatisticData$data21 = _StatisticData$data21.homework_number_statistic) === null || _StatisticData$data21 === void 0 ? void 0 : _StatisticData$data21.today_homework_count) || 0
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "w-full mt-14px-rem ",
|
|
|
|
|
style: {
|
|
|
|
|
height: "1rem",
|
|
|
|
|
border: "1rem dashed rgba(33,135,217,0.43)"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-12px-rem c-grey-666 text-nowrap mt-14px-rem",
|
|
|
|
|
children: "\u8FD17\u5929\u4F5C\u4E1A\u53D1\u5E03\u6570"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-bold text-20px-rem mt-4px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: (StatisticData === null || StatisticData === void 0 || (_StatisticData$data22 = StatisticData.data) === null || _StatisticData$data22 === void 0 || (_StatisticData$data22 = _StatisticData$data22.homework_number_statistic) === null || _StatisticData$data22 === void 0 ? void 0 : _StatisticData$data22.recently_homework_count) || 0
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(echarts_for_react__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
|
|
|
|
|
className: "flex-1",
|
|
|
|
|
style: {
|
|
|
|
|
height: "162rem"
|
|
|
|
|
@ -656,12 +682,12 @@ var Page = function Page(_ref2) {
|
|
|
|
|
option: homeworkNumberStatistics
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col gap-10px-rem py-14px-rem px-20px-rem rounded-8px-rem bg-white",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "font-medium c-grey-333",
|
|
|
|
|
children: "\u5B66\u751F\u6574\u4F53\u4F5C\u4E1A\u5B8C\u6210\u7387"
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "mt-16px-rem flex flex-col gap-20px-rem",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "实训作业",
|
|
|
|
|
@ -692,34 +718,36 @@ var Page = function Page(_ref2) {
|
|
|
|
|
to: '#FFD28C'
|
|
|
|
|
}
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex item-center gap-20px-rem",
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-nowrap",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#727C95"
|
|
|
|
|
},
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(antd__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z, {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(progress/* default */.Z, {
|
|
|
|
|
className: Dashboardmodules.ProgressStyle,
|
|
|
|
|
style: {
|
|
|
|
|
marginBottom: "0"
|
|
|
|
|
marginBottom: "0",
|
|
|
|
|
marginInlineEnd: "20rem"
|
|
|
|
|
},
|
|
|
|
|
percent: (item === null || item === void 0 ? void 0 : item.percent) * 100,
|
|
|
|
|
percent: Math.round((item === null || item === void 0 ? void 0 : item.percent) * 10000) / 100,
|
|
|
|
|
strokeColor: item === null || item === void 0 ? void 0 : item.strokeColor,
|
|
|
|
|
format: function format(percent) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("span", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: "text-16px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
},
|
|
|
|
|
children: [percent, "%"]
|
|
|
|
|
children: [percent.toFixed(1), "%"]
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "flex gap-10px-rem py-14px-rem px-20px-rem rounded-8px-rem bg-white",
|
|
|
|
|
children: [{
|
|
|
|
|
title: "试题总数",
|
|
|
|
|
@ -734,20 +762,20 @@ var Page = function Page(_ref2) {
|
|
|
|
|
src: __webpack_require__(/*! @/pages/Dashboard/imgs/kjzs.png */ 43816),
|
|
|
|
|
num: StatisticData === null || StatisticData === void 0 || (_StatisticData$data29 = StatisticData.data) === null || _StatisticData$data29 === void 0 || (_StatisticData$data29 = _StatisticData$data29.count_statistic) === null || _StatisticData$data29 === void 0 ? void 0 : _StatisticData$data29.courseware_count
|
|
|
|
|
}].map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: "flex flex-col item-center justify-center flex-1 minW-0 rounded-8px-rem ",
|
|
|
|
|
style: {
|
|
|
|
|
background: "linear-gradient( 180deg, rgba(234,243,255,0.8) 0%, #F8FCFF 100%)"
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("img", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
src: item === null || item === void 0 ? void 0 : item.src,
|
|
|
|
|
style: {
|
|
|
|
|
width: "40rem"
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "c-grey-666 mt-24px-rem",
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.title
|
|
|
|
|
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: "text-20px-rem font-bold mt-4px-rem",
|
|
|
|
|
style: {
|
|
|
|
|
color: "#121C31"
|
|
|
|
|
@ -760,7 +788,7 @@ var Page = function Page(_ref2) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ __webpack_exports__["default"] = (Page);
|
|
|
|
|
/* harmony default export */ var Dashboard = (Page);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|