|
|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4271],{
|
|
|
|
|
|
|
|
|
|
/***/ 70392:
|
|
|
|
|
/***/ 7045:
|
|
|
|
|
/*!*************************************************************!*\
|
|
|
|
|
!*** ./src/pages/LaboratoryOverview/index.tsx + 37 modules ***!
|
|
|
|
|
!*** ./src/pages/LaboratoryOverview/index.tsx + 39 modules ***!
|
|
|
|
|
\*************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
@ -828,6 +828,9 @@ var CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var ExperimentalStatistics = (CustomTabs);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
|
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
|
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/LaboratoryOverview/Board/Substance/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Substancemodules = ({"box":"box___SXsUF","title":"title___CGdyW","name":"name___jIfz1","btns":"btns___GbhmD","btn":"btn___zQU9Q","center":"center___bQfkJ","line":"line___kun3i"});
|
|
|
|
|
@ -844,6 +847,7 @@ var icon2_namespaceObject = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAA
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Substance_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
var className = _ref.className,
|
|
|
|
|
_ref$style = _ref.style,
|
|
|
|
|
@ -855,6 +859,7 @@ var Substance_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()(Substancemodules.box, className),
|
|
|
|
|
style: style,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Substancemodules.title,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
@ -957,9 +962,9 @@ var Substance_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()(Substancemodules.box, className),
|
|
|
|
|
style: {
|
|
|
|
|
style: objectSpread2_default()({
|
|
|
|
|
marginTop: '10rem'
|
|
|
|
|
},
|
|
|
|
|
}, style),
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Substancemodules.title,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
|
|
|
@ -1110,7 +1115,11 @@ var Experiment_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/zz_classrooms/open_experiments/me_list.json", {
|
|
|
|
|
method: 'get'
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 3
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
@ -1144,7 +1153,7 @@ var Experiment_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Experimentmodules.center,
|
|
|
|
|
children: data === null || data === void 0 || (_data$list = data.list) === null || _data$list === void 0 || (_data$list = _data$list.slice(0, 3)) === null || _data$list === void 0 ? void 0 : _data$list.map(function (item, index) {
|
|
|
|
|
children: data === null || data === void 0 || (_data$list = data.list) === null || _data$list === void 0 ? void 0 : _data$list.map(function (item, index) {
|
|
|
|
|
var _item$teachers, _item$substance_names;
|
|
|
|
|
var teacher = item === null || item === void 0 || (_item$teachers = item.teachers) === null || _item$teachers === void 0 ? void 0 : _item$teachers.map(function (e) {
|
|
|
|
|
return e.name;
|
|
|
|
|
@ -1392,6 +1401,92 @@ var Activity_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Activity = (Activity_CustomTabs);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/LaboratoryOverview/Board/Information/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Informationmodules = ({"box":"box___RBL59","title":"title___Ij5M1","name":"name___Ba0Kn","btns":"btns___b_Avp","btn":"btn___W3VMr","center":"center___rAjZ7","li":"li___GVJi6"});
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/LaboratoryOverview/Board/Information/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Information_DATEFORMAT = 'YYYY-MM-DD';
|
|
|
|
|
var Information_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
var className = _ref.className,
|
|
|
|
|
_ref$style = _ref.style,
|
|
|
|
|
style = _ref$style === void 0 ? {} : _ref$style;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
data = _useState2[0],
|
|
|
|
|
setData = _useState2[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getData();
|
|
|
|
|
}, []);
|
|
|
|
|
var getData = /*#__PURE__*/function () {
|
|
|
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var res, _res$data;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context.next = 2;
|
|
|
|
|
return (0,fetch/* default */.ZP)("/api/yn_classrooms/statistics/tiding_statistics.json", {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: {
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 6
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setData(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.tidings);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}));
|
|
|
|
|
return function getData() {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()(Informationmodules.box, className),
|
|
|
|
|
style: style,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Informationmodules.title,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: Informationmodules.name,
|
|
|
|
|
children: "\u6D88\u606F\u901A\u77E5"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Informationmodules.btns,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Informationmodules.btn,
|
|
|
|
|
children: "\u67E5\u770B\u66F4\u591A"
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Informationmodules.center,
|
|
|
|
|
children: data === null || data === void 0 ? void 0 : data.map(function (item, index) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: Informationmodules.li,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("b", {
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.extra
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: item !== null && item !== void 0 && item.created_at ? dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format(Information_DATEFORMAT) : '--'
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var Information = (Information_CustomTabs);
|
|
|
|
|
;// CONCATENATED MODULE: ./src/pages/LaboratoryOverview/Board/Classroom/index.less?modules
|
|
|
|
|
// extracted by mini-css-extract-plugin
|
|
|
|
|
/* harmony default export */ var Classroommodules = ({"box":"box___KkL3q","title":"title___u4AX9","name":"name___fibD0","btns":"btns___sJA6S","btn":"btn___pxEhS","list":"list___hYYt9","wrap":"wrap___on2l9","lockWrap":"lockWrap___AZSa6","top":"top___GcOjd","sign":"sign___tJ5Dm","img":"img___bXIP9","text":"text___v5vlX","bottom":"bottom___Pi1b3"});
|
|
|
|
|
@ -1585,6 +1680,8 @@ var Classroom_CustomTabs = function CustomTabs(_ref) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Board_Workbench = function Workbench(_ref) {
|
|
|
|
|
var userInfo = _ref.userInfo;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
|
|
|
@ -1619,10 +1716,13 @@ var Board_Workbench = function Workbench(_ref) {
|
|
|
|
|
return _ref2.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}();
|
|
|
|
|
var isTeacher = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.identity) === 'teacher';
|
|
|
|
|
if (!(userInfo !== null && userInfo !== void 0 && userInfo.login)) {
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {});
|
|
|
|
|
}
|
|
|
|
|
var isTeacher = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.identity) !== 'teacher';
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: Boardmodules.wrap,
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: isTeacher ? /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ExperimentalStatistics, {
|
|
|
|
|
@ -1645,6 +1745,35 @@ var Board_Workbench = function Workbench(_ref) {
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Experiment, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(Information, {
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: '10rem'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(Substance, {
|
|
|
|
|
data: oneData,
|
|
|
|
|
style: {
|
|
|
|
|
width: '608rem'
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Activity, {
|
|
|
|
|
style: {
|
|
|
|
|
marginLeft: '10rem',
|
|
|
|
|
width: '535rem',
|
|
|
|
|
height: '354rem'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Classroom, {
|
|
|
|
|
style: {
|
|
|
|
|
marginTop: '10rem',
|
|
|
|
|
marginLeft: '10rem',
|
|
|
|
|
width: '1153rem'
|
|
|
|
|
}
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
@ -2873,7 +3002,7 @@ var other_bg_namespaceObject = __webpack_require__.p + "static/other_bg.171cbfdd
|
|
|
|
|
var DefendCloud = function DefendCloud(_ref) {
|
|
|
|
|
var _itemModule$find;
|
|
|
|
|
var user = _ref.user;
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)('2'),
|
|
|
|
|
var _useState = (0,_react_17_0_2_react.useState)('1'),
|
|
|
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
|
|
|
moduleType = _useState2[0],
|
|
|
|
|
setModuleType = _useState2[1];
|