parent
2527bc3254
commit
e91b7f5e4d
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,836 @@
|
||||
"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));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,74 @@
|
||||
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** 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;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue