|
|
"use strict";
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[342],{
|
|
|
|
|
|
/***/ 19385:
|
|
|
/*!*****************************************************************!*\
|
|
|
!*** ./src/components/BehavioralAnalysis/index.tsx + 1 modules ***!
|
|
|
\*****************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
ij: function() { return /* binding */ AnalysisNoData; },
|
|
|
_s: function() { return /* binding */ PhotosList; },
|
|
|
Uf: function() { return /* binding */ dealOncFnc; },
|
|
|
ZP: function() { return /* binding */ components_BehavioralAnalysis; }
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var BehavioralAnalysismodules = ({"flex_box_center":"flex_box_center___swvFl","flex_space_between":"flex_space_between___AqPFV","flex_box_vertical_center":"flex_box_vertical_center___XWInJ","flex_box_center_end":"flex_box_center_end___GB61t","flex_box_column":"flex_box_column___dJnz1","analysis":"analysis___xyV_c","title":"title___DQ3VK","itemWrap":"itemWrap___vFE5r","item":"item___NjeOt","list":"list___BbMrm","wrap":"wrap___UQTTb","img":"img___tNvUo","tips":"tips___Eu4wH","footer":"footer___ZbR9W","noData":"noData___mLlw0"});
|
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
|
|
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
|
|
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
|
|
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
|
|
|
var lib = __webpack_require__(42441);
|
|
|
// 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/skeleton/index.js + 12 modules
|
|
|
var skeleton = __webpack_require__(56511);
|
|
|
// 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__(87526);
|
|
|
;// CONCATENATED MODULE: ./src/components/BehavioralAnalysis/index.tsx
|
|
|
var __defProp = Object.defineProperty;
|
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var __spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (__hasOwnProp.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
if (__getOwnPropSymbols)
|
|
|
for (var prop of __getOwnPropSymbols(b)) {
|
|
|
if (__propIsEnum.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const dealOncFnc = (data = {}) => {
|
|
|
var _a, _b, _c, _d;
|
|
|
let emotion = (_a = data == null ? void 0 : data.emotion) == null ? void 0 : _a.map((v) => {
|
|
|
return __spreadValues({ value: v == null ? void 0 : v.rate }, v);
|
|
|
});
|
|
|
let focus = (_b = data == null ? void 0 : data.focus) == null ? void 0 : _b.map((v) => {
|
|
|
return __spreadValues({ value: v == null ? void 0 : v.rate }, v);
|
|
|
});
|
|
|
let action = (_c = data == null ? void 0 : data.action) == null ? void 0 : _c.map((v) => {
|
|
|
return __spreadValues({ value: v == null ? void 0 : v.rate }, v);
|
|
|
});
|
|
|
let intention = (_d = data == null ? void 0 : data.intention) == null ? void 0 : _d.map((v) => {
|
|
|
return __spreadValues({ value: v == null ? void 0 : v.rate }, v);
|
|
|
});
|
|
|
return [{
|
|
|
title: "\u8868\u60C5\u5360\u6BD4",
|
|
|
color: ["#f7ca2e", "#4ccf71", "#3791ee", "#f9ac95", "#4f74ee", "#f0e999"],
|
|
|
data: emotion || []
|
|
|
}, {
|
|
|
title: "\u4E13\u6CE8\u5EA6\u5360\u6BD4",
|
|
|
color: ["#4f74ee", "#f9ac95", "#9cb5fe", "#eaa170", "#3791ee", "#a39bed"],
|
|
|
data: focus || []
|
|
|
}, {
|
|
|
title: "\u884C\u4E3A\u5360\u6BD4\u60C5\u51B5",
|
|
|
color: ["#5eca9c", "#a39bed", "#f68238", "#f0e999", "#eaa170", "#f9ac95"],
|
|
|
data: action || []
|
|
|
}, {
|
|
|
title: "\u610F\u56FE\u5360\u6BD4\u60C5\u51B5",
|
|
|
color: ["#eaa170", "#739fcb", "#f0e999", "#f9ac95", "#4f74ee", "#5eca9c"],
|
|
|
data: intention || []
|
|
|
}];
|
|
|
};
|
|
|
const PhotosList = ({
|
|
|
className,
|
|
|
dataSource = [],
|
|
|
col = 4,
|
|
|
right,
|
|
|
bottom = 23,
|
|
|
precision = 0,
|
|
|
wrapWidth = 1200
|
|
|
}) => {
|
|
|
const cutText = (str = "", num, init = "--") => {
|
|
|
if (!str)
|
|
|
return init;
|
|
|
return (str == null ? void 0 : str.length) > num ? (str == null ? void 0 : str.slice(0, num - 1)) + "..." : str;
|
|
|
};
|
|
|
const width = Math.floor((wrapWidth - (col - 1) * right) / col);
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: _classnames_2_5_1_classnames_default()(BehavioralAnalysismodules.list, className) }, !!(dataSource == null ? void 0 : dataSource.length) && (dataSource == null ? void 0 : dataSource.map((item, index) => {
|
|
|
const { cover_pic, created_at, emotion, action, intention, focus } = item;
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
"div",
|
|
|
{
|
|
|
key: index,
|
|
|
className: BehavioralAnalysismodules.wrap,
|
|
|
style: {
|
|
|
width,
|
|
|
marginRight: (1 + index) % col === 0 ? 0 : right + precision,
|
|
|
marginBottom: bottom
|
|
|
}
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.img }, /* @__PURE__ */ _react_17_0_2_react.createElement("img", { src: `${cover_pic}` }), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.tips }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-paisheshijian mr5 font14" }), " \u62CD\u6444\u65F6\u95F4"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, created_at))),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.footer }, /* @__PURE__ */ _react_17_0_2_react.createElement("ul", null, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-biaoqing" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u8868\u60C5\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: emotion }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, cutText(emotion, 4))))), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-hangwei" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u884C\u4E3A\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: action }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, cutText(action, 4)))))), /* @__PURE__ */ _react_17_0_2_react.createElement("ul", null, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-yitu" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u610F\u56FE\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: intention }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, cutText(intention, 4))))), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("i", { className: "iconfont icon-zhuangtai" }), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u4E13\u6CE8\u5EA6\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement(tooltip/* default */.Z, { title: focus }, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-grey-333" }, cutText(focus, 3)))))))
|
|
|
);
|
|
|
})));
|
|
|
};
|
|
|
const AnalysisNoData = ({
|
|
|
className,
|
|
|
style,
|
|
|
title,
|
|
|
hideBar = false,
|
|
|
children,
|
|
|
customText = "",
|
|
|
noDataText = "",
|
|
|
emptyData = [],
|
|
|
loading,
|
|
|
actionAnalysis
|
|
|
}) => {
|
|
|
var _a, _b;
|
|
|
const empty = ((_a = emptyData == null ? void 0 : emptyData[0]) == null ? void 0 : _a.every((e) => {
|
|
|
var _a2;
|
|
|
return !((_a2 = e == null ? void 0 : e.data) == null ? void 0 : _a2.length);
|
|
|
})) && !((_b = emptyData == null ? void 0 : emptyData[1]) == null ? void 0 : _b.length) || !actionAnalysis;
|
|
|
const text = actionAnalysis ? noDataText : customText;
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(skeleton/* default */.Z, { loading, active: true }, empty && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: _classnames_2_5_1_classnames_default()(BehavioralAnalysismodules.noData, className), style }, !!title && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.title }, !hideBar && /* @__PURE__ */ _react_17_0_2_react.createElement("b", null), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, title)), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.itemWrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(NoData/* default */.Z, { customText: text }))), !empty && children);
|
|
|
};
|
|
|
const BehavioralAnalysis = ({
|
|
|
className,
|
|
|
style,
|
|
|
data = [],
|
|
|
title,
|
|
|
hideBar = false,
|
|
|
loading = false
|
|
|
}) => {
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: _classnames_2_5_1_classnames_default()(BehavioralAnalysismodules.analysis, className), style }, !!title && /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.title }, !hideBar && /* @__PURE__ */ _react_17_0_2_react.createElement("b", null), /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, title)), /* @__PURE__ */ _react_17_0_2_react.createElement(spin/* default */.Z, { spinning: loading }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.itemWrap }, data == null ? void 0 : data.map((v, k) => {
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: BehavioralAnalysismodules.item, key: k }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
lib/* default */.Z,
|
|
|
{
|
|
|
option: {
|
|
|
tooltip: {
|
|
|
trigger: "item",
|
|
|
formatter: "{a} <br/>{b}: {c}%"
|
|
|
},
|
|
|
title: {
|
|
|
left: "center",
|
|
|
bottom: 15,
|
|
|
text: v == null ? void 0 : v.title
|
|
|
},
|
|
|
legend: {
|
|
|
top: 10,
|
|
|
right: 10,
|
|
|
orient: "vertical",
|
|
|
show: true,
|
|
|
align: "left",
|
|
|
icon: "circle",
|
|
|
itemWidth: 10,
|
|
|
itemHeight: 10,
|
|
|
formatter: function(name) {
|
|
|
for (let i in v == null ? void 0 : v.data) {
|
|
|
if (name == (v == null ? void 0 : v.data[i].name)) {
|
|
|
return name + " " + (v == null ? void 0 : v.data[i].value) + "%";
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
textStyle: {
|
|
|
color: "#767676",
|
|
|
fontSize: 12
|
|
|
}
|
|
|
},
|
|
|
color: v == null ? void 0 : v.color,
|
|
|
series: [
|
|
|
{
|
|
|
type: "pie",
|
|
|
radius: ["20%", "35%"],
|
|
|
center: ["20%", "40%"],
|
|
|
avoidLabelOverlap: false,
|
|
|
label: {
|
|
|
show: false
|
|
|
},
|
|
|
labelLine: {
|
|
|
show: false
|
|
|
},
|
|
|
data: v == null ? void 0 : v.data
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
style: { height: 145 }
|
|
|
}
|
|
|
));
|
|
|
}))));
|
|
|
};
|
|
|
/* harmony default export */ var components_BehavioralAnalysis = (BehavioralAnalysis);
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 33349:
|
|
|
/*!***********************************************************************************!*\
|
|
|
!*** ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/index.tsx + 10 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 */ Comment; }
|
|
|
});
|
|
|
|
|
|
// 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.11@dayjs/dayjs.min.js
|
|
|
var dayjs_min = __webpack_require__(99232);
|
|
|
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
|
|
|
// EXTERNAL MODULE: ./node_modules/_jszip@3.10.1@jszip/dist/jszip.min.js
|
|
|
var jszip_min = __webpack_require__(86129);
|
|
|
var jszip_min_default = /*#__PURE__*/__webpack_require__.n(jszip_min);
|
|
|
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
|
|
var fetch = __webpack_require__(51165);
|
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
|
|
|
var _umi_production_exports = __webpack_require__(67866);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
|
|
var es_modal = __webpack_require__(43418);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
|
|
var message = __webpack_require__(8591);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
|
|
var skeleton = __webpack_require__(56511);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/breadcrumb/index.js + 6 modules
|
|
|
var breadcrumb = __webpack_require__(66104);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/row/index.js
|
|
|
var row = __webpack_require__(95237);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/col/index.js
|
|
|
var col = __webpack_require__(43604);
|
|
|
// 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/tooltip/index.js + 3 modules
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules
|
|
|
var divider = __webpack_require__(28103);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
|
|
var input = __webpack_require__(98135);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/table/index.js + 85 modules
|
|
|
var table = __webpack_require__(14491);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ArrowLeftOutlined.js + 1 modules
|
|
|
var ArrowLeftOutlined = __webpack_require__(22596);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/SolutionOutlined.js + 1 modules
|
|
|
var SolutionOutlined = __webpack_require__(87026);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/ExclamationCircleOutlined.js + 1 modules
|
|
|
var ExclamationCircleOutlined = __webpack_require__(88289);
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.3.7@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules
|
|
|
var DeleteOutlined = __webpack_require__(20360);
|
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
|
var env = __webpack_require__(21873);
|
|
|
// EXTERNAL MODULE: ./src/utils/authority.ts
|
|
|
var authority = __webpack_require__(88141);
|
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
|
var util = __webpack_require__(13462);
|
|
|
// EXTERNAL MODULE: ./node_modules/_echarts-for-react@2.0.16@echarts-for-react/lib/index.js
|
|
|
var lib = __webpack_require__(42441);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var Commentmodules = ({"flex_box_center":"flex_box_center___KJUhi","flex_space_between":"flex_space_between____N4uH","flex_box_vertical_center":"flex_box_vertical_center___yOdsz","flex_box_center_end":"flex_box_center_end___seJB9","flex_box_column":"flex_box_column___ihHC5","title":"title___JSmnB","export":"export___pgR1H","title1_right":"title1_right___MdWJo","userPic":"userPic___UeG3e","userInfo":"userInfo___TNu6l","listItem":"listItem___wdbM_","rightInfo":"rightInfo___Swqk5","shixunTitle":"shixunTitle___L2Tc4","shixunWrp":"shixunWrp___ZoaTc","footerBar":"footerBar___QW5rq","footerBarStatic":"footerBarStatic___CRq8b","exitComment":"exitComment___u4Rqt","nextComment":"nextComment___lvaID","modal":"modal___g3B3L"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/EchartStatic.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var itemStyle = {
|
|
|
normal: {
|
|
|
opacity: 0.8,
|
|
|
shadowBlur: 10,
|
|
|
shadowOffsetX: 0,
|
|
|
shadowOffsetY: 0,
|
|
|
shadowColor: "rgba(0, 0, 0, 0)",
|
|
|
color: "#2e65ad"
|
|
|
}
|
|
|
};
|
|
|
const ShixunsListPage = ({
|
|
|
shixunHomeworks,
|
|
|
data,
|
|
|
globalSetting,
|
|
|
loading,
|
|
|
dispatch
|
|
|
}) => {
|
|
|
var _a;
|
|
|
const { shixunWorkReport } = shixunHomeworks;
|
|
|
let indextab = ((_a = data == null ? void 0 : data.efficiency_list) == null ? void 0 : _a.length) - parseInt(data == null ? void 0 : data.myself_eff[0]);
|
|
|
const getOption = () => {
|
|
|
return {
|
|
|
title: {
|
|
|
text: "\u5B66\u4E60\u6548\u7387",
|
|
|
subtext: "\u5B66\u4E60\u6548\u7387=log(\u5B9E\u8BAD\u603B\u5F97\u5206/\u5B9E\u8BAD\u603B\u8017\u65F6)"
|
|
|
},
|
|
|
backgroundColor: "#fff",
|
|
|
color: [
|
|
|
"#dd4444",
|
|
|
"#fec42c",
|
|
|
"#80F1BE"
|
|
|
],
|
|
|
grid: {
|
|
|
left: "3%",
|
|
|
right: "9%",
|
|
|
bottom: "3%",
|
|
|
containLabel: true
|
|
|
},
|
|
|
tooltip: {
|
|
|
// trigger: 'axis',
|
|
|
showDelay: 0,
|
|
|
formatter: function(params) {
|
|
|
if (params.name === shixunWorkReport.username) {
|
|
|
return "\u59D3\u540D\uFF1A" + shixunWorkReport.username + "<br/>\u5B66\u53F7\uFF1A " + shixunWorkReport.user_id + "<br/>\u6548\u7387\uFF1A" + (data == null ? void 0 : data.myself_eff[1]);
|
|
|
} else {
|
|
|
return params.name + ":" + params.value + " ";
|
|
|
}
|
|
|
},
|
|
|
axisPointer: {
|
|
|
show: true,
|
|
|
type: "cross",
|
|
|
lineStyle: {
|
|
|
type: "dashed",
|
|
|
width: 1
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
xAxis: [
|
|
|
{
|
|
|
type: "value",
|
|
|
name: "\u5B66\u751F\u4F4D\u7F6E",
|
|
|
// minInterval:1,
|
|
|
nameTextStyle: {
|
|
|
color: "#000",
|
|
|
fontSize: 12
|
|
|
},
|
|
|
scale: true,
|
|
|
axisLabel: {
|
|
|
formatter: ""
|
|
|
},
|
|
|
axisTick: {
|
|
|
show: false
|
|
|
},
|
|
|
splitLine: {
|
|
|
show: false
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
yAxis: [
|
|
|
{
|
|
|
type: "value",
|
|
|
name: " ",
|
|
|
nameGap: 20,
|
|
|
nameTextStyle: {
|
|
|
color: "#000",
|
|
|
fontSize: 12
|
|
|
},
|
|
|
scale: true,
|
|
|
axisLabel: {
|
|
|
formatter: "{value}"
|
|
|
},
|
|
|
splitLine: {
|
|
|
show: false
|
|
|
}
|
|
|
}
|
|
|
],
|
|
|
series: [
|
|
|
{
|
|
|
name: "",
|
|
|
type: "scatter",
|
|
|
data: data == null ? void 0 : data.efficiency_list,
|
|
|
itemStyle: {
|
|
|
normal: { color: "#2e65ad" }
|
|
|
},
|
|
|
markArea: {
|
|
|
silent: true,
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: "transparent",
|
|
|
borderWidth: 1,
|
|
|
borderType: "dashed"
|
|
|
}
|
|
|
},
|
|
|
data: [[{
|
|
|
name: "\u5B66\u4E60\u6548\u7387\u5206\u5E03\u533A\u95F4",
|
|
|
xAxis: "min",
|
|
|
yAxis: "min"
|
|
|
}, {
|
|
|
xAxis: "max",
|
|
|
yAxis: "max"
|
|
|
}]]
|
|
|
},
|
|
|
markPoint: {
|
|
|
data: [
|
|
|
{
|
|
|
name: shixunWorkReport.username,
|
|
|
xAxis: indextab,
|
|
|
yAxis: data == null ? void 0 : data.myself_eff[1],
|
|
|
value: data == null ? void 0 : data.myself_eff[1]
|
|
|
}
|
|
|
],
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: "#c23531"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
markLine: {
|
|
|
lineStyle: {
|
|
|
normal: {
|
|
|
type: "solid",
|
|
|
color: "#ff6800"
|
|
|
}
|
|
|
},
|
|
|
data: [
|
|
|
{ type: "average", name: "\u4E2D\u4F4D\u503C" }
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
};
|
|
|
const getOption2 = () => {
|
|
|
return {
|
|
|
title: {
|
|
|
text: "\u80FD\u529B\u503C",
|
|
|
subtext: "\u80FD\u529B\u503C\uFF08\u5B9E\u8BAD\u83B7\u5F97\u7ECF\u9A8C\u503C/\u5B9E\u8BAD\u8BC4\u6D4B\u6B21\u6570\uFF09"
|
|
|
},
|
|
|
backgroundColor: "#fff",
|
|
|
color: [
|
|
|
"#dd4444",
|
|
|
"#fec42c",
|
|
|
"#80F1BE"
|
|
|
],
|
|
|
grid: {
|
|
|
x: "10%",
|
|
|
x2: 150,
|
|
|
y: "18%",
|
|
|
y2: "10%"
|
|
|
},
|
|
|
tooltip: {
|
|
|
padding: 10,
|
|
|
backgroundColor: "#222",
|
|
|
borderColor: "#777",
|
|
|
borderWidth: 1,
|
|
|
formatter: function(obj) {
|
|
|
var value = obj.value;
|
|
|
if (obj.name === shixunWorkReport.username) {
|
|
|
return "\u59D3\u540D\uFF1A" + shixunWorkReport.username + "<br/>\u5B66\u53F7\uFF1A " + shixunWorkReport.user_id + "<br/>\u5F97\u5206\uFF1A" + (data == null ? void 0 : data.myself_object[1]);
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
xAxis: {
|
|
|
type: "value",
|
|
|
name: "log(\u5B9E\u8BAD\u7684\u603B\u65F6\u95F4)",
|
|
|
nameGap: 16,
|
|
|
nameTextStyle: {
|
|
|
color: "#000",
|
|
|
fontSize: 14
|
|
|
},
|
|
|
splitLine: {
|
|
|
show: false
|
|
|
},
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: "#000"
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
yAxis: {
|
|
|
type: "value",
|
|
|
name: " ",
|
|
|
nameLocation: "end",
|
|
|
nameGap: 20,
|
|
|
nameTextStyle: {
|
|
|
color: "#000",
|
|
|
fontSize: 12
|
|
|
},
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: "#000"
|
|
|
}
|
|
|
},
|
|
|
splitLine: {
|
|
|
show: false
|
|
|
}
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
name: "\u80FD\u529B",
|
|
|
type: "scatter",
|
|
|
itemStyle,
|
|
|
data: data == null ? void 0 : data.consume_list,
|
|
|
symbolSize: function(value) {
|
|
|
return Math.round(value[2]);
|
|
|
},
|
|
|
markPoint: {
|
|
|
data: [
|
|
|
{
|
|
|
name: shixunWorkReport.username,
|
|
|
xAxis: data == null ? void 0 : data.myself_object[0],
|
|
|
yAxis: data == null ? void 0 : data.myself_object[1],
|
|
|
value: data == null ? void 0 : data.myself_object[1]
|
|
|
}
|
|
|
],
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
color: "#c23531"
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
};
|
|
|
};
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "ml60 pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "800px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(lib/* default */.Z, { style: { width: 750, height: 580 }, option: getOption() })), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: Commentmodules.rightInfo }, /* @__PURE__ */ _react_17_0_2_react.createElement("ul", null, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u59D3\u540D"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30" }, shixunWorkReport.username)), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u5B66\u53F7"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30" }, shixunWorkReport.student_id || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u5B66\u4E60\u6548\u7387"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-orange" }, data == null ? void 0 : data.myself_eff[1])), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u5F53\u524D\u6392\u540D"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-orange" }, data == null ? void 0 : data.myself_eff[0]))), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u5B66\u4E60\u6548\u7387\u503C", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u5C0F\u5706\u70B9\u8D8A\u9AD8\uFF0C\u5B66\u4E60\u6548\u7387\u8D8A\u9AD8", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u6A59\u8272\u6A2A\u5411\u7BAD\u5934\uFF1A\u4E2D\u4F4D\u503C\uFF0C\u8868\u793A\u6574\u4E2A\u8BFE\u5802\u5B66\u751F\u8868\u73B0\u7684\u5E73\u5747\u503C"))))), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "ml60 pr30" }, /* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "800px" }, /* @__PURE__ */ _react_17_0_2_react.createElement(lib/* default */.Z, { style: { width: 750, height: 580 }, option: getOption2() })), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: Commentmodules.rightInfo }, /* @__PURE__ */ _react_17_0_2_react.createElement("ul", null, /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u59D3\u540D"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30" }, shixunWorkReport.username)), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u5B66\u53F7"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30" }, shixunWorkReport.student_id || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement("li", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u80FD\u529B"), " ", /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "ml30 c-orange" }, data == null ? void 0 : data.myself_object[1]))), /* @__PURE__ */ _react_17_0_2_react.createElement("p", null, "1\u4E2A\u5C0F\u5706\u70B9\u4EE3\u88681\u4E2A\u5B66\u751F\u7684\u80FD\u529B\u503C", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u7EA2\u8272\u6C34\u6EF4\u8868\u793A\u5F53\u524D\u5B66\u751F\u7684\u80FD\u529B\u503C", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null), "\u5C0F\u5706\u5708\u8D8A\u5927\uFF0C\u8BC4\u6D4B\u6B21\u6570\u8D8A\u5C11", /* @__PURE__ */ _react_17_0_2_react.createElement("br", null)))))));
|
|
|
};
|
|
|
/* harmony default export */ var EchartStatic = ((0,_umi_production_exports.connect)(
|
|
|
({
|
|
|
shixunHomeworks,
|
|
|
loading,
|
|
|
globalSetting
|
|
|
}) => ({
|
|
|
shixunHomeworks,
|
|
|
globalSetting,
|
|
|
loading: loading.effects
|
|
|
})
|
|
|
)(ShixunsListPage));
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/components/monaco-editor/index.jsx + 4 modules
|
|
|
var monaco_editor = __webpack_require__(32150);
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input-number/index.js + 14 modules
|
|
|
var input_number = __webpack_require__(54449);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ScoreInput.tsx
|
|
|
|
|
|
|
|
|
/* harmony default export */ var ScoreInput = (({ defaultValue, onBlur, max, className = "game-score" }) => {
|
|
|
const [value, setValue] = (0,_react_17_0_2_react.useState)(defaultValue);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
setValue(defaultValue);
|
|
|
}, [defaultValue]);
|
|
|
function onChange(v) {
|
|
|
setValue(v);
|
|
|
}
|
|
|
function onBlurHandler() {
|
|
|
if (value !== defaultValue) {
|
|
|
onBlur(value > max ? max : value);
|
|
|
}
|
|
|
}
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(input_number/* default */.Z, { max, min: 0, className, value, onChange, onBlur: onBlurHandler });
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
|
|
|
var es_select = __webpack_require__(57809);
|
|
|
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 15 modules
|
|
|
var markdown_editor = __webpack_require__(96180);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunStaticItem.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var ShixunStaticItemmodules = ({"md":"md___TEmcT"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunStaticItem.tsx
|
|
|
/* provided dependency */ var React = __webpack_require__(/*! react */ 59301);
|
|
|
var __defProp = Object.defineProperty;
|
|
|
var __defProps = Object.defineProperties;
|
|
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var __spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (__hasOwnProp.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
if (__getOwnPropSymbols)
|
|
|
for (var prop of __getOwnPropSymbols(b)) {
|
|
|
if (__propIsEnum.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Option = es_select["default"].Option;
|
|
|
const options = {
|
|
|
selectOnLineNumbers: true,
|
|
|
readOnly: true,
|
|
|
minimap: {
|
|
|
enabled: false
|
|
|
},
|
|
|
scrollBeyondLastLine: false,
|
|
|
enableSplitViewResizing: false,
|
|
|
roundedSelection: false,
|
|
|
renderIndicators: false,
|
|
|
useShadows: false
|
|
|
};
|
|
|
var Types = /* @__PURE__ */ ((Types2) => {
|
|
|
Types2[Types2["SET_PATH"] = 0] = "SET_PATH";
|
|
|
Types2[Types2["GET_PASSED_CONTENT"] = 1] = "GET_PASSED_CONTENT";
|
|
|
return Types2;
|
|
|
})(Types || {});
|
|
|
function reducer(state, action) {
|
|
|
switch (action.type) {
|
|
|
case 0 /* SET_PATH */:
|
|
|
return __spreadProps(__spreadValues({}, state), { selectedPath: action.payload });
|
|
|
case 1 /* GET_PASSED_CONTENT */:
|
|
|
return __spreadProps(__spreadValues({}, state), { passedContent: action.payload });
|
|
|
default:
|
|
|
throw new Error();
|
|
|
}
|
|
|
}
|
|
|
/* harmony default export */ var ShixunStaticItem = (({ path, game_id, onPathChange, autoHeight, diff_code_count, data, game_codes_cn }) => {
|
|
|
var _a, _b, _c, _d;
|
|
|
const paths = path.split("\uFF1B").filter((item) => !!item);
|
|
|
const [state, dispatch] = (0,_react_17_0_2_react.useReducer)(reducer, { selectedPath: paths[0], passedContent: { language: "python", content: "" } });
|
|
|
const { selectedPath, passedContent } = state;
|
|
|
function onChange(value) {
|
|
|
dispatch({
|
|
|
type: 0 /* SET_PATH */,
|
|
|
payload: value
|
|
|
});
|
|
|
}
|
|
|
const textJson = {
|
|
|
"\u6700\u540E\u901A\u5173\u4EE3\u7801": "\u901A\u8FC7\u4E86\u672C\u9898\uFF0C\u5728\u4F5C\u4E1A\u65F6\u95F4\u5185\u6700\u540E\u4E00\u6B21\u63D0\u4EA4\u7684\u901A\u5173\u4EE3\u7801",
|
|
|
"\u6700\u65B0\u4EE3\u7801": "\u672A\u901A\u8FC7\u672C\u9898\uFF0C\u5C55\u793A\u6700\u65B0\u7F16\u5199\u7684\u4EE3\u7801\u8BE6\u60C5",
|
|
|
"\u622A\u6B62\u540E\u901A\u5173\u4EE3\u7801": "\u5728\u4F5C\u4E1A\u65F6\u95F4\u7ED3\u675F\u540E\u901A\u5173\u8BE5\u9898\u7684\u4EE3\u7801\u8BE6\u60C5"
|
|
|
};
|
|
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("h2", null, " ", /* @__PURE__ */ React.createElement("span", null, game_codes_cn, game_codes_cn && /* @__PURE__ */ React.createElement("span", { className: "ml5 font12 c-grey-999" }, textJson[game_codes_cn])), diff_code_count && /* @__PURE__ */ React.createElement("span", { style: { marginLeft: "50px" } }, "\u4EE3\u7801\u4FEE\u6539\u884C\u6570 ", diff_code_count), /* @__PURE__ */ React.createElement("span", null, /* @__PURE__ */ React.createElement(es_select["default"], { style: { width: 200 }, value: selectedPath, onChange }, " ", paths.map((item) => /* @__PURE__ */ React.createElement(Option, { key: item, value: item }, item)), " ")), " "), (selectedPath == null ? void 0 : selectedPath.split(".")[1]) === "md" && /* @__PURE__ */ React.createElement(
|
|
|
markdown_editor/* default */.Z,
|
|
|
{
|
|
|
height: 300,
|
|
|
autoHeight,
|
|
|
defaultValue: ((_b = (_a = data == null ? void 0 : data.filter((item) => item.path === selectedPath)) == null ? void 0 : _a[0]) == null ? void 0 : _b.content) || "",
|
|
|
className: ShixunStaticItemmodules.md
|
|
|
}
|
|
|
), (selectedPath == null ? void 0 : selectedPath.split(".")[1]) !== "md" && /* @__PURE__ */ React.createElement(
|
|
|
monaco_editor/* default */.ZP,
|
|
|
{
|
|
|
height: 300,
|
|
|
language: passedContent.language,
|
|
|
value: ((_d = (_c = data == null ? void 0 : data.filter((item) => item.path === selectedPath)) == null ? void 0 : _c[0]) == null ? void 0 : _d.content) || "",
|
|
|
autoHeight,
|
|
|
theme: "default",
|
|
|
options
|
|
|
}
|
|
|
));
|
|
|
});
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/classrooms.ts
|
|
|
var classrooms = __webpack_require__(65998);
|
|
|
// EXTERNAL MODULE: ./node_modules/_react-draggable@4.4.6@react-draggable/build/cjs/cjs.js
|
|
|
var cjs = __webpack_require__(12911);
|
|
|
var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunStatic.tsx
|
|
|
var ShixunStatic_defProp = Object.defineProperty;
|
|
|
var ShixunStatic_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var ShixunStatic_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var ShixunStatic_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var ShixunStatic_defNormalProp = (obj, key, value) => key in obj ? ShixunStatic_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var ShixunStatic_spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (ShixunStatic_hasOwnProp.call(b, prop))
|
|
|
ShixunStatic_defNormalProp(a, prop, b[prop]);
|
|
|
if (ShixunStatic_getOwnPropSymbols)
|
|
|
for (var prop of ShixunStatic_getOwnPropSymbols(b)) {
|
|
|
if (ShixunStatic_propIsEnum.call(b, prop))
|
|
|
ShixunStatic_defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
var __async = (__this, __arguments, generator) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var fulfilled = (value) => {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var rejected = (value) => {
|
|
|
try {
|
|
|
step(generator.throw(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const ShixunStatic_ShixunsListPage = ({
|
|
|
shixunHomeworks,
|
|
|
autoHeight,
|
|
|
classroomList,
|
|
|
dispatch
|
|
|
}) => {
|
|
|
const { shixunWorkReport } = shixunHomeworks;
|
|
|
const { stage_list, work_id } = shixunWorkReport;
|
|
|
const [open, setOpen] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [disabled, setDisabled] = (0,_react_17_0_2_react.useState)(true);
|
|
|
const [bounds, setBounds] = (0,_react_17_0_2_react.useState)({ left: 0, top: 0, bottom: 0, right: 0 });
|
|
|
const draggleRef = (0,_react_17_0_2_react.useRef)(null);
|
|
|
const [items, setitems] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const onStart = (_event, uiData) => {
|
|
|
var _a;
|
|
|
const { clientWidth, clientHeight } = window.document.documentElement;
|
|
|
const targetRect = (_a = draggleRef.current) == null ? void 0 : _a.getBoundingClientRect();
|
|
|
if (!targetRect) {
|
|
|
return;
|
|
|
}
|
|
|
setBounds({
|
|
|
left: -targetRect.left + uiData.x,
|
|
|
right: clientWidth - (targetRect.right - uiData.x),
|
|
|
top: -targetRect.top + uiData.y,
|
|
|
bottom: clientHeight - (targetRect.bottom - uiData.y)
|
|
|
});
|
|
|
};
|
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
|
const hasPower = (0,authority/* isAdmin */.GJ)();
|
|
|
const options = {
|
|
|
selectOnLineNumbers: true,
|
|
|
readOnly: true,
|
|
|
minimap: {
|
|
|
enabled: false
|
|
|
},
|
|
|
scrollBeyondLastLine: false
|
|
|
};
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
console.log(params);
|
|
|
}, []);
|
|
|
const columns = [
|
|
|
{
|
|
|
title: "\u8BC4\u6D4B\u6B21\u6570",
|
|
|
dataIndex: "position",
|
|
|
width: "100px"
|
|
|
},
|
|
|
{
|
|
|
title: "\u8BE6\u7EC6\u4FE1\u606F",
|
|
|
dataIndex: "output_detail"
|
|
|
},
|
|
|
{
|
|
|
title: "\u8BC4\u6D4B\u8017\u65F6(S)",
|
|
|
dataIndex: "ts_time",
|
|
|
width: "130px"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5185\u5B58\u6D88\u8017(MB)",
|
|
|
width: "150px",
|
|
|
dataIndex: "ts_mem"
|
|
|
},
|
|
|
{
|
|
|
title: "\u8BC4\u6D4B\u65F6\u95F4",
|
|
|
width: "170px",
|
|
|
dataIndex: "created_at",
|
|
|
render: (text) => {
|
|
|
return dayjs_min_default()(text).format("YYYY-MM-DD HH:mm");
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "\u64CD\u4F5C",
|
|
|
width: "80px",
|
|
|
dataIndex: "query_index",
|
|
|
render: (text, record) => /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "c-blue current", onClick: () => __async(void 0, null, function* () {
|
|
|
var _a, _b;
|
|
|
const res = yield (0,classrooms/* getCommitIdContent */.Lk)(record.game_identifier, {
|
|
|
path: (_b = (_a = record.path) == null ? void 0 : _a.replace(/\;/g, ";")) == null ? void 0 : _b.split(";")[0],
|
|
|
query_index: record.query_index,
|
|
|
homework_common_id: params.categoryId
|
|
|
});
|
|
|
if ((res == null ? void 0 : res.status) === 0) {
|
|
|
setitems(res);
|
|
|
setOpen(true);
|
|
|
}
|
|
|
}) }, record.query_index ? "\u67E5\u770B\u4EE3\u7801" : "")
|
|
|
}
|
|
|
];
|
|
|
function onChangeScore(index, value) {
|
|
|
return __async(this, null, function* () {
|
|
|
const { challenge_id } = stage_list[index];
|
|
|
const res = yield dispatch({
|
|
|
type: "shixunHomeworks/changeScore",
|
|
|
payload: {
|
|
|
categoryId: params.homeworkId,
|
|
|
"type": "report",
|
|
|
"score": value,
|
|
|
challenge_id
|
|
|
}
|
|
|
});
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: ShixunStatic_spreadValues({}, params)
|
|
|
});
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function onPathChange(game_id, path) {
|
|
|
return (0,fetch/* get */.U2)(`student_works/${work_id}/rep_passed_content.json`, { path, game_id });
|
|
|
}
|
|
|
const datas = shixunWorkReport.shixun_detail;
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, datas == null ? void 0 : datas.map(function(val, key) {
|
|
|
var _a;
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { key }, /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "pl30 pr30", key }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: `${Commentmodules.shixunTitle} mt10` }, /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: "fa fa-code " }), /* @__PURE__ */ _react_17_0_2_react.createElement("strong", { className: "c-black" }, "\u7B2C", key + 1, "\u5173 ", /* @__PURE__ */ _react_17_0_2_react.createElement(_umi_production_exports.Link, { className: "c-black", target: "_blank", to: `/tasks/${val.game_identifier}` }, val.subject))), hasPower ? /* @__PURE__ */ _react_17_0_2_react.createElement("span", null, "\u8C03\u5206\uFF1A", /* @__PURE__ */ _react_17_0_2_react.createElement(ScoreInput, { className: "game-score", max: stage_list[key].game_score_full, defaultValue: stage_list[key].game_score, onBlur: (value) => {
|
|
|
var _a2;
|
|
|
if ((0,authority/* isAssistant */.Rm)() && !((_a2 = classroomList.AssistantObject.practice) == null ? void 0 : _a2.can_appraise)) {
|
|
|
message/* default */.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");
|
|
|
return;
|
|
|
}
|
|
|
onChangeScore(key, value);
|
|
|
} })) : null), /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font16 mt10" }, val.st === 0 && (val.path ? typeof (val == null ? void 0 : val.game_codes_cn) === "string" ? /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: Commentmodules.shixunWrp }, /* @__PURE__ */ _react_17_0_2_react.createElement(ShixunStaticItem, { game_codes_cn: val == null ? void 0 : val.game_codes_cn, autoHeight, path: val.path, game_id: val.id, data: val.game_codes, diff_code_count: val.diff_code_count, onPathChange })) : /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: "font14", style: { border: "1px solid #d9d9d9", padding: "6px 10px" } }, " \u63D0\u793A\uFF1A\u7EAF\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u7684\u5B9E\u8BAD\u4E0D\u5C55\u793A\u901A\u5173\u4EE3\u7801\uFF0C\u5982\u9700\u67E5\u770B\u5B66\u751F\u4EE3\u7801\u8BF7\u524D\u5F80\u4F5C\u4E1A\u5217\u8868\u5BFC\u51FA\u5B9E\u9A8C\u6587\u4EF6\u3002") : "\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD"), val.st === 1 && (val.complete_status === 0 ? "\u672C\u5173\u6682\u672A\u901A\u8FC7\uFF0C\u65E0\u901A\u5173\u4EE3\u7801" : "\u76EE\u524D\u56FE\u5F62\u5316\u3001\u547D\u4EE4\u884C\u3001Vscode\u7F16\u8F91\u5668\u3001\u9009\u62E9\u9898\u6A21\u5F0F\u7684\u5B9E\u9A8C\uFF0C\u6682\u65F6\u65E0\u6CD5\u4F7F\u7528\u6B64\u529F\u80FD")), /* @__PURE__ */ _react_17_0_2_react.createElement("aside", { className: "mt10 font16" }, ((_a = val.outputs) == null ? void 0 : _a.length) ? /* @__PURE__ */ _react_17_0_2_react.createElement(table["default"], { columns, pagination: { hideOnSinglePage: true }, dataSource: val.outputs.map((item) => {
|
|
|
return ShixunStatic_spreadValues(ShixunStatic_spreadValues({}, val), item);
|
|
|
}) }) : "\u672C\u5173\u65E0\u8BC4\u6D4B\u8BB0\u5F55")));
|
|
|
}), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
es_modal["default"],
|
|
|
{
|
|
|
open,
|
|
|
width: 900,
|
|
|
okText: "\u5173\u95ED",
|
|
|
cancelButtonProps: {
|
|
|
style: { display: "none" }
|
|
|
},
|
|
|
onOk: () => {
|
|
|
setitems({});
|
|
|
setOpen(false);
|
|
|
},
|
|
|
onCancel: () => {
|
|
|
setitems({});
|
|
|
setOpen(false);
|
|
|
},
|
|
|
title: /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
"div",
|
|
|
{
|
|
|
style: {
|
|
|
width: "100%",
|
|
|
cursor: "move"
|
|
|
},
|
|
|
onMouseOver: () => {
|
|
|
if (disabled) {
|
|
|
setDisabled(false);
|
|
|
}
|
|
|
},
|
|
|
onMouseOut: () => {
|
|
|
setDisabled(true);
|
|
|
},
|
|
|
onFocus: () => {
|
|
|
},
|
|
|
onBlur: () => {
|
|
|
}
|
|
|
},
|
|
|
"\u4EE3\u7801\u5185\u5BB9"
|
|
|
),
|
|
|
modalRender: (modal) => /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
(cjs_default()),
|
|
|
{
|
|
|
disabled,
|
|
|
bounds,
|
|
|
nodeRef: draggleRef,
|
|
|
onStart: (event, uiData) => onStart(event, uiData)
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { ref: draggleRef }, modal)
|
|
|
)
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
monaco_editor/* default */.ZP,
|
|
|
{
|
|
|
height: 500,
|
|
|
autoHeight,
|
|
|
language: "python",
|
|
|
theme: "default",
|
|
|
value: decodeURIComponent(escape(window.atob((items == null ? void 0 : items.content) || ""))),
|
|
|
options
|
|
|
}
|
|
|
)
|
|
|
));
|
|
|
};
|
|
|
/* harmony default export */ var ShixunStatic = ((0,_umi_production_exports.connect)(
|
|
|
({
|
|
|
shixunHomeworks,
|
|
|
loading,
|
|
|
globalSetting,
|
|
|
classroomList
|
|
|
}) => ({
|
|
|
shixunHomeworks,
|
|
|
globalSetting,
|
|
|
loading: loading.effects,
|
|
|
classroomList
|
|
|
})
|
|
|
)(ShixunStatic_ShixunsListPage));
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
|
|
var es_form = __webpack_require__(78241);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ChangeCommit/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var ChangeCommitmodules = ({"greyText":"greyText___nOpNq","info":"info___nBB3c","label":"label___P6my8","blackContent":"blackContent___O4HnS","orangeContent":"orangeContent___JBF44","inputLabel":"inputLabel___B2GAs","tableTitle":"tableTitle___IqAxM","scoreTable":"scoreTable___RJvpU"});
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ChangeCommit/index.tsx
|
|
|
var ChangeCommit_defProp = Object.defineProperty;
|
|
|
var ChangeCommit_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var ChangeCommit_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var ChangeCommit_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var ChangeCommit_defNormalProp = (obj, key, value) => key in obj ? ChangeCommit_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var ChangeCommit_spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (ChangeCommit_hasOwnProp.call(b, prop))
|
|
|
ChangeCommit_defNormalProp(a, prop, b[prop]);
|
|
|
if (ChangeCommit_getOwnPropSymbols)
|
|
|
for (var prop of ChangeCommit_getOwnPropSymbols(b)) {
|
|
|
if (ChangeCommit_propIsEnum.call(b, prop))
|
|
|
ChangeCommit_defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
var ChangeCommit_async = (__this, __arguments, generator) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var fulfilled = (value) => {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var rejected = (value) => {
|
|
|
try {
|
|
|
step(generator.throw(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const DelShixun = ({ shixunHomeworks, dispatch, classroomList }) => {
|
|
|
const { shixunWorkReport } = shixunHomeworks;
|
|
|
const params = (0,_umi_production_exports.useParams)();
|
|
|
const [showRequired, setShowRequired] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [form] = es_form["default"].useForm();
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
var _a, _b, _c, _d;
|
|
|
if (shixunHomeworks.actionTabs.key === "\u66F4\u6539\u70B9\u8BC4")
|
|
|
form.setFieldsValue({
|
|
|
comment: (_b = (_a = shixunHomeworks.actionTabs.selectArrs) == null ? void 0 : _a.data) == null ? void 0 : _b.work_comment,
|
|
|
hidden_comment: (_d = (_c = shixunHomeworks.actionTabs.selectArrs) == null ? void 0 : _c.data) == null ? void 0 : _d.work_comment_hidden
|
|
|
});
|
|
|
}, [shixunHomeworks.actionTabs.key]);
|
|
|
const quickCommit = () => ChangeCommit_async(void 0, null, function* () {
|
|
|
const formValue = form.getFieldsValue();
|
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
|
`/api/student_works/${params.homeworkId}/shixun_work_comment.json`,
|
|
|
{
|
|
|
method: "post",
|
|
|
body: {
|
|
|
hidden_comment: formValue.hidden_comment,
|
|
|
comment: formValue.comment
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success("\u8BC4\u9605\u6210\u529F");
|
|
|
form.resetFields();
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {}
|
|
|
});
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: ChangeCommit_spreadValues({}, params)
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
const columns = [
|
|
|
{
|
|
|
title: "\u5173\u5361",
|
|
|
dataIndex: "name",
|
|
|
render: (text, record, index) => index + 1
|
|
|
},
|
|
|
{
|
|
|
title: "\u4EFB\u52A1\u540D\u79F0",
|
|
|
dataIndex: "name",
|
|
|
render: (text, record, index) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, text, record.complete_status === 4 && /* @__PURE__ */ _react_17_0_2_react.createElement(util/* HomeWorkShixunDetailStatus */.vA, { status: record.complete_status }))
|
|
|
},
|
|
|
{
|
|
|
title: "\u5F00\u59CB\u65F6\u95F4",
|
|
|
dataIndex: "open_time"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5B8C\u6210\u65F6\u95F4",
|
|
|
dataIndex: "finished_time"
|
|
|
},
|
|
|
{
|
|
|
title: "\u8BC4\u6D4B\u6B21\u6570",
|
|
|
dataIndex: "evaluate_count",
|
|
|
align: "center"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5B9E\u8BAD\u8017\u65F6",
|
|
|
dataIndex: "time_consuming"
|
|
|
},
|
|
|
{
|
|
|
title: "\u662F\u5426\u67E5\u770B\u7B54\u6848",
|
|
|
dataIndex: "view_answer",
|
|
|
align: "center",
|
|
|
render: (text) => text ? "\u662F" : "\u5426"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5173\u5361\u5F97\u5206",
|
|
|
dataIndex: "game_score",
|
|
|
align: "center",
|
|
|
render: (text, record) => /* @__PURE__ */ _react_17_0_2_react.createElement("div", null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { style: { color: parseFloat(record.game_score_full) !== parseFloat(text) ? "#E30000" : "#53C41B" } }, text), "/", record.game_score_full)
|
|
|
},
|
|
|
{
|
|
|
title: "\u8C03\u5206",
|
|
|
dataIndex: "game_score",
|
|
|
align: "center",
|
|
|
fixed: "right",
|
|
|
render: (text, record) => {
|
|
|
if ((0,authority/* isAdmin */.GJ)()) {
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(ScoreInput, { max: record.game_score_full, defaultValue: parseFloat(text), onBlur: (value) => ChangeCommit_async(void 0, null, function* () {
|
|
|
var _a;
|
|
|
if ((0,authority/* isAssistant */.Rm)() && !((_a = classroomList.AssistantObject.practice) == null ? void 0 : _a.can_appraise)) {
|
|
|
message/* default */.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");
|
|
|
return;
|
|
|
}
|
|
|
const res = yield dispatch({
|
|
|
type: "shixunHomeworks/changeScore",
|
|
|
payload: {
|
|
|
categoryId: params.homeworkId,
|
|
|
"type": "report",
|
|
|
"score": value,
|
|
|
challenge_id: record.challenge_id
|
|
|
}
|
|
|
});
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: ChangeCommit_spreadValues({}, params)
|
|
|
});
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
|
}
|
|
|
}) });
|
|
|
} else {
|
|
|
return text;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
];
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
es_modal["default"],
|
|
|
{
|
|
|
centered: true,
|
|
|
width: 1080,
|
|
|
title: "\u70B9\u8BC4\u4F5C\u4E1A",
|
|
|
open: shixunHomeworks.actionTabs.key === "\u66F4\u6539\u70B9\u8BC4" ? true : false,
|
|
|
okText: "\u786E\u5B9A",
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
onOk: () => ChangeCommit_async(void 0, null, function* () {
|
|
|
var _a;
|
|
|
if ((0,authority/* isAssistant */.Rm)() && !((_a = classroomList.AssistantObject.practice) == null ? void 0 : _a.can_appraise)) {
|
|
|
message/* default */.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");
|
|
|
return;
|
|
|
}
|
|
|
const formValue = form.getFieldsValue();
|
|
|
if (JSON.stringify(formValue) === "{}" || formValue.hidden_comment === "" && formValue.comment === "") {
|
|
|
setShowRequired(true);
|
|
|
} else {
|
|
|
quickCommit();
|
|
|
}
|
|
|
}),
|
|
|
onCancel: () => {
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(row/* default */.Z, { justify: "space-between", className: ChangeCommitmodules.info }, /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u59D3\u540D"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.blackContent }, shixunWorkReport == null ? void 0 : shixunWorkReport.username)), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u5B66\u53F7"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.blackContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u73ED\u7EA7"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.blackContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.group_name) || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u5173\u5361\u5F97\u5206"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.orangeContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.challenge_score) || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u6548\u7387\u5206"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.orangeContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.eff_score) || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u8FDF\u4EA4\u6263\u5206"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.orangeContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.late_penalty) || "--")), /* @__PURE__ */ _react_17_0_2_react.createElement(col/* default */.Z, null, /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: `${ChangeCommitmodules.label} ${ChangeCommitmodules.greyText}` }, "\u6700\u7EC8\u6210\u7EE9"), /* @__PURE__ */ _react_17_0_2_react.createElement("span", { className: ChangeCommitmodules.orangeContent }, (shixunWorkReport == null ? void 0 : shixunWorkReport.work_score) || "--"))),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
es_form["default"],
|
|
|
{
|
|
|
form,
|
|
|
onChange: () => {
|
|
|
if (showRequired)
|
|
|
setShowRequired(false);
|
|
|
}
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: `${ChangeCommitmodules.inputLabel} ${ChangeCommitmodules.greyText}` }, "\u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "comment" }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"].TextArea, { placeholder: "\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9", rows: 3 })),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: `${ChangeCommitmodules.inputLabel} ${ChangeCommitmodules.greyText}` }, "\u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(es_form["default"].Item, { name: "hidden_comment" }, /* @__PURE__ */ _react_17_0_2_react.createElement(input["default"].TextArea, { placeholder: "\u8BF7\u8F93\u5165\u8BC4\u9605\u5185\u5BB9", rows: 3 }))
|
|
|
),
|
|
|
showRequired && /* @__PURE__ */ _react_17_0_2_react.createElement("p", { className: "c-red" }, "\u8BC4\u9605\u5185\u5BB9\u81F3\u5C11\u6709\u4E00\u4E2A\u4E0D\u4E3A\u7A7A"),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ChangeCommitmodules.tableTitle }, "\u5173\u5361\u6210\u7EE9"),
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
table["default"],
|
|
|
{
|
|
|
className: ChangeCommitmodules.scoreTable,
|
|
|
dataSource: shixunWorkReport.stage_list,
|
|
|
rowKey: "challenge_id",
|
|
|
pagination: false,
|
|
|
columns,
|
|
|
scroll: { x: "max-content" }
|
|
|
}
|
|
|
)
|
|
|
);
|
|
|
};
|
|
|
/* harmony default export */ var ChangeCommit = ((0,_umi_production_exports.connect)(
|
|
|
({ shixunHomeworks, classroomList }) => ({
|
|
|
shixunHomeworks,
|
|
|
classroomList
|
|
|
})
|
|
|
)(DelShixun));
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/WorkList/components/Redo.tsx
|
|
|
var Redo = __webpack_require__(4962);
|
|
|
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx
|
|
|
var RenderHtml = __webpack_require__(16921);
|
|
|
// EXTERNAL MODULE: ./src/service/shixunHomeworks.ts
|
|
|
var service_shixunHomeworks = __webpack_require__(25646);
|
|
|
// EXTERNAL MODULE: ./node_modules/_html2pdf.js@0.10.1@html2pdf.js/dist/html2pdf.js
|
|
|
var html2pdf = __webpack_require__(44425);
|
|
|
var html2pdf_default = /*#__PURE__*/__webpack_require__.n(html2pdf);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunPhoto/index.less?modules
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
/* harmony default export */ var ShixunPhotomodules = ({"wrap":"wrap___LZOi9","line":"line___oju0L"});
|
|
|
// EXTERNAL MODULE: ./src/components/BehavioralAnalysis/index.tsx + 1 modules
|
|
|
var BehavioralAnalysis = __webpack_require__(19385);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/components/ShixunPhoto/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
const ShixunPhoto = ({ detailData }) => {
|
|
|
var _a;
|
|
|
return /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShixunPhotomodules.wrap }, /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
BehavioralAnalysis/* AnalysisNoData */.ij,
|
|
|
{
|
|
|
hideBar: true,
|
|
|
actionAnalysis: true,
|
|
|
loading: false,
|
|
|
emptyData: [(0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData), (detailData == null ? void 0 : detailData.photos) || []],
|
|
|
title: "\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790",
|
|
|
noDataText: "\u8BE5\u5B66\u751F\u65E0\u5B66\u4E60\u884C\u4E3A\u5206\u6790\u6570\u636E"
|
|
|
},
|
|
|
/* @__PURE__ */ _react_17_0_2_react.createElement(BehavioralAnalysis/* default */.ZP, { hideBar: true, title: "\u5B9E\u8BAD\u5B66\u4E60\u5206\u6790", data: (0,BehavioralAnalysis/* dealOncFnc */.Uf)(detailData) }),
|
|
|
!!((_a = detailData == null ? void 0 : detailData.photos) == null ? void 0 : _a.length) && /* @__PURE__ */ _react_17_0_2_react.createElement(_react_17_0_2_react.Fragment, null, /* @__PURE__ */ _react_17_0_2_react.createElement("div", { className: ShixunPhotomodules.line }), /* @__PURE__ */ _react_17_0_2_react.createElement(
|
|
|
BehavioralAnalysis/* PhotosList */._s,
|
|
|
{
|
|
|
dataSource: detailData == null ? void 0 : detailData.photos,
|
|
|
right: 21,
|
|
|
col: 4,
|
|
|
wrapWidth: 1140
|
|
|
}
|
|
|
))
|
|
|
));
|
|
|
};
|
|
|
/* harmony default export */ var components_ShixunPhoto = (ShixunPhoto);
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/export.ts
|
|
|
var utils_export = __webpack_require__(70197);
|
|
|
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/ShixunHomeworks/Comment/index.tsx
|
|
|
/* provided dependency */ var Comment_React = __webpack_require__(/*! react */ 59301);
|
|
|
var Comment_defProp = Object.defineProperty;
|
|
|
var Comment_getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var Comment_hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var Comment_propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var Comment_defNormalProp = (obj, key, value) => key in obj ? Comment_defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var Comment_spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (Comment_hasOwnProp.call(b, prop))
|
|
|
Comment_defNormalProp(a, prop, b[prop]);
|
|
|
if (Comment_getOwnPropSymbols)
|
|
|
for (var prop of Comment_getOwnPropSymbols(b)) {
|
|
|
if (Comment_propIsEnum.call(b, prop))
|
|
|
Comment_defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
var __objRest = (source, exclude) => {
|
|
|
var target = {};
|
|
|
for (var prop in source)
|
|
|
if (Comment_hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
|
target[prop] = source[prop];
|
|
|
if (source != null && Comment_getOwnPropSymbols)
|
|
|
for (var prop of Comment_getOwnPropSymbols(source)) {
|
|
|
if (exclude.indexOf(prop) < 0 && Comment_propIsEnum.call(source, prop))
|
|
|
target[prop] = source[prop];
|
|
|
}
|
|
|
return target;
|
|
|
};
|
|
|
var Comment_async = (__this, __arguments, generator) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var fulfilled = (value) => {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var rejected = (value) => {
|
|
|
try {
|
|
|
step(generator.throw(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Comment_ShixunsListPage = (_a) => {
|
|
|
var _b = _a, {
|
|
|
shixunHomeworks,
|
|
|
classroomList,
|
|
|
globalSetting,
|
|
|
loading,
|
|
|
user,
|
|
|
dispatch
|
|
|
} = _b, props = __objRest(_b, [
|
|
|
"shixunHomeworks",
|
|
|
"classroomList",
|
|
|
"globalSetting",
|
|
|
"loading",
|
|
|
"user",
|
|
|
"dispatch"
|
|
|
]);
|
|
|
var _a2, _b2;
|
|
|
const [params, setParams] = (0,_react_17_0_2_react.useState)(Comment_spreadValues({}, (0,_umi_production_exports.useParams)()));
|
|
|
const _params = (0,_umi_production_exports.useParams)();
|
|
|
const location = (0,_umi_production_exports.useLocation)();
|
|
|
const [] = (0,_react_17_0_2_react.useState)([]);
|
|
|
const [chartData, setChartData] = (0,_react_17_0_2_react.useState)();
|
|
|
const reportElement = (0,_react_17_0_2_react.useRef)();
|
|
|
const reportElementInfo = (0,_react_17_0_2_react.useRef)();
|
|
|
const [isExportLoading, setIsExportLoading] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [spinning, setSpinning] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [autoHeight, setAutoHeight] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const { shixunWorkReport } = shixunHomeworks;
|
|
|
const [datatables, setdatatables] = (0,_react_17_0_2_react.useState)();
|
|
|
const hasPower = (0,authority/* isAdmin */.GJ)();
|
|
|
const [zip, setZip] = (0,_react_17_0_2_react.useState)(new (jszip_min_default())());
|
|
|
const [num, setNum] = (0,_react_17_0_2_react.useState)(0);
|
|
|
const [isshow, setIsshow] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [isshows, setIsshows] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [score, setscore] = (0,_react_17_0_2_react.useState)("");
|
|
|
const [isTeacher, setisTeacher] = (0,_react_17_0_2_react.useState)(false);
|
|
|
const [isDisabled, setisDisabled] = (0,_react_17_0_2_react.useState)(true);
|
|
|
const [last_score, setlast_score] = (0,_react_17_0_2_react.useState)(0);
|
|
|
const otherPramsRef = (0,_react_17_0_2_react.useRef)(JSON.parse(sessionStorage["all_student_works_params"] || "{}"));
|
|
|
const nextId = (0,_react_17_0_2_react.useRef)();
|
|
|
const getUser = () => Comment_async(void 0, null, function* () {
|
|
|
if (user.userInfo.is_teacher || user.userInfo.admin) {
|
|
|
setisTeacher(true);
|
|
|
setisDisabled(false);
|
|
|
}
|
|
|
});
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
var _a3;
|
|
|
if ((0,authority/* isAssistant */.Rm)() && classroomList.AssistantObject.practice && !((_a3 = classroomList.AssistantObject.practice) == null ? void 0 : _a3.can_view)) {
|
|
|
_umi_production_exports.history.replace("/403");
|
|
|
}
|
|
|
}, [(_a2 = classroomList.AssistantObject.practice) == null ? void 0 : _a2.can_view]);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
getUser();
|
|
|
console.log("\u6253\u5370\u7684------", shixunWorkReport);
|
|
|
nextId.current = shixunWorkReport == null ? void 0 : shixunWorkReport.next_student_work_id;
|
|
|
setscore(shixunWorkReport.repeat_minus_score);
|
|
|
}, [shixunWorkReport, user]);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
console.log("\u89E6\u53D1\u8FD9", shixunWorkReport.work_score);
|
|
|
setlast_score(shixunWorkReport.work_score);
|
|
|
}, [shixunWorkReport.work_score, score]);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
dispatch({
|
|
|
type: "globalSetting/footerToggle",
|
|
|
payload: false
|
|
|
});
|
|
|
return () => {
|
|
|
dispatch({
|
|
|
type: "globalSetting/footerToggle",
|
|
|
payload: true
|
|
|
});
|
|
|
};
|
|
|
}, []);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
var _a3;
|
|
|
if (shixunWorkReport) {
|
|
|
let items = [];
|
|
|
(_a3 = shixunWorkReport == null ? void 0 : shixunWorkReport.target_test_sets) == null ? void 0 : _a3.map((item, index) => {
|
|
|
var _a4;
|
|
|
(_a4 = item == null ? void 0 : item.targets) == null ? void 0 : _a4.map((ite, j) => {
|
|
|
var _a5;
|
|
|
ite.name = item == null ? void 0 : item.name;
|
|
|
ite.total_target_score = item == null ? void 0 : item.total_target_score;
|
|
|
ite.actual_target_score = item == null ? void 0 : item.actual_target_score;
|
|
|
ite.rowSpan = j === 0 ? (_a5 = item == null ? void 0 : item.targets) == null ? void 0 : _a5.length : 0;
|
|
|
ite.order = index + 1;
|
|
|
items.push(ite);
|
|
|
});
|
|
|
});
|
|
|
setdatatables(items);
|
|
|
if ((0,authority/* isAssistant */.Rm)())
|
|
|
dispatch({
|
|
|
type: "classroomList/getAssistantPermissions",
|
|
|
payload: {
|
|
|
course_id: params.coursesId
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, [shixunWorkReport]);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
if (shixunHomeworks.actionTabs.key === "\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A" && (shixunWorkReport == null ? void 0 : shixunWorkReport.students_count) > 0) {
|
|
|
setTimeout(() => {
|
|
|
exportReport("all");
|
|
|
}, 800);
|
|
|
}
|
|
|
}, [shixunWorkReport == null ? void 0 : shixunWorkReport.homework_common_id]);
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
setParams(Comment_spreadValues({}, _params));
|
|
|
}, [location.pathname]);
|
|
|
const scrollView = () => {
|
|
|
document.body.scrollIntoView();
|
|
|
};
|
|
|
function getData() {
|
|
|
return Comment_async(this, null, function* () {
|
|
|
otherPramsRef.current = JSON.parse(sessionStorage["all_student_works_params"] || "{}");
|
|
|
});
|
|
|
}
|
|
|
const handleRemoveSurplusCanvas = () => {
|
|
|
document.querySelectorAll("canvas").forEach((item) => {
|
|
|
(!item.clientWidth || !item.clientHeight) && item.remove();
|
|
|
});
|
|
|
};
|
|
|
const setMonocoHeight = () => {
|
|
|
if (reportElement.current.offsetHeight > 62e3) {
|
|
|
setAutoHeight(false);
|
|
|
} else {
|
|
|
setAutoHeight(true);
|
|
|
}
|
|
|
};
|
|
|
const getEchartData = (id) => Comment_async(void 0, null, function* () {
|
|
|
const res = yield (0,service_shixunHomeworks/* getShixunWorkReportEchart */.t1)({ homeworkId: id || params.homeworkId });
|
|
|
setChartData(res == null ? void 0 : res.data);
|
|
|
});
|
|
|
const exportReport = (type) => Comment_async(void 0, null, function* () {
|
|
|
var _a3;
|
|
|
let nums = 0;
|
|
|
let modal;
|
|
|
modal = es_modal["default"].info({
|
|
|
width: 460,
|
|
|
title: /* @__PURE__ */ Comment_React.createElement("div", null, "\u6B63\u5728\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A,", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-red" }, "\u8BF7\u52FF\u5173\u95ED\u6216\u64CD\u4F5C\u5F53\u524D\u6D4F\u89C8\u5668\u7A97\u53E3")),
|
|
|
content: /* @__PURE__ */ Comment_React.createElement("div", null, "\u5F53\u524D\u8FDB\u5EA6: ", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-blue" }, nums + 1), "/", type !== "all" ? 1 : shixunWorkReport == null ? void 0 : shixunWorkReport.students_count, /* @__PURE__ */ Comment_React.createElement("br", null), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3"),
|
|
|
maskClosable: false,
|
|
|
className: Commentmodules.modal,
|
|
|
onOk: () => {
|
|
|
}
|
|
|
});
|
|
|
const opt = {
|
|
|
margin: [0, 0],
|
|
|
filename: `${(shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) && (shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) != "--" ? shixunWorkReport == null ? void 0 : shixunWorkReport.student_id : ""}${shixunWorkReport.username}.pdf`,
|
|
|
// image: {
|
|
|
// type: 'jpeg',
|
|
|
// quality: 0.98
|
|
|
// },
|
|
|
html2canvas: {
|
|
|
// dpi: 192,
|
|
|
// scale:2,
|
|
|
useCORS: true,
|
|
|
letterRendering: true
|
|
|
},
|
|
|
jsPDF: {
|
|
|
unit: "mm",
|
|
|
format: "a4",
|
|
|
orientation: "landscape"
|
|
|
// unit: 'pt', format: [1200, 800], orientation: 'portrait'
|
|
|
}
|
|
|
};
|
|
|
function next(id) {
|
|
|
return Comment_async(this, null, function* () {
|
|
|
yield getEchartData(id || nextId.current);
|
|
|
const res = yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: Comment_spreadValues({ homeworkId: id || nextId.current }, otherPramsRef.current || {})
|
|
|
});
|
|
|
nextId.current = res == null ? void 0 : res.next_student_work_id;
|
|
|
scrollView();
|
|
|
nums++;
|
|
|
setTimeout(() => Comment_async(this, null, function* () {
|
|
|
var _a4;
|
|
|
handleRemoveSurplusCanvas();
|
|
|
const folders = zip.folder(`${(res == null ? void 0 : res.student_id) && (res == null ? void 0 : res.student_id) != "--" ? res.student_id : ""}${res == null ? void 0 : res.username}`);
|
|
|
const pages = document.querySelector("#export-all").children;
|
|
|
let worker = html2pdf_default()();
|
|
|
for (let i = 0; i < pages.length; i++) {
|
|
|
yield worker.set(opt).from(pages[i]).toContainer().toCanvas().toPdf().get("pdf").then((pdf) => Comment_async(this, null, function* () {
|
|
|
if (i < pages.length - 1) {
|
|
|
yield pdf.addPage();
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
folders.file(`${(res == null ? void 0 : res.student_id) && (res == null ? void 0 : res.student_id) != "--" ? res.student_id : ""}${res == null ? void 0 : res.username}.pdf`, worker.output("blob"));
|
|
|
const codesF = folders.folder("\u4EE3\u7801\u6587\u4EF6");
|
|
|
(_a4 = res == null ? void 0 : res.shixun_detail) == null ? void 0 : _a4.map((item, index) => {
|
|
|
var _a5;
|
|
|
const codesG = codesF.folder(`\u7B2C${index + 1}\u5173-${item.subject}-${item.id}`);
|
|
|
(_a5 = item == null ? void 0 : item.game_codes) == null ? void 0 : _a5.map((i) => {
|
|
|
codesG.file(`${i.filename}.txt`, i == null ? void 0 : i.content);
|
|
|
});
|
|
|
});
|
|
|
modal.update({
|
|
|
content: /* @__PURE__ */ Comment_React.createElement("div", null, "\u5F53\u524D\u8FDB\u5EA6: ", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-blue" }, nums), "/", res == null ? void 0 : res.students_count, /* @__PURE__ */ Comment_React.createElement("br", null), "\u8BF7\u52FF\u5173\u95ED\u6D4F\u89C8\u5668\u7A97\u53E3")
|
|
|
});
|
|
|
if (nums == (res == null ? void 0 : res.students_count)) {
|
|
|
modal.destroy();
|
|
|
download();
|
|
|
} else {
|
|
|
next();
|
|
|
}
|
|
|
}), 2200);
|
|
|
});
|
|
|
}
|
|
|
if (type !== "all" || (shixunWorkReport == null ? void 0 : shixunWorkReport.students_count) < 2) {
|
|
|
handleRemoveSurplusCanvas();
|
|
|
scrollView();
|
|
|
const pages = reportElementInfo.current.children;
|
|
|
let worker = html2pdf_default()();
|
|
|
const folder = zip.folder(`${(shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) && (shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) != "--" ? shixunWorkReport == null ? void 0 : shixunWorkReport.student_id : ""}${shixunWorkReport == null ? void 0 : shixunWorkReport.username}`);
|
|
|
for (let i = 0; i < pages.length; i++) {
|
|
|
yield worker.set(opt).from(pages[i]).toContainer().toCanvas().toPdf().get("pdf").then((pdf) => Comment_async(void 0, null, function* () {
|
|
|
if (i < pages.length - 1) {
|
|
|
yield pdf.addPage();
|
|
|
}
|
|
|
}));
|
|
|
}
|
|
|
setIsExportLoading(false);
|
|
|
folder.file(`${(shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) && (shixunWorkReport == null ? void 0 : shixunWorkReport.student_id) != "--" ? shixunWorkReport == null ? void 0 : shixunWorkReport.student_id : ""}${shixunWorkReport.username}.pdf`, worker.output("blob"), { base64: false });
|
|
|
const codeF = folder.folder("\u4EE3\u7801\u6587\u4EF6");
|
|
|
(_a3 = shixunWorkReport == null ? void 0 : shixunWorkReport.shixun_detail) == null ? void 0 : _a3.map((item, index) => {
|
|
|
var _a4;
|
|
|
const codesG = codeF.folder(`\u7B2C${index + 1}\u5173-${item.subject}-${item.id}`);
|
|
|
(_a4 = item == null ? void 0 : item.game_codes) == null ? void 0 : _a4.map((i) => {
|
|
|
codesG.file(`${i.filename}.txt`, i == null ? void 0 : i.content);
|
|
|
});
|
|
|
});
|
|
|
modal.destroy();
|
|
|
download();
|
|
|
return;
|
|
|
} else {
|
|
|
next(shixunWorkReport == null ? void 0 : shixunWorkReport.first_student_work_id);
|
|
|
}
|
|
|
});
|
|
|
const download = () => {
|
|
|
zip.generateAsync({ type: "blob" }).then(function(content) {
|
|
|
const link = document.createElement("a");
|
|
|
link.href = window.URL.createObjectURL(content);
|
|
|
link.download = shixunWorkReport.course_name + ".zip";
|
|
|
document.body.appendChild(link);
|
|
|
const evt = document.createEvent("MouseEvents");
|
|
|
evt.initEvent("click", false, false);
|
|
|
link.dispatchEvent(evt);
|
|
|
document.body.removeChild(link);
|
|
|
setZip(new (jszip_min_default())());
|
|
|
});
|
|
|
setAutoHeight(false);
|
|
|
};
|
|
|
(0,_react_17_0_2_react.useEffect)(() => {
|
|
|
initData();
|
|
|
}, [params.homeworkId]);
|
|
|
const initData = () => Comment_async(void 0, null, function* () {
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: Comment_spreadValues(Comment_spreadValues({}, params), otherPramsRef.current || {})
|
|
|
});
|
|
|
getEchartData();
|
|
|
if ((0,authority/* isAdmin */.GJ)())
|
|
|
getData();
|
|
|
});
|
|
|
const columns = [
|
|
|
{
|
|
|
title: "\u5173\u5361",
|
|
|
dataIndex: "name",
|
|
|
render: (text, record, index) => index + 1
|
|
|
},
|
|
|
{
|
|
|
title: "\u4EFB\u52A1\u540D\u79F0",
|
|
|
dataIndex: "name",
|
|
|
render: (text, record, index) => /* @__PURE__ */ Comment_React.createElement("div", null, text, record.complete_status === 4 && /* @__PURE__ */ Comment_React.createElement(util/* HomeWorkShixunDetailStatus */.vA, { status: record.complete_status }))
|
|
|
},
|
|
|
{
|
|
|
title: "\u5F00\u542F\u65F6\u95F4",
|
|
|
dataIndex: "open_time"
|
|
|
},
|
|
|
{
|
|
|
title: "\u4EE3\u7801\u4FEE\u6539\u884C\u6570",
|
|
|
dataIndex: "diff_code_count",
|
|
|
render: (text, record, index) => text || "- -"
|
|
|
},
|
|
|
{
|
|
|
title: "\u8BC4\u6D4B\u6B21\u6570",
|
|
|
dataIndex: "evaluate_count"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5B8C\u6210\u65F6\u95F4",
|
|
|
dataIndex: "finished_time"
|
|
|
},
|
|
|
{
|
|
|
title: "\u5B9E\u8BAD\u8017\u65F6",
|
|
|
dataIndex: "time_consuming"
|
|
|
// render: (text: number) => (toTimeFormat(text))
|
|
|
},
|
|
|
{
|
|
|
title: "\u662F\u5426\u67E5\u770B\u7B54\u6848",
|
|
|
dataIndex: "view_answer",
|
|
|
render: (text) => text ? "\u662F" : "\u5426"
|
|
|
},
|
|
|
{
|
|
|
title: "\u7ECF\u9A8C\u503C",
|
|
|
dataIndex: "experience",
|
|
|
render: (text, record) => /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement("span", { style: { color: parseFloat(record.myself_experience) !== parseFloat(text) ? "red" : "green" } }, record.myself_experience), "/", text)
|
|
|
},
|
|
|
{
|
|
|
title: "\u5173\u5361\u5F97\u5206",
|
|
|
dataIndex: "game_score",
|
|
|
render: (text, record) => /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement("span", { style: { color: parseFloat(record.game_score_full) !== parseFloat(text) ? "red" : "green" } }, text), "/", record.game_score_full)
|
|
|
},
|
|
|
{
|
|
|
title: "\u8C03\u5206",
|
|
|
dataIndex: "game_score",
|
|
|
render: (text, record) => {
|
|
|
if (hasPower) {
|
|
|
return /* @__PURE__ */ Comment_React.createElement(
|
|
|
ScoreInput,
|
|
|
{
|
|
|
max: record.game_score_full,
|
|
|
defaultValue: parseFloat(text),
|
|
|
onBlur: (value) => Comment_async(void 0, null, function* () {
|
|
|
var _a3;
|
|
|
if ((0,authority/* isAssistant */.Rm)() && !((_a3 = classroomList.AssistantObject.practice) == null ? void 0 : _a3.can_appraise)) {
|
|
|
message/* default */.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");
|
|
|
return;
|
|
|
}
|
|
|
const res = yield dispatch({
|
|
|
type: "shixunHomeworks/changeScore",
|
|
|
payload: {
|
|
|
categoryId: params.homeworkId,
|
|
|
"type": "report",
|
|
|
"score": value,
|
|
|
challenge_id: record.challenge_id
|
|
|
}
|
|
|
});
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: Comment_spreadValues(Comment_spreadValues({}, params), otherPramsRef.current || {})
|
|
|
});
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
return text;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
];
|
|
|
let columns1 = [
|
|
|
{
|
|
|
title: "\u5173\u5361",
|
|
|
dataIndex: "order",
|
|
|
key: "order",
|
|
|
render: (text, item, index) => {
|
|
|
return {
|
|
|
children: text,
|
|
|
props: {
|
|
|
rowSpan: item.rowSpan
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
title: "\u4EFB\u52A1\u540D\u79F0",
|
|
|
dataIndex: "name",
|
|
|
key: "name",
|
|
|
render: (text, item, index) => {
|
|
|
return {
|
|
|
children: text,
|
|
|
props: {
|
|
|
rowSpan: item.rowSpan
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
},
|
|
|
{ title: "\u6307\u6807\u540D\u79F0", dataIndex: "target_name", key: "target_name" },
|
|
|
{ title: "\u6307\u6807\u9884\u671F\u7ED3\u679C", dataIndex: "output", key: "output" },
|
|
|
{ title: "\u6307\u6807\u5B9E\u9645\u7ED3\u679C", dataIndex: "actual_output", key: "actual_output" },
|
|
|
{ title: "\u6307\u6807\u5F97\u5206", dataIndex: "test_score", key: "test_score", render: (text, item, index) => /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement("span", { style: { color: parseFloat(item.actual_test_score) !== parseFloat(text) ? "red" : "green" } }, item.actual_test_score), "/", text) },
|
|
|
{
|
|
|
title: "\u6307\u6807\u603B\u5206",
|
|
|
render: (text, item, index) => {
|
|
|
return {
|
|
|
children: /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement("span", { style: { color: parseFloat(item.actual_target_score) !== parseFloat(text) ? "red" : "green" } }, item.actual_target_score), "/", text),
|
|
|
props: {
|
|
|
rowSpan: item.rowSpan
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
dataIndex: "total_target_score",
|
|
|
key: "total_target_score"
|
|
|
}
|
|
|
];
|
|
|
const skip = (type) => {
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {
|
|
|
key: "",
|
|
|
type: 2
|
|
|
}
|
|
|
});
|
|
|
setTimeout(() => {
|
|
|
if (type === "next") {
|
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/shixun_homework/${params.categoryId}/${shixunWorkReport == null ? void 0 : shixunWorkReport.next_student_work_id}/comment`);
|
|
|
} else {
|
|
|
_umi_production_exports.history.push(`/classrooms/${params.coursesId}/shixun_homework/${params.categoryId}/${shixunWorkReport == null ? void 0 : shixunWorkReport.pre_student_work_id}/comment`);
|
|
|
}
|
|
|
}, 200);
|
|
|
};
|
|
|
const changescore = (e) => {
|
|
|
setscore("");
|
|
|
if (e.target.value) {
|
|
|
console.log("\u8FDB\u6765", shixunWorkReport);
|
|
|
e.target.value = e.target.value > shixunWorkReport.repeat_setting_score ? shixunWorkReport.repeat_setting_score : e.target.value;
|
|
|
setscore(e.target.value);
|
|
|
}
|
|
|
};
|
|
|
const gochange = () => Comment_async(void 0, null, function* () {
|
|
|
const res = yield (0,fetch/* default */.ZP)(
|
|
|
`/api/student_works/${shixunWorkReport == null ? void 0 : shixunWorkReport.work_id}/update_repeat_score`,
|
|
|
{
|
|
|
method: "put",
|
|
|
body: {
|
|
|
score
|
|
|
}
|
|
|
}
|
|
|
);
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: Comment_spreadValues(Comment_spreadValues({}, params), otherPramsRef.current || {})
|
|
|
});
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.info("\u64CD\u4F5C\u6210\u529F");
|
|
|
}
|
|
|
});
|
|
|
return /* @__PURE__ */ Comment_React.createElement("section", { className: "bg-fafafa", style: { position: "sticky", top: 0 } }, /* @__PURE__ */ Comment_React.createElement("div", { className: "edu-container mt10", style: { paddingBottom: 100 } }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
skeleton/* default */.Z,
|
|
|
{
|
|
|
loading: loading["shixunHomeworks/getShixunWorkReport"],
|
|
|
active: true,
|
|
|
avatar: { size: 40 },
|
|
|
paragraph: { rows: 5 }
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { className: "edu-container" }, shixunWorkReport.course_id && /* @__PURE__ */ Comment_React.createElement("section", { className: "animated fadeIn" }, /* @__PURE__ */ Comment_React.createElement("aside", { className: "" }, shixunWorkReport.category && /* @__PURE__ */ Comment_React.createElement(breadcrumb/* default */.Z, { separator: ">" }, /* @__PURE__ */ Comment_React.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ Comment_React.createElement(
|
|
|
_umi_production_exports.Link,
|
|
|
{
|
|
|
to: `/classrooms/${shixunWorkReport.course_id}/shixun_homework`
|
|
|
},
|
|
|
shixunWorkReport.course_name
|
|
|
)), /* @__PURE__ */ Comment_React.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ Comment_React.createElement(
|
|
|
_umi_production_exports.Link,
|
|
|
{
|
|
|
to: `/classrooms/${shixunWorkReport.course_id}/shixun_homework/${!shixunWorkReport.category.main ? shixunWorkReport.category.category_id : ""}`
|
|
|
},
|
|
|
shixunWorkReport.category.category_name
|
|
|
)), /* @__PURE__ */ Comment_React.createElement(breadcrumb/* default */.Z.Item, null, /* @__PURE__ */ Comment_React.createElement(
|
|
|
_umi_production_exports.Link,
|
|
|
{
|
|
|
to: `/classrooms/${shixunWorkReport.course_id}/shixun_homework/${shixunWorkReport.homework_common_id}/detail`
|
|
|
},
|
|
|
"\u4F5C\u4E1A\u8BE6\u60C5"
|
|
|
)), /* @__PURE__ */ Comment_React.createElement(breadcrumb/* default */.Z.Item, null, shixunWorkReport.username))), /* @__PURE__ */ Comment_React.createElement("aside", { className: [Commentmodules.title1, "mt20"].join(" ") }, /* @__PURE__ */ Comment_React.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { flex: 1 }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
_umi_production_exports.Link,
|
|
|
{
|
|
|
to: `/classrooms/${shixunWorkReport.course_id}/shixun_homework/${shixunWorkReport.homework_common_id}/detail`
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement(ArrowLeftOutlined/* default */.Z, { className: "font16 c-black" })
|
|
|
), /* @__PURE__ */ Comment_React.createElement("strong", { className: "font20 ml5" }, shixunWorkReport.shixun_name), /* @__PURE__ */ Comment_React.createElement(util/* StatusClassroomsTags */.VV, { temporary: true, status: shixunWorkReport.homework_status })), /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { className: Commentmodules.title1_right }, shixunWorkReport.view_tpi && /* @__PURE__ */ Comment_React.createElement(es_button/* default */.ZP, { onClick: () => {
|
|
|
var _a3, _b3;
|
|
|
(0,util/* openNewWindow */.xg)(`/tasks/${(_b3 = (_a3 = shixunWorkReport == null ? void 0 : shixunWorkReport.shixun_detail) == null ? void 0 : _a3[0]) == null ? void 0 : _b3["game_identifier"]}`);
|
|
|
} }, /* @__PURE__ */ Comment_React.createElement("span", { className: "iconfont icon-yijiandianping mr5" }), "\u67E5\u770B\u5B66\u5458\u5B9E\u8BAD"), (0,authority/* isAdmin */.GJ)() && shixunWorkReport.homework_end === false && !!shixunWorkReport.myshixun_id && /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_button/* default */.ZP,
|
|
|
{
|
|
|
className: "ml10",
|
|
|
onClick: () => Comment_async(void 0, null, function* () {
|
|
|
yield dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {
|
|
|
key: "\u6253\u56DE\u91CD\u505A",
|
|
|
selectArrs: {
|
|
|
myshixun_identifier: shixunWorkReport.myshixun_identifier
|
|
|
},
|
|
|
homework_common_id: _params.categoryId
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement("span", { className: "iconfont icon-dahuizhongzuo3x mr5" }),
|
|
|
"\u6253\u56DE\u91CD\u505A"
|
|
|
), /* @__PURE__ */ Comment_React.createElement(es_button/* default */.ZP, { className: "ml10", onClick: () => exportReport(""), loading: isExportLoading }, /* @__PURE__ */ Comment_React.createElement("span", { className: "iconfont icon-daochu mr5" }), "\u5BFC\u51FA\u5B9E\u8BAD\u62A5\u544A"), (0,authority/* isAdmin */.GJ)() && (shixunWorkReport == null ? void 0 : shixunWorkReport.students_count) > 1 && /* @__PURE__ */ Comment_React.createElement(es_button/* default */.ZP, { className: "ml10", onClick: () => {
|
|
|
es_modal["default"].confirm({
|
|
|
title: "\u9009\u62E9\u5BFC\u51FA\u65B9\u5F0F",
|
|
|
closable: true,
|
|
|
icon: null,
|
|
|
centered: true,
|
|
|
okText: /* @__PURE__ */ Comment_React.createElement(tooltip/* default */.Z, { title: "\u5BFC\u51FA\u65F6\u4E0D\u80FD\u9000\u51FA\u6216\u5173\u95ED\u5BFC\u51FA\u9875\u9762\uFF0C\u53EF\u80FD\u4F1A\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C" }, "\u524D\u7AEF\u5BFC\u51FA"),
|
|
|
cancelText: /* @__PURE__ */ Comment_React.createElement(tooltip/* default */.Z, { title: "\u751F\u6210\u5BFC\u51FA\u4EFB\u52A1\u540E\u53EF\u5173\u95ED\u9875\u9762\uFF0C\u540E\u53F0\u5BFC\u51FA\u6210\u529F\u540E\u5728\u5386\u53F2\u5BFC\u51FA\u9875\u9762\u81EA\u884C\u4E0B\u8F7D\uFF0C\u4E0D\u5F71\u54CD\u5176\u4ED6\u64CD\u4F5C" }, "\u540E\u53F0\u5BFC\u51FA"),
|
|
|
onOk: () => {
|
|
|
exportReport("all");
|
|
|
},
|
|
|
onCancel: () => {
|
|
|
},
|
|
|
cancelButtonProps: {
|
|
|
onClick: () => {
|
|
|
(0,utils_export/* ExportCourseWorkListShixuns */.jj)(
|
|
|
{
|
|
|
categoryId: params.categoryId,
|
|
|
coursesId: params.coursesId
|
|
|
},
|
|
|
"shixun_report"
|
|
|
);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
} }, /* @__PURE__ */ Comment_React.createElement("span", { className: "iconfont icon-daochu mr5" }), "\u5BFC\u51FA\u5168\u90E8\u5B66\u751F\u5B9E\u8BAD\u62A5\u544A"))))), /* @__PURE__ */ Comment_React.createElement("aside", { className: "mt30 relative" })),
|
|
|
/* @__PURE__ */ Comment_React.createElement("aside", { className: "edu-container bg-white", ref: reportElement }, /* @__PURE__ */ Comment_React.createElement("div", { id: "export-all", ref: reportElementInfo }, /* @__PURE__ */ Comment_React.createElement("div", { id: "export-all-1" }, /* @__PURE__ */ Comment_React.createElement("div", { className: Commentmodules.title }, /* @__PURE__ */ Comment_React.createElement("h1", null, "\u603B\u4F53\u8BC4\u4EF7"), /* @__PURE__ */ Comment_React.createElement("div", null, (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_button/* default */.ZP,
|
|
|
{
|
|
|
className: "mr20",
|
|
|
type: "primary",
|
|
|
onClick: () => {
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {
|
|
|
key: "\u66F4\u6539\u70B9\u8BC4",
|
|
|
selectArrs: {
|
|
|
myshixun_identifier: shixunWorkReport.user_id,
|
|
|
data: Comment_spreadValues({}, shixunWorkReport)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement(SolutionOutlined/* default */.Z, null),
|
|
|
shixunWorkReport.has_shixun_work_comment ? "\u66F4\u6539\u70B9\u8BC4" : "\u70B9\u8BC4\u4F5C\u4E1A"
|
|
|
))), /* @__PURE__ */ Comment_React.createElement(divider/* default */.Z, { style: { marginTop: 0 } }), /* @__PURE__ */ Comment_React.createElement(row/* default */.Z, { className: "pl30 pr30" }, /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, null, /* @__PURE__ */ Comment_React.createElement("img", { className: Commentmodules.userPic, src: `${env/* default */.Z.IMG_SERVER}/images/${shixunWorkReport.image_url}`, alt: shixunWorkReport.username })), /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, null, /* @__PURE__ */ Comment_React.createElement("span", { className: "font16 ml40" }, shixunWorkReport.username), /* @__PURE__ */ Comment_React.createElement(util/* HomeWorkShixunDetailStatus */.vA, { status: shixunWorkReport.compelete_status }), /* @__PURE__ */ Comment_React.createElement("ul", { className: Commentmodules.userInfo }, /* @__PURE__ */ Comment_React.createElement("li", null, "\u5B66\u53F7\uFF1A", shixunWorkReport.student_id || "--"), /* @__PURE__ */ Comment_React.createElement("li", null, "\u5206\u73ED\uFF1A", shixunWorkReport.group_name || "--"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("li", null, "\u622A\u6B62\u524D\u5B8C\u6210\u5173\u5361\uFF1A", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-red" }, shixunWorkReport.complete_count), "/", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-red" }, shixunWorkReport.challenges_count)), /* @__PURE__ */ Comment_React.createElement("li", null, "\u6700\u65B0\u5B8C\u6210\u5173\u5361\uFF1A", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-red" }, shixunWorkReport.current_complete_count || "-"), "/", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-red" }, shixunWorkReport.challenges_count)), /* @__PURE__ */ Comment_React.createElement("li", null, "\u5B8C\u6210\u6548\u7387\uFF1A", shixunWorkReport && shixunWorkReport.efficiency === null ? "--" : shixunWorkReport && shixunWorkReport.efficiency), /* @__PURE__ */ Comment_React.createElement("li", null, "\u8BFE\u5802\u6700\u9AD8\u5B8C\u6210\u6548\u7387\uFF1A", shixunWorkReport && shixunWorkReport.max_efficiency === null ? "--" : shixunWorkReport && shixunWorkReport.max_efficiency))), /* @__PURE__ */ Comment_React.createElement("ul", { className: [Commentmodules.listItem, "mt10"].join(" ") }, /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u901A\u5173\u65F6\u95F4"), /* @__PURE__ */ Comment_React.createElement("div", { className: "c-light-black mt20" }, shixunWorkReport && shixunWorkReport.passed_time === null || shixunWorkReport && shixunWorkReport.passed_time === "--" ? "--" : dayjs_min_default()(shixunWorkReport && shixunWorkReport.passed_time).format("YYYY-MM-DD HH:mm"))), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u8BA1\u65F6\u89C4\u5219", /* @__PURE__ */ Comment_React.createElement("i", { onClick: (e) => {
|
|
|
e.stopPropagation();
|
|
|
e.preventDefault();
|
|
|
setIsshow(true);
|
|
|
}, style: { marginLeft: 4, color: "#145DFF", fontSize: 16, cursor: "pointer" }, className: "iconfont icon-tishixiaowenhao" })), /* @__PURE__ */ Comment_React.createElement("div", { className: "c-light-black mt20" }, shixunWorkReport == null ? void 0 : shixunWorkReport.human_training_time_rules)), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u5B9E\u8BAD\u603B\u8017\u65F6", /* @__PURE__ */ Comment_React.createElement("i", { onClick: (e) => {
|
|
|
e.stopPropagation();
|
|
|
e.preventDefault();
|
|
|
setIsshows(true);
|
|
|
}, style: { marginLeft: 4, color: "#145DFF", fontSize: 16, cursor: "pointer" }, className: "iconfont icon-tishixiaowenhao" })), /* @__PURE__ */ Comment_React.createElement("div", { className: "c-light-black mt20" }, shixunWorkReport.time_consuming)), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u8BC4\u6D4B\u6B21\u6570"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, shixunWorkReport.evaluate_count)), (shixunWorkReport == null ? void 0 : shixunWorkReport.eff_score_full) && /* @__PURE__ */ Comment_React.createElement(Comment_React.Fragment, null, /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u5173\u5361\u5F97\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-orange" }, shixunWorkReport.challenge_score), "/", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-light-black" }, shixunWorkReport.challenge_score_full))), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u6548\u7387\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-orange" }, shixunWorkReport.eff_score), "/", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-light-black" }, shixunWorkReport.eff_score_full)))), (shixunWorkReport == null ? void 0 : shixunWorkReport.have_repeat) && (shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_minus_score) !== 0 && /* @__PURE__ */ Comment_React.createElement("li", { style: { position: "relative" } }, /* @__PURE__ */ Comment_React.createElement("div", { style: { display: "flex", justifyContent: "space-between" } }, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u67E5\u91CD\u6263\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { style: {
|
|
|
// display: "flex",
|
|
|
// flexDirection: "column",
|
|
|
// justifyContent: "space-between",
|
|
|
position: "absolute",
|
|
|
fontSize: "10px",
|
|
|
color: "white",
|
|
|
// height: "43px",
|
|
|
left: "57px",
|
|
|
width: "46px",
|
|
|
bottom: "72px"
|
|
|
} }, (shixunWorkReport == null ? void 0 : shixunWorkReport.review_rate) ? /* @__PURE__ */ Comment_React.createElement(
|
|
|
"span",
|
|
|
{
|
|
|
style: { background: "#0152d9", borderRadius: "6px 6px 6px 0", cursor: "pointer" },
|
|
|
onClick: () => {
|
|
|
if ((shixunWorkReport == null ? void 0 : shixunWorkReport.review_id) && isTeacher) {
|
|
|
localStorage.setItem("studentDetial", window.location.pathname);
|
|
|
_umi_production_exports.history.push(
|
|
|
{
|
|
|
pathname: `/classrooms/:coursesId/shixun_homework/${params.categoryId}/review_detail/${shixunWorkReport == null ? void 0 : shixunWorkReport.review_id}`
|
|
|
}
|
|
|
);
|
|
|
} else {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
shixunWorkReport.review_rate.toFixed(1),
|
|
|
"%"
|
|
|
) : /* @__PURE__ */ Comment_React.createElement("span", { style: { background: "#0152d9", borderRadius: "6px 6px 6px 0" } }, "- -"))), isTeacher ? /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
input["default"],
|
|
|
{
|
|
|
style: { width: "45px", height: "22px" },
|
|
|
value: score,
|
|
|
onChange: (e) => {
|
|
|
changescore(e);
|
|
|
},
|
|
|
onBlur: gochange,
|
|
|
disabled: isDisabled
|
|
|
}
|
|
|
), " / ", shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_setting_score) : /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_minus_score, " / ", shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_setting_score)), console.log("sssssssssssssssssssssss", shixunWorkReport == null ? void 0 : shixunWorkReport.have_repeat, shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_minus_score), (shixunWorkReport == null ? void 0 : shixunWorkReport.have_repeat) && (shixunWorkReport == null ? void 0 : shixunWorkReport.repeat_minus_score) === 0 && /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u67E5\u91CD\u6263\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, " - -")), !(shixunWorkReport == null ? void 0 : shixunWorkReport.have_repeat) && /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u67E5\u91CD\u6263\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, " - -")), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u8FDF\u4EA4\u6263\u5206"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement("span", null, shixunWorkReport.late_penalty || "- -"))), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u6700\u7EC8\u6210\u7EE9"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-orange" }, last_score), "/", /* @__PURE__ */ Comment_React.createElement("span", { className: "c-light-black" }, shixunWorkReport.all_work_score))), /* @__PURE__ */ Comment_React.createElement("li", null, /* @__PURE__ */ Comment_React.createElement("strong", null, "\u603B\u8BC4"), /* @__PURE__ */ Comment_React.createElement("div", { className: "mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-orange" }, shixunWorkReport.overall_appraisal))))), /* @__PURE__ */ Comment_React.createElement(divider/* default */.Z, { style: { margin: 0 } }), (shixunWorkReport.work_comment_hidden || shixunWorkReport.work_comment) && /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { flex: 1 }, /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u70B9\u8BC4\u5185\u5BB9")), /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { className: "pr30" }, (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ Comment_React.createElement(es_button/* default */.ZP, { onClick: () => Comment_async(void 0, null, function* () {
|
|
|
es_modal["default"].confirm({
|
|
|
centered: true,
|
|
|
okText: "\u786E\u5B9A",
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
title: "\u63D0\u793A",
|
|
|
icon: /* @__PURE__ */ Comment_React.createElement(ExclamationCircleOutlined/* default */.Z, null),
|
|
|
content: "\u662F\u5426\u786E\u8BA4\u5220\u9664\uFF1F",
|
|
|
onOk() {
|
|
|
return Comment_async(this, null, function* () {
|
|
|
const res = yield (0,service_shixunHomeworks/* deleteStudentWorkScoreCommit */.gZ)({
|
|
|
comment_id: shixunWorkReport.comment_id,
|
|
|
homeworkId: params.homeworkId
|
|
|
});
|
|
|
if (res.status === 0) {
|
|
|
message/* default */.ZP.success("\u5220\u9664\u6210\u529F");
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/getShixunWorkReport",
|
|
|
payload: Comment_spreadValues(Comment_spreadValues({}, params), otherPramsRef.current || {})
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}) }, /* @__PURE__ */ Comment_React.createElement(DeleteOutlined/* default */.Z, null), "\u5220\u9664"))), /* @__PURE__ */ Comment_React.createElement(divider/* default */.Z, { style: { margin: 0 } }), shixunWorkReport.work_comment && /* @__PURE__ */ Comment_React.createElement("aside", { className: "pl30 pr30 mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-light-black font12" }, "# \u5B66\u751F\u548C\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement(RenderHtml/* default */.Z, { value: shixunWorkReport.work_comment })), shixunWorkReport.work_comment_hidden && /* @__PURE__ */ Comment_React.createElement("aside", { className: "pl30 pr30 mt20" }, /* @__PURE__ */ Comment_React.createElement("span", { className: "c-light-black font12" }, "# \u4EC5\u8BFE\u5802\u8001\u5E08\u53EF\u89C1"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement(RenderHtml/* default */.Z, { value: shixunWorkReport.work_comment_hidden }))), (shixunWorkReport == null ? void 0 : shixunWorkReport.action_analysis) && /* @__PURE__ */ Comment_React.createElement(components_ShixunPhoto, { detailData: shixunWorkReport }), /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u9636\u6BB5\u6210\u7EE9"), /* @__PURE__ */ Comment_React.createElement("aside", { className: "pl30 pr30" }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
table["default"],
|
|
|
{
|
|
|
dataSource: shixunWorkReport.stage_list,
|
|
|
rowKey: (r) => r == null ? void 0 : r.challenge_id,
|
|
|
pagination: false,
|
|
|
columns
|
|
|
}
|
|
|
)), ((_b2 = shixunWorkReport == null ? void 0 : shixunWorkReport.target_test_sets) == null ? void 0 : _b2.length) > 0 && /* @__PURE__ */ Comment_React.createElement("div", null, /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u6307\u6807\u6210\u7EE9"), /* @__PURE__ */ Comment_React.createElement("aside", { className: "pl30 pr30" }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
table["default"],
|
|
|
{
|
|
|
dataSource: datatables,
|
|
|
rowKey: (r) => r == null ? void 0 : r.challenge_id,
|
|
|
pagination: false,
|
|
|
bordered: true,
|
|
|
columns: columns1
|
|
|
}
|
|
|
))), (shixunWorkReport == null ? void 0 : shixunWorkReport.work_description) && /* @__PURE__ */ Comment_React.createElement(Comment_React.Fragment, null, /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u4E2A\u4EBA\u603B\u7ED3"), /* @__PURE__ */ Comment_React.createElement("aside", { className: "pl30 pr30" }, /* @__PURE__ */ Comment_React.createElement(RenderHtml/* default */.Z, { value: shixunWorkReport == null ? void 0 : shixunWorkReport.work_description }))), /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u56FE\u5F62\u7EDF\u8BA1"), /* @__PURE__ */ Comment_React.createElement(EchartStatic, { data: chartData }), /* @__PURE__ */ Comment_React.createElement("h1", { className: Commentmodules.title }, "\u5B9E\u8BAD\u8BE6\u60C5")), /* @__PURE__ */ Comment_React.createElement(ShixunStatic, { autoHeight }))),
|
|
|
(0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ Comment_React.createElement("aside", { className: `${Commentmodules.footerBar} ${isExportLoading ? Commentmodules.footerBarStatic : ""}` }, /* @__PURE__ */ Comment_React.createElement("aside", { className: "edu-container" }, /* @__PURE__ */ Comment_React.createElement(row/* default */.Z, { align: "middle" }, /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { flex: "1" }, /* @__PURE__ */ Comment_React.createElement(_umi_production_exports.Link, { className: Commentmodules.exitComment, to: `/classrooms/${params.coursesId}/shixun_homework/${params.categoryId}/detail` }, "\u8FD4\u56DE\u5217\u8868")), /* @__PURE__ */ Comment_React.createElement(col/* default */.Z, { flex: "1", className: "tr" }, /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_button/* default */.ZP,
|
|
|
{
|
|
|
type: "default",
|
|
|
disabled: !(shixunWorkReport == null ? void 0 : shixunWorkReport.pre_student_work_id),
|
|
|
onClick: () => skip()
|
|
|
},
|
|
|
"\u4E0A\u4E00\u4E2A"
|
|
|
), /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_button/* default */.ZP,
|
|
|
{
|
|
|
type: "default",
|
|
|
style: { marginLeft: "20px", marginRight: "20px" },
|
|
|
disabled: !(shixunWorkReport == null ? void 0 : shixunWorkReport.next_student_work_id),
|
|
|
onClick: () => skip("next")
|
|
|
},
|
|
|
"\u4E0B\u4E00\u4E2A"
|
|
|
), (0,authority/* isAdmin */.GJ)() && /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_button/* default */.ZP,
|
|
|
{
|
|
|
type: "primary",
|
|
|
onClick: () => Comment_async(void 0, null, function* () {
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {
|
|
|
key: "\u66F4\u6539\u70B9\u8BC4",
|
|
|
selectArrs: {
|
|
|
myshixun_identifier: shixunWorkReport.user_id,
|
|
|
data: Comment_spreadValues({}, shixunWorkReport)
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
},
|
|
|
"\u70B9\u8BC4\u4F5C\u4E1A"
|
|
|
)))))
|
|
|
)), /* @__PURE__ */ Comment_React.createElement(ChangeCommit, null), /* @__PURE__ */ Comment_React.createElement(Redo/* default */.Z, null), /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_modal["default"],
|
|
|
{
|
|
|
open: isshow,
|
|
|
width: 860,
|
|
|
centered: true,
|
|
|
onCancel: () => {
|
|
|
setIsshow(false);
|
|
|
},
|
|
|
title: "\u8BA1\u65F6\u89C4\u5219\u8BF4\u660E",
|
|
|
footer: null
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { style: { color: "#333333", fontWeight: 400 } }, /* @__PURE__ */ Comment_React.createElement("span", { style: { fontWeight: 500 } }, "1\u3001\u9875\u9762\u505C\u7559\u65F6\u957F"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", null, "\u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", null, " \u5B66\u751F\u8FDB\u5165\u5173\u5361\u7684\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u82E5\u5B66\u751F\u5173\u95ED/\u9000\u51FA\u7B54\u9898\u9875\u9762\uFF0C\u5219\u8BA1\u65F6\u6682\u505C\uFF0C\u518D\u6B21\u8FDB\u5165\u7B54\u9898\u9875\u9762\u65F6\u5F00\u59CB\u7D2F\u8BA1\u8BA1\u65F6\u76F4\u81F3\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\uFF1B"), /* @__PURE__ */ Comment_React.createElement("span", { style: { color: "#FA6400", display: "flex", height: 34, alignItems: "center" } }, " \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "), /* @__PURE__ */ Comment_React.createElement("span", null, "a\u3001\u5B66\u751F\u8FDB\u5165\u5173\u5361\u770B\u5B8C\u9898\u540E\uFF0C\u9000\u51FA\u7B54\u9898\u9875\u9762\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u590D\u5236\u8FDB\u5E73\u53F0\u7B54\u9898\u9875\u9762\u8FDB\u884C\u8BC4\u6D4B\uFF0C\u65E0\u6CD5\u8BC4\u4F30\u5B66\u751F\u7684\u5B66\u4E60\u548C\u601D\u8003\u65F6\u95F4\u3002")),
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { style: { color: "#333333", marginTop: 20, fontWeight: 400 } }, /* @__PURE__ */ Comment_React.createElement("span", { style: { fontWeight: 500 } }, "2\u3001\u5173\u5361\u603B\u8017\u65F6"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", { style: {} }, "\u5B66\u751F\u7B2C\u4E00\u6B21\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u8BC4\u6D4B\u901A\u8FC7\uFF0C\u5219\u8BA1\u65F6\u7ED3\u675F\u3002 "), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", null, " \u53E6\uFF0C\u5373\u4F7F\u5173\u5361\u95EF\u5173\u8FC7\u7A0B\u4E2D\uFF0C\u5B66\u751F\u9000\u51FA/\u5173\u95ED\u7B54\u9898\u9875\u9762\uFF0C\u4E5F\u5C06\u6301\u7EED\u8BA1\u65F6\uFF0C\u76F4\u81F3\u8BE5\u5173\u5361\u901A\u8FC7\u3002"), /* @__PURE__ */ Comment_React.createElement("span", { style: { color: "#FA6400", display: "flex", height: 44, paddingTop: 10 } }, " \u53EF\u80FD\u4F1A\u9020\u6210\u65F6\u957F\u8BC4\u4F30\u4E0E\u5B9E\u9645\u505A\u9898\u80FD\u529B\u4E0D\u7B26\u7684\u60C5\u51B5 "), /* @__PURE__ */ Comment_React.createElement("span", null, "a\u3001\u5B66\u751F\u4ECE\u5176\u4ED6\u540C\u5B66\u5904\u770B\u5230\u9898\u76EE\u540E\uFF0C\u5B8C\u6210\u4EE3\u7801\u8BBE\u8BA1\uFF0C\u518D\u8FDB\u5165\u5173\u5361\u7B54\u9898\u9875\u9762\uFF0C\u5C06\u5DF2\u5B8C\u6210\u7684\u4EE3\u7801\u590D\u5236\u81F3\u5E73\u53F0\u8FDB\u884C\u8BC4\u6D4B\uFF1B"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", null, "b\u3001\u5B66\u751F\u7B2C\u4E00\u6B21\u6253\u5F00\u5173\u5361\u540E\uFF0C\u56E0\u4E3A\u67D0\u79CD\u539F\u56E0\u79BB\u5F00\u9875\u9762\uFF0C\u65F6\u9694\u591A\u65E5\u624D\u518D\u6B21\u8FDB\u5165\u5E73\u53F0\u95EF\u5173\uFF0C\u5C31\u4F1A\u5BFC\u81F4\u5B66\u751F\u5173\u5361\u603B\u8017\u65F6\u8FC7\u957F\uFF1B")),
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { style: { color: "#333333", marginTop: 20, fontWeight: 400 } }, /* @__PURE__ */ Comment_React.createElement("span", { style: { fontWeight: 500 } }, "3\u3001\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", { style: {} }, "\u4ECE\u8001\u5E08\u53D1\u5E03\u7684\u5B9E\u8BAD\u4F5C\u4E1A\u5F00\u59CB\u65F6\u95F4\uFF0C\u5F00\u59CB\u8BA1\u65F6\uFF0C\u76F4\u81F3\u5B66\u751F\u5B9E\u8BAD\u901A\u5173\uFF08\u5305\u62EC\u8FDF\u4EA4\u901A\u5173\uFF09\uFF0C\u7ED3\u675F\u8BA1\u65F6\u3002\u5982\u679C\u5B66\u751F\u672A\u901A\u5173\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u8001\u5E08\u8BBE\u7F6E\u7684\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\uFF0C\u5982\u679C\u8001\u5E08\u5F00\u542F\u4E86\u8865\u4EA4\uFF0C\u5219\u8BE5\u751F\u7684\u95EF\u5173\u8017\u65F6\u4E3A\u5B9E\u8BAD\u5F00\u59CB\u65F6\u95F4\u81F3\u5B9E\u8BAD\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u3002")),
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { style: { color: "#333333", marginTop: 20, fontWeight: 400 } }, /* @__PURE__ */ Comment_React.createElement("span", { style: { fontWeight: 500 } }, "\u89C4\u5219\u76EE\u7684"), /* @__PURE__ */ Comment_React.createElement("br", null), /* @__PURE__ */ Comment_React.createElement("span", { style: {} }, "\u9F13\u52B1\u5B66\u751F\u5728\u5B9E\u8BAD\u4F5C\u4E1A\u53D1\u5E03\u7684\u7B2C\u4E00\u65F6\u95F4\uFF0C\u7ACB\u5373\u767B\u5F55\u5E73\u53F0\u5B8C\u6210\u5B9E\u8BAD\u4F5C\u4E1A\u7684\u901A\u5173\u3002"))
|
|
|
), /* @__PURE__ */ Comment_React.createElement(
|
|
|
es_modal["default"],
|
|
|
{
|
|
|
open: isshows,
|
|
|
title: "\u5B9E\u8BAD\u603B\u8017\u65F6\u8BF4\u660E",
|
|
|
centered: true,
|
|
|
footer: null,
|
|
|
onCancel: () => {
|
|
|
setIsshows(false);
|
|
|
},
|
|
|
width: 600
|
|
|
},
|
|
|
/* @__PURE__ */ Comment_React.createElement("div", { style: { fontWeight: 400, color: "#333333" } }, /* @__PURE__ */ Comment_React.createElement("div", null, "1\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C", /* @__PURE__ */ Comment_React.createElement("span", { style: { color: "#145DFF" } }, "\u9875\u9762\u505C\u7559\u65F6\u957F"), "\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"), /* @__PURE__ */ Comment_React.createElement("div", { style: { margin: "20px 0px" } }, "2\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C", /* @__PURE__ */ Comment_React.createElement("span", { style: { color: "#145DFF" } }, "\u5173\u5361\u603B\u8017\u65F6"), "\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u6240\u6709\u5173\u5361\u8017\u65F6\u76F8\u52A0\u4E4B\u548C\uFF1B"), /* @__PURE__ */ Comment_React.createElement("div", null, "3\u3001\u5F53\u8BA1\u65F6\u89C4\u5219\u4E3A\u201C", /* @__PURE__ */ Comment_React.createElement("span", { style: { color: "#145DFF" } }, "\u4F5C\u4E1A\u901A\u5173\u65F6\u957F"), "\u201D\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u901A\u5173\u65F6\u95F4\uFF0C\u5F53\u5B66\u751F\u672A\u901A\u5173\u65F6\uFF0C\u5B9E\u8BAD\u603B\u8017\u65F6\u4E3A\u5B9E\u8BAD\u53D1\u5E03\u65F6\u95F4\u81F3\u5B9E\u8BAD\u622A\u6B62\u65F6\u95F4\u3002"))
|
|
|
));
|
|
|
};
|
|
|
/* harmony default export */ var Comment = ((0,_umi_production_exports.connect)(
|
|
|
({
|
|
|
shixunHomeworks,
|
|
|
classroomList,
|
|
|
loading,
|
|
|
globalSetting,
|
|
|
user
|
|
|
}) => ({
|
|
|
shixunHomeworks,
|
|
|
classroomList,
|
|
|
globalSetting,
|
|
|
loading: loading.effects,
|
|
|
user
|
|
|
})
|
|
|
)(Comment_ShixunsListPage));
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 4962:
|
|
|
/*!***************************************************************************************************!*\
|
|
|
!*** ./src/pages/Classrooms/Lists/ShixunHomeworks/Detail/components/WorkList/components/Redo.tsx ***!
|
|
|
\***************************************************************************************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 43418);
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! antd */ 8591);
|
|
|
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/fetch */ 51165);
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! umi */ 67866);
|
|
|
/* harmony import */ var _utils_authority__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/authority */ 88141);
|
|
|
var __async = (__this, __arguments, generator) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var fulfilled = (value) => {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var rejected = (value) => {
|
|
|
try {
|
|
|
step(generator.throw(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const DelShixun = ({ shixunHomeworks, classroomList, dispatch }) => {
|
|
|
const params = (0,umi__WEBPACK_IMPORTED_MODULE_2__.useParams)();
|
|
|
return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__["default"],
|
|
|
{
|
|
|
centered: true,
|
|
|
title: "\u63D0\u793A",
|
|
|
open: shixunHomeworks.actionTabs.key === "\u6253\u56DE\u91CD\u505A" ? true : false,
|
|
|
okText: "\u786E\u5B9A",
|
|
|
cancelText: "\u53D6\u6D88",
|
|
|
onOk: () => __async(void 0, null, function* () {
|
|
|
var _a, _b, _c, _d;
|
|
|
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_3__/* .isAssistant */ .Rm)() && !((_a = classroomList.AssistantObject.practice) == null ? void 0 : _a.can_redo)) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");
|
|
|
return;
|
|
|
}
|
|
|
const res = yield (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP)(
|
|
|
`/api/myshixuns/${shixunHomeworks.actionTabs.selectArrs.myshixun_identifier}/reset_my_game.json`,
|
|
|
{
|
|
|
method: "GET",
|
|
|
params: { course_id: params.coursesId, homework_common_id: shixunHomeworks.actionTabs.homework_common_id }
|
|
|
}
|
|
|
);
|
|
|
if (res.shixun_identifier) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .ZP.success("\u64CD\u4F5C\u6210\u529F");
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {}
|
|
|
});
|
|
|
const newStudentWorkId = (_c = (_b = res == null ? void 0 : res.new_works) == null ? void 0 : _b.find((item) => `${item.homework_common_id}` === params.categoryId)) == null ? void 0 : _c.id;
|
|
|
if ((0,_utils_authority__WEBPACK_IMPORTED_MODULE_3__/* .isAssistant */ .Rm)() && !((_d = classroomList.AssistantObject.practice) == null ? void 0 : _d.can_view)) {
|
|
|
return;
|
|
|
}
|
|
|
umi__WEBPACK_IMPORTED_MODULE_2__.history.replace(`/classrooms/${params.coursesId}/shixun_homework/${params.categoryId}/${newStudentWorkId}/comment`);
|
|
|
}
|
|
|
}),
|
|
|
onCancel: () => {
|
|
|
dispatch({
|
|
|
type: "shixunHomeworks/setActionTabs",
|
|
|
payload: {}
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, "\u8BE5\u4F5C\u4E1A\u5C06\u88AB\u6253\u56DE\u91CD\u505A\uFF0C\u5B66\u751F\u5B9E\u8BAD\u8BB0\u5F55\u5C06\u88AB\u6E05\u7A7A!"),
|
|
|
/* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("p", null, "\u786E\u5B9A\u6253\u56DE?")
|
|
|
);
|
|
|
};
|
|
|
/* harmony default export */ __webpack_exports__.Z = ((0,umi__WEBPACK_IMPORTED_MODULE_2__.connect)(
|
|
|
({ shixunHomeworks, classroomList }) => ({
|
|
|
shixunHomeworks,
|
|
|
classroomList
|
|
|
})
|
|
|
)(DelShixun));
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
/***/ 70197:
|
|
|
/*!*****************************!*\
|
|
|
!*** ./src/utils/export.ts ***!
|
|
|
\*****************************/
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
/* harmony export */ AD: function() { return /* binding */ ExportCollegeStudentsInfo; },
|
|
|
/* harmony export */ D9: function() { return /* binding */ ExportStudentanalysis; },
|
|
|
/* harmony export */ Hp: function() { return /* binding */ ExportCourseWorkListExercise; },
|
|
|
/* harmony export */ IM: function() { return /* binding */ get_ecs_attachment; },
|
|
|
/* harmony export */ Iy: function() { return /* binding */ ExportCourseWorkListScores; },
|
|
|
/* harmony export */ KM: function() { return /* binding */ getmember_works; },
|
|
|
/* harmony export */ MJ: function() { return /* binding */ ExportCourseWorkListExerciseWord; },
|
|
|
/* harmony export */ Ne: function() { return /* binding */ getec_training_objectives; },
|
|
|
/* harmony export */ ON: function() { return /* binding */ exportPaperlibraryPaper; },
|
|
|
/* harmony export */ Uj: function() { return /* binding */ exportTaskPass; },
|
|
|
/* harmony export */ VY: function() { return /* binding */ getrank_list; },
|
|
|
/* harmony export */ YO: function() { return /* binding */ exportCommitResultWord; },
|
|
|
/* harmony export */ YX: function() { return /* binding */ exportClassroomsPaper; },
|
|
|
/* harmony export */ Zn: function() { return /* binding */ ExportCourseInfo; },
|
|
|
/* harmony export */ _g: function() { return /* binding */ exportMoocrecord; },
|
|
|
/* harmony export */ _k: function() { return /* binding */ getDownFile; },
|
|
|
/* harmony export */ c6: function() { return /* binding */ ExportVideoStudy; },
|
|
|
/* harmony export */ cr: function() { return /* binding */ ExportCourseActScore; },
|
|
|
/* harmony export */ eV: function() { return /* binding */ ExportCourseStudentsInfo; },
|
|
|
/* harmony export */ fi: function() { return /* binding */ ExportCourseMemberScores; },
|
|
|
/* harmony export */ gh: function() { return /* binding */ ExportAttendance; },
|
|
|
/* harmony export */ hS: function() { return /* binding */ getec_courses; },
|
|
|
/* harmony export */ iA: function() { return /* binding */ ExportCourseAndOther; },
|
|
|
/* harmony export */ j6: function() { return /* binding */ ExportCourseTotalScore; },
|
|
|
/* harmony export */ je: function() { return /* binding */ ExportExerciseStudentScores; },
|
|
|
/* harmony export */ jj: function() { return /* binding */ ExportCourseWorkListShixuns; },
|
|
|
/* harmony export */ kS: function() { return /* binding */ getquestion_rank_list; },
|
|
|
/* harmony export */ o6: function() { return /* binding */ ExportVideoStudent; },
|
|
|
/* harmony export */ pO: function() { return /* binding */ exportUserExerciseDetail; },
|
|
|
/* harmony export */ rQ: function() { return /* binding */ ExportProblemset; },
|
|
|
/* harmony export */ sA: function() { return /* binding */ ExportPollsScores; },
|
|
|
/* harmony export */ xm: function() { return /* binding */ getecyears; },
|
|
|
/* harmony export */ xo: function() { return /* binding */ getec_graduation_requirements; },
|
|
|
/* harmony export */ y8: function() { return /* binding */ Exportcompetitions; },
|
|
|
/* harmony export */ yd: function() { return /* binding */ ExportStartUser; }
|
|
|
/* harmony export */ });
|
|
|
/* unused harmony export ExportCourseWorkListAppendix */
|
|
|
/* harmony import */ var _service_classrooms__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/service/classrooms */ 65998);
|
|
|
/* harmony import */ var umi__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! umi */ 67866);
|
|
|
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./util */ 13462);
|
|
|
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 8591);
|
|
|
/* harmony import */ var _env__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./env */ 21873);
|
|
|
var __defProp = Object.defineProperty;
|
|
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
|
var __spreadValues = (a, b) => {
|
|
|
for (var prop in b || (b = {}))
|
|
|
if (__hasOwnProp.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
if (__getOwnPropSymbols)
|
|
|
for (var prop of __getOwnPropSymbols(b)) {
|
|
|
if (__propIsEnum.call(b, prop))
|
|
|
__defNormalProp(a, prop, b[prop]);
|
|
|
}
|
|
|
return a;
|
|
|
};
|
|
|
var __async = (__this, __arguments, generator) => {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
var fulfilled = (value) => {
|
|
|
try {
|
|
|
step(generator.next(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var rejected = (value) => {
|
|
|
try {
|
|
|
step(generator.throw(value));
|
|
|
} catch (e) {
|
|
|
reject(e);
|
|
|
}
|
|
|
};
|
|
|
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
|
step((generator = generator.apply(__this, __arguments)).next());
|
|
|
});
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const showLoading = () => {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "globalSetting/setGlobalLoading",
|
|
|
payload: { show: true, text: "\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..." }
|
|
|
});
|
|
|
};
|
|
|
const hideLoading = () => {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "globalSetting/setGlobalLoading",
|
|
|
payload: { show: false, text: "" }
|
|
|
});
|
|
|
};
|
|
|
const ExportCourseInfo = (params) => __async(void 0, null, function* () {
|
|
|
showLoading();
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseInfo */ .YR)(__spreadValues({}, params));
|
|
|
if (res.status === 0)
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFileIframe */ .QH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params.coursesId}/export_couser_info.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
hideLoading();
|
|
|
});
|
|
|
const ExportCourseActScore = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseActScore */ .yS)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_member_act_score`
|
|
|
);
|
|
|
} else if (res.status === -2) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_member_act_score`
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseMemberScores = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseMemberScores */ .W0)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_score`
|
|
|
);
|
|
|
} else if (res.status === -4) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_score`
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseAndOther = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseAndOther */ .Nl)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_exercise_and_other`
|
|
|
);
|
|
|
} else if (res.status === -4) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_exercise_and_other`
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
const ExportStartUser = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportStartUser */ .IU)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/export_star_user`
|
|
|
);
|
|
|
} else if (res.status === -4) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/export_star_user`
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
const exportMoocrecord = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportMoocrecords */ .td)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_exercise_and_other`
|
|
|
);
|
|
|
} else if (res.status === -2) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_exercise_and_other`
|
|
|
);
|
|
|
} else if (res.status === -4) {
|
|
|
return res;
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseTotalScore = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseTotalScore */ .QX)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_homework`
|
|
|
);
|
|
|
} else if (res.status === -4) {
|
|
|
return res;
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(
|
|
|
`/classrooms/${params.coursesId}/exportlist/course_total_homework`
|
|
|
);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseWorkListShixuns = (params, type) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseWorkListShiXuns */ .o_)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseWorkListExercise = (params, type) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseWorkListExercise */ .ZL)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseWorkListExerciseWord = (params, type) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseWorkListExerciseWord */ .vV)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseWorkListScores = (params, type) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportCourseWorkListScores */ .aP)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/${type}`);
|
|
|
}
|
|
|
});
|
|
|
const ExportCourseWorkListAppendix = (params) => __async(void 0, null, function* () {
|
|
|
showLoading();
|
|
|
const res = yield exportCourseWorkListAppendix(__spreadValues({}, params));
|
|
|
if (res.status === 0)
|
|
|
yield downLoadFileIframe(
|
|
|
"",
|
|
|
setUrlQuery({
|
|
|
url: ENV.API_SERVER + `/api/homework_commons/${params.categoryId}/works_list.zip`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
hideLoading();
|
|
|
});
|
|
|
const ExportPollsScores = (params) => __async(void 0, null, function* () {
|
|
|
showLoading();
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportPollsScores */ .MJ)(__spreadValues({}, params));
|
|
|
if (res.status === 0)
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/polls/${params.categoryId}/commit_result.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
hideLoading();
|
|
|
});
|
|
|
const ExportAttendance = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params.coursesId}/attendances/export_xlsx_data.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportVideoStudent = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params.coursesId}/video_study_statics.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportVideoStudy = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params.coursesId}/export_video_study.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportCourseStudentsInfo = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params.coursesId}/export_course_students_info.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportCollegeStudentsInfo = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/school_manages/students.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportProblemset = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/item_banks/export.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const Exportcompetitions = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/competitions/region_reports.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportExerciseStudentScores = (params) => __async(void 0, null, function* () {
|
|
|
const res = yield (0,_service_classrooms__WEBPACK_IMPORTED_MODULE_0__/* .exportExerciseStudentScores */ .Uy)(__spreadValues({}, params));
|
|
|
if (res.status === 0) {
|
|
|
antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F");
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/exercise_score`);
|
|
|
} else if (res.status === -3) {
|
|
|
(0,umi__WEBPACK_IMPORTED_MODULE_1__.getDvaApp)()._store.dispatch({
|
|
|
type: "classroomList/setActionTabs",
|
|
|
payload: { key: "\u5BFC\u51FA\u63D0\u9192" }
|
|
|
});
|
|
|
umi__WEBPACK_IMPORTED_MODULE_1__.history.push(`/classrooms/${params.coursesId}/exportlist/exercise_score`);
|
|
|
}
|
|
|
});
|
|
|
const getDownFile = (params) => __async(void 0, null, function* () {
|
|
|
console.log("----------", "\u8C03\u7528\u4E0B\u8F7D");
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/export_records/${params.id}.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const getecyears = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/ec_major_schools/0/ec_years.xlsx`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const ExportStudentanalysis = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/${params == null ? void 0 : params.coursesId}/${params.menuKey}_statistic.xlsx?${params.checkedList.map((item) => `course_group_id[]=${item}`).join("&")}`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const getec_training_objectives = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/ec_years/${params == null ? void 0 : params.ec_year_id}/ec_training_objectives.xlsx`, query: params }));
|
|
|
});
|
|
|
const get_ecs_attachment = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(params == null ? void 0 : params.name, (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/attachments/get_ecs_attachment.docx`, query: params }));
|
|
|
});
|
|
|
const getec_courses = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/ec_years/${params == null ? void 0 : params.ec_year_id}/ec_courses.xlsx`, query: params }));
|
|
|
});
|
|
|
const getec_graduation_requirements = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/ec_years/${params == null ? void 0 : params.ec_year_id}/ec_graduation_requirements.xlsx`, query: params }));
|
|
|
});
|
|
|
const getrank_list = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/rank_list.xlsx`, query: params }));
|
|
|
});
|
|
|
const getquestion_rank_list = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/courses/question_rank_list.xlsx`, query: params }));
|
|
|
});
|
|
|
const exportPaperlibraryPaper = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/examination_banks/${params.id}.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const exportClassroomsPaper = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/exercises/${params.categoryId}.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const exportCommitResultWord = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/polls/${params == null ? void 0 : params.id}/commit_result.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const exportTaskPass = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
"",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/paths/get_task_pass.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const exportUserExerciseDetail = (params, title) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)(
|
|
|
title || "",
|
|
|
(0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({
|
|
|
url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/exercises/${params == null ? void 0 : params.exercise_id}/consult_exercise.json`,
|
|
|
query: params
|
|
|
})
|
|
|
);
|
|
|
});
|
|
|
const getmember_works = (params) => __async(void 0, null, function* () {
|
|
|
yield (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .downLoadFile */ .FH)("", (0,_util__WEBPACK_IMPORTED_MODULE_2__/* .setUrlQuery */ .NY)({ url: _env__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z.API_SERVER + `/api/competitions/${params == null ? void 0 : params.identifier}/competition_commit_records/member_works.xlsx`, query: params }));
|
|
|
});
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
}]); |