Auto Submit

dev_local_v9_test4
autosubmit 1 year ago
parent 44a8cec6af
commit 4654dd0aa9

@ -1702,7 +1702,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -1912,6 +1914,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

@ -250,7 +250,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -460,6 +462,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.086bc064.js"></script>
<script src="/react/build/umi.a564c896.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

@ -978,7 +978,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -1188,6 +1190,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

@ -17,7 +17,7 @@
}
.wrap___akqyy {
width: 100%;
min-width: 80vh;
min-height: 80vh;
padding: 20px;
background-color: #fff;
}

@ -342,7 +342,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -552,6 +554,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

@ -1,133 +0,0 @@
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Knowbase/HomePage/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.Onerow___gUc6r {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.MultiLine___jbEBC {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.wrap___Dh9Dl {
width: 100%;
min-width: 80vh;
padding: 20px;
background-color: #fff;
}
.wrap___Dh9Dl .core___wucQb {
width: 1200px;
margin: 0 auto;
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr {
padding-top: 30px;
display: flex;
cursor: pointer;
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr .imgWrap___oModA {
width: 713px;
height: 403px;
border-radius: 4px;
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr .imgWrap___oModA img {
width: 100%;
height: 100%;
border-radius: 4px;
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr .conWrap___PwVWs {
width: 486px;
padding: 30px;
border-radius: 4px;
background: linear-gradient(195deg, #DEE7FF 0%, #FFFFFF 100%);
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr .conWrap___PwVWs .title___wWoJs {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
width: 426px;
font-weight: 500;
font-size: 24px;
color: #191919;
}
.wrap___Dh9Dl .core___wucQb .latestInfo___AFWQr .conWrap___PwVWs .content___H2Pk3 {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-line-clamp: 8;
font-weight: 400;
font-size: 14px;
color: #666666;
}
.wrap___Dh9Dl .core___wucQb .notice___kZqxS {
margin-left: 8px;
font-weight: 500;
font-size: 16px;
color: #20232B;
}
.wrap___Dh9Dl .core___wucQb .noticeBtn___Dn0ui {
background: #3061D0;
color: #FFFFFF;
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 4px;
}
.wrap___Dh9Dl .core___wucQb .infoList___inPV8 .listItem___ZKku_ {
width: 1200px;
height: 188px;
background: #FFFFFF;
box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.05);
border-radius: 4px;
border: 1px solid #F5F5F5;
display: flex;
padding: 20px;
margin-top: 20px;
}
.wrap___Dh9Dl .core___wucQb .infoList___inPV8 .listItem___ZKku_ .itemImg___kK3pm {
width: 285px;
height: 148px;
background: #D8D8D8;
border-radius: 4px;
border: 1px solid #D7D7D7;
}
.wrap___Dh9Dl .core___wucQb .infoList___inPV8 .listItem___ZKku_ .itemImg___kK3pm img {
width: 100%;
height: 100%;
}
.wrap___Dh9Dl .core___wucQb .infoList___inPV8 .listItem___ZKku_ .title___wWoJs {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 860px;
margin-bottom: 14px;
font-weight: 500;
font-size: 18px;
color: #191919;
cursor: pointer;
}
.wrap___Dh9Dl .core___wucQb .infoList___inPV8 .listItem___ZKku_ .content___H2Pk3 {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
width: 860px;
font-weight: 400;
font-size: 14px;
color: #666666;
cursor: pointer;
}

@ -1,890 +0,0 @@
"use strict";
(self["webpackChunk"] = self["webpackChunk"] || []).push([[2224],{
/***/ 16537:
/*!******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/LeftOutlined.js + 1 modules ***!
\******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_LeftOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/LeftOutlined.js
// This icon file is generated automatically.
var LeftOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z" } }] }, "name": "left", "theme": "outlined" };
/* harmony default export */ var asn_LeftOutlined = (LeftOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(88853);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/LeftOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var LeftOutlined_LeftOutlined = function LeftOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_LeftOutlined
}));
};
/**![left](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTcyNCAyMTguM1YxNDFjMC02LjctNy43LTEwLjQtMTIuOS02LjNMMjYwLjMgNDg2LjhhMzEuODYgMzEuODYgMCAwMDAgNTAuM2w0NTAuOCAzNTIuMWM1LjMgNC4xIDEyLjkuNCAxMi45LTYuM3YtNzcuM2MwLTQuOS0yLjMtOS42LTYuMS0xMi42bC0zNjAtMjgxIDM2MC0yODEuMWMzLjgtMyA2LjEtNy43IDYuMS0xMi42eiIgLz48L3N2Zz4=) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
if (false) {}
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
/***/ }),
/***/ 53878:
/*!*******************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/RightOutlined.js + 1 modules ***!
\*******************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_RightOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/RightOutlined.js
// This icon file is generated automatically.
var RightOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, "name": "right", "theme": "outlined" };
/* harmony default export */ var asn_RightOutlined = (RightOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(88853);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/RightOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var RightOutlined_RightOutlined = function RightOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_RightOutlined
}));
};
/**![right](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTc2NS43IDQ4Ni44TDMxNC45IDEzNC43QTcuOTcgNy45NyAwIDAwMzAyIDE0MXY3Ny4zYzAgNC45IDIuMyA5LjYgNi4xIDEyLjZsMzYwIDI4MS4xLTM2MCAyODEuMWMtMy45IDMtNi4xIDcuNy02LjEgMTIuNlY4ODNjMCA2LjcgNy43IDEwLjQgMTIuOSA2LjNsNDUwLjgtMzUyLjFhMzEuOTYgMzEuOTYgMCAwMDAtNTAuNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
if (false) {}
/* harmony default export */ var icons_RightOutlined = (RefIcon);
/***/ }),
/***/ 21970:
/*!********************************************************************************************************!*\
!*** ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules ***!
\********************************************************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ icons_SearchOutlined; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.26.0@@babel/runtime/helpers/esm/extends.js
var esm_extends = __webpack_require__(5891);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/SearchOutlined.js
// This icon file is generated automatically.
var SearchOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, "name": "search", "theme": "outlined" };
/* harmony default export */ var asn_SearchOutlined = (SearchOutlined);
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/components/AntdIcon.js + 3 modules
var AntdIcon = __webpack_require__(88853);
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.5.2@@ant-design/icons/es/icons/SearchOutlined.js
// GENERATE BY ./scripts/generate.ts
// DON NOT EDIT IT MANUALLY
var SearchOutlined_SearchOutlined = function SearchOutlined(props, ref) {
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
ref: ref,
icon: asn_SearchOutlined
}));
};
/**![search](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTkwOS42IDg1NC41TDY0OS45IDU5NC44QzY5MC4yIDU0Mi43IDcxMiA0NzkgNzEyIDQxMmMwLTgwLjItMzEuMy0xNTUuNC04Ny45LTIxMi4xLTU2LjYtNTYuNy0xMzItODcuOS0yMTIuMS04Ny45cy0xNTUuNSAzMS4zLTIxMi4xIDg3LjlDMTQzLjIgMjU2LjUgMTEyIDMzMS44IDExMiA0MTJjMCA4MC4xIDMxLjMgMTU1LjUgODcuOSAyMTIuMUMyNTYuNSA2ODAuOCAzMzEuOCA3MTIgNDEyIDcxMmM2NyAwIDEzMC42LTIxLjggMTgyLjctNjJsMjU5LjcgMjU5LjZhOC4yIDguMiAwIDAwMTEuNiAwbDQzLjYtNDMuNWE4LjIgOC4yIDAgMDAwLTExLjZ6TTU3MC40IDU3MC40QzUyOCA2MTIuNyA0NzEuOCA2MzYgNDEyIDYzNnMtMTE2LTIzLjMtMTU4LjQtNjUuNkMyMTEuMyA1MjggMTg4IDQ3MS44IDE4OCA0MTJzMjMuMy0xMTYuMSA2NS42LTE1OC40QzI5NiAyMTEuMyAzNTIuMiAxODggNDEyIDE4OHMxMTYuMSAyMy4yIDE1OC40IDY1LjZTNjM2IDM1Mi4yIDYzNiA0MTJzLTIzLjMgMTE2LjEtNjUuNiAxNTguNHoiIC8+PC9zdmc+) */
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(SearchOutlined_SearchOutlined);
if (false) {}
/* harmony default export */ var icons_SearchOutlined = (RefIcon);
/***/ }),
/***/ 86681:
/*!***********************************************************!*\
!*** ./src/pages/Knowbase/HomePage/index.tsx + 1 modules ***!
\***********************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
"default": function() { return /* binding */ HomePage; }
});
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
var regeneratorRuntime = __webpack_require__(7557);
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
var asyncToGenerator = __webpack_require__(41498);
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
var objectSpread2 = __webpack_require__(82242);
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
var slicedToArray = __webpack_require__(79800);
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectDestructuringEmpty.js
var objectDestructuringEmpty = __webpack_require__(70236);
var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(objectDestructuringEmpty);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
var _umi_production_exports = __webpack_require__(88271);
;// CONCATENATED MODULE: ./src/pages/Knowbase/HomePage/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var HomePagemodules = ({"Onerow":"Onerow___gUc6r","MultiLine":"MultiLine___jbEBC","wrap":"wrap___Dh9Dl","core":"core___wucQb","latestInfo":"latestInfo___AFWQr","imgWrap":"imgWrap___oModA","conWrap":"conWrap___PwVWs","title":"title___wWoJs","content":"content___H2Pk3","notice":"notice___kZqxS","noticeBtn":"noticeBtn___Dn0ui","infoList":"infoList___inPV8","listItem":"listItem___ZKku_","itemImg":"itemImg___kK3pm"});
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/spin/index.js + 1 modules
var spin = __webpack_require__(71418);
// 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/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/pagination/index.js + 10 modules
var pagination = __webpack_require__(25700);
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = __webpack_require__(69423);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(63017);
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(64118);
// EXTERNAL MODULE: ./src/service/broadcast.ts
var broadcast = __webpack_require__(27895);
// EXTERNAL MODULE: ./src/utils/util.tsx
var util = __webpack_require__(95972);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Knowbase/HomePage/index.tsx
var Message = function Message(_ref) {
var _inforList$2, _inforList$3, _inforList$4, _inforList$5, _inforList$6, _inforList$slice;
objectDestructuringEmpty_default()(_ref);
var _useState = (0,_react_17_0_2_react.useState)([]),
_useState2 = slicedToArray_default()(_useState, 2),
inforList = _useState2[0],
setInforList = _useState2[1];
var _useState3 = (0,_react_17_0_2_react.useState)({
keyword: '',
source: 'public',
page: 1,
limit: 20
}),
_useState4 = slicedToArray_default()(_useState3, 2),
params = _useState4[0],
setParams = _useState4[1];
var _useState5 = (0,_react_17_0_2_react.useState)(0),
_useState6 = slicedToArray_default()(_useState5, 2),
total = _useState6[0],
setTotal = _useState6[1];
var _useState7 = (0,_react_17_0_2_react.useState)(true),
_useState8 = slicedToArray_default()(_useState7, 2),
loading = _useState8[0],
setLoading = _useState8[1];
var handleChangePage = function handleChangePage(page, pageSize) {
params.page = page;
params.limit = pageSize;
setParams(objectSpread2_default()({}, params));
};
(0,_react_17_0_2_react.useEffect)(function () {
getData();
}, [params]);
var getData = /*#__PURE__*/function () {
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
setLoading(true);
_context.next = 3;
return (0,broadcast/* broadcasts_query */.u$)({
page: params === null || params === void 0 ? void 0 : params.page,
limit: params === null || params === void 0 ? void 0 : params.limit,
type: params === null || params === void 0 ? void 0 : params.source,
keyword: params === null || params === void 0 ? void 0 : params.keyword,
source: 'broadcast'
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
var _res$data, _res$data2;
setInforList(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.list);
setTotal(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.count);
}
});
case 3:
setLoading(false);
case 4:
case "end":
return _context.stop();
}
}, _callee);
}));
return function getData() {
return _ref2.apply(this, arguments);
};
}();
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
spinning: loading,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.wrap,
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: HomePagemodules.core,
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: HomePagemodules.latestInfo,
onClick: function onClick() {
var _inforList$;
return (0,util/* openNewWindow */.xg)("/broadcast/".concat((_inforList$ = inforList[0]) === null || _inforList$ === void 0 ? void 0 : _inforList$.id, "/detail?tabId=").concat(params.source));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.imgWrap,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.PROXY_SERVER + ((_inforList$2 = inforList[0]) !== null && _inforList$2 !== void 0 && _inforList$2.bg ? (_inforList$3 = inforList[0]) === null || _inforList$3 === void 0 || (_inforList$3 = _inforList$3.bg) === null || _inforList$3 === void 0 ? void 0 : _inforList$3.url : '/images/educoder/index/shixun/shixun15.jpg')
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: HomePagemodules.conWrap,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: (_inforList$4 = inforList[0]) === null || _inforList$4 === void 0 ? void 0 : _inforList$4.title,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.title,
children: (_inforList$5 = inforList[0]) === null || _inforList$5 === void 0 ? void 0 : _inforList$5.name
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)(divider/* default */.Z, {
style: {
background: 'inear-gradient( 45deg, rgba(48,97,208,0) 0%, rgba(178,191,221,0.4) 51%, rgba(48,97,208,0) 100%)'
}
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.content,
children: (_inforList$6 = inforList[0]) === null || _inforList$6 === void 0 ? void 0 : _inforList$6.subtitle
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
align: "middle",
justify: "space-between",
style: {
marginTop: '40px'
},
children: (0,authority/* isSuperAdmins */.Ny)() && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
onClick: function onClick() {
_umi_production_exports.history.push("/broadcast/null/addoredit");
},
className: HomePagemodules.noticeBtn,
children: "\u53D1\u5E03\u901A\u77E5"
})
})
}), !!(inforList !== null && inforList !== void 0 && inforList.length) ? /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: HomePagemodules.infoList,
children: [inforList === null || inforList === void 0 || (_inforList$slice = inforList.slice(1)) === null || _inforList$slice === void 0 ? void 0 : _inforList$slice.map(function (item, index) {
var _item$bg;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: HomePagemodules.listItem,
onClick: function onClick() {
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail?tabId=").concat(params.source));
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.itemImg,
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: env/* default */.Z.PROXY_SERVER + (item !== null && item !== void 0 && item.bg ? item === null || item === void 0 || (_item$bg = item.bg) === null || _item$bg === void 0 ? void 0 : _item$bg.url : '/images/educoder/index/shixun/shixun15.jpg')
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "ml20",
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.title,
children: item === null || item === void 0 ? void 0 : item.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: HomePagemodules.content,
children: item === null || item === void 0 ? void 0 : item.subtitle
})]
})]
}, index);
}), /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
className: "mt20",
showQuickJumper: true,
showSizeChanger: true,
pageSizeOptions: ['10', '20', '50', '100', '200'],
total: total,
onChange: handleChangePage,
pageSize: params.limit,
current: params.page,
hideOnSinglePage: !total,
showTotal: util/* showTotal */.rU
})]
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})]
})]
})
})
});
};
/* harmony default export */ var HomePage = (Message);
/***/ }),
/***/ 27895:
/*!**********************************!*\
!*** ./src/service/broadcast.ts ***!
\**********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js */ 41498);
/* harmony import */ var _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _utils_fetch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/utils/fetch */ 82710);
// 广播消息列表
function broadcasts_query(_x) {
return _broadcasts_query.apply(this, arguments);
}
// 创建广播消息
function _broadcasts_query() {
_broadcasts_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
return _context.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
return _broadcasts_query.apply(this, arguments);
}
function broadcasts_add(_x2) {
return _broadcasts_add.apply(this, arguments);
}
// 创建广播消息
function _broadcasts_add() {
_broadcasts_add = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee2(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
return _context2.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts.json", {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
return _broadcasts_add.apply(this, arguments);
}
function broadcasts_update(_x3) {
return _broadcasts_update.apply(this, arguments);
}
// 广播消息详情
function _broadcasts_update() {
_broadcasts_update = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee3(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee3$(_context3) {
while (1) switch (_context3.prev = _context3.next) {
case 0:
return _context3.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, ".json"), {
method: 'put',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context3.stop();
}
}, _callee3);
}));
return _broadcasts_update.apply(this, arguments);
}
function broadcasts_info(_x4) {
return _broadcasts_info.apply(this, arguments);
}
// 删除广播消息
function _broadcasts_info() {
_broadcasts_info = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee4(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
return _context4.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params, ".json"), {
method: 'get'
}));
case 1:
case "end":
return _context4.stop();
}
}, _callee4);
}));
return _broadcasts_info.apply(this, arguments);
}
function broadcasts_delete(_x5) {
return _broadcasts_delete.apply(this, arguments);
}
// 申请公开
function _broadcasts_delete() {
_broadcasts_delete = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee5(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee5$(_context5) {
while (1) switch (_context5.prev = _context5.next) {
case 0:
return _context5.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data, ".json"), {
method: 'delete'
}));
case 1:
case "end":
return _context5.stop();
}
}, _callee5);
}));
return _broadcasts_delete.apply(this, arguments);
}
function apply_public(_x6) {
return _apply_public.apply(this, arguments);
}
// 撤销申请公开
function _apply_public() {
_apply_public = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee6(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee6$(_context6) {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data, "/apply_public.json"), {
method: 'post'
}));
case 1:
case "end":
return _context6.stop();
}
}, _callee6);
}));
return _apply_public.apply(this, arguments);
}
function revoke_apply_public(_x7) {
return _revoke_apply_public.apply(this, arguments);
}
// 取消公开
function _revoke_apply_public() {
_revoke_apply_public = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee7(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee7$(_context7) {
while (1) switch (_context7.prev = _context7.next) {
case 0:
return _context7.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data, "/revoke_apply_public.json"), {
method: 'post'
}));
case 1:
case "end":
return _context7.stop();
}
}, _callee7);
}));
return _revoke_apply_public.apply(this, arguments);
}
function cancel_public(_x8) {
return _cancel_public.apply(this, arguments);
}
// 获取云杂志分类列表
function _cancel_public() {
_cancel_public = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee8(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee8$(_context8) {
while (1) switch (_context8.prev = _context8.next) {
case 0:
return _context8.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data, "/cancel_public.json"), {
method: 'post'
}));
case 1:
case "end":
return _context8.stop();
}
}, _callee8);
}));
return _cancel_public.apply(this, arguments);
}
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
while (1) switch (_context9.prev = _context9.next) {
case 0:
return _context9.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/magazine_cates.json", {
method: 'get'
}));
case 1:
case "end":
return _context9.stop();
}
}, _callee9);
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ }),
/***/ 28103:
/*!***********************************************************************!*\
!*** ./node_modules/_antd@5.9.0@antd/es/divider/index.js + 1 modules ***!
\***********************************************************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
// EXPORTS
__webpack_require__.d(__webpack_exports__, {
Z: function() { return /* binding */ divider; }
});
// 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/_react@17.0.2@react/index.js
var _react_17_0_2_react = __webpack_require__(59301);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
var context = __webpack_require__(36355);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/style/index.js
var style = __webpack_require__(17313);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/genComponentStyleHook.js
var genComponentStyleHook = __webpack_require__(83116);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/theme/util/statistic.js
var statistic = __webpack_require__(37613);
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/style/index.js
// ============================== Shared ==============================
const genSharedDividerStyle = token => {
const {
componentCls,
sizePaddingEdgeHorizontal,
colorSplit,
lineWidth,
textPaddingInline,
orientationMargin,
verticalMarginInline
} = token;
return {
[componentCls]: Object.assign(Object.assign({}, (0,style/* resetComponent */.Wf)(token)), {
borderBlockStart: `${lineWidth}px solid ${colorSplit}`,
// vertical
'&-vertical': {
position: 'relative',
top: '-0.06em',
display: 'inline-block',
height: '0.9em',
marginInline: verticalMarginInline,
marginBlock: 0,
verticalAlign: 'middle',
borderTop: 0,
borderInlineStart: `${lineWidth}px solid ${colorSplit}`
},
'&-horizontal': {
display: 'flex',
clear: 'both',
width: '100%',
minWidth: '100%',
margin: `${token.dividerHorizontalGutterMargin}px 0`
},
[`&-horizontal${componentCls}-with-text`]: {
display: 'flex',
alignItems: 'center',
margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,
color: token.colorTextHeading,
fontWeight: 500,
fontSize: token.fontSizeLG,
whiteSpace: 'nowrap',
textAlign: 'center',
borderBlockStart: `0 ${colorSplit}`,
'&::before, &::after': {
position: 'relative',
width: '50%',
borderBlockStart: `${lineWidth}px solid transparent`,
// Chrome not accept `inherit` in `border-top`
borderBlockStartColor: 'inherit',
borderBlockEnd: 0,
transform: 'translateY(50%)',
content: "''"
}
},
[`&-horizontal${componentCls}-with-text-left`]: {
'&::before': {
width: `${orientationMargin * 100}%`
},
'&::after': {
width: `${100 - orientationMargin * 100}%`
}
},
[`&-horizontal${componentCls}-with-text-right`]: {
'&::before': {
width: `${100 - orientationMargin * 100}%`
},
'&::after': {
width: `${orientationMargin * 100}%`
}
},
[`${componentCls}-inner-text`]: {
display: 'inline-block',
paddingBlock: 0,
paddingInline: textPaddingInline
},
'&-dashed': {
background: 'none',
borderColor: colorSplit,
borderStyle: 'dashed',
borderWidth: `${lineWidth}px 0 0`
},
[`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {
'&::before, &::after': {
borderStyle: 'dashed none none'
}
},
[`&-vertical${componentCls}-dashed`]: {
borderInlineStartWidth: lineWidth,
borderInlineEnd: 0,
borderBlockStart: 0,
borderBlockEnd: 0
},
[`&-plain${componentCls}-with-text`]: {
color: token.colorText,
fontWeight: 'normal',
fontSize: token.fontSize
},
[`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {
'&::before': {
width: 0
},
'&::after': {
width: '100%'
},
[`${componentCls}-inner-text`]: {
paddingInlineStart: sizePaddingEdgeHorizontal
}
},
[`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {
'&::before': {
width: '100%'
},
'&::after': {
width: 0
},
[`${componentCls}-inner-text`]: {
paddingInlineEnd: sizePaddingEdgeHorizontal
}
}
})
};
};
// ============================== Export ==============================
/* harmony default export */ var divider_style = ((0,genComponentStyleHook/* default */.Z)('Divider', token => {
const dividerToken = (0,statistic/* merge */.TS)(token, {
dividerHorizontalWithTextGutterMargin: token.margin,
dividerHorizontalGutterMargin: token.marginLG,
sizePaddingEdgeHorizontal: 0
});
return [genSharedDividerStyle(dividerToken)];
}, token => ({
textPaddingInline: '1em',
orientationMargin: 0.05,
verticalMarginInline: token.marginXS
})));
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/divider/index.js
"use client";
var __rest = undefined && undefined.__rest || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
}
return t;
};
const Divider = props => {
const {
getPrefixCls,
direction,
divider
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
const {
prefixCls: customizePrefixCls,
type = 'horizontal',
orientation = 'center',
orientationMargin,
className,
rootClassName,
children,
dashed,
plain,
style
} = props,
restProps = __rest(props, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]);
const prefixCls = getPrefixCls('divider', customizePrefixCls);
const [wrapSSR, hashId] = divider_style(prefixCls);
const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;
const hasChildren = !!children;
const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;
const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;
const classString = _classnames_2_5_1_classnames_default()(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {
[`${prefixCls}-with-text`]: hasChildren,
[`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,
[`${prefixCls}-dashed`]: !!dashed,
[`${prefixCls}-plain`]: !!plain,
[`${prefixCls}-rtl`]: direction === 'rtl',
[`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,
[`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight
}, className, rootClassName);
const memoizedOrientationMargin = _react_17_0_2_react.useMemo(() => {
if (typeof orientationMargin === 'number') {
return orientationMargin;
}
if (/^\d+$/.test(orientationMargin)) {
return Number(orientationMargin);
}
return orientationMargin;
}, [orientationMargin]);
const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {
marginLeft: memoizedOrientationMargin
}), hasCustomMarginRight && {
marginRight: memoizedOrientationMargin
});
// Warning children not work in vertical mode
if (false) {}
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("div", Object.assign({
className: classString,
style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)
}, restProps, {
role: "separator"
}), children && type !== 'vertical' && /*#__PURE__*/_react_17_0_2_react.createElement("span", {
className: `${prefixCls}-inner-text`,
style: innerStyle
}, children)));
};
if (false) {}
/* harmony default export */ var divider = (Divider);
/***/ })
}]);

@ -0,0 +1,150 @@
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Knowbase/HomePage/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.Onerow___gUc6r {
word-break: break-all;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.MultiLine___jbEBC {
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.wrap___Dh9Dl {
width: 100%;
min-height: 100vh;
background-color: #fff;
}
.wrap___Dh9Dl .header___LCNR4 {
width: 100%;
height: 360px;
background-image: url(./static/knowBase.4e2249e8.png);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
position: relative;
top: -50px;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb {
width: 1200px;
margin: 0 auto;
display: flex;
justify-content: center;
flex-direction: column;
height: 100%;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb .headerName___HwrTL {
font-size: 36px;
color: #20232B;
line-height: 40px;
letter-spacing: 2px;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb .headerNums___tvuT2 {
display: flex;
align-items: center;
margin-top: 20px;
margin-bottom: 44px;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb .headerNums___tvuT2 .labelSty____vLgE {
font-weight: 400;
font-size: 14px;
color: #666666;
margin-left: 10px;
margin-right: 10px;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb .headerNums___tvuT2 .numbSty___Mhkt9 {
font-weight: 500;
font-size: 16px;
color: #20232B;
}
.wrap___Dh9Dl .header___LCNR4 .core___wucQb .addBtn___oRbaA {
background: #3061D0;
border-radius: 4px;
color: #fff;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[0].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[0].use[3]!./src/pages/Knowbase/components/EditModal/index.less?modules ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/_css-loader@6.7.1@css-loader/dist/cjs.js??ruleSet[1].rules[5].oneOf[1].use[1]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/postcss-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[2]!./node_modules/_@umijs_bundler-webpack@4.4.4@@umijs/bundler-webpack/compiled/less-loader/index.js??ruleSet[1].rules[5].oneOf[1].use[3]!./src/components/MultiUpload/index.less ***!
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.upload_button {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
display: inline-block;
text-align: center;
align-items: center;
align-content: center;
}
.upload_button .aBtn_img {
width: 14px;
height: 14px;
margin-top: -3px;
margin-right: 8px;
}
.upload_button:hover {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
}
.disable_upload_button {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
}
.disable_upload_button .aBtn_img {
width: 14px;
height: 14px;
margin-top: -3px;
margin-right: 8px;
}
.upload_button:active {
width: 108px;
height: 32px;
background: #F6F7F9 linear-gradient(180deg, #FFFFFF 0%, #F6F7F9 100%);
box-shadow: 0px 2px 4px 0px #E0DFE1, inset 0px 1px 3px 0px rgba(255, 255, 255, 0.5);
border-radius: 2px;
border: 1px solid #BACFFE;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #3061D0;
}
.upload_text {
width: 129px;
height: 20px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #5F6367;
line-height: 20px;
margin-left: 16px;
}

File diff suppressed because it is too large Load Diff

@ -395,7 +395,12 @@ var OpenReservationDetail = function OpenReservationDetail(_ref) {
children: "\u589E\u52A0\u9884\u7EA6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: OpenReservationDetailmodules.add_Data,
onClick: function onClick() {},
onClick: function onClick() {
(0,util/* downLoadFile */.FH)('', (0,util/* setUrlQuery */.NY)({
url: env/* default */.Z.API_SERVER + "/api/zz_classrooms/open_experiments/".concat(urlParam === null || urlParam === void 0 ? void 0 : urlParam.id, "/reservations.xlsx"),
query: {}
}));
},
children: "\u5BFC\u51FA"
})]
})]

@ -55,11 +55,11 @@ var modal = __webpack_require__(43418);
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./src/service/laboratory.ts
var laboratory = __webpack_require__(39531);
// EXTERNAL MODULE: ./src/service/user.ts
var service_user = __webpack_require__(43255);
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.13@dayjs/dayjs.min.js
var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/service/user.ts
var service_user = __webpack_require__(43255);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Laboratory/OpenReservation/OpenReservationStatistics/index.tsx
@ -77,6 +77,7 @@ var jsx_runtime = __webpack_require__(37712);
var Dragger = upload/* default */.Z.Dragger;
var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
var _ref3, _ref4, _ref5, _ref6, _ref7;
@ -263,7 +264,7 @@ var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
}
}, {
title: '实验名称',
dataIndex: 'classroom_room_title',
dataIndex: 'name',
ellipsis: true,
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
@ -285,17 +286,32 @@ var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
}
}, {
title: '实验时间',
dataIndex: 'user_role',
dataIndex: 'times',
ellipsis: true,
render: function render(text) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {});
render: function render(text, record) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [dayjs_min_default()(record === null || record === void 0 ? void 0 : record.start_time).format('YYYY-MM-DD'), " \u81F3 ", dayjs_min_default()(record === null || record === void 0 ? void 0 : record.end_time).format('YYYY-MM-DD')]
});
}
}, {
title: '教导员',
dataIndex: 'directors',
ellipsis: true,
render: function render(text, record) {
text || '--';
return /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: record === null || record === void 0 ? void 0 : record.teachers.map(function (info, index) {
var _record$teachers;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [info === null || info === void 0 ? void 0 : info.name, index == (record === null || record === void 0 || (_record$teachers = record.teachers) === null || _record$teachers === void 0 ? void 0 : _record$teachers.length) - 1 ? '' : '、']
});
}),
children: record === null || record === void 0 ? void 0 : record.teachers.map(function (info, index) {
var _record$teachers2;
return /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
children: [info === null || info === void 0 ? void 0 : info.name, index == (record === null || record === void 0 || (_record$teachers2 = record.teachers) === null || _record$teachers2 === void 0 ? void 0 : _record$teachers2.length) - 1 ? '' : '、']
});
})
});
}
}, {
title: '预约实验室房间',
@ -339,11 +355,8 @@ var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
startDate = dayjs_min_default()("".concat(currentYear, "-07-01")); // 今年7月1日
endDate = dayjs_min_default()("".concat(currentYear, "-12-31")); // 今年12月31日
break;
default:
startDate = dayjs_min_default()();
endDate = dayjs_min_default()();
}
return [startDate.format('YYYY:MM:DD'), endDate.format('YYYY:MM:DD')];
return [startDate.format('YYYY-MM-DD'), endDate.format('YYYY-MM-DD')];
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -482,19 +495,19 @@ var OpenReservationStatistics = function OpenReservationStatistics(_ref) {
children: [{
name: '实验数',
num: (tjData === null || tjData === void 0 ? void 0 : tjData.shixun_num) || 0,
iconfont: ''
iconfont: 'icon-a-zhishitupu1'
}, {
name: '教导员数',
num: (tjData === null || tjData === void 0 ? void 0 : tjData.teacher_num) || 0,
iconfont: ''
iconfont: 'icon-shenqingchengweizhujiao'
}, {
name: '预约次数',
num: (tjData === null || tjData === void 0 ? void 0 : tjData.reservation_num) || 0,
iconfont: ''
iconfont: 'icon-wodeyuyue'
}, {
name: '预约累积时长',
num: (tjData === null || tjData === void 0 ? void 0 : tjData.reservation_all_time) || 0,
iconfont: ''
iconfont: 'icon-leiji'
}].map(function (item) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: OpenReservationStatisticsmodules.tj_item,

@ -22,7 +22,7 @@ var objectDestructuringEmpty_default = /*#__PURE__*/__webpack_require__.n(object
var _react_17_0_2_react = __webpack_require__(59301);
;// CONCATENATED MODULE: ./src/pages/NewHomeEntranceClassify/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var NewHomeEntranceClassifymodules = ({"homeEntranceClassify":"homeEntranceClassify___zkWm8","top_warp":"top_warp___TYOXC","btn_l":"btn_l___eyoIe","img_c":"img_c___mPIQB","btn_r":"btn_r___fLPcU","main_warp":"main_warp___Gg1Id","item_con":"item_con___cMc4g"});
/* harmony default export */ var NewHomeEntranceClassifymodules = ({"homeEntranceClassify":"homeEntranceClassify___zkWm8","top_warp":"top_warp___TYOXC","btn_l":"btn_l___eyoIe","img_c":"img_c___mPIQB","btn_r":"btn_r___fLPcU","main_warp":"main_warp___Gg1Id","item_con":"item_con___cMc4g","item_title":"item_title___wRp2z","item_img":"item_img___f1KFh"});
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/NewHomeEntranceClassify/index.tsx
@ -49,15 +49,15 @@ var NewHomeEntranceClassify = function NewHomeEntranceClassify(_ref) {
className: NewHomeEntranceClassifymodules.main_warp,
children: [{
name: '实验室运行一体化管理',
img: __webpack_require__(/*! ./img/img_c.png */ 19670),
img: __webpack_require__(/*! ./img/item1.png */ 77592),
url: ''
}, {
name: '军队保卫专业能力虚拟仿真训练平台',
img: __webpack_require__(/*! ./img/img_c.png */ 19670),
img: __webpack_require__(/*! ./img/item3.png */ 94272),
url: ''
}, {
name: '智慧保卫云学院应用',
img: __webpack_require__(/*! ./img/img_c.png */ 19670),
img: __webpack_require__(/*! ./img/item2.png */ 91576),
url: ''
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@ -67,6 +67,10 @@ var NewHomeEntranceClassify = function NewHomeEntranceClassify(_ref) {
children: item.name
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntranceClassifymodules.item_img,
style: {
background: "url('".concat(item === null || item === void 0 ? void 0 : item.url, "') no-repeat center center"),
backgroundSize: '100% 100%'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: "\u67E5\u770B\u8BE6\u60C5"
})
@ -80,13 +84,33 @@ var NewHomeEntranceClassify = function NewHomeEntranceClassify(_ref) {
/***/ }),
/***/ 19670:
/***/ 77592:
/*!*********************************************************!*\
!*** ./src/pages/NewHomeEntranceClassify/img/img_c.png ***!
!*** ./src/pages/NewHomeEntranceClassify/img/item1.png ***!
\*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__.p + "static/img_c.594ec43b.png";
module.exports = __webpack_require__.p + "static/item1.df986e20.png";
/***/ }),
/***/ 91576:
/*!*********************************************************!*\
!*** ./src/pages/NewHomeEntranceClassify/img/item2.png ***!
\*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__.p + "static/item2.4b882ce8.png";
/***/ }),
/***/ 94272:
/*!*********************************************************!*\
!*** ./src/pages/NewHomeEntranceClassify/img/item3.png ***!
\*********************************************************/
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
module.exports = __webpack_require__.p + "static/item3.ffc4bcec.png";
/***/ })

@ -1004,7 +1004,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -1214,6 +1216,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

@ -374,7 +374,9 @@ function coverToFileList(data) {
_ref$aloneClear = _ref.aloneClear,
aloneClear = _ref$aloneClear === void 0 ? false : _ref$aloneClear,
_ref$tip = _ref.tip,
tip = _ref$tip === void 0 ? '' : _ref$tip;
tip = _ref$tip === void 0 ? '' : _ref$tip,
_ref$tipStyle = _ref.tipStyle,
tipStyle = _ref$tipStyle === void 0 ? {} : _ref$tipStyle;
var _useState = (0,_react_17_0_2_react.useState)(false),
_useState2 = slicedToArray_default()(_useState, 2),
disabled = _useState2[0],
@ -584,6 +586,7 @@ function coverToFileList(data) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: onCancel,
className: "upload_text",
style: objectSpread2_default()({}, tipStyle),
children: tip ? tip : "(\u5355\u4E2A\u6587\u4EF6\u6700\u5927".concat(maxSize, "MB)")
})]
}))]

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 235 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

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