diff --git a/76942.async.js b/76942.async.js index 72e84741b5..1c116efe40 100644 --- a/76942.async.js +++ b/76942.async.js @@ -1356,7 +1356,7 @@ var SearchSortController = function SearchSortController(_ref) { batchStatus = _ref.batchStatus, SortMenuName = _ref.SortMenuName, setSortMenuName = _ref.setSortMenuName, - onSearch = _ref.onSearch, + _onSearch = _ref.onSearch, onSort = _ref.onSort, onBatch = _ref.onBatch; // const [SortMenuName, setSortMenuName] = useState('默认排序'); @@ -1466,7 +1466,9 @@ var SearchSortController = function SearchSortController(_ref) { }), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, { allowClear: true, placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22", - onSearch: onSearch, + onSearch: function onSearch(e) { + return _onSearch(e.trim()); + }, style: { width: 220, marginLeft: 'auto' diff --git a/p__Classrooms__Lists__CommonHomework__Detail__index.async.js b/p__Classrooms__Lists__CommonHomework__Detail__index.async.js index aabf328af3..dc969fd3e1 100644 --- a/p__Classrooms__Lists__CommonHomework__Detail__index.async.js +++ b/p__Classrooms__Lists__CommonHomework__Detail__index.async.js @@ -8353,7 +8353,7 @@ var WorkList = function WorkList(_ref) { placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22", onSearch: function onSearch(value) { params.page = 1; - params.search = value; + params.search = value.trim(); getData(); }, style: { diff --git a/p__Classrooms__Lists__Exercise__Detail__index.async.js b/p__Classrooms__Lists__Exercise__Detail__index.async.js index 914e42a15b..266d18ed7f 100644 --- a/p__Classrooms__Lists__Exercise__Detail__index.async.js +++ b/p__Classrooms__Lists__Exercise__Detail__index.async.js @@ -35,6 +35,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -250,7 +252,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -259,63 +263,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] }); @@ -1124,7 +1131,7 @@ var Delayed_DelShixun = function DelShixun(_ref) { }; return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, { children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_modal/* default */.Z, { - width: 600, + width: 640, centered: true, title: "\u5EF6\u65F6\u8BBE\u7F6E", open: exercise.actionTabs.key === '延时' ? true : false, @@ -2937,7 +2944,7 @@ var WorkList = function WorkList(_ref) { allowClear: true, placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22", onSearch: function onSearch(value) { - params['search'] = value; + params['search'] = value.trim(); dispatch({ type: 'exercise/getExerciseList', payload: objectSpread2_default()(objectSpread2_default()({}, params), {}, { @@ -16593,7 +16600,7 @@ var subjectiveType = { 4: '未批' }; var StatisticsResult_WorkList = function WorkList(_ref) { - var _ref3, _statisticsList$commi; + var _ref3, _workSetting$exercise, _statisticsList$commi; var exercise = _ref.exercise, loading = _ref.loading, dispatch = _ref.dispatch; @@ -16607,7 +16614,8 @@ var StatisticsResult_WorkList = function WorkList(_ref) { params = _useState2[0], setParams = _useState2[1]; var location = (0,_umi_production_exports.useLocation)(); - var statisticsList = exercise.statisticsList; + var statisticsList = exercise.statisticsList, + workSetting = exercise.workSetting; var _useState3 = (0,_react_17_0_2_react.useState)({}), _useState4 = slicedToArray_default()(_useState3, 2), filterSelect = _useState4[0], @@ -16627,10 +16635,10 @@ var StatisticsResult_WorkList = function WorkList(_ref) { var _Form$useForm = es_form/* default */.Z.useForm(), _Form$useForm2 = slicedToArray_default()(_Form$useForm, 1), form = _Form$useForm2[0]; - var _useState11 = (0,_react_17_0_2_react.useState)(true), + var _useState11 = (0,_react_17_0_2_react.useState)(false), _useState12 = slicedToArray_default()(_useState11, 2), - isShowBehavioralAnalysis = _useState12[0], - setIsShowBehavioralAnalysis = _useState12[1]; + behavioralAnalysisLoading = _useState12[0], + setBehavioralAnalysisLoading = _useState12[1]; var onHandleChange = function onHandleChange() { var formValue = Object.assign({}, form.getFieldValue()); Object.keys(formValue).map(function (v) { @@ -16736,18 +16744,19 @@ var StatisticsResult_WorkList = function WorkList(_ref) { return regeneratorRuntime_default()().wrap(function _callee$(_context) { while (1) switch (_context.prev = _context.next) { case 0: - _context.next = 2; + setBehavioralAnalysisLoading(true); + _context.next = 3; return dispatch({ type: 'exercise/getExerciseStatistics', payload: objectSpread2_default()({}, params) }); - case 2: + case 3: res = _context.sent; + setBehavioralAnalysisLoading(false); if (res !== null && res !== void 0 && res.exercise_counts) { - setIsShowBehavioralAnalysis(res === null || res === void 0 ? void 0 : res.open_camera); setDataSource([res.exercise_counts]); } - case 4: + case 6: case "end": return _context.stop(); } @@ -16801,9 +16810,10 @@ var StatisticsResult_WorkList = function WorkList(_ref) { }) }) }) - }), isShowBehavioralAnalysis && /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, { + }), (workSetting === null || workSetting === void 0 || (_workSetting$exercise = workSetting.exercise) === null || _workSetting$exercise === void 0 ? void 0 : _workSetting$exercise.open_camera) && /*#__PURE__*/(0,jsx_runtime.jsx)(BehavioralAnalysis/* default */.ZP, { title: "\u8003\u8BD5\u884C\u4E3A\u5206\u6790\u7EDF\u8BA1", - data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(statisticsList) + data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(statisticsList), + loading: behavioralAnalysisLoading }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: StatisticsResultmodules.name, children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { diff --git a/p__Classrooms__Lists__Exercise__Review__index.async.js b/p__Classrooms__Lists__Exercise__Review__index.async.js index cdfa2732ab..42731ff164 100644 --- a/p__Classrooms__Lists__Exercise__Review__index.async.js +++ b/p__Classrooms__Lists__Exercise__Review__index.async.js @@ -109,6 +109,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -324,7 +326,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -333,63 +337,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] }); diff --git a/p__Classrooms__Lists__Exercise__index.async.js b/p__Classrooms__Lists__Exercise__index.async.js index 6039e2656e..6ff4e0bc45 100644 --- a/p__Classrooms__Lists__Exercise__index.async.js +++ b/p__Classrooms__Lists__Exercise__index.async.js @@ -3078,7 +3078,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) { setSortMenuName: setSortMenuName, SortMenus: SortMenus, onSearch: function onSearch(value) { - params.search = value; + params.search = value.trim(); params.page = 1; dispatch({ type: 'classroomList/getClassroomExercisesList', diff --git a/p__Classrooms__Lists__GroupHomework__Detail__index.async.js b/p__Classrooms__Lists__GroupHomework__Detail__index.async.js index ffc4bb0698..cf77f94e44 100644 --- a/p__Classrooms__Lists__GroupHomework__Detail__index.async.js +++ b/p__Classrooms__Lists__GroupHomework__Detail__index.async.js @@ -9421,7 +9421,7 @@ var WorkList = function WorkList(_ref) { placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22", onSearch: function onSearch(value) { params.page = 1; - params.search = value; + params.search = value.trim(); dispatch({ type: 'shixunHomeworks/getWorkList', payload: objectSpread2_default()({}, params) diff --git a/p__Classrooms__Lists__GroupHomework__index.async.js b/p__Classrooms__Lists__GroupHomework__index.async.js index cad7a2558f..21e23654a0 100644 --- a/p__Classrooms__Lists__GroupHomework__index.async.js +++ b/p__Classrooms__Lists__GroupHomework__index.async.js @@ -3255,7 +3255,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) { SortMenuName: SortMenuName, setSortMenuName: setSortMenuName, onSearch: function onSearch(value) { - params.search = value; + params.search = value.trim(); params.page = 1; getData(); }, diff --git a/p__Classrooms__Lists__OnlineLearning__index.async.js b/p__Classrooms__Lists__OnlineLearning__index.async.js index 68cef8da57..78b67b06e7 100644 --- a/p__Classrooms__Lists__OnlineLearning__index.async.js +++ b/p__Classrooms__Lists__OnlineLearning__index.async.js @@ -2784,7 +2784,6 @@ var Stage = function Stage(_ref) { })) === null || _item$children2 === void 0 ? void 0 : _item$children2.length) > 0; })) === null || _item$children === void 0 ? void 0 : _item$children.length) > 0); }); - console.log('---', val, kdata); return keywords && !!(kdata !== null && kdata !== void 0 && kdata.length) || !keywords ? /*#__PURE__*/(0,jsx_runtime.jsxs)("section", { className: "bg-white pt30 mb20 pb20 pl10 pr10", children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("aside", { diff --git a/p__Classrooms__Lists__Polls__Detail__index.async.js b/p__Classrooms__Lists__Polls__Detail__index.async.js index 1576fa16b1..0db7fc0d29 100644 --- a/p__Classrooms__Lists__Polls__Detail__index.async.js +++ b/p__Classrooms__Lists__Polls__Detail__index.async.js @@ -600,7 +600,7 @@ var WorkList = function WorkList(_ref) { allowClear: true, placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22", onSearch: function onSearch(value) { - params['search'] = value; + params['search'] = value.trim(); params.page = 1; dispatch({ type: 'polls/getPollsList', diff --git a/p__Classrooms__Lists__Polls__index.async.js b/p__Classrooms__Lists__Polls__index.async.js index d6878267d3..4552a2cbb1 100644 --- a/p__Classrooms__Lists__Polls__index.async.js +++ b/p__Classrooms__Lists__Polls__index.async.js @@ -2217,7 +2217,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) { isAdmin: (0,authority/* isAdmin */.GJ)(), batchStatus: batchStatus, onSearch: function onSearch(value) { - params.search = value; + params.search = value.trim(); params.page = 1; dispatch({ type: 'classroomList/getClassroomPollsList', diff --git a/p__Classrooms__Lists__ProgramHomework__Detail__index.async.js b/p__Classrooms__Lists__ProgramHomework__Detail__index.async.js index ec141013dc..5c58865e26 100644 --- a/p__Classrooms__Lists__ProgramHomework__Detail__index.async.js +++ b/p__Classrooms__Lists__ProgramHomework__Detail__index.async.js @@ -6607,7 +6607,7 @@ var WorkList = function WorkList(_ref) { allowClear: true, placeholder: "\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22", onSearch: function onSearch(value) { - params.search = value; + params.search = value.trim(); params.page = 1; getData(); }, diff --git a/p__Classrooms__Lists__ProgramHomework__index.async.js b/p__Classrooms__Lists__ProgramHomework__index.async.js index 16d3818d64..5e2f4f1ee8 100644 --- a/p__Classrooms__Lists__ProgramHomework__index.async.js +++ b/p__Classrooms__Lists__ProgramHomework__index.async.js @@ -4322,7 +4322,7 @@ var ShixunsListPage = function ShixunsListPage(_ref) { SortMenuName: SortMenuName, setSortMenuName: setSortMenuName, onSearch: function onSearch(value) { - params.search = value; + params.search = value.trim(); params.page = 1; getData(); }, diff --git a/p__Classrooms__Lists__ShixunHomeworks__Comment__index.async.js b/p__Classrooms__Lists__ShixunHomeworks__Comment__index.async.js index d7980752e7..06a54c12df 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Comment__index.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Comment__index.async.js @@ -289,6 +289,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -504,7 +506,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -513,63 +517,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] }); diff --git a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js index 982e050341..dd012131c5 100644 --- a/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js +++ b/p__Classrooms__Lists__ShixunHomeworks__Detail__index.async.js @@ -676,6 +676,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -891,7 +893,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -900,63 +904,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] }); diff --git a/p__Classrooms__Lists__Video__Statistics__Detail__index.async.js b/p__Classrooms__Lists__Video__Statistics__Detail__index.async.js index 97006712ce..b119e4eeda 100644 --- a/p__Classrooms__Lists__Video__Statistics__Detail__index.async.js +++ b/p__Classrooms__Lists__Video__Statistics__Detail__index.async.js @@ -35,6 +35,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -250,7 +252,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -259,63 +263,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] }); diff --git a/p__Classrooms__Lists__Video__Statistics__UserDetail__index.async.js b/p__Classrooms__Lists__Video__Statistics__UserDetail__index.async.js index 58370c81e7..ff17cfd9bb 100644 --- a/p__Classrooms__Lists__Video__Statistics__UserDetail__index.async.js +++ b/p__Classrooms__Lists__Video__Statistics__UserDetail__index.async.js @@ -77,6 +77,8 @@ var env = __webpack_require__(78130); var tooltip = __webpack_require__(6848); // EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules var skeleton = __webpack_require__(59981); +// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules +var spin = __webpack_require__(71418); // EXTERNAL MODULE: ./src/components/NoData/index.tsx var NoData = __webpack_require__(73208); // EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js @@ -292,7 +294,9 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { data = _ref3$data === void 0 ? [] : _ref3$data, title = _ref3.title, _ref3$hideBar = _ref3.hideBar, - hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar; + hideBar = _ref3$hideBar === void 0 ? false : _ref3$hideBar, + _ref3$loading = _ref3.loading, + loading = _ref3$loading === void 0 ? false : _ref3$loading; return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", { className: _classnames_2_3_2_classnames_default()(BehavioralAnalysismodules.analysis, className), style: style, @@ -301,63 +305,66 @@ var BehavioralAnalysis = function BehavioralAnalysis(_ref3) { children: [!hideBar && /*#__PURE__*/(0,jsx_runtime.jsx)("b", {}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", { children: title })] - }), /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.itemWrap, - children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { - return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { - className: BehavioralAnalysismodules.item, - children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { - option: { - tooltip: { - trigger: "item", - formatter: "{a}
{b}: {c}%" - }, - title: { - left: 'center', - bottom: 15, - text: v === null || v === void 0 ? void 0 : v.title - }, - legend: { - top: 10, - right: 10, - orient: 'vertical', - show: true, - align: 'left', - icon: 'circle', - itemWidth: 10, - itemHeight: 10, - formatter: function formatter(name) { - for (var i in v === null || v === void 0 ? void 0 : v.data) { - if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { - return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + }), /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, { + spinning: loading, + children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.itemWrap, + children: data === null || data === void 0 ? void 0 : data.map(function (v, k) { + return /*#__PURE__*/(0,jsx_runtime.jsx)("div", { + className: BehavioralAnalysismodules.item, + children: /*#__PURE__*/(0,jsx_runtime.jsx)(lib/* default */.Z, { + option: { + tooltip: { + trigger: "item", + formatter: "{a}
{b}: {c}%" + }, + title: { + left: 'center', + bottom: 15, + text: v === null || v === void 0 ? void 0 : v.title + }, + legend: { + top: 10, + right: 10, + orient: 'vertical', + show: true, + align: 'left', + icon: 'circle', + itemWidth: 10, + itemHeight: 10, + formatter: function formatter(name) { + for (var i in v === null || v === void 0 ? void 0 : v.data) { + if (name == (v === null || v === void 0 ? void 0 : v.data[i].name)) { + return name + ' ' + (v === null || v === void 0 ? void 0 : v.data[i].value) + '%'; + } } + }, + textStyle: { + color: '#767676', + fontSize: 12 } }, - textStyle: { - color: '#767676', - fontSize: 12 - } + color: v === null || v === void 0 ? void 0 : v.color, + series: [{ + type: 'pie', + radius: ['20%', '35%'], + center: ['20%', '40%'], + avoidLabelOverlap: false, + label: { + show: false + }, + labelLine: { + show: false + }, + data: v === null || v === void 0 ? void 0 : v.data + }] }, - color: v === null || v === void 0 ? void 0 : v.color, - series: [{ - type: 'pie', - radius: ['20%', '35%'], - center: ['20%', '40%'], - avoidLabelOverlap: false, - label: { - show: false - }, - labelLine: { - show: false - }, - data: v === null || v === void 0 ? void 0 : v.data - }] - }, - style: { - height: 145 - } - }) - }, k); + style: { + height: 145 + } + }) + }, k); + }) }) })] });