You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
351 lines
17 KiB
351 lines
17 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[58140],{
|
|
|
|
/***/ 35503:
|
|
/*!***************************************************!*\
|
|
!*** ./src/pages/Practices/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 */ Practices; }
|
|
});
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
|
var regeneratorRuntime = __webpack_require__(7557);
|
|
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
|
var asyncToGenerator = __webpack_require__(41498);
|
|
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
|
var objectSpread2 = __webpack_require__(82242);
|
|
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
|
var slicedToArray = __webpack_require__(79800);
|
|
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
|
var _umi_production_exports = __webpack_require__(88271);
|
|
;// CONCATENATED MODULE: ./src/pages/Practices/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Practicesmodules = ({"officialNotice":"officialNotice___viNFQ","nav_add":"nav_add___dlM_9","content":"content___TPBj4","content_right":"content_right___HKM3Y","div_two":"div_two___kkTTX","two_item":"two_item___uhCn2","two_img":"two_img___M3hdb","two_text":"two_text___RRGlD","two_time":"two_time___IodP1","time_year":"time_year___Y3qEQ","time_month":"time_month___a7D0n","div_one":"div_one___g6HzK","one_item":"one_item___DF57E","one_img":"one_img___cogcZ","one_text":"one_text___c499Y","one_title":"one_title___MQP7E","one_neirong":"one_neirong___o3V99","one_time":"one_time___qYslU"});
|
|
// EXTERNAL MODULE: ./src/pages/Practices/logo.png
|
|
var logo = __webpack_require__(5933);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/bg_top.png
|
|
var bg_top = __webpack_require__(25399);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/bg_bottom.png
|
|
var bg_bottom = __webpack_require__(21634);
|
|
// EXTERNAL MODULE: ./src/pages/Practices/PracticesModal/index.tsx
|
|
var PracticesModal = __webpack_require__(40395);
|
|
// 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/pagination/index.js + 10 modules
|
|
var pagination = __webpack_require__(19871);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(95972);
|
|
// EXTERNAL MODULE: ./src/service/practices.ts
|
|
var practices = __webpack_require__(90000);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(69423);
|
|
// 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/components/HeaderNav/index.tsx + 4 modules
|
|
var HeaderNav = __webpack_require__(59827);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/Practices/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var OfficialNotice = function OfficialNotice(_ref) {
|
|
var user = _ref.user,
|
|
dispatch = _ref.dispatch;
|
|
var _useState = (0,_react_17_0_2_react.useState)(''),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
menuName = _useState2[0],
|
|
setMenuName = _useState2[1];
|
|
var _useState3 = (0,_react_17_0_2_react.useState)({
|
|
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)([]),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
tableData = _useState8[0],
|
|
setTableData = _useState8[1];
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var handleChangePage = function handleChangePage(page, pageSize) {
|
|
params.page = page;
|
|
params.limit = pageSize;
|
|
setParams(objectSpread2_default()({}, params));
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (menuName) {
|
|
getData();
|
|
}
|
|
}, [menuName, params]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
if (searchParams.get("indexType")) {
|
|
setMenuName(searchParams.get("indexType"));
|
|
} else {
|
|
setMenuName('news');
|
|
}
|
|
}, []);
|
|
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:
|
|
_context.next = 2;
|
|
return (0,practices/* memos_list */.Yz)(objectSpread2_default()({
|
|
keyword: '',
|
|
container_type: 'TeachingActivity'
|
|
}, params)).then(function (res) {
|
|
if (res !== null && res !== void 0 && res.memo_list) {
|
|
// setTotal(res?.data?.count)
|
|
setTableData(res === null || res === void 0 ? void 0 : res.memo_list);
|
|
}
|
|
});
|
|
case 2:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getData() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var addDom = function addDom() {
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.nav_add,
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: '发布活动'
|
|
}
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: __webpack_require__(/*! ../OfficialNotice/img/fabu.png */ 457),
|
|
style: {
|
|
width: '2.5vh',
|
|
height: '2.5vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginLeft: '0.6vw',
|
|
fontSize: '1.4vh',
|
|
color: '#fff'
|
|
},
|
|
children: "\u53D1\u5E03\u6D3B\u52A8"
|
|
})]
|
|
});
|
|
};
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.officialNotice,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(HeaderNav/* default */.Z, {
|
|
addDom: addDom,
|
|
goBackUrl: '/laboratoryOverview',
|
|
imgUrl: logo
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.content,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.content_right,
|
|
style: {
|
|
backgroundImage: "url(".concat(menuName == 'notice' ? bg_bottom : bg_top, ")")
|
|
},
|
|
children: [menuName == 'notice' ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.div_two,
|
|
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
|
var _item$bg, _item$bg2;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.two_item,
|
|
onClick: function onClick() {
|
|
return (0,util/* openNewWindow */.xg)("/practices/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: item !== null && item !== void 0 && (_item$bg = item.bg) !== null && _item$bg !== void 0 && _item$bg.url ? env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg2 = item.bg) === null || _item$bg2 === void 0 ? void 0 : _item$bg2.url) : __webpack_require__(/*! ../OfficialNotice/img/mock_img.png */ 86738),
|
|
className: Practicesmodules.two_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "topLeft",
|
|
title: item === null || item === void 0 ? void 0 : item.name,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.two_text,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.two_time,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.time_year,
|
|
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('YYYY')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.time_month,
|
|
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('MM-DD')
|
|
})]
|
|
})]
|
|
}, index);
|
|
})
|
|
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.div_one,
|
|
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
|
var _item$narrator_users, _item$bg_file, _item$bg_file2;
|
|
var teacher = item === null || item === void 0 || (_item$narrator_users = item.narrator_users) === null || _item$narrator_users === void 0 ? void 0 : _item$narrator_users.map(function (e) {
|
|
return e.user_name;
|
|
}).join('、');
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.one_item,
|
|
onClick: function onClick() {
|
|
return (0,util/* openNewWindow */.xg)("/practices/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: item !== null && item !== void 0 && (_item$bg_file = item.bg_file) !== null && _item$bg_file !== void 0 && _item$bg_file.url ? env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg_file2 = item.bg_file) === null || _item$bg_file2 === void 0 ? void 0 : _item$bg_file2.url) : __webpack_require__(/*! ../OfficialNotice/img/mock_img.png */ 86738),
|
|
className: Practicesmodules.one_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.one_text,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "topLeft",
|
|
title: item === null || item === void 0 ? void 0 : item.subject,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.one_title,
|
|
children: item === null || item === void 0 ? void 0 : item.subject
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
color: '#fff',
|
|
fontWeight: 500
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginRight: 10,
|
|
fontWeight: 400,
|
|
color: 'rgba(255, 255, 255, 0.6)'
|
|
},
|
|
children: "\u89E3\u8BF4\u5458"
|
|
}), teacher || '--']
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
color: '#fff',
|
|
fontWeight: 500,
|
|
marginTop: '2vh'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginRight: 10,
|
|
fontWeight: 400,
|
|
color: 'rgba(255, 255, 255, 0.6)'
|
|
},
|
|
children: "\u53C2\u4E0E\u4EBA\u5458"
|
|
}), (item === null || item === void 0 ? void 0 : item.participant) || '--']
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Practicesmodules.one_time,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.time_year,
|
|
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('YYYY')
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Practicesmodules.time_month,
|
|
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at).format('MM-DD')
|
|
})]
|
|
})]
|
|
}, 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)(PracticesModal/* default */.Z, {
|
|
getData: getData
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Practices = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user;
|
|
return {
|
|
user: user
|
|
};
|
|
})(OfficialNotice));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 21634:
|
|
/*!****************************************************!*\
|
|
!*** ./src/pages/OfficialNotice/img/bg_bottom.png ***!
|
|
\****************************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__.p + "static/bg_bottom.ad8567a0.png";
|
|
|
|
/***/ }),
|
|
|
|
/***/ 25399:
|
|
/*!*************************************************!*\
|
|
!*** ./src/pages/OfficialNotice/img/bg_top.png ***!
|
|
\*************************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__.p + "static/bg_top.d6dde0ed.png";
|
|
|
|
/***/ }),
|
|
|
|
/***/ 457:
|
|
/*!***********************************************!*\
|
|
!*** ./src/pages/OfficialNotice/img/fabu.png ***!
|
|
\***********************************************/
|
|
/***/ (function(module) {
|
|
|
|
module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAABU1JREFUaEPlm2nIbVMYx3/LkCHzPGWeMg+Z+SAUN+WbezMkKSGKiITii/ggSXwSEkqU8oGrS6JcLiFEF/feqNc1X0Pmadn/c5/9ts+2z9lr2Od9D/up3VvveYb132utZz3D2o4Jkfd+PWArYHNgE3s2APR/PaI/7fkN+NGe74E1zjn91jm5LjV67wVoZ2BHYEsgVb8HvgU+Az51zumFdEKpAxoy7r3fGtgb2DYD5ChAAv8VsMI5900u6izA3vttgP1s6eaOJUR+DfCBc+7rEOYmniTA3vsNgQOBnVINZ8qtBt5zzv0aqycasPd+e+CIiuOJtdkVv5zam865L2IURgH23u8FHBBjYA5433fOrQy1EwTYe78ucAiwS6jiOeabAd5xzv3VZrcVsB01R9kx06ZvPn/XMfZ62xE2FrDN7HH/AbDlixboV8bNdBvgw6d4GY9aTTPOubdG/TgS8JQ6qNAtM9KRNQK2o+foUO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qbS0vLO16TbrUI0N8Bo70UOKPGp5nVDOdSc6vFZllR0Xw10+oVlNuApbloq20W6Zq2dumJwGHAu4Dy31wa3y61WdYtu/40xA20btv148pDuYZ6damlAnqSqWPu/hwln3ZtyZa2CuP9uZhmoBV29uPqYWVp9+dyaXWjTKkj6/76cA10fy6IV5Z4fz4BqM12Pz7yqB+AdsdLnwdM8jOelTlfs5Rjbr0RHxMd9OZDraaXMq2f4v0DVwmpJnVRg1gAAAAASUVORK5CYII=";
|
|
|
|
/***/ }),
|
|
|
|
/***/ 86738:
|
|
/*!***************************************************!*\
|
|
!*** ./src/pages/OfficialNotice/img/mock_img.png ***!
|
|
\***************************************************/
|
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
|
|
module.exports = __webpack_require__.p + "static/mock_img.8bb20e42.png";
|
|
|
|
/***/ })
|
|
|
|
}]); |