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.
620 lines
32 KiB
620 lines
32 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[95762],{
|
|
|
|
/***/ 64223:
|
|
/*!********************************************************!*\
|
|
!*** ./src/pages/OfficialNotice/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 */ pages_OfficialNotice; }
|
|
});
|
|
|
|
// 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/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/OfficialNotice/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var OfficialNoticemodules = ({"officialNotice":"officialNotice___U4fbC","nav_bg":"nav_bg___FxNor","nav_left":"nav_left___K_4iM","nav_title":"nav_title___w9QAZ","nav_right":"nav_right___QVPXP","nav_add":"nav_add___ROXeS","user_info":"user_info___rtJ9K","user_name":"user_name___X0OEc","content":"content___LX49u","yaowen":"yaowen___iN8Xr","yaowen_left":"yaowen_left___wZVcF","yaowen_left_img":"yaowen_left_img___sWIOc","yaowen_left_text":"yaowen_left_text___Zo8bf","yaowen_right":"yaowen_right___h3hFJ","yaowen_right_item":"yaowen_right_item___aI7VH","yaowen_right_img":"yaowen_right_img___pRfeO","yaowen_right_text_list":"yaowen_right_text_list___tUrJM","yaowen_right_title":"yaowen_right_title___YH9NR","yaowen_right_text":"yaowen_right_text___ZTdDX","dongtai":"dongtai___Kihud","dongtai_list":"dongtai_list___W0HP3","dongtai_item":"dongtai_item___ztqLi","dongtai_img":"dongtai_img___swwSk","dongtai_text":"dongtai_text___NEOjJ","gonggao":"gonggao___IR3zD","gonggao_list":"gonggao_list___GqTOO","gonggao_item":"gonggao_item___SImpc","gonggao_img":"gonggao_img___oxHlO","gonggao_text":"gonggao_text___C7lpv","div_title":"div_title___XTyme","title_name":"title_name___HonuY","title_more":"title_more___vf6Za"});
|
|
// 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/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);
|
|
// EXTERNAL MODULE: ./src/pages/OfficialNotice/OfficialModal/index.tsx
|
|
var OfficialModal = __webpack_require__(73961);
|
|
// 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: ./src/components/Header/components/User/index.tsx + 1 modules
|
|
var User = __webpack_require__(32342);
|
|
// EXTERNAL MODULE: ./src/components/Header/components/Join/index.tsx + 4 modules
|
|
var Join = __webpack_require__(79687);
|
|
// 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/OfficialNotice/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var OfficialNotice = function OfficialNotice(_ref) {
|
|
var _user$userInfo, _user$userInfo2, _user$navigationInfo, _broadData$news2, _broadData$news3, _broadData$news5, _broadData$news6, _broadData$news7, _broadData$news9, _broadData$news10, _broadData$news11, _broadData$developmen, _broadData$notices;
|
|
var user = _ref.user,
|
|
dispatch = _ref.dispatch,
|
|
globalSetting = _ref.globalSetting;
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
broadData = _useState2[0],
|
|
setBroadData = _useState2[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
getData();
|
|
}, []);
|
|
var getData = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return (0,broadcast/* broadcasts_homepage */.xq)({}).then(function (res) {
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
setBroadData(res === null || res === void 0 ? void 0 : res.data);
|
|
}
|
|
});
|
|
case 2:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getData() {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.officialNotice,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.nav_bg,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.nav_left,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
cursor: 'pointer',
|
|
display: 'flex',
|
|
alignItems: 'center'
|
|
},
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push('/defendCloud?indexType=right');
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: __webpack_require__(/*! ./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: OfficialNoticemodules.nav_title
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.nav_right,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.nav_add,
|
|
onClick: function onClick() {
|
|
dispatch({
|
|
type: 'account/setActionTabs',
|
|
payload: {
|
|
key: '发布公告'
|
|
}
|
|
});
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: __webpack_require__(/*! ./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\u516C\u544A"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(Join/* default */.Z, {
|
|
moreIcon: jia/* default */.Z
|
|
}), !!(user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.login) && /*#__PURE__*/(0,jsx_runtime.jsx)(_umi_production_exports.Link, {
|
|
className: "c-white ml15 mr15 font18 relative",
|
|
to: "/messages/".concat(user === null || user === void 0 || (_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, "/user_tidings"),
|
|
style: {
|
|
color: '#3061D0'
|
|
},
|
|
children: (user === null || user === void 0 || (_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.new_message) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: "thumbnail_3",
|
|
src: xiaoxi/* default */.Z
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(User/* default */.Z, {})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.content,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.div_title,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: yw/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.2vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialNoticemodules.title_name,
|
|
children: "\u5B66\u9662\u8981\u95FB"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: OfficialNoticemodules.title_more,
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push('/officialList');
|
|
},
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xiaojiantou",
|
|
style: {
|
|
fontSize: '1.2vh'
|
|
}
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
style: {
|
|
display: 'flex'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_left,
|
|
onClick: function onClick() {
|
|
var _broadData$news;
|
|
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(broadData === null || broadData === void 0 || (_broadData$news = broadData.news) === null || _broadData$news === void 0 || (_broadData$news = _broadData$news[0]) === null || _broadData$news === void 0 ? void 0 : _broadData$news.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + (broadData === null || broadData === void 0 || (_broadData$news2 = broadData.news) === null || _broadData$news2 === void 0 || (_broadData$news2 = _broadData$news2[0]) === null || _broadData$news2 === void 0 || (_broadData$news2 = _broadData$news2.bg) === null || _broadData$news2 === void 0 ? void 0 : _broadData$news2.url),
|
|
className: OfficialNoticemodules.yaowen_left_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.yaowen_left_text,
|
|
children: broadData === null || broadData === void 0 || (_broadData$news3 = broadData.news) === null || _broadData$news3 === void 0 || (_broadData$news3 = _broadData$news3[0]) === null || _broadData$news3 === void 0 ? void 0 : _broadData$news3.name
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_right,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_item,
|
|
onClick: function onClick() {
|
|
var _broadData$news4;
|
|
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(broadData === null || broadData === void 0 || (_broadData$news4 = broadData.news) === null || _broadData$news4 === void 0 || (_broadData$news4 = _broadData$news4[1]) === null || _broadData$news4 === void 0 ? void 0 : _broadData$news4.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + (broadData === null || broadData === void 0 || (_broadData$news5 = broadData.news) === null || _broadData$news5 === void 0 || (_broadData$news5 = _broadData$news5[1]) === null || _broadData$news5 === void 0 || (_broadData$news5 = _broadData$news5.bg) === null || _broadData$news5 === void 0 ? void 0 : _broadData$news5.url),
|
|
className: OfficialNoticemodules.yaowen_right_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_text_list,
|
|
style: {
|
|
marginLeft: '1vw'
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_title,
|
|
children: broadData === null || broadData === void 0 || (_broadData$news6 = broadData.news) === null || _broadData$news6 === void 0 || (_broadData$news6 = _broadData$news6[1]) === null || _broadData$news6 === void 0 ? void 0 : _broadData$news6.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_text,
|
|
children: broadData === null || broadData === void 0 || (_broadData$news7 = broadData.news) === null || _broadData$news7 === void 0 || (_broadData$news7 = _broadData$news7[1]) === null || _broadData$news7 === void 0 ? void 0 : _broadData$news7.subtitle
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_item,
|
|
style: {
|
|
marginTop: '1.06vw'
|
|
},
|
|
onClick: function onClick() {
|
|
var _broadData$news8;
|
|
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(broadData === null || broadData === void 0 || (_broadData$news8 = broadData.news) === null || _broadData$news8 === void 0 || (_broadData$news8 = _broadData$news8[2]) === null || _broadData$news8 === void 0 ? void 0 : _broadData$news8.id, "/detail"));
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_text_list,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_title,
|
|
children: broadData === null || broadData === void 0 || (_broadData$news9 = broadData.news) === null || _broadData$news9 === void 0 || (_broadData$news9 = _broadData$news9[2]) === null || _broadData$news9 === void 0 ? void 0 : _broadData$news9.name
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.yaowen_right_text,
|
|
children: broadData === null || broadData === void 0 || (_broadData$news10 = broadData.news) === null || _broadData$news10 === void 0 || (_broadData$news10 = _broadData$news10[2]) === null || _broadData$news10 === void 0 ? void 0 : _broadData$news10.subtitle
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: env/* default */.Z.API_SERVER + (broadData === null || broadData === void 0 || (_broadData$news11 = broadData.news) === null || _broadData$news11 === void 0 || (_broadData$news11 = _broadData$news11[2]) === null || _broadData$news11 === void 0 || (_broadData$news11 = _broadData$news11.bg) === null || _broadData$news11 === void 0 ? void 0 : _broadData$news11.url),
|
|
className: OfficialNoticemodules.yaowen_right_img,
|
|
style: {
|
|
marginLeft: '1vw'
|
|
}
|
|
})]
|
|
})]
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.dongtai,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.div_title,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: dt/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.4vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialNoticemodules.title_name,
|
|
children: "\u5B66\u9662\u52A8\u6001"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: OfficialNoticemodules.title_more,
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push('/officialList');
|
|
},
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xiaojiantou",
|
|
style: {
|
|
fontSize: '1.2vh'
|
|
}
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.dongtai_list,
|
|
children: broadData === null || broadData === void 0 || (_broadData$developmen = broadData.developments) === null || _broadData$developmen === void 0 ? void 0 : _broadData$developmen.map(function (item, index) {
|
|
var _item$bg;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.dongtai_item,
|
|
onClick: function onClick() {
|
|
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
|
},
|
|
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: OfficialNoticemodules.dongtai_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.dongtai_text,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
})]
|
|
}, index);
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.gonggao,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.div_title,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
src: gg/* default */.Z,
|
|
style: {
|
|
width: '1.4vw',
|
|
height: '2.4vh'
|
|
}
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: OfficialNoticemodules.title_name,
|
|
children: "\u901A\u77E5\u516C\u544A"
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: OfficialNoticemodules.title_more,
|
|
onClick: function onClick() {
|
|
_umi_production_exports.history.push('/officialList');
|
|
},
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xiaojiantou",
|
|
style: {
|
|
fontSize: '1.2vh'
|
|
}
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.gonggao_list,
|
|
children: broadData === null || broadData === void 0 || (_broadData$notices = broadData.notices) === null || _broadData$notices === void 0 ? void 0 : _broadData$notices.map(function (item, index) {
|
|
var _item$bg2;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: OfficialNoticemodules.gonggao_item,
|
|
onClick: function onClick() {
|
|
return (0,util/* openNewWindow */.xg)("/broadcast/".concat(item === null || item === void 0 ? void 0 : item.id, "/detail"));
|
|
},
|
|
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: OfficialNoticemodules.gonggao_img
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: OfficialNoticemodules.gonggao_text,
|
|
children: item === null || item === void 0 ? void 0 : item.name
|
|
})]
|
|
}, index);
|
|
})
|
|
})]
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(OfficialModal/* default */.Z, {
|
|
getData: getData
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var pages_OfficialNotice = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user,
|
|
globalSetting = _ref3.globalSetting;
|
|
return {
|
|
user: user,
|
|
globalSetting: globalSetting
|
|
};
|
|
})(OfficialNotice));
|
|
|
|
/***/ }),
|
|
|
|
/***/ 56762:
|
|
/*!************************************************************************!*\
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/_util/hooks/useForceUpdate.js ***!
|
|
\************************************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
/* harmony export */ Z: function() { return /* binding */ useForceUpdate; }
|
|
/* harmony export */ });
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ 59301);
|
|
|
|
function useForceUpdate() {
|
|
const [, forceUpdate] = react__WEBPACK_IMPORTED_MODULE_0__.useReducer(x => x + 1, 0);
|
|
return forceUpdate;
|
|
}
|
|
|
|
/***/ }),
|
|
|
|
/***/ 57809:
|
|
/*!**********************************************************!*\
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/select/index.js ***!
|
|
\**********************************************************/
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! classnames */ 92310);
|
|
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_0__);
|
|
/* harmony import */ var rc_select__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! rc-select */ 77861);
|
|
/* harmony import */ var rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! rc-util/es/omit */ 64002);
|
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ 59301);
|
|
/* harmony import */ var _util_PurePanel__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_util/PurePanel */ 53487);
|
|
/* harmony import */ var _util_motion__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../_util/motion */ 62892);
|
|
/* harmony import */ var _util_statusUtils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../_util/statusUtils */ 19080);
|
|
/* harmony import */ var _config_provider__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../config-provider */ 36355);
|
|
/* harmony import */ var _config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/DisabledContext */ 1684);
|
|
/* harmony import */ var _config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../config-provider/defaultRenderEmpty */ 93891);
|
|
/* harmony import */ var _config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../config-provider/hooks/useSize */ 19716);
|
|
/* harmony import */ var _form_context__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../form/context */ 32441);
|
|
/* harmony import */ var _space_Compact__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../space/Compact */ 33234);
|
|
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./style */ 14154);
|
|
/* harmony import */ var _useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./useBuiltinPlacements */ 58582);
|
|
/* harmony import */ var _useShowArrow__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./useShowArrow */ 84443);
|
|
/* harmony import */ var _utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./utils/iconUtil */ 66339);
|
|
"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;
|
|
};
|
|
// TODO: 4.0 - codemod should help to change `filterOption` to support node props.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';
|
|
const InternalSelect = (_a, ref) => {
|
|
var _b;
|
|
var {
|
|
prefixCls: customizePrefixCls,
|
|
bordered = true,
|
|
className,
|
|
rootClassName,
|
|
getPopupContainer,
|
|
popupClassName,
|
|
dropdownClassName,
|
|
listHeight = 256,
|
|
placement,
|
|
listItemHeight = 24,
|
|
size: customizeSize,
|
|
disabled: customDisabled,
|
|
notFoundContent,
|
|
status: customStatus,
|
|
builtinPlacements,
|
|
dropdownMatchSelectWidth,
|
|
popupMatchSelectWidth,
|
|
direction: propDirection,
|
|
style,
|
|
allowClear
|
|
} = _a,
|
|
props = __rest(_a, ["prefixCls", "bordered", "className", "rootClassName", "getPopupContainer", "popupClassName", "dropdownClassName", "listHeight", "placement", "listItemHeight", "size", "disabled", "notFoundContent", "status", "builtinPlacements", "dropdownMatchSelectWidth", "popupMatchSelectWidth", "direction", "style", "allowClear"]);
|
|
const {
|
|
getPopupContainer: getContextPopupContainer,
|
|
getPrefixCls,
|
|
renderEmpty,
|
|
direction: contextDirection,
|
|
virtual,
|
|
popupMatchSelectWidth: contextPopupMatchSelectWidth,
|
|
popupOverflow,
|
|
select
|
|
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_3__/* .ConfigContext */ .E_);
|
|
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
|
const rootPrefixCls = getPrefixCls();
|
|
const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;
|
|
const {
|
|
compactSize,
|
|
compactItemClassnames
|
|
} = (0,_space_Compact__WEBPACK_IMPORTED_MODULE_4__/* .useCompactItemContext */ .ri)(prefixCls, direction);
|
|
const [wrapSSR, hashId] = (0,_style__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(prefixCls);
|
|
const mode = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
|
const {
|
|
mode: m
|
|
} = props;
|
|
if (m === 'combobox') {
|
|
return undefined;
|
|
}
|
|
if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {
|
|
return 'combobox';
|
|
}
|
|
return m;
|
|
}, [props.mode]);
|
|
const isMultiple = mode === 'multiple' || mode === 'tags';
|
|
const showSuffixIcon = (0,_useShowArrow__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(props.suffixIcon, props.showArrow);
|
|
const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;
|
|
// ===================== Form Status =====================
|
|
const {
|
|
status: contextStatus,
|
|
hasFeedback,
|
|
isFormItemInput,
|
|
feedbackIcon
|
|
} = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_form_context__WEBPACK_IMPORTED_MODULE_7__/* .FormItemInputContext */ .aM);
|
|
const mergedStatus = (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getMergedStatus */ .F)(contextStatus, customStatus);
|
|
// ===================== Empty =====================
|
|
let mergedNotFound;
|
|
if (notFoundContent !== undefined) {
|
|
mergedNotFound = notFoundContent;
|
|
} else if (mode === 'combobox') {
|
|
mergedNotFound = null;
|
|
} else {
|
|
mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(_config_provider_defaultRenderEmpty__WEBPACK_IMPORTED_MODULE_9__/* ["default"] */ .Z, {
|
|
componentName: "Select"
|
|
});
|
|
}
|
|
// ===================== Icons =====================
|
|
const {
|
|
suffixIcon,
|
|
itemIcon,
|
|
removeIcon,
|
|
clearIcon
|
|
} = (0,_utils_iconUtil__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(Object.assign(Object.assign({}, props), {
|
|
multiple: isMultiple,
|
|
hasFeedback,
|
|
feedbackIcon,
|
|
showSuffixIcon,
|
|
prefixCls,
|
|
showArrow: props.showArrow,
|
|
componentName: 'Select'
|
|
}));
|
|
const mergedAllowClear = allowClear === true ? {
|
|
clearIcon
|
|
} : allowClear;
|
|
const selectProps = (0,rc_util_es_omit__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .Z)(props, ['suffixIcon', 'itemIcon']);
|
|
const rcSelectRtlDropdownClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()(popupClassName || dropdownClassName, {
|
|
[`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'
|
|
}, rootClassName, hashId);
|
|
const mergedSize = (0,_config_provider_hooks_useSize__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(ctx => {
|
|
var _a;
|
|
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
|
});
|
|
// ===================== Disabled =====================
|
|
const disabled = react__WEBPACK_IMPORTED_MODULE_2__.useContext(_config_provider_DisabledContext__WEBPACK_IMPORTED_MODULE_13__/* ["default"] */ .Z);
|
|
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
const mergedClassName = classnames__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
[`${prefixCls}-lg`]: mergedSize === 'large',
|
|
[`${prefixCls}-sm`]: mergedSize === 'small',
|
|
[`${prefixCls}-rtl`]: direction === 'rtl',
|
|
[`${prefixCls}-borderless`]: !bordered,
|
|
[`${prefixCls}-in-form-item`]: isFormItemInput
|
|
}, (0,_util_statusUtils__WEBPACK_IMPORTED_MODULE_8__/* .getStatusClassNames */ .Z)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);
|
|
// ===================== Placement =====================
|
|
const memoPlacement = react__WEBPACK_IMPORTED_MODULE_2__.useMemo(() => {
|
|
if (placement !== undefined) {
|
|
return placement;
|
|
}
|
|
return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';
|
|
}, [placement, direction]);
|
|
const mergedBuiltinPlacements = (0,_useBuiltinPlacements__WEBPACK_IMPORTED_MODULE_14__/* ["default"] */ .Z)(builtinPlacements, popupOverflow);
|
|
// ====================== Warning ======================
|
|
if (false) {}
|
|
// ====================== Render =======================
|
|
return wrapSSR( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.createElement(rc_select__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .ZP, Object.assign({
|
|
ref: ref,
|
|
virtual: virtual,
|
|
showSearch: select === null || select === void 0 ? void 0 : select.showSearch
|
|
}, selectProps, {
|
|
style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),
|
|
dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,
|
|
builtinPlacements: mergedBuiltinPlacements,
|
|
transitionName: (0,_util_motion__WEBPACK_IMPORTED_MODULE_15__/* .getTransitionName */ .m)(rootPrefixCls, 'slide-up', props.transitionName),
|
|
listHeight: listHeight,
|
|
listItemHeight: listItemHeight,
|
|
mode: mode,
|
|
prefixCls: prefixCls,
|
|
placement: memoPlacement,
|
|
direction: direction,
|
|
suffixIcon: suffixIcon,
|
|
menuItemSelectedIcon: itemIcon,
|
|
removeIcon: removeIcon,
|
|
allowClear: mergedAllowClear,
|
|
notFoundContent: mergedNotFound,
|
|
className: mergedClassName,
|
|
getPopupContainer: getPopupContainer || getContextPopupContainer,
|
|
dropdownClassName: rcSelectRtlDropdownClassName,
|
|
disabled: mergedDisabled
|
|
})));
|
|
};
|
|
if (false) {}
|
|
const Select = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2__.forwardRef(InternalSelect);
|
|
// We don't care debug panel
|
|
/* istanbul ignore next */
|
|
const PurePanel = (0,_util_PurePanel__WEBPACK_IMPORTED_MODULE_16__/* ["default"] */ .Z)(Select);
|
|
Select.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;
|
|
Select.Option = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .Option */ .Wx;
|
|
Select.OptGroup = rc_select__WEBPACK_IMPORTED_MODULE_1__/* .OptGroup */ .Xo;
|
|
Select._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;
|
|
if (false) {}
|
|
/* harmony default export */ __webpack_exports__["default"] = (Select);
|
|
|
|
/***/ })
|
|
|
|
}]); |