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.
490 lines
22 KiB
490 lines
22 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[5808],{
|
|
|
|
/***/ 81132:
|
|
/*!******************************************************************************************************!*\
|
|
!*** ./node_modules/_@ant-design_icons@5.6.0@@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.7@@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(16378);
|
|
// 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.6.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
var AntdIcon = __webpack_require__(31533);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.0@@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
|
|
}));
|
|
};
|
|
|
|
/** */
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(LeftOutlined_LeftOutlined);
|
|
if (false) {}
|
|
/* harmony default export */ var icons_LeftOutlined = (RefIcon);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 38226:
|
|
/*!*******************************************************************************************************!*\
|
|
!*** ./node_modules/_@ant-design_icons@5.6.0@@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.7@@babel/runtime/helpers/esm/extends.js
|
|
var esm_extends = __webpack_require__(16378);
|
|
// 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.6.0@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
var AntdIcon = __webpack_require__(31533);
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.0@@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
|
|
}));
|
|
};
|
|
|
|
/** */
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(RightOutlined_RightOutlined);
|
|
if (false) {}
|
|
/* harmony default export */ var icons_RightOutlined = (RefIcon);
|
|
|
|
/***/ }),
|
|
|
|
/***/ 25023:
|
|
/*!******************************************************!*\
|
|
!*** ./src/pages/OfficialList/index.tsx + 3 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 */ OfficialList; }
|
|
});
|
|
|
|
// 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/OfficialList/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var OfficialListmodules = ({"officialNotice":"officialNotice___aPu5P","nav_bg":"nav_bg___JQsuC","nav_left":"nav_left___Fxymw","nav_title":"nav_title___bsbNw","nav_right":"nav_right___E9XW0","nav_add":"nav_add___MOSy5","user_info":"user_info___zQNl4","user_name":"user_name___uYHZQ","content":"content___WYYge","content_left":"content_left___IDSCJ","menu_item":"menu_item___EwUiB","sanjiao":"sanjiao___XZmjU","content_right":"content_right___fREBG","div_two":"div_two___gjlAu","two_item":"two_item___h54Zk","two_img":"two_img___cBgt8","two_text":"two_text___Mghla","two_time":"two_time___DWfwV","time_year":"time_year___lD5w4","time_month":"time_month___nTMBD","div_one":"div_one___K4jEm","one_item":"one_item___pCRop","one_img":"one_img___lNghr","one_text":"one_text___J7ce_","one_title":"one_title___WSpHH","one_neirong":"one_neirong___aPVXr","one_time":"one_time___QxD0Q"});
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/jia.svg
|
|
var jia = __webpack_require__(71148);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/xiaoxi.svg
|
|
var xiaoxi = __webpack_require__(4288);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/xiala.svg
|
|
var xiala = __webpack_require__(29545);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/yw.svg
|
|
var yw = __webpack_require__(24559);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/dt.svg
|
|
var dt = __webpack_require__(86356);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/img/gg.svg
|
|
var gg = __webpack_require__(82026);
|
|
;// CONCATENATED MODULE: ./src/pages/OfficialNotice/img/bg_top.png
|
|
var bg_top_namespaceObject = __webpack_require__.p + "static/bg_top.d6dde0ed.png";
|
|
;// CONCATENATED MODULE: ./src/pages/OfficialNotice/img/bg_bottom.png
|
|
var bg_bottom_namespaceObject = __webpack_require__.p + "static/bg_bottom.ad8567a0.png";
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/OfficialModal/index.tsx
|
|
var OfficialModal = __webpack_require__(73961);
|
|
// 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/broadcast.ts
|
|
var broadcast = __webpack_require__(27895);
|
|
// 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: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/OfficialList/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var OfficialNotice = function OfficialNotice(_ref) {
|
|
var user = _ref.user,
|
|
dispatch = _ref.dispatch;
|
|
var _useState = (0,_react_17_0_2_react.useState)('news'),
|
|
_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 handleChangePage = function handleChangePage(page, pageSize) {
|
|
params.page = page;
|
|
params.limit = pageSize;
|
|
setParams(objectSpread2_default()({}, params));
|
|
};
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getData();
|
|
}, [menuName, 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:
|
|
_context.next = 2;
|
|
return (0,broadcast/* broadcasts_query */.u$)({
|
|
page: 1,
|
|
limit: 8,
|
|
type: 'public',
|
|
keyword: '',
|
|
source: 'broadcast',
|
|
category: menuName
|
|
}).then(function (res) {
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
var _res$data, _res$data2;
|
|
setTotal(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.count);
|
|
setTableData(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.list);
|
|
}
|
|
});
|
|
case 2:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getData() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.officialNotice,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.nav_bg,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.nav_left,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
cursor: 'pointer',
|
|
display: 'flex',
|
|
alignItems: 'center'
|
|
},
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push('/officialNotice');
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: __webpack_require__(/*! ../OfficialNotice/img/fanhui.png */ 98445),
|
|
style: {
|
|
width: '2vh',
|
|
height: '1.9vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
style: {
|
|
marginLeft: '0.6vw',
|
|
fontSize: '1.4vh',
|
|
color: '#fff'
|
|
},
|
|
children: "\u8FD4\u56DE"
|
|
})]
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.nav_title
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.nav_right,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.nav_add,
|
|
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'
|
|
},
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: '发布公告'
|
|
}
|
|
});
|
|
},
|
|
children: "\u53D1\u5E03\u516C\u544A"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: jia/* default */.Z,
|
|
style: {
|
|
width: '1.5vh',
|
|
height: '1.5vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: xiaoxi/* default */.Z,
|
|
style: {
|
|
width: '1.5vh',
|
|
height: '1.5vh',
|
|
margin: '0 1vw'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.user_info,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: __webpack_require__(/*! ../OfficialNotice/img/userImg.png */ 43938),
|
|
style: {
|
|
borderRadius: '50%',
|
|
height: '3vh',
|
|
width: '3vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialListmodules.user_name,
|
|
children: "\u5F20\u4E09\u5C81"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: xiala/* default */.Z,
|
|
style: {
|
|
width: '1.4vh',
|
|
height: '0.6vh'
|
|
}
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.content_left,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.menu_item,
|
|
style: {
|
|
opacity: menuName == 'news' ? '1' : '0.4'
|
|
},
|
|
onClick: function onClick() {
|
|
setMenuName('news');
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: yw/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.2vh',
|
|
marginRight: '0.5vw',
|
|
marginLeft: '1.8vw'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialListmodules.title_name,
|
|
children: "\u5B66\u9662\u8981\u95FB"
|
|
}), menuName == 'news' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.sanjiao
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.menu_item,
|
|
style: {
|
|
opacity: menuName == 'developments' ? '1' : '0.4'
|
|
},
|
|
onClick: function onClick() {
|
|
setMenuName('developments');
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: dt/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.4vh',
|
|
marginRight: '0.5vw',
|
|
marginLeft: '1.8vw'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialListmodules.title_name,
|
|
children: "\u5B66\u9662\u52A8\u6001"
|
|
}), menuName == 'developments' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.sanjiao
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.menu_item,
|
|
style: {
|
|
opacity: menuName == 'notice' ? '1' : '0.4'
|
|
},
|
|
onClick: function onClick() {
|
|
setMenuName('notice');
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: gg/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.4vh',
|
|
marginRight: '0.5vw',
|
|
marginLeft: '1.8vw'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialListmodules.title_name,
|
|
children: "\u901A\u77E5\u516C\u544A"
|
|
}), menuName == 'notice' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.sanjiao
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.content_right,
|
|
style: {
|
|
backgroundImage: "url(".concat(menuName == 'notice' ? bg_bottom_namespaceObject : bg_top_namespaceObject, ")")
|
|
},
|
|
children: [menuName == 'notice' ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.div_two,
|
|
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
|
var _item$bg;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.two_item,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg = item.bg) === null || _item$bg === void 0 ? void 0 : _item$bg.url),
|
|
className: OfficialListmodules.two_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.two_text,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.two_time,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.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: OfficialListmodules.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: OfficialListmodules.div_one,
|
|
children: tableData === null || tableData === void 0 ? void 0 : tableData.map(function (item, index) {
|
|
var _item$bg2;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.one_item,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + (item === null || item === void 0 || (_item$bg2 = item.bg) === null || _item$bg2 === void 0 ? void 0 : _item$bg2.url),
|
|
className: OfficialListmodules.one_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.one_text,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.one_title,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.one_neirong,
|
|
children: item === null || item === void 0 ? void 0 : item.subtitle
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialListmodules.one_time,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialListmodules.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: OfficialListmodules.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)(OfficialModal/* default */.Z, {})]
|
|
});
|
|
};
|
|
/* harmony default export */ var OfficialList = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user;
|
|
return {
|
|
user: user
|
|
};
|
|
})(OfficialNotice));
|
|
|
|
/***/ })
|
|
|
|
}]); |