Auto Submit

dev_local_v9_test5
autosubmit 1 year ago
parent 3f36e18fe9
commit 7ff28c1e3a

@ -5215,7 +5215,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
});
params.group_id = Number(group_id);
setParams(params);
getItemBanks(objectSpread2_default()({}, params)).then(function (res) {
getItemBanks(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
tab_module_type: 'problemset'
})).then(function (res) {
// if (!res?.status) {
// setTreeData(res?.item_banks_group)
// }
@ -5456,8 +5458,16 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
});
case 6:
res = _context4.sent;
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
if (!(res && res.status !== 403 && res.status !== 401 && res.status !== 500)) {
_context4.next = 17;
_context4.next = 18;
break;
}
setProblemsetCount(res.items_count || 0); //试题总数
@ -5472,7 +5482,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
setAddedNum((res === null || res === void 0 ? void 0 : res.added_num) || 0); //文件夹总数
setFolderLoading(false);
return _context4.abrupt("return", res);
case 17:
case 18:
case "end":
return _context4.stop();
}

File diff suppressed because it is too large Load Diff

@ -1649,7 +1649,7 @@ var User = function User(_ref) {
to: "/users/".concat((_user$userInfo17 = user.userInfo) === null || _user$userInfo17 === void 0 ? void 0 : _user$userInfo17.login, "/vspaces"),
children: "\u6211\u7684\u865A\u62DF\u793E\u533A"
})
}), ((_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.user_identity) !== '学生' && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), ((_user$userInfo18 = user.userInfo) === null || _user$userInfo18 === void 0 ? void 0 : _user$userInfo18.user_identity) !== '学生' && !isProblemsetHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
@ -1659,7 +1659,7 @@ var User = function User(_ref) {
},
children: "\u8BD5\u9898\u5E93"
})
}), isPaperlibraryShow && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
}), isPaperlibraryShow && !isPaperlibraryHidden && /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
onClick: function onClick() {
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
@ -2548,8 +2548,8 @@ var HeaderComponents = function HeaderComponents(_ref) {
};
var dealStr = function dealStr() {
var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
if ((str === null || str === void 0 ? void 0 : str.indexOf('<')) > -1) {
return str === null || str === void 0 ? void 0 : str.slice(0, str === null || str === void 0 ? void 0 : str.indexOf('<'));
if (str.indexOf('<') > -1) {
return str.slice(0, str.indexOf('<'));
}
return str;
};
@ -2597,7 +2597,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
href: "/",
children: "\u8003\u8BD5\u7CFB\u7EDF"
})
}), !(0,util/* checkIsClientExam */.Ll)() && globalSetting.setting && (navBar === null || navBar === void 0 ? void 0 : navBar.map(function (v, k) {
}), !(0,util/* checkIsClientExam */.Ll)() && globalSetting.setting && navBar.map(function (v, k) {
var _v$subitem, _v$subitem2, _v$subitem4, _v$subitem5, _v$subitem6;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
className: !(v !== null && v !== void 0 && (_v$subitem = v.subitem) !== null && _v$subitem !== void 0 && _v$subitem.length) && activeKey === (v === null || v === void 0 ? void 0 : v.link) || v !== null && v !== void 0 && (_v$subitem2 = v.subitem) !== null && _v$subitem2 !== void 0 && _v$subitem2.some(function (n) {
@ -2639,7 +2639,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
className: Headermodules.line
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: "font16 c-black",
children: dealStr(e === null || e === void 0 ? void 0 : e.name)
children: dealStr(e.name)
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: "font14",
style: {
@ -2652,7 +2652,7 @@ var HeaderComponents = function HeaderComponents(_ref) {
})
})]
}, k);
}))]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "search-bar",
style: {

@ -4140,8 +4140,8 @@ else if (typeof process_process !== 'undefined') {
safeProcess = {
get platform() { return process_process.platform; },
get arch() { return process_process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
nextTick(callback) { return process_process.nextTick(callback); }
};
}
@ -4359,7 +4359,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

@ -4142,8 +4142,8 @@ else if (typeof process_process !== 'undefined') {
safeProcess = {
get platform() { return process_process.platform; },
get arch() { return process_process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
nextTick(callback) { return process_process.nextTick(callback); }
};
}
@ -4361,7 +4361,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

@ -4140,8 +4140,8 @@ else if (typeof process_process !== 'undefined') {
safeProcess = {
get platform() { return process_process.platform; },
get arch() { return process_process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
nextTick(callback) { return process_process.nextTick(callback); }
};
}
@ -4359,7 +4359,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

@ -11,8 +11,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1">
<meta http-equiv="Cache-Control" content="no-transform">
<link rel="stylesheet" href="/react/build/umi.60914434.css">
<script src="/react/build/js/polyfill.min.js"></script>
<link rel="stylesheet" href="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.60914434.css">
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/js/polyfill.min.js"></script>
</head>
<body>
<div id="root"></div><script>window.ENV = 'build'</script><style>
@ -26,7 +26,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.eb42c1cf.js"></script>
<script src="/react/build/js/public.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/umi.c089bbae.js"></script>
<script src="/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/js/public.js"></script>
</body>
</html>

@ -204,3 +204,148 @@ try {
} catch (error) {
}
(function() {
const originalLocation = window.location;
// 创建一个代理对象来拦截对 window.location 的访问
const locationProxy = new Proxy(originalLocation, {
get(target, prop) {
if (prop === 'href') {
return target._href || target.href;
}
return target[prop];
},
set(target, prop, value) {
if (prop === 'href') {
const modifiedUrl = modifyUrl(value);
target._href = modifiedUrl;
originalLocation.href = modifiedUrl;
return true;
}
target[prop] = value;
return true;
}
});
// window.location = locationProxy;
// 重写 window.location 的相关方法
const originalAssign = window.location.assign;
const originalReplace = window.location.replace;
window.location.assign = function(url) {
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
originalAssign.call(originalLocation, modifiedUrl);
}
};
window.location.replace = function(url) {
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
originalReplace.call(originalLocation, modifiedUrl);
}
};
// 重写 history 的相关方法
const originalPushState = history.pushState;
const originalReplaceState = history.replaceState;
history.pushState = function(state, title, url) {
if(!isPageRefresh()){
const modifiedUrl = modifyUrl(url);
debugger
originalPushState.call(history, state, title, modifiedUrl);
}
};
// history.replaceState = function(state, title, url) {
// if(!url) return;
// if(!isPageRefresh()){
// const modifiedUrl = modifyUrl(url);
// debugger
// originalReplaceState.call(history, state, title, modifiedUrl);
// }
// };
// 监听 click 事件
document.addEventListener('click', function(event) {
if(!isPageRefresh()){
const target = event.target;
if (target.tagName.toLowerCase() === 'a' && target.href && !target.hasAttribute('data-navigate')) {
event.preventDefault(); // 阻止默认行为
const modifiedUrl = modifyUrl(target.href);
window.location.href = modifiedUrl;
}
}
}, true); // 使用捕获阶段
// 监听 submit 事件
document.addEventListener('submit', function(event) {
if(!isPageRefresh()){
const form = event.target;
if (form.action) {
event.preventDefault(); // 阻止默认行为
const modifiedUrl = modifyUrl(form.action);
form.action = modifiedUrl;
form.submit();
}
}
});
// 监听 hashchange 和 popstate 事件
window.addEventListener('hashchange', function(event) {
if(!isPageRefresh()){
const newUrl = modifyUrl(window.location.href);
window.history.replaceState({}, document.title, newUrl);
}
});
window.addEventListener('popstate', function(event) {
if(!isPageRefresh()){
const newUrl = modifyUrl(window.location.href);
window.history.replaceState({}, document.title, newUrl);
}
});
// 监听 beforeunload 事件
window.addEventListener('beforeunload', function(event) {
if(!isPageRefresh()){
const currentUrl = modifyUrl(window.location.href);
window.history.replaceState({}, document.title, currentUrl);
}
});
function isPageRefresh() {
return false
return performance.navigation.type === 1;
}
// URL 修改函数
function modifyUrl(url) {
const urlObj = new URL(url, window.location.origin);
const path = urlObj.pathname;
if(path.startsWith("/VirtualCourse")){
return path
}
if (path.startsWith('/')) {
const productId = 'c69a4f7ee237f1cea82b1321ad120c43';
const newPath = `/VirtualCourse/course/${productId}${path}`;
urlObj.pathname = newPath;
}
return urlObj.toString();
}
})();

@ -4140,8 +4140,8 @@ else if (typeof process_process !== 'undefined') {
safeProcess = {
get platform() { return process_process.platform; },
get arch() { return process_process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
nextTick(callback) { return process_process.nextTick(callback); }
};
}
@ -4359,7 +4359,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

@ -20022,8 +20022,8 @@ else if (typeof process !== 'undefined') {
safeProcess = {
get platform() { return process.platform; },
get arch() { return process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process.cwd(); },
nextTick(callback) { return process.nextTick(callback); }
};
}
@ -20241,7 +20241,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

@ -1825,14 +1825,14 @@ var Config_SetPublic = function SetPublic(_ref) {
width: 50
}, {
title: '版本号',
dataIndex: 'created_on',
key: 'created_on',
dataIndex: 'publish_time',
key: 'publish_time',
ellipsis: true,
width: 110,
render: function render(text) {
return text ? /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: dayjs_min_default()(text).format("YYYY-MM-DD")
}) : '--';
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: dayjs_min_default()(text === null || text === void 0 ? void 0 : text.publish_time).format("YYYY-MM-DD")
});
}
}, {
title: '操作',

@ -29105,7 +29105,7 @@ var Page = function Page(_ref) {
})]
}), editPreview ? /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* FixedBottom */.vr, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
total: data === null || data === void 0 || (_data$exam10 = data.exam) === null || _data$exam10 === void 0 ? void 0 : _data$exam10.total_num,
pageSize: 1,
current: selectValue + 1,

@ -1,836 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17806],{
/***/ 8419:
/*!***************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.tsx + 1 modules ***!
\***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ StatisticsQuality; }
});
// 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/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// 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/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(35699);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(74505);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(96865);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
var table = __webpack_require__(61998);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var StatisticsQualitymodules = ({"wrap":"wrap___sKc1R","headWrap":"headWrap___S5CVJ","head":"head___VBue_","deal":"deal___mWVJv","two":"two___h7Vsd","one":"one___dXkJk","icon_wenhao":"icon_wenhao___dRz5q","tips":"tips___WN5Qp"});
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(23634);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72721);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.tsx
//新建数值
var ShixunsListPage = function ShixunsListPage(_ref) {
var _Res$overall_performa, _Res$ability_datas, _Res$overall_performa2, _Res$quality_datas, _Res$overall_performa3, _Res$guidance_datas, _Res$overall_performa4, _Res$manage_datas, _Res$overall_performa5, _Res$active_datas, _columns$find, _columns$find2, _columns$find3, _columns$find4, _columns$find5, _teacherList$teacher_;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch,
user = _ref.user;
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()(objectSpread2_default()({}, (0,_umi_production_exports.useParams)()), {
page: 1,
limit: 2000
})),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(),
_useState4 = slicedToArray_default()(_useState3, 2),
teacherValue = _useState4[0],
setTeacherValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(1),
_useState6 = slicedToArray_default()(_useState5, 2),
arithmeticValue = _useState6[0],
setArithmeticValue = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
loading = _useState8[0],
setLoading = _useState8[1];
// const [data, setData] = useState<any>({});
var _useState9 = (0,_react_17_0_2_react.useState)({}),
_useState10 = slicedToArray_default()(_useState9, 2),
teacherList = _useState10[0],
setTeacherList = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(''),
_useState12 = slicedToArray_default()(_useState11, 2),
teacherName = _useState12[0],
setTeacherName = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)({}),
_useState14 = slicedToArray_default()(_useState13, 2),
Res = _useState14[0],
setRes = _useState14[1];
// 画像更新时间:
var _useState15 = (0,_react_17_0_2_react.useState)(''),
_useState16 = slicedToArray_default()(_useState15, 2),
updata_time = _useState16[0],
setupdata_time = _useState16[1];
// 教学能力提升:
var _useState17 = (0,_react_17_0_2_react.useState)([]),
_useState18 = slicedToArray_default()(_useState17, 2),
ability_datas = _useState18[0],
setability_datas = _useState18[1];
// 教学质量
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
quality_datas = _useState20[0],
setquality_datas = _useState20[1];
// 教学管理:
var _useState21 = (0,_react_17_0_2_react.useState)([]),
_useState22 = slicedToArray_default()(_useState21, 2),
manage_datas = _useState22[0],
setmanage_datas = _useState22[1];
// 教学积极性:
var _useState23 = (0,_react_17_0_2_react.useState)([]),
_useState24 = slicedToArray_default()(_useState23, 2),
active_datas = _useState24[0],
setactive_datas = _useState24[1];
// 教学辅导:
var _useState25 = (0,_react_17_0_2_react.useState)([]),
_useState26 = slicedToArray_default()(_useState25, 2),
guidance_datas = _useState26[0],
setguidance_datas = _useState26[1];
// 更新按钮禁用:
var _useState27 = (0,_react_17_0_2_react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
isDisabled = _useState28[0],
setisDisabled = _useState28[1];
// 更新按钮loading
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
btnLoading = _useState30[0],
setbtnLoading = _useState30[1];
(0,_react_17_0_2_react.useEffect)(function () {
getList();
checkAi();
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (teacherValue) getData();
}, [teacherValue]);
// 获取老师列表
var getList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var res, _user$userInfo, _res$teacher_list;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'teachers/getList',
payload: objectSpread2_default()({}, params)
});
case 2:
res = _context.sent;
if ((0,authority/* isAssistant */.Rm)()) {
setTeacherValue(user === null || user === void 0 || (_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id);
} else {
setTeacherValue(res === null || res === void 0 || (_res$teacher_list = res.teacher_list) === null || _res$teacher_list === void 0 || (_res$teacher_list = _res$teacher_list[0]) === null || _res$teacher_list === void 0 ? void 0 : _res$teacher_list.user_id);
}
setTeacherList(res);
case 5:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getList() {
return _ref2.apply(this, arguments);
};
}();
// 获取教室画像数据
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res, datas;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setLoading(true);
_context2.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params.coursesId, "/teacher_portrait.json"), {
method: "get",
params: {
teacher_id: teacherValue
}
});
case 3:
res = _context2.sent;
if (res.status === 0) {
datas = res.data.ai_datas;
setRes(res.data.ai_datas);
setTeacherName(res.data.teacher_info.name); //教师名字
// 画像更新时间:
setupdata_time(datas.last_statistic_datetime ? dayjs_min_default()(datas.last_statistic_datetime).format("YYYY-MM-DD HH:mm") : "");
// 教学能力提升:
setability_datas(datas.ability_datas);
// 教学质量:
setquality_datas(datas.quality_datas);
// 教学管理:
setmanage_datas(datas.manage_datas);
// 教学积极性:
setactive_datas(datas.active_datas);
// 教学辅导:
setguidance_datas(datas.guidance_datas);
// console.log(datas, "教师画像数据");
}
setLoading(false);
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getData() {
return _ref3.apply(this, arguments);
};
}();
var columns = [{
title: '教学能力',
dataIndex: 'ability_datas',
key: 'ability_datas',
align: 'center',
width: 80,
overallValue: (Res === null || Res === void 0 || (_Res$overall_performa = Res.overall_performance) === null || _Res$overall_performa === void 0 ? void 0 : _Res$overall_performa.scaler_total_scores) || 0,
isShure: (Res === null || Res === void 0 || (_Res$ability_datas = Res.ability_datas) === null || _Res$ability_datas === void 0 ? void 0 : _Res$ability_datas.length) > 0
}, {
title: '教学质量',
dataIndex: 'quality_datas',
key: 'quality_datas',
align: 'center',
width: 90,
overallValue: (Res === null || Res === void 0 || (_Res$overall_performa2 = Res.overall_performance) === null || _Res$overall_performa2 === void 0 ? void 0 : _Res$overall_performa2.scaler_quality_scores) || 0,
isShure: (Res === null || Res === void 0 || (_Res$quality_datas = Res.quality_datas) === null || _Res$quality_datas === void 0 ? void 0 : _Res$quality_datas.length) > 0
}, {
title: '教学辅导',
key: 'guidance_datas',
dataIndex: 'guidance_datas',
align: 'center',
width: 90,
overallValue: (Res === null || Res === void 0 || (_Res$overall_performa3 = Res.overall_performance) === null || _Res$overall_performa3 === void 0 ? void 0 : _Res$overall_performa3.scaler_guidance_scores) || 0,
isShure: (Res === null || Res === void 0 || (_Res$guidance_datas = Res.guidance_datas) === null || _Res$guidance_datas === void 0 ? void 0 : _Res$guidance_datas.length) > 0
}, {
title: '教学管理',
key: 'manage_datas',
dataIndex: 'manage_datas',
align: 'center',
width: 90,
overallValue: (Res === null || Res === void 0 || (_Res$overall_performa4 = Res.overall_performance) === null || _Res$overall_performa4 === void 0 ? void 0 : _Res$overall_performa4.scaler_manage_scores) || 0,
isShure: (Res === null || Res === void 0 || (_Res$manage_datas = Res.manage_datas) === null || _Res$manage_datas === void 0 ? void 0 : _Res$manage_datas.length) > 0
}, {
title: '教学积极性',
key: 'active_datas',
dataIndex: "active_datas",
align: 'center',
width: 90,
overallValue: (Res === null || Res === void 0 || (_Res$overall_performa5 = Res.overall_performance) === null || _Res$overall_performa5 === void 0 ? void 0 : _Res$overall_performa5.scaler_active_scores) || 0,
isShure: (Res === null || Res === void 0 || (_Res$active_datas = Res.active_datas) === null || _Res$active_datas === void 0 ? void 0 : _Res$active_datas.length) > 0
}].filter(function (item) {
return item.isShure;
});
var data = [{
key: '1',
name: teacherName,
ability_datas: (_columns$find = columns.find(function (item) {
return item.title == "教学能力";
})) === null || _columns$find === void 0 ? void 0 : _columns$find.overallValue,
quality_datas: (_columns$find2 = columns.find(function (item) {
return item.title == "教学质量";
})) === null || _columns$find2 === void 0 ? void 0 : _columns$find2.overallValue,
guidance_datas: (_columns$find3 = columns.find(function (item) {
return item.title == "教学辅导";
})) === null || _columns$find3 === void 0 ? void 0 : _columns$find3.overallValue,
manage_datas: (_columns$find4 = columns.find(function (item) {
return item.title == "教学管理";
})) === null || _columns$find4 === void 0 ? void 0 : _columns$find4.overallValue,
active_datas: (_columns$find5 = columns.find(function (item) {
return item.title == "教学积极性";
})) === null || _columns$find5 === void 0 ? void 0 : _columns$find5.overallValue
}];
// 检测ai更新状态
function checkAi() {
return _checkAi.apply(this, arguments);
} // 更新
function _checkAi() {
_checkAi = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3() {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
_context3.next = 2;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/ai_status_query.json"), {
method: "get"
});
case 2:
res = _context3.sent;
if (res.status === 0) {
if (res.cal_finish_if === 1) {
setisDisabled(false);
} else {
setisDisabled(true);
}
}
case 4:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _checkAi.apply(this, arguments);
}
function update(_x) {
return _update.apply(this, arguments);
}
function _update() {
_update = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(category) {
var res;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
setbtnLoading(true);
_context4.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/update_course_portrait_data.json"), {
method: "post",
body: {
category: category
}
});
case 3:
res = _context4.sent;
setbtnLoading(false);
case 5:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _update.apply(this, arguments);
}
var option1 = {
color: "#5881ca",
tooltip: {
trigger: 'axis'
},
radar: {
// 雷达图的选项:
indicator: columns.map(function (item) {
return {
name: item.title,
max: Math.max(100, item.overallValue)
};
}),
center: ['40%', '58%'],
//雷达图偏移位置
radius: 85,
//雷达图大小
splitArea: {
//雷达图背景色
areaStyle: {
color: ['white']
}
}
},
series: [{
type: 'radar',
//画图类型--雷达图
tooltip: {
trigger: 'item' //悬浮提示弹窗
},
data: [{
value: columns.map(function (item) {
return item.overallValue;
}),
//数据值
name: teacherName,
areaStyle: {
color: "#d0dfff"
},
//雷达覆盖区域背景颜色
symbol: "none" //不显示小圆点
}]
}]
};
var option2 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: teacherName
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
color: ["#ff0000"],
xAxis: {
type: 'category',
boundaryGap: false,
data: ability_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: teacherName,
type: 'line',
stack: 'Total',
data: ability_datas.map(function (item) {
return item.score;
})
}]
};
var option3 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: teacherName
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
color: ["#ff0000"],
xAxis: {
type: 'category',
boundaryGap: false,
data: quality_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: teacherName,
type: 'line',
stack: 'Total',
data: quality_datas.map(function (item) {
return item.score;
})
}]
};
var option4 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: teacherName
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
color: ["#ff0000"],
xAxis: {
type: 'category',
boundaryGap: false,
data: manage_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: teacherName,
type: 'line',
stack: 'Total',
data: manage_datas.map(function (item) {
return item.score;
})
}]
};
var option5 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: teacherName
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
color: ["#ff0000"],
xAxis: {
type: 'category',
boundaryGap: false,
data: active_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: teacherName,
type: 'line',
stack: 'Total',
data: active_datas.map(function (item) {
return item.score;
})
}]
};
var option6 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: teacherName
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
color: ["#ff0000"],
xAxis: {
type: 'category',
boundaryGap: false,
data: guidance_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: teacherName,
type: 'line',
stack: 'Total',
data: guidance_datas.map(function (item) {
return item.score;
})
}]
};
var handleClick = function handleClick() {
getData();
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.headWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StatisticsQualitymodules.head,
children: "\u6559\u5B66\u8D28\u91CF\u5206\u6790"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StatisticsQualitymodules.deal,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9009\u62E9\u8BC4\u6D4B\u6559\u5E08"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
value: teacherValue,
onChange: function onChange(v) {
return setTeacherValue(v);
},
disabled: !(0,authority/* isAdminOrTeacher */.G5)(),
style: {
width: 200
},
children: teacherList === null || teacherList === void 0 || (_teacherList$teacher_ = teacherList.teacher_list) === null || _teacherList$teacher_ === void 0 ? void 0 : _teacherList$teacher_.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
value: e.user_id,
children: [e.name, ' ']
}, e.user_id);
})
})]
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
background: "#ffffff",
marginTop: "15px",
minHeight: "500px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex",
marginBottom: "20px",
position: "relative",
height: "32px"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: "absolute",
right: 32,
top: 10
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
lineHeight: "32px"
},
children: updata_time ? "\u753B\u50CF\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A".concat(updata_time) : ""
}), (0,authority/* isAdmins */.eB)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: isDisabled ? "用户画像数据更新中,请稍候" : "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
disabled: isDisabled,
loading: btnLoading,
type: "primary",
ghost: true,
style: {
margin: "0 24px 0 26px"
},
onClick: function onClick() {
setisDisabled(true);
update(1);
},
children: "\u5168\u91CF\u66F4\u65B0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: isDisabled ? "用户画像数据更新中,请稍候" : "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: btnLoading,
disabled: isDisabled,
type: "primary",
ghost: true,
onClick: function onClick() {
setisDisabled(true);
update(2);
},
children: "\u589E\u91CF\u66F4\u65B0"
})
})]
})]
})
}), Boolean(updata_time) ? /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
children: [columns.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: StatisticsQualitymodules.tips,
children: "\u6574\u4F53\u8868\u73B0 "
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
justifyContent: "space-around",
alignItems: "center"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
width: "42%"
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option1
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
columns: columns,
dataSource: data,
pagination: false,
style: {
width: "48%"
}
})]
})]
}), ability_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: "40px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u6559\u5B66\u79EF\u6781\u6027\u3001\u6559\u5B66\u7BA1\u7406\u3001\u6559\u5B66\u8F85\u5BFC\u548C\u6559\u5B66\u8D28\u91CF\uFF0C\u7EFC\u5408\u5404\u81EA\u6743\u91CD\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: StatisticsQualitymodules.tips,
children: ["\u6559\u5B66\u80FD\u529B\u63D0\u5347 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat(StatisticsQualitymodules.icon_wenhao)
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option2,
style: {
height: "300px"
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: "40px",
display: 'flex',
justifyContent: "space-between"
},
children: [quality_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: manage_datas.length > 1 ? {
width: "47%",
height: "300px"
} : {
width: "100%",
height: "300px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u4F5C\u4E1A\u3001\u8003\u8BD5\u3001\u8BA8\u8BBA\u3001\u89C6\u9891\u6570\u636E\u3001\u7EFC\u5408\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: StatisticsQualitymodules.tips,
children: ["\u6559\u5B66\u8D28\u91CF ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat(StatisticsQualitymodules.icon_wenhao)
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option3
})]
}), manage_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: quality_datas.length > 1 ? {
width: "47%",
height: "300px"
} : {
width: "100%",
height: "300px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u4F5C\u4E1A\u3001\u8003\u8BD5\u3001\u8BA8\u8BBA\u3001\u7B7E\u5230\u3001\u89C6\u9891\u6570\u636E\u3001\u7EFC\u5408\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: StatisticsQualitymodules.tips,
children: ["\u6559\u5B66\u7BA1\u7406 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat(StatisticsQualitymodules.icon_wenhao)
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option4
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: "48px",
display: 'flex',
justifyContent: "space-between"
},
children: [active_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: guidance_datas.length > 1 ? {
width: "47%",
height: "300px"
} : {
width: "100%",
height: "300px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u6559\u5E08\u53D1\u5E03\u7684\u4F5C\u4E1A\u3001\u8003\u8BD5\u3001\u8BA8\u8BBA\u3001\u7B7E\u5230\u3001\u89C6\u9891\u3001\u8D44\u6E90\u6570\u636E\u7EFC\u5408\u8BA1\u7B97\u5F97\u51FA\u3002",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: StatisticsQualitymodules.tips,
children: ["\u6559\u5B66\u79EF\u6781\u6027 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat(StatisticsQualitymodules.icon_wenhao)
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option5
})]
}), guidance_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: active_datas.length > 1 ? {
width: "47%",
height: "300px"
} : {
width: "100%",
height: "300px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u6559\u5E08\u7684\u4F5C\u4E1A\u8BC4\u4EF7\u6570\u636E\u3001\u8BA8\u8BBA\u56DE\u590D\u6570\u636E\u7EFC\u5408\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: StatisticsQualitymodules.tips,
children: ["\u6559\u5B66\u8F85\u5BFC ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat(StatisticsQualitymodules.icon_wenhao)
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option6
})]
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: "暂无用户画像数据,可以点击页面右上角的“全量更新”或“增量更新”按钮分析数据"
})]
})]
});
};
/* harmony default export */ var StatisticsQuality = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
globalSetting = _ref4.globalSetting;
return {
classroomList: classroomList,
globalSetting: globalSetting
};
})(ShixunsListPage));
/***/ })
}]);

@ -45,29 +45,4 @@
border-radius: 2px;
padding: 10px;
}
.icon_wenhao___dRz5q {
color: #165dff;
border-radius: 8px;
}
.tips___WN5Qp {
border-left: 3px solid #0000ff;
padding-left: 12px;
margin-left: 7px;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
}
table th {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
text-align: center;
vertical-align: middle;
}
table td {
text-align: center;
vertical-align: middle;
}

@ -0,0 +1,902 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[17806],{
/***/ 42653:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_SearchOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/SearchOutlined.js
// This icon file is generated automatically.
var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
/* harmony default export */ var asn_SearchOutlined = (SearchOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(22589);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.1@@ant-design/icons/es/icons/SearchOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var SearchOutlined_SearchOutlined = function SearchOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_SearchOutlined
}));
};
/**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(SearchOutlined_SearchOutlined);
if (false) {}
/* harmony default export */ var icons_SearchOutlined = (RefIcon);
/***/ }),
/***/ 8419:
/*!***************************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.tsx + 1 modules ***!
\***************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ StatisticsQuality; }
});
// 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/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// 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/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(35699);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(96865);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var StatisticsQualitymodules = ({"wrap":"wrap___sKc1R","headWrap":"headWrap___S5CVJ","head":"head___VBue_","deal":"deal___mWVJv","two":"two___h7Vsd","one":"one___dXkJk"});
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(23634);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StatisticsQuality/index.tsx
//新建数值
var ShixunsListPage = function ShixunsListPage(_ref) {
var _data$control_degree, _data$control_degree2, _data$control_degree3, _data$control_degree4, _data$control_degree5, _teacherList$teacher_;
var classroomList = _ref.classroomList,
globalSetting = _ref.globalSetting,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()(objectSpread2_default()({}, (0,_umi_production_exports.useParams)()), {
page: 1,
limit: 2000
})),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(),
_useState4 = slicedToArray_default()(_useState3, 2),
teacherValue = _useState4[0],
setTeacherValue = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(1),
_useState6 = slicedToArray_default()(_useState5, 2),
arithmeticValue = _useState6[0],
setArithmeticValue = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(false),
_useState8 = slicedToArray_default()(_useState7, 2),
loading = _useState8[0],
setLoading = _useState8[1];
var _useState9 = (0,_react_17_0_2_react.useState)({}),
_useState10 = slicedToArray_default()(_useState9, 2),
data = _useState10[0],
setData = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)({}),
_useState12 = slicedToArray_default()(_useState11, 2),
teacherList = _useState12[0],
setTeacherList = _useState12[1];
(0,_react_17_0_2_react.useEffect)(function () {
getList();
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
if (teacherValue) getData();
}, [teacherValue]);
var getList = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _res$teacher_list;
var res;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return dispatch({
type: 'teachers/getList',
payload: objectSpread2_default()({}, params)
});
case 2:
res = _context.sent;
setTeacherValue(res === null || res === void 0 || (_res$teacher_list = res.teacher_list) === null || _res$teacher_list === void 0 || (_res$teacher_list = _res$teacher_list[0]) === null || _res$teacher_list === void 0 ? void 0 : _res$teacher_list.user_id);
setTeacherList(res);
case 5:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getList() {
return _ref2.apply(this, arguments);
};
}();
var getData = /*#__PURE__*/function () {
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
setLoading(true);
_context2.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/teacher_id.json", {
method: 'get',
params: {
teacherId: teacherValue
}
});
case 3:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
setData((res === null || res === void 0 ? void 0 : res.data) || {});
}
setLoading(false);
case 6:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return function getData() {
return _ref3.apply(this, arguments);
};
}();
// const teacher = [
// {
// "tcId": 1,
// "teacherId": 101,
// "teacherName": "周老师",
// "courseId": 101,
// "courseName": "数据结构"
// },
// {
// "tcId": 2,
// "teacherId": 102,
// "teacherName": "曾老师",
// "courseId": 102,
// "courseName": "C语言"
// },
// {
// "tcId": 3,
// "teacherId": 103,
// "teacherName": "陈老师",
// "courseId": 103,
// "courseName": "计算机网络"
// },
// {
// "tcId": 4,
// "teacherId": 104,
// "teacherName": "赵老师",
// "courseId": 104,
// "courseName": "大数据"
// },
// {
// "tcId": 5,
// "teacherId": 105,
// "teacherName": "李老师",
// "courseId": 105,
// "courseName": "数学"
// }
// ]
// const data = {
// "control_degree": [
// [4, 30, 77, 34, 33],
// [36, 95, 52, 76, 97],
// [320, 332, 301, 334, 390, 330, 320],
// [320, 332, 301, 334, 390, 330, 320],
// [320, 332, 301, 334, 390, 330, 320]
// ],
// "commiment": [
// 19,
// 91,
// 37,
// 14,
// 10
// ],
// "recongnition": [
// {
// "value": 53,
// "itemStyle": {
// "color": "#fa0a0f"
// }
// },
// {
// "value": 65,
// "itemStyle": {
// "color": "#a0ffa0"
// }
// },
// {
// "value": 33,
// "itemStyle": {
// "color": "#faa0f0"
// }
// },
// {
// "value": 65,
// "itemStyle": {
// "color": "#ffa0a0"
// }
// },
// {
// "value": 60,
// "itemStyle": {
// "color": "#0ffaa0"
// }
// }
// ],
// "promotion": [
// {
// "value": 2,
// "name": "促进参与"
// },
// {
// "value": 76,
// "name": "促进绩效"
// }
// ]
// }
var option1 = {
title: {
text: '教师'
},
legend: {
top: '0%',
left: 'right',
data: ['课前', '课中', '课后']
},
tooltip: {
trigger: 'axis'
},
radar: {
// shape: 'circle',
indicator: [{
name: '投入度',
max: 6500
}, {
name: '促进度',
max: 16000
}, {
name: '调控度',
max: 30000
}, {
name: '认可度',
max: 38000
}],
center: ['50%', '50%'],
radius: 120
},
series: [{
name: 'Budget vs spending',
type: 'radar',
tooltip: {
trigger: 'item'
},
data: [{
value: [4200, 3000, 20000, 35000, 50000, 18000],
name: '课前'
}, {
value: [5000, 14000, 28000, 26000, 42000, 21000],
name: '课中'
}, {
value: [4200, 14000, 20000, 26000, 50000, 26000],
name: '课后'
}]
}]
};
var option2 = {
color: "#0F7858",
title: {
text: '投入度'
},
legend: {
// data: ['估计值', '实际值'],
orient: 'vertical',
left: 'right'
},
tooltip: {
trigger: "item",
zlevel: 0
},
radar: {
// shape: 'circle',
indicator: [{
name: '教学准备',
max: 100
}, {
name: '组织学习',
max: 100
}, {
name: '建设资源',
max: 100
}, {
name: '互动答疑',
max: 100
}, {
name: '学习评价',
max: 100
}]
},
series: [{
type: 'radar',
data: [{
// value: [80, 70, 90, 65, 45],
value: data === null || data === void 0 ? void 0 : data.commiment,
name: '评测值'
}]
}]
};
var option3 = {
title: {
text: '调控度',
left: 'left'
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
label: {
backgroundColor: '#6a7985'
}
}
},
legend: {
data: ['查看学习任务次数', '查看测验次数', '提醒任务次数', '小组发帖次数', '学习资源更新次数'],
// orient: 'vertical',
left: 'right'
},
// toolbox: {
// feature: {
// saveAsImage: {}
// }
// },
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
boundaryGap: false,
data: ['一', '二', '三', '四', '五', '六', '七']
}],
yAxis: [{
type: 'value'
}],
series: [{
name: '查看学习任务次数',
type: 'line',
stack: '总量',
areaStyle: {},
emphasis: {
focus: 'series'
},
data: data === null || data === void 0 || (_data$control_degree = data.control_degree) === null || _data$control_degree === void 0 ? void 0 : _data$control_degree[0]
}, {
name: '查看测验次数',
type: 'line',
stack: '总量',
areaStyle: {},
emphasis: {
focus: 'series'
},
data: data === null || data === void 0 || (_data$control_degree2 = data.control_degree) === null || _data$control_degree2 === void 0 ? void 0 : _data$control_degree2[1]
}, {
name: '提醒任务次数',
type: 'line',
stack: '总量',
areaStyle: {},
emphasis: {
focus: 'series'
},
data: data === null || data === void 0 || (_data$control_degree3 = data.control_degree) === null || _data$control_degree3 === void 0 ? void 0 : _data$control_degree3[2]
}, {
name: '小组发帖次数',
type: 'line',
stack: '总量',
areaStyle: {},
emphasis: {
focus: 'series'
},
data: data === null || data === void 0 || (_data$control_degree4 = data.control_degree) === null || _data$control_degree4 === void 0 ? void 0 : _data$control_degree4[3]
}, {
name: '学习资源更新次数',
type: 'line',
stack: '总量',
areaStyle: {},
emphasis: {
focus: 'series'
},
data: data === null || data === void 0 || (_data$control_degree5 = data.control_degree) === null || _data$control_degree5 === void 0 ? void 0 : _data$control_degree5[4]
}]
};
var option4 = {
title: {
text: '认可度'
},
tooltip: {
trigger: 'axis',
axisPointer: {
// 坐标轴指示器,坐标轴触发有效
type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
}
},
legend: {
data: ['学习资源认可', '学习任务认可', '辅导答疑认可', '作业批改认可', '小组指导认可'],
orient: 'vertical'
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
data: ['学习资源认可', '学习任务认可', '辅导答疑认可', '作业批改认可', '小组指导认可']
}],
yAxis: [{
type: 'value'
}],
series: [{
// name: '学习资源认可',
type: 'bar',
// emphasis: {
//     focus: 'series'
// },
// data: data_set
data: data === null || data === void 0 ? void 0 : data.recongnition
}]
};
var option5 = {
title: {
text: '促进度',
left: 'left'
},
legend: {
// orient: 'vertical',
left: 'right'
},
tooltip: {
trigger: "item",
zlevel: 0
},
series: [{
type: 'pie',
radius: '45%',
center: ['55%', '60%'],
// data: [
//     { value: 80, name: '促进参与' },
//     { value: 50, name: '促进绩效' }
// ]
data: data === null || data === void 0 ? void 0 : data.promotion
}]
};
var handleClick = function handleClick() {
getData();
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.wrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.headWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StatisticsQualitymodules.head,
children: "\u6559\u5B66\u8D28\u91CF\u5206\u6790"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.deal,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9009\u62E9\u8BC4\u6D4B\u6559\u5E08"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"], {
value: teacherValue,
onChange: function onChange(v) {
return setTeacherValue(v);
},
style: {
width: 200
},
children: teacherList === null || teacherList === void 0 || (_teacherList$teacher_ = teacherList.teacher_list) === null || _teacherList$teacher_ === void 0 ? void 0 : _teacherList$teacher_.map(function (e) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"].Option, {
value: e.user_id,
children: [e.name, " "]
}, e.user_id);
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "ml30",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u9009\u62E9\u8BC4\u6D4B\u7B97\u6CD5"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(es_select["default"], {
value: arithmeticValue,
onChange: function onChange(v) {
return setArithmeticValue(v);
},
style: {
width: 200
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 1,
children: "\u6559\u5E08\u5728\u7EBF\u6559\u5B66\u8D28\u91CF\u6210\u6548\u8BC4\u6D4B"
}, 1), /*#__PURE__*/(0,jsx_runtime.jsx)(es_select["default"].Option, {
value: 2,
children: "\u673A\u5668\u8F85\u52A9\u6559\u5B66\u8D28\u91CF\u6210\u6548\u8BC4\u6D4B"
}, 2)]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: handleClick,
disabled: loading,
style: {
marginLeft: 'auto'
},
type: "primary",
children: "\u5F00\u59CB\u5206\u6790"
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
className: "mt10",
loading: loading,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.two,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option1,
style: {
height: 400
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option2,
style: {
height: 400
}
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: StatisticsQualitymodules.one,
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option3,
style: {
height: 300
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: StatisticsQualitymodules.two,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option4,
style: {
height: 400
}
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option5,
style: {
height: 400
}
})
})]
})]
})]
});
};
/* harmony default export */ var StatisticsQuality = ((0,_umi_production_exports.connect)(function (_ref4) {
var classroomList = _ref4.classroomList,
globalSetting = _ref4.globalSetting;
return {
classroomList: classroomList,
globalSetting: globalSetting
};
})(ShixunsListPage));
/***/ }),
/***/ 19080:
/*!***************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/_util/statusUtils.js ***!
\***************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ F: function() { return /* binding */ getMergedStatus; },
/* harmony export */ Z: function() { return /* binding */ getStatusClassNames; }
/* harmony export */ });
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
const InputStatuses = (/* unused pure expression or super */ null && (['warning', 'error', '']));
function getStatusClassNames(prefixCls, status, hasFeedback) {
return classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-status-success`]: status === 'success',
[`${prefixCls}-status-warning`]: status === 'warning',
[`${prefixCls}-status-error`]: status === 'error',
[`${prefixCls}-status-validating`]: status === 'validating',
[`${prefixCls}-has-feedback`]: hasFeedback
});
}
const getMergedStatus = (contextStatus, customStatus) => customStatus || contextStatus;
/***/ }),
/***/ 57809:
/*!**********************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
\**********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 55405);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
const InternalSelect = (_a, ref) => {
var _b;
var {
prefixCls: customizePrefixCls,
bordered = true,
className,
rootClassName,
getPopupContainer,
popupClassName,
dropdownClassName,
listHeight = 256,
placement,
listItemHeight = 24,
size: customizeSize,
disabled: customDisabled,
notFoundContent,
status: customStatus,
builtinPlacements,
dropdownMatchSelectWidth,
popupMatchSelectWidth,
direction: propDirection,
style,
allowClear
} = _a,
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
const {
getPopupContainer: getContextPopupContainer,
getPrefixCls,
renderEmpty,
direction: contextDirection,
virtual,
popupMatchSelectWidth: contextPopupMatchSelectWidth,
popupOverflow,
select
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
const prefixCls = getPrefixCls('select', customizePrefixCls);
const rootPrefixCls = getPrefixCls();
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
const {
compactSize,
compactItemClassnames
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
const {
mode: m
} = props;
if (m === 'combobox') {
return undefined;
}
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
return 'combobox';
}
return m;
}, [props.mode]);
const isMultiple = mode === 'multiple' || mode === 'tags';
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
// ===================== Form Status =====================
const {
status: contextStatus,
hasFeedback,
isFormItemInput,
feedbackIcon
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
// ===================== Empty =====================
let mergedNotFound;
if (notFoundContent !== undefined) {
mergedNotFound = notFoundContent;
} else if (mode === 'combobox') {
mergedNotFound = null;
} else {
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
componentName: "Select"
});
}
// ===================== Icons =====================
const {
suffixIcon,
itemIcon,
removeIcon,
clearIcon
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
multiple: isMultiple,
hasFeedback,
feedbackIcon,
showSuffixIcon,
prefixCls,
showArrow: props.showArrow,
componentName: 'Select'
}));
const mergedAllowClear = allowClear === true ? {
clearIcon
} : allowClear;
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
}, rootClassName, hashId);
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
var _a;
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
});
// ===================== Disabled =====================
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
[`${prefixCls}-lg`]: mergedSize === 'large',
[`${prefixCls}-sm`]: mergedSize === 'small',
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-borderless`]: !bordered,
[`${prefixCls}-in-form-item`]: isFormItemInput
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
// ===================== Placement =====================
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
if (placement !== undefined) {
return placement;
}
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
}, [placement, direction]);
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
// ====================== Warning ======================
if (false) {}
// ====================== Render =======================
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
ref: ref,
virtual: virtual,
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
}, selectProps, {
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
builtinPlacements: mergedBuiltinPlacements,
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
listHeight: listHeight,
listItemHeight: listItemHeight,
mode: mode,
prefixCls: prefixCls,
placement: memoPlacement,
direction: direction,
suffixIcon: suffixIcon,
menuItemSelectedIcon: itemIcon,
removeIcon: removeIcon,
allowClear: mergedAllowClear,
notFoundContent: mergedNotFound,
className: mergedClassName,
getPopupContainer: getPopupContainer || getContextPopupContainer,
dropdownClassName: rcSelectRtlDropdownClassName,
disabled: mergedDisabled
})));
};
if (false) {}
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
// We don't care debug panel
/* istanbul ignore next */
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
if (false) {}
/* harmony default export */ __webpack_exports__["default"] = (Select);
/***/ })
}]);

@ -1,9 +1,9 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[27395],{
/***/ 75530:
/***/ 89112:
/*!***********************************************************************************!*\
!*** ./src/pages/Classrooms/Lists/Statistics/StudentDetail/index.tsx + 7 modules ***!
!*** ./src/pages/Classrooms/Lists/Statistics/StudentDetail/index.tsx + 5 modules ***!
\***********************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
@ -1137,924 +1137,6 @@ var GroupHomework_ShixunsListPage = function ShixunsListPage(_ref) {
var env = __webpack_require__(97730);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(74505);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
var skeleton = __webpack_require__(96865);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = __webpack_require__(6848);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/button/index.js
var es_button = __webpack_require__(3113);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StudentDetail/components/StudentPortrait/index.less
// extracted by mini-css-extract-plugin
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
var lib = __webpack_require__(42441);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(72721);
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StudentDetail/components/StudentPortrait/index.tsx
dayjs_min_default().locale('zh-cn');
var StudentPortrait = function StudentPortrait(_ref) {
var _Res$student_growth_d, _Res$homework_datas, _Res$exercise_datas, _Res$knowledge_datas, _Res$message_datas, _Res$attendance_datas, _Res$video_datas, _overall_performance$, _overall_performance$2, _overall_performance$3, _overall_performance$4, _overall_performance$5, _overall_performance$6, _overall_performance$7, _overall_performance$8, _overall_performance$9, _overall_performance$10, _overall_performance$11, _overall_performance$12, _overall_performance$13, _overall_performance$14;
var activitykey = _ref.activitykey,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(objectSpread2_default()(objectSpread2_default()({}, (0,_umi_production_exports.useParams)()), {}, {
page: 1,
type: 6,
limit: 10
})),
_useState2 = slicedToArray_default()(_useState, 2),
params = _useState2[0],
setParams = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)(false),
_useState4 = slicedToArray_default()(_useState3, 2),
loading = _useState4[0],
setloading = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(""),
_useState6 = slicedToArray_default()(_useState5, 2),
ai_time = _useState6[0],
setai_time = _useState6[1]; //画像更新时间
var _useState7 = (0,_react_17_0_2_react.useState)({}),
_useState8 = slicedToArray_default()(_useState7, 2),
Res = _useState8[0],
setRes = _useState8[1];
// 学生成长画像-----
var _useState9 = (0,_react_17_0_2_react.useState)([]),
_useState10 = slicedToArray_default()(_useState9, 2),
studentArr = _useState10[0],
setstudentArr = _useState10[1];
var _useState11 = (0,_react_17_0_2_react.useState)(""),
_useState12 = slicedToArray_default()(_useState11, 2),
studentName = _useState12[0],
setstudentName = _useState12[1];
var _useState13 = (0,_react_17_0_2_react.useState)([]),
_useState14 = slicedToArray_default()(_useState13, 2),
overall_performance = _useState14[0],
setoverall_performance = _useState14[1];
// 作业指数:
var _useState15 = (0,_react_17_0_2_react.useState)([]),
_useState16 = slicedToArray_default()(_useState15, 2),
homework_data = _useState16[0],
sethomework_data = _useState16[1];
// 考试指数:
var _useState17 = (0,_react_17_0_2_react.useState)([]),
_useState18 = slicedToArray_default()(_useState17, 2),
exercise_datas = _useState18[0],
setexercise_datas = _useState18[1];
// 知识点指数:
var _useState19 = (0,_react_17_0_2_react.useState)([]),
_useState20 = slicedToArray_default()(_useState19, 2),
knowledge_datas = _useState20[0],
setknowledge_datas = _useState20[1];
// 签到指数:
var _useState21 = (0,_react_17_0_2_react.useState)([]),
_useState22 = slicedToArray_default()(_useState21, 2),
attendance_datas = _useState22[0],
setattendance_datas = _useState22[1];
// 讨论指数:
var _useState23 = (0,_react_17_0_2_react.useState)([]),
_useState24 = slicedToArray_default()(_useState23, 2),
message_datas = _useState24[0],
setmessage_datas = _useState24[1];
// 视频指数:
var _useState25 = (0,_react_17_0_2_react.useState)([]),
_useState26 = slicedToArray_default()(_useState25, 2),
video_datas = _useState26[0],
setvideo_datas = _useState26[1];
// 检测更新按钮:
var _useState27 = (0,_react_17_0_2_react.useState)(false),
_useState28 = slicedToArray_default()(_useState27, 2),
isDisabled = _useState28[0],
setisDisabled = _useState28[1];
// 更新按钮加载:
var _useState29 = (0,_react_17_0_2_react.useState)(false),
_useState30 = slicedToArray_default()(_useState29, 2),
btnLoading = _useState30[0],
setbtnLoading = _useState30[1];
(0,_react_17_0_2_react.useEffect)(function () {
if (activitykey === '5') {
getdata(objectSpread2_default()({}, params));
checkAi();
}
}, [activitykey]);
function getdata(_x) {
return _getdata.apply(this, arguments);
} // 检测ai更新状态
function _getdata() {
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(params) {
var res, _res$table_data, _res$table_data2, _datas$overall_perfor, _datas$overall_perfor2, _datas$student_growth, _datas$overall_perfor3, _datas$overall_perfor4, _datas$attendance_dat, _datas$overall_perfor5, _datas$overall_perfor6, _datas$message_datas, _datas$overall_perfor7, _datas$overall_perfor8, _datas$video_datas, _datas$overall_perfor9, _datas$overall_perfor10, _datas$knowledge_data, _datas$overall_perfor11, _datas$overall_perfor12, _datas$exercise_datas, _datas$overall_perfor13, _datas$overall_perfor14, _datas$homework_datas, datas, overall_performanceData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setloading(true);
_context.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/course_members/").concat(params.login, "/learning_statistics"), {
method: 'get',
params: params
});
case 3:
res = _context.sent;
setParams(objectSpread2_default()({}, params));
if (res) {
setRes((_res$table_data = res.table_data) === null || _res$table_data === void 0 ? void 0 : _res$table_data.ai_datas);
datas = ((_res$table_data2 = res.table_data) === null || _res$table_data2 === void 0 ? void 0 : _res$table_data2.ai_datas) || {};
setai_time(datas.last_statistic_datetime ? dayjs_min_default()(datas.last_statistic_datetime).format("YYYY-MM-DD HH:mm") : "");
overall_performanceData = [{
name: "学习成长画像",
myself: ((_datas$overall_perfor = datas.overall_performance) === null || _datas$overall_perfor === void 0 || (_datas$overall_perfor = _datas$overall_perfor.myself) === null || _datas$overall_perfor === void 0 ? void 0 : _datas$overall_perfor.scaler_total_score) || 0,
group: ((_datas$overall_perfor2 = datas.overall_performance) === null || _datas$overall_perfor2 === void 0 || (_datas$overall_perfor2 = _datas$overall_perfor2.group) === null || _datas$overall_perfor2 === void 0 ? void 0 : _datas$overall_perfor2.scaler_group_total_score) || 0,
isShow: ((_datas$student_growth = datas.student_growth_datas) === null || _datas$student_growth === void 0 ? void 0 : _datas$student_growth.length) > 0
}, {
name: "签到指数",
myself: ((_datas$overall_perfor3 = datas.overall_performance) === null || _datas$overall_perfor3 === void 0 || (_datas$overall_perfor3 = _datas$overall_perfor3.myself) === null || _datas$overall_perfor3 === void 0 ? void 0 : _datas$overall_perfor3.scaler_attendance_score) || 0,
group: ((_datas$overall_perfor4 = datas.overall_performance) === null || _datas$overall_perfor4 === void 0 || (_datas$overall_perfor4 = _datas$overall_perfor4.group) === null || _datas$overall_perfor4 === void 0 ? void 0 : _datas$overall_perfor4.scaler_group_attendance_score) || 0,
isShow: ((_datas$attendance_dat = datas.attendance_datas) === null || _datas$attendance_dat === void 0 ? void 0 : _datas$attendance_dat.length) > 0
}, {
name: "讨论指数",
myself: ((_datas$overall_perfor5 = datas.overall_performance) === null || _datas$overall_perfor5 === void 0 || (_datas$overall_perfor5 = _datas$overall_perfor5.myself) === null || _datas$overall_perfor5 === void 0 ? void 0 : _datas$overall_perfor5.scaler_message_score) || 0,
group: ((_datas$overall_perfor6 = datas.overall_performance) === null || _datas$overall_perfor6 === void 0 || (_datas$overall_perfor6 = _datas$overall_perfor6.group) === null || _datas$overall_perfor6 === void 0 ? void 0 : _datas$overall_perfor6.scaler_group_message_score) || 0,
isShow: ((_datas$message_datas = datas.message_datas) === null || _datas$message_datas === void 0 ? void 0 : _datas$message_datas.length) > 0
}, {
name: "视频指数",
myself: ((_datas$overall_perfor7 = datas.overall_performance) === null || _datas$overall_perfor7 === void 0 || (_datas$overall_perfor7 = _datas$overall_perfor7.myself) === null || _datas$overall_perfor7 === void 0 ? void 0 : _datas$overall_perfor7.scaler_video_score) || 0,
group: ((_datas$overall_perfor8 = datas.overall_performance) === null || _datas$overall_perfor8 === void 0 || (_datas$overall_perfor8 = _datas$overall_perfor8.group) === null || _datas$overall_perfor8 === void 0 ? void 0 : _datas$overall_perfor8.scaler_group_video_score) || 0,
isShow: ((_datas$video_datas = datas.video_datas) === null || _datas$video_datas === void 0 ? void 0 : _datas$video_datas.length) > 0
}, {
name: "知识点指数",
myself: ((_datas$overall_perfor9 = datas.overall_performance) === null || _datas$overall_perfor9 === void 0 || (_datas$overall_perfor9 = _datas$overall_perfor9.myself) === null || _datas$overall_perfor9 === void 0 ? void 0 : _datas$overall_perfor9.scaler_knowledge_score) || 0,
group: ((_datas$overall_perfor10 = datas.overall_performance) === null || _datas$overall_perfor10 === void 0 || (_datas$overall_perfor10 = _datas$overall_perfor10.group) === null || _datas$overall_perfor10 === void 0 ? void 0 : _datas$overall_perfor10.scaler_group_knowledge_score) || 0,
isShow: ((_datas$knowledge_data = datas.knowledge_datas) === null || _datas$knowledge_data === void 0 ? void 0 : _datas$knowledge_data.length) > 0
}, {
name: "考试指数",
myself: ((_datas$overall_perfor11 = datas.overall_performance) === null || _datas$overall_perfor11 === void 0 || (_datas$overall_perfor11 = _datas$overall_perfor11.myself) === null || _datas$overall_perfor11 === void 0 ? void 0 : _datas$overall_perfor11.scaler_exercise_score) || 0,
group: ((_datas$overall_perfor12 = datas.overall_performance) === null || _datas$overall_perfor12 === void 0 || (_datas$overall_perfor12 = _datas$overall_perfor12.group) === null || _datas$overall_perfor12 === void 0 ? void 0 : _datas$overall_perfor12.scaler_group_exercise_score) || 0,
isShow: ((_datas$exercise_datas = datas.exercise_datas) === null || _datas$exercise_datas === void 0 ? void 0 : _datas$exercise_datas.length) > 0
}, {
name: "作业指数",
myself: ((_datas$overall_perfor13 = datas.overall_performance) === null || _datas$overall_perfor13 === void 0 || (_datas$overall_perfor13 = _datas$overall_perfor13.myself) === null || _datas$overall_perfor13 === void 0 ? void 0 : _datas$overall_perfor13.scaler_homework_score) || 0,
group: ((_datas$overall_perfor14 = datas.overall_performance) === null || _datas$overall_perfor14 === void 0 || (_datas$overall_perfor14 = _datas$overall_perfor14.group) === null || _datas$overall_perfor14 === void 0 ? void 0 : _datas$overall_perfor14.scaler_group_homework_score) || 0,
isShow: ((_datas$homework_datas = datas.homework_datas) === null || _datas$homework_datas === void 0 ? void 0 : _datas$homework_datas.length) > 0
}]; // 学生整体表现:
setoverall_performance(overall_performanceData.filter(function (item) {
return item.isShow;
}));
// 学生成长画像:
setstudentArr(datas.student_growth_datas);
//学生姓名
setstudentName(res.username);
// setdatas(res);
// 作业指数
sethomework_data(datas.homework_datas);
//考试指数
setexercise_datas(datas.exercise_datas);
// 知识点指数:
setknowledge_datas(datas.knowledge_datas);
// 签到指数:
setattendance_datas(datas.attendance_datas);
// 讨论指数:
setmessage_datas(datas.message_datas);
// 视频指数:
setvideo_datas(datas.video_datas);
}
setloading(false);
case 7:
case "end":
return _context.stop();
}
}, _callee);
}));
return _getdata.apply(this, arguments);
}
function checkAi() {
return _checkAi.apply(this, arguments);
} // 更新
function _checkAi() {
_checkAi = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/ai_status_query.json"), {
method: "get"
});
case 2:
res = _context2.sent;
// console.log(res, "检测的res");
if (res.status === 0) {
if (res.cal_finish_if === 1) {
setisDisabled(false);
} else {
setisDisabled(true);
}
}
case 4:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _checkAi.apply(this, arguments);
}
function update(_x2) {
return _update.apply(this, arguments);
}
function _update() {
_update = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(category) {
var res;
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
setbtnLoading(true);
_context3.next = 3;
return (0,fetch/* default */.ZP)("/api/courses/".concat(params === null || params === void 0 ? void 0 : params.coursesId, "/update_course_portrait_data.json"), {
method: "post",
body: {
category: category
}
});
case 3:
res = _context3.sent;
setbtnLoading(false);
case 5:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _update.apply(this, arguments);
}
var columns = [{
title: '',
dataIndex: 'name',
key: 'name',
align: 'center',
width: 90,
isShure: true
}, {
title: '学习成长画像',
dataIndex: 'student_growth_datas',
key: 'student_growth_datas',
align: 'center',
width: 80,
isShure: (Res === null || Res === void 0 || (_Res$student_growth_d = Res.student_growth_datas) === null || _Res$student_growth_d === void 0 ? void 0 : _Res$student_growth_d.length) > 0
}, {
title: '作业指数',
dataIndex: 'homework_datas',
key: 'homework_datas',
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$homework_datas = Res.homework_datas) === null || _Res$homework_datas === void 0 ? void 0 : _Res$homework_datas.length) > 0
}, {
title: '考试指数',
key: 'exercise_datas',
dataIndex: 'exercise_datas',
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$exercise_datas = Res.exercise_datas) === null || _Res$exercise_datas === void 0 ? void 0 : _Res$exercise_datas.length) > 0
}, {
title: '知识点指数',
key: 'knowledge_datas',
dataIndex: 'knowledge_datas',
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$knowledge_datas = Res.knowledge_datas) === null || _Res$knowledge_datas === void 0 ? void 0 : _Res$knowledge_datas.length) > 0
}, {
title: '讨论指数',
key: 'message_datas',
dataIndex: "message_datas",
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$message_datas = Res.message_datas) === null || _Res$message_datas === void 0 ? void 0 : _Res$message_datas.length) > 0
}, {
title: '签到指数',
key: 'attendance_datas',
dataIndex: "attendance_datas",
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$attendance_datas = Res.attendance_datas) === null || _Res$attendance_datas === void 0 ? void 0 : _Res$attendance_datas.length) > 0
}, {
title: '视频指数',
key: 'video_datas',
dataIndex: "video_datas",
align: 'center',
width: 90,
isShure: (Res === null || Res === void 0 || (_Res$video_datas = Res.video_datas) === null || _Res$video_datas === void 0 ? void 0 : _Res$video_datas.length) > 0
}].filter(function (item) {
return item.isShure;
});
var data = [{
key: '1',
name: studentName,
student_growth_datas: (_overall_performance$ = overall_performance.find(function (item) {
return item.name == "学习成长画像";
})) === null || _overall_performance$ === void 0 ? void 0 : _overall_performance$.myself,
homework_datas: (_overall_performance$2 = overall_performance.find(function (item) {
return item.name == "作业指数";
})) === null || _overall_performance$2 === void 0 ? void 0 : _overall_performance$2.myself,
exercise_datas: (_overall_performance$3 = overall_performance.find(function (item) {
return item.name == "考试指数";
})) === null || _overall_performance$3 === void 0 ? void 0 : _overall_performance$3.myself,
knowledge_datas: (_overall_performance$4 = overall_performance.find(function (item) {
return item.name == "知识点指数";
})) === null || _overall_performance$4 === void 0 ? void 0 : _overall_performance$4.myself,
message_datas: (_overall_performance$5 = overall_performance.find(function (item) {
return item.name == "讨论指数";
})) === null || _overall_performance$5 === void 0 ? void 0 : _overall_performance$5.myself,
attendance_datas: (_overall_performance$6 = overall_performance.find(function (item) {
return item.name == "签到指数";
})) === null || _overall_performance$6 === void 0 ? void 0 : _overall_performance$6.myself,
video_datas: (_overall_performance$7 = overall_performance.find(function (item) {
return item.name == "视频指数";
})) === null || _overall_performance$7 === void 0 ? void 0 : _overall_performance$7.myself
}, {
key: '2',
name: '班级平均',
student_growth_datas: (_overall_performance$8 = overall_performance.find(function (item) {
return item.name == "学习成长画像";
})) === null || _overall_performance$8 === void 0 ? void 0 : _overall_performance$8.group,
homework_datas: (_overall_performance$9 = overall_performance.find(function (item) {
return item.name == "作业指数";
})) === null || _overall_performance$9 === void 0 ? void 0 : _overall_performance$9.group,
exercise_datas: (_overall_performance$10 = overall_performance.find(function (item) {
return item.name == "考试指数";
})) === null || _overall_performance$10 === void 0 ? void 0 : _overall_performance$10.group,
knowledge_datas: (_overall_performance$11 = overall_performance.find(function (item) {
return item.name == "知识点指数";
})) === null || _overall_performance$11 === void 0 ? void 0 : _overall_performance$11.group,
message_datas: (_overall_performance$12 = overall_performance.find(function (item) {
return item.name == "讨论指数";
})) === null || _overall_performance$12 === void 0 ? void 0 : _overall_performance$12.group,
attendance_datas: (_overall_performance$13 = overall_performance.find(function (item) {
return item.name == "签到指数";
})) === null || _overall_performance$13 === void 0 ? void 0 : _overall_performance$13.group,
video_datas: (_overall_performance$14 = overall_performance.find(function (item) {
return item.name == "视频指数";
})) === null || _overall_performance$14 === void 0 ? void 0 : _overall_performance$14.group
}];
var option1 = {
legend: {
data: [studentName, '班级平均'],
bottom: 0
},
color: ["#ED7D32", "#24C074"],
radar: {
indicator: overall_performance.map(function (item) {
return {
name: item.name,
max: Math.max(item.myself, item.group, 100)
};
}),
splitLine: {
lineStyle: {
color: ['#dadada'],
width: 2
}
},
splitArea: {
areaStyle: {
color: ['white']
}
},
center: ['50%', '50%'],
radius: 85
},
tooltip: {},
series: [{
name: '学生整体表现',
type: 'radar',
symbol: "none",
data: [{
value: overall_performance.map(function (item) {
return item.myself;
}),
name: studentName,
areaStyle: {
color: "#fbe5d6"
} //雷达覆盖区域背景颜色
}, {
value: overall_performance.map(function (item) {
return item.group;
}),
name: '班级平均',
areaStyle: {
color: "#d3f2e3"
} //雷达覆盖区域背景颜色
}]
}]
};
var option2 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: studentArr.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: studentArr.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: studentArr.map(function (item) {
return item.group_score;
})
}]
};
var option3 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: homework_data.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: homework_data.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: homework_data.map(function (item) {
return item.group_score;
})
}]
};
var option4 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: exercise_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: exercise_datas.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: exercise_datas.map(function (item) {
return item.group_score;
})
}]
};
var option5 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: knowledge_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: knowledge_datas.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: knowledge_datas.map(function (item) {
return item.group_score;
})
}]
};
var option6 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: attendance_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: attendance_datas.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: attendance_datas.map(function (item) {
return item.group_score;
})
}]
};
var option7 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: message_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: message_datas.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: message_datas.map(function (item) {
return item.group_score;
})
}]
};
var option8 = {
tooltip: {
trigger: 'axis'
},
legend: {
data: [studentName, '班级平均值']
},
color: ["#ff0000", "#008000"],
xAxis: {
type: 'category',
data: video_datas.map(function (item) {
return item.business_date;
})
},
yAxis: {
type: 'value',
splitLine: {
show: false //去掉背景轴横线
}
},
series: [{
name: studentName,
type: 'line',
data: video_datas.map(function (item) {
return item.score;
})
}, {
name: '班级平均值',
type: 'line',
data: video_datas.map(function (item) {
return item.group_score;
})
}]
};
// const { table_data } = datas;
return /*#__PURE__*/(0,jsx_runtime.jsx)("section", {
className: StudentDetailmodules.bgs,
style: {
position: "relative"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
loading: loading,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
display: "flex",
marginBottom: "20px",
height: "32px"
},
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: "absolute",
right: 32
},
children: [ai_time && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
lineHeight: "32px"
},
children: ["\u753B\u50CF\u6570\u636E\u66F4\u65B0\u65F6\u95F4\uFF1A", ai_time]
}), (0,authority/* isAdmins */.eB)() && /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: isDisabled ? "用户画像数据更新中,请稍候" : "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: btnLoading,
type: "primary",
ghost: true,
style: {
margin: "0 24px 0 26px"
},
disabled: isDisabled,
onClick: function onClick() {
setisDisabled(true);
update(1);
},
children: "\u5168\u91CF\u66F4\u65B0"
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: isDisabled ? "用户画像数据更新中,请稍候" : "",
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
loading: btnLoading,
type: "primary",
ghost: true,
disabled: isDisabled,
onClick: function onClick() {
setisDisabled(true);
update(2);
},
children: "\u589E\u91CF\u66F4\u65B0"
})
})]
})]
})
}), overall_performance.length > 0 ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "tips",
children: "\u5B66\u751F\u6574\u4F53\u8868\u73B0"
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
justifyContent: "space-around",
alignItems: "center"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option1,
style: {
width: "40%"
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
columns: columns,
dataSource: data,
pagination: false,
style: {
width: "62%"
}
})]
}), studentArr.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
marginTop: "40px"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u7684\u4F5C\u4E1A\u3001\u8003\u8BD5\u3001\u77E5\u8BC6\u70B9\u3001\u8BA8\u8BBA\u3001\u7B7E\u5230\u3001\u89C6\u9891\u6570\u636E\uFF0C\u7EFC\u5408\u5404\u81EA\u6743\u91CD\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u5B66\u751F\u6210\u957F\u753B\u50CF ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option2,
style: {
height: "450px"
}
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
justifyContent: "space-between",
marginTop: "40px"
},
children: [homework_data.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: exercise_datas.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u8BFE\u5802\u5B9E\u9A8C\u3001\u56FE\u6587\u4F5C\u4E1A\u3001\u5206\u7EC4\u4F5C\u4E1A\u3001\u7F16\u7A0B\u4F5C\u4E1A\u7684\u4F5C\u4E1A\u6570\u636E\uFF0C\u7EFC\u5408\u5404\u81EA\u6743\u91CD\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u4F5C\u4E1A\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option3,
style: {
height: "450px"
}
})]
}), exercise_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: homework_data.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u7684\u8003\u8BD5\u6570\u636E\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u8003\u8BD5\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option4,
style: {
height: "450px"
}
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
justifyContent: "space-between",
marginTop: "40px"
},
children: [knowledge_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: attendance_datas.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u4F5C\u4E1A\u548C\u8003\u8BD5\u6570\u636E\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u77E5\u8BC6\u70B9\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option5,
style: {
height: "450px"
}
})]
}), attendance_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: knowledge_datas.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u7684\u7B7E\u5230\u6570\u636E\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u7B7E\u5230\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option6,
style: {
height: "450px"
}
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
justifyContent: "space-between",
marginTop: "40px"
},
children: [message_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: video_datas.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u7684\u8BA8\u8BBA\u6570\u636E\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u8BA8\u8BBA\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option7,
style: {
height: "450px"
}
})]
}), video_datas.length > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: message_datas.length > 1 ? {
width: "46%"
} : {
width: "100%"
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
placement: "right",
title: "\u6839\u636E\u5B66\u751F\u7684\u89C6\u9891\u6570\u636E\u8BA1\u7B97\u5F97\u51FA",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
className: "tips",
children: ["\u89C6\u9891\u6307\u6570 ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-xiaowenhao1 ".concat("icon_wenhao")
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, {
option: option8,
style: {
height: "450px"
}
})]
})]
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
customText: (0,authority/* isAdmins */.eB)() ? "暂无用户画像数据,可以点击页面右上角的“全量更新”或“增量更新”按钮分析数据" : "暂无用户画像数据"
})]
})
});
};
/* harmony default export */ var components_StudentPortrait = ((0,_umi_production_exports.connect)(function (_ref2) {
var loading = _ref2.loading;
return {
loading: loading
};
})(StudentPortrait));
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/Statistics/StudentDetail/index.tsx
@ -2075,7 +1157,6 @@ var StudentPortrait = function StudentPortrait(_ref) {
dayjs_min_default().locale('zh-cn');
var StudentDetail_TabPane = tabs/* default */.Z.TabPane;
var StudentDetail_ShixunsListPage = function ShixunsListPage(_ref) {
@ -2414,16 +1495,7 @@ var StudentDetail_ShixunsListPage = function ShixunsListPage(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Exercise, {
activitykey: activitykey
})
}, "4"), /*#__PURE__*/(0,jsx_runtime.jsx)(StudentDetail_TabPane, {
tab: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: StudentDetailmodules.es,
title: "学生画像",
children: "\u5B66\u751F\u753B\u50CF"
}),
children: /*#__PURE__*/(0,jsx_runtime.jsx)(components_StudentPortrait, {
activitykey: activitykey
})
}, "5")]
}, "4")]
})
})]
});

@ -152,26 +152,3 @@
display: inline-block;
}
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.31@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.31@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/pages/Classrooms/Lists/Statistics/StudentDetail/components/StudentPortrait/index.less ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.icon_wenhao {
color: #165dff;
border-radius: 8px;
}
.tips {
border-left: 3px solid #0000ff;
padding-left: 12px;
margin-left: 7px;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000000;
}
.table {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #666666;
}

@ -1,74 +0,0 @@
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.3.31@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.3.31@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Classrooms/Lists/Statistics/UserportraitStatistics/index.less?modules ***!
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.flex_box_center___fYdol {
justify-content: center;
align-items: center;
-webkit-justify-content: center;
box-align: center;
}
.flex_space_between___hNewv {
justify-content: space-between;
-webkit-box-pack: justify;
}
.flex_box_vertical_center___oEhY7 {
align-items: center;
box-align: center;
}
.flex_box_center_end___lNRJt {
justify-content: flex-end;
align-items: center;
-webkit-justify-content: flex-end;
-webkit-align-items: center;
-webkit-box-align: center;
-webkit-box-pack: end;
box-align: center;
box-pack: end;
}
.flex_box_column___bEkV_ {
flex-direction: column;
box-orient: block-axis;
}
.bg___oSNUG {
background: #fff;
padding: 20px 30px;
}
.bg___oSNUG .title___zanNh {
line-height: 22px;
font-size: 16px;
font-weight: 600;
color: #444f68;
margin-bottom: 20px;
}
.bg___oSNUG .tab___o1NAt {
font-size: 14px;
font-weight: 400;
line-height: 20px;
padding-bottom: 10px;
}
.bg___oSNUG .titleItem___bLJ9c {
height: 14px;
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #000;
line-height: 14px;
padding-left: 8px;
border-left: 3px solid #000;
margin-top: 20px;
}
.bg___oSNUG .titleItem___bLJ9c .titleItemSpan___RQ53A {
color: #666;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
}
.bg___oSNUG .button___a458q {
padding: 6px 30px;
font-size: 14px;
font-weight: 400;
background: #0091ff;
border-color: #0091ff;
border-radius: 2px;
}

@ -564,7 +564,7 @@ var Page = function Page(_ref) {
pageSize: params.limit,
current: params.page,
hideOnSinglePage: !total,
showTotal: util/* showTotal */.rU
showTotal: util/* showTotal */.IS
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEditModal/* default */.Z, {
visible: visible,

@ -574,7 +574,7 @@ var Page = function Page(_ref) {
pageSize: params.limit,
current: params.page,
hideOnSinglePage: !total,
showTotal: util/* showTotal */.rU
showTotal: util/* showTotal */.IS
})]
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
centered: true,

@ -1297,7 +1297,7 @@ var Page = function Page(_ref) {
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
size: 'default',
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
onChange: handlePagination
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SettingModal/* default */.Z, {

@ -743,7 +743,7 @@ var TopicModal = function TopicModal(_ref) {
hideOnSinglePage: !total,
size: "default",
pageSizeOptions: ['10', '20', '50', '100', '200'],
showTotal: util/* showTotal */.rU
showTotal: util/* showTotal */.IS
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
@ -1325,7 +1325,7 @@ var Page = function Page(_ref) {
className: "mb30",
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
onChange: handlePagination
}), /*#__PURE__*/(0,jsx_runtime.jsx)(DetailsModal, {
data: listData,
@ -1722,7 +1722,7 @@ var TopicModal_TopicModal = function TopicModal(_ref) {
pageSize: params.per_page,
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
onChange: handlePagination
})]
})
@ -2040,7 +2040,7 @@ var Student_Page = function Page(_ref) {
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
pageSize: params.per_page,
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
onChange: handlePagination
}), /*#__PURE__*/(0,jsx_runtime.jsx)(StudentSelection_TopicModal, {
onClose: function onClose() {

@ -1947,7 +1947,7 @@ var Page = function Page(_ref) {
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
size: 'default',
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
onChange: handlePagination
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)(SettingModal/* default */.Z, {

@ -8151,20 +8151,23 @@ var useCourseOptions = function useCourseOptions() {
case 0:
_context.next = 2;
return (0,paperlibrary/* getDisciplines */.d1)({
source: 'question'
source: 'question',
tab_module_type: 'paperlibrary'
});
case 2:
res = _context.sent;
// if(res?.un_purchased){
// dispatch({
// type: 'globalSetting/setActionTabs',
// payload: { key: '采购提示' },
// });
// }
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
if (res !== null && res !== void 0 && res.disciplines) {
setCourseOptions((0,util/* formatCourseOptions */.L)(res === null || res === void 0 ? void 0 : res.disciplines));
}
case 4:
case 5:
case "end":
return _context.stop();
}

@ -8800,7 +8800,7 @@ var Page = function Page(_ref) {
})]
}), editPreview ? /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* FixedBottom */.vr, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
total: data === null || data === void 0 || (_data$exam10 = data.exam) === null || _data$exam10 === void 0 ? void 0 : _data$exam10.total_num,
pageSize: 1,
current: selectValue + 1,

@ -4791,7 +4791,7 @@ var Page = function Page(_ref) {
})]
}), editPreview ? /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* FixedBottom */.vr, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
showTotal: util/* showTotal */.rU,
showTotal: util/* showTotal */.IS,
total: data === null || data === void 0 || (_data$exam10 = data.exam) === null || _data$exam10 === void 0 ? void 0 : _data$exam10.total_num,
pageSize: 1,
current: selectValue + 1,

@ -1210,7 +1210,9 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
}, []);
(0,_react_17_0_2_react.useEffect)(function () {
getCustomDisciplines(activeTabsKey);
getPaperlibraryList(objectSpread2_default()({}, params));
getPaperlibraryList(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
tab_module_type: 'paperlibrary'
}));
handleGetTeachGroupData();
}, []);
@ -1283,20 +1285,21 @@ var PaperlibraryPage = function PaperlibraryPage(_ref) {
});
case 4:
res = _context2.sent;
// if(res?.un_purchased){
// dispatch({
// type: 'globalSetting/setActionTabs',
// payload: { key: '采购提示' },
// });
// }
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
if (res && res.status !== 403 && res.status !== 401 && res.status !== 500) {
setPaperlibraryCount(res.exam_count || 0);
setPaperlibraryList(res.exams || []);
setAuthRole(res.auth_role);
setSelectIds([]);
}
case 6:
case 7:
case "end":
return _context2.stop();
}

@ -824,12 +824,21 @@ var NewItem = function NewItem(_ref2) {
return dispatch({
type: 'problemset/getEditDisciplines',
payload: {
source: 'new_question'
source: 'new_question',
tab_module_type: 'problemset'
}
});
case 2:
res = _context.sent;
case 3:
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
case 4:
case "end":
return _context.stop();
}

@ -5215,7 +5215,9 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
});
params.group_id = Number(group_id);
setParams(params);
getItemBanks(objectSpread2_default()({}, params)).then(function (res) {
getItemBanks(objectSpread2_default()(objectSpread2_default()({}, params), {}, {
tab_module_type: 'problemset'
})).then(function (res) {
// if (!res?.status) {
// setTreeData(res?.item_banks_group)
// }
@ -5456,8 +5458,16 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
});
case 6:
res = _context4.sent;
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
if (!(res && res.status !== 403 && res.status !== 401 && res.status !== 500)) {
_context4.next = 17;
_context4.next = 18;
break;
}
setProblemsetCount(res.items_count || 0); //试题总数
@ -5472,7 +5482,7 @@ var ProblemsetPage = function ProblemsetPage(_ref) {
setAddedNum((res === null || res === void 0 ? void 0 : res.added_num) || 0); //文件夹总数
setFolderLoading(false);
return _context4.abrupt("return", res);
case 17:
case 18:
case "end":
return _context4.stop();
}

@ -1144,14 +1144,22 @@ function AddOrEdit_reducer(state, action) {
return (0,fetch/* default */.ZP)("/api/tag_disciplines.json", {
method: 'get',
params: {
target: 'practice'
target: 'practice',
// position: 'index'
// tab_module_type: 'problems'
tab_module_type: 'problems'
}
});
case 2:
res1 = _context.sent;
_context.next = 5;
if (res1 !== null && res1 !== void 0 && res1.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
_context.next = 6;
return (0,fetch/* default */.ZP)("/api/tag_disciplines.json", {
method: 'get',
params: {
@ -1159,11 +1167,11 @@ function AddOrEdit_reducer(state, action) {
// position: 'index'
}
});
case 5:
case 6:
res2 = _context.sent;
setPointData(res1.tag_disciplines || []);
setSourceData(res2.tag_disciplines || []);
case 8:
case 9:
case "end":
return _context.stop();
}

@ -809,23 +809,27 @@ var QuestionPage = function QuestionPage(_ref) {
_context3.next = 9;
return (0,fetch/* default */.ZP)("/api/practices.json", {
method: 'get',
params: objectSpread2_default()({}, sendData)
params: objectSpread2_default()(objectSpread2_default()({}, sendData), {}, {
tab_module_type: 'problems'
})
});
case 9:
res = _context3.sent;
// if(res?.un_purchased){
// dispatch({
// type: 'globalSetting/setActionTabs',
// payload: { key: '采购提示' },
// });
// }
if (res !== null && res !== void 0 && res.un_purchased) {
dispatch({
type: 'globalSetting/setActionTabs',
payload: {
key: '采购提示'
}
});
}
setSelectIds([]);
setLoading(false);
// setParams({ ...params, total: res?.practices_count })
setTotal(res === null || res === void 0 ? void 0 : res.practices_count);
setTableData(res === null || res === void 0 ? void 0 : res.practices_list);
setrecommend_subjects((res === null || res === void 0 ? void 0 : res.recommend_subjects) || []);
case 15:
case 16:
case "end":
return _context3.stop();
}

@ -542,7 +542,7 @@ var Shixuns = function Shixuns(_ref) {
pageSize: params.limit,
current: params.page,
hideOnSinglePage: !total,
showTotal: util/* showTotal */.rU
showTotal: util/* showTotal */.IS
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEditModal/* default */.Z, {
visible: visible,
onClose: function onClose() {

@ -4376,8 +4376,9 @@ var IndexPage = function IndexPage(_ref) {
}
}), homePage.images_url && /*#__PURE__*/(0,jsx_runtime.jsx)(carousel/* default */.Z, {
className: isMainSite ? Indexmodules.mainSite : '',
ref: Carousels,
autoplay: true,
ref: Carousels
// autoplay
,
pauseOnDotsHover: true,
children: homePage.images_url.length > 0 ? (_homePage$images_url = homePage.images_url) === null || _homePage$images_url === void 0 ? void 0 : _homePage$images_url.map(function (v, k) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {

@ -3744,7 +3744,7 @@ var ts;
// See https://github.com/microsoft/typescript-etw for more information
var etwModule;
try {
var etwModulePath = (_a = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}).TS_ETW_MODULE_PATH) !== null && _a !== void 0 ? _a : "./node_modules/@microsoft/typescript-etw";
var etwModulePath = (_a = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}).TS_ETW_MODULE_PATH) !== null && _a !== void 0 ? _a : "./node_modules/@microsoft/typescript-etw";
// require() will throw an exception if the module is not found
// It may also return undefined if not installed properly
// MONACOCHANGE
@ -164437,8 +164437,8 @@ else if (typeof process_process !== 'undefined') {
safeProcess = {
get platform() { return process_process.platform; },
get arch() { return process_process.arch; },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
get env() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"}); },
cwd() { return ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})['VSCODE_CWD'] || process_process.cwd(); },
nextTick(callback) { return process_process.nextTick(callback); }
};
}
@ -164656,7 +164656,7 @@ const win32 = {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/react/build/"})[`=${resolvedDevice}`] || cwd();
path = ({"NODE_ENV":"production","PUBLIC_PATH":"/VirtualCourse/course/c69a4f7ee237f1cea82b1321ad120c43/react/build/"})[`=${resolvedDevice}`] || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.
if (path === undefined ||

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save