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.
450 lines
20 KiB
450 lines
20 KiB
"use strict";
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4736],{
|
|
|
|
/***/ 60115:
|
|
/*!**************************************************************!*\
|
|
!*** ./src/pages/User/Detail/Projects/index.tsx + 4 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 */ Detail_Projects; }
|
|
});
|
|
|
|
// 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/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectWithoutProperties.js
|
|
var objectWithoutProperties = __webpack_require__(39647);
|
|
var objectWithoutProperties_default = /*#__PURE__*/__webpack_require__.n(objectWithoutProperties);
|
|
// 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__(25789);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
|
var skeleton = __webpack_require__(61621);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
|
|
var pagination = __webpack_require__(58421);
|
|
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Projectsmodules = ({"flex_box_center":"flex_box_center___HqRYP","flex_space_between":"flex_space_between___alxKc","flex_box_vertical_center":"flex_box_vertical_center___eubvI","flex_box_center_end":"flex_box_center_end___eeetl","flex_box_column":"flex_box_column___f71Fr","flex-col":"flex-col___OO4C1","flex-row":"flex-row___l288N","justify-start":"justify-start___A3LaL","justify-center":"justify-center___dFdXI","justify-end":"justify-end___VcNew","justify-evenly":"justify-evenly___Mq0kg","justify-around":"justify-around___zA8da","justify-between":"justify-between___HYsB9","align-start":"align-start___W8Go7","align-center":"align-center___JI7S0","align-end":"align-end___UNhss","wrap":"wrap___tNiRV","midWrap":"midWrap___QY9Zc","color999":"color999___gBtmk","orderWrap":"orderWrap___YTDu4","orderIconWrap":"orderIconWrap___moZO6","orderAsc":"orderAsc___Ukdgv","orderDesc":"orderDesc___EzbFO","color0152d9":"color0152d9___tmbR2","h10":"h10____qGYL","cursorPointer":"cursorPointer____ipRI","orderTextWrap":"orderTextWrap___XdMo2","cardWrap":"cardWrap___HHTqe","countWrap":"countWrap___zGG_l"});
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/card/index.js + 4 modules
|
|
var card = __webpack_require__(18889);
|
|
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/components/Items/index.less?modules
|
|
// extracted by mini-css-extract-plugin
|
|
/* harmony default export */ var Itemsmodules = ({"flex_box_center":"flex_box_center___JwugP","flex_space_between":"flex_space_between___Noq8b","flex_box_vertical_center":"flex_box_vertical_center___HCspq","flex_box_center_end":"flex_box_center_end___SVOIs","flex_box_column":"flex_box_column___mhoeu","flex-col":"flex-col___BLCGB","flex-row":"flex-row___VP0Gh","justify-start":"justify-start___evCHC","justify-center":"justify-center___HcmMh","justify-end":"justify-end___GEXDX","justify-evenly":"justify-evenly___ftezK","justify-around":"justify-around___Gle2s","justify-between":"justify-between___ej7XT","align-start":"align-start___YX9RJ","align-center":"align-center___EVA6I","align-end":"align-end___Bh0BK","wrap":"wrap____klhy","lockWrap":"lockWrap___onzlV","lockIcon":"lockIcon___nMIxN","topWrap":"topWrap___cwznr","bottomWrap":"bottomWrap___q9x5h","bottom":"bottom___mzMmr","bottomIconSpan":"bottomIconSpan___iUkhS","public":"public___Eb0Z9","borderFF6800":"borderFF6800____0Dfx","publicIcon":"publicIcon___r8mDR","publicText":"publicText___BuBKE","lockText":"lockText___xpO23","createIconWrap":"createIconWrap___a7ovS","createIcon":"createIcon___eai3X","leftIcon":"leftIcon___coXUA","rightIcon":"rightIcon___oJVkv","createTextWrap":"createTextWrap___Ddqkm","createText":"createText___Lri5K","title":"title___wDXDf","img":"img___MTAfi","teacherName":"teacherName___yP9fk","school":"school___GvxFu","color989898":"color989898___i5Xca","teacherUsers":"teacherUsers___rO2tG","sign":"sign___Ow0aN"});
|
|
// EXTERNAL MODULE: ./src/utils/verifyLogin.tsx + 2 modules
|
|
var verifyLogin = __webpack_require__(27125);
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
|
var jsx_runtime = __webpack_require__(37712);
|
|
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/components/Items/CreateCard.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var CreateCard = function CreateCard(_ref) {
|
|
var url = _ref.url,
|
|
name = _ref.name,
|
|
dispatch = _ref.dispatch;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
href: url,
|
|
className: Itemsmodules.wrap,
|
|
onClick: function onClick() {
|
|
if (!(0,verifyLogin/* handleVerify */.tJ)(dispatch)) {
|
|
return;
|
|
}
|
|
_umi_production_exports.history.push(url);
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(card/* default */.Z, {
|
|
className: "animated fadeIn",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Itemsmodules.createIconWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Itemsmodules.createIcon,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-xiangmu2"
|
|
})
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Itemsmodules.createTextWrap,
|
|
children: name
|
|
})]
|
|
})
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var Items_CreateCard = (CreateCard);
|
|
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
|
var NoData = __webpack_require__(61983);
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
var tooltip = __webpack_require__(6848);
|
|
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
|
var env = __webpack_require__(14160);
|
|
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/components/Items/index.tsx
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Items = function Items(_ref) {
|
|
var data = _ref.data,
|
|
old_url = _ref.old_url;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(_react_17_0_2_react.Fragment, {
|
|
children: data && data.map(function (item, key) {
|
|
var _item$owner, _item$owner2, _item$owner3;
|
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
|
className: Itemsmodules.wrap,
|
|
href: "".concat(old_url).concat(item.project_url),
|
|
onClick: function onClick() {
|
|
item.can_visited && (window.location.href = "".concat(old_url).concat(item.project_url));
|
|
},
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(card/* default */.Z, {
|
|
className: "animated fadeIn ".concat(Itemsmodules.cardWrap),
|
|
children: [item.is_public && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Itemsmodules.sign,
|
|
children: "\u516C\u5F00"
|
|
}), !item.can_visited && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Itemsmodules.lockWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: "mt80 mb25",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-guansuo ".concat(Itemsmodules.lockIcon)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: Itemsmodules.lockText,
|
|
children: "\u975E\u6210\u5458\u4E0D\u80FD\u8BBF\u95EE"
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Itemsmodules.topWrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
title: item.name,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: Itemsmodules.title,
|
|
children: item.name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
className: Itemsmodules.img,
|
|
alt: "\u7528\u6237",
|
|
height: "50",
|
|
width: "50",
|
|
src: "".concat(env/* default */.Z.IMG_SERVER, "/images/").concat((_item$owner = item.owner) === null || _item$owner === void 0 ? void 0 : _item$owner.avatar_url)
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: Itemsmodules.teacherName,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
title: (_item$owner2 = item.owner) === null || _item$owner2 === void 0 ? void 0 : _item$owner2.real_name,
|
|
children: (_item$owner3 = item.owner) === null || _item$owner3 === void 0 ? void 0 : _item$owner3.real_name
|
|
})
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("p", {
|
|
className: Itemsmodules.school,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
className: Itemsmodules.color989898,
|
|
children: item === null || item === void 0 ? void 0 : item.owner.school_name
|
|
})
|
|
})]
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Itemsmodules.bottomWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Itemsmodules.bottom,
|
|
children: [item.members_count > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "bottom",
|
|
title: "\u6210\u5458",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Itemsmodules.bottomIconSpan,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-chengyuan font12"
|
|
}), item.members_count]
|
|
})
|
|
}), item.issues_count > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "bottom",
|
|
title: "issues\u6570",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Itemsmodules.bottomIconSpan,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-issue font12"
|
|
}), item.issues_count]
|
|
})
|
|
}), item.changesets_count > 0 && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
|
placement: "bottom",
|
|
title: "\u7248\u672C\u5E93",
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
className: Itemsmodules.bottomIconSpan,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
className: "iconfont icon-banbenku font12"
|
|
}), item.changesets_count]
|
|
})
|
|
})]
|
|
})
|
|
})]
|
|
})
|
|
}, item.id);
|
|
})
|
|
});
|
|
};
|
|
/* harmony default export */ var components_Items = (Items);
|
|
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 50 modules
|
|
var ui_customization = __webpack_require__(91384);
|
|
// EXTERNAL MODULE: ./src/utils/util.tsx
|
|
var util = __webpack_require__(20681);
|
|
;// CONCATENATED MODULE: ./src/pages/User/Detail/Projects/index.tsx
|
|
|
|
|
|
|
|
|
|
var _excluded = ["user", "userDetail", "globalSetting", "loading", "dispatch"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var Projects = function Projects(_ref) {
|
|
var _user$userInfo2, _user$navigationInfo, _user$navigationInfo2;
|
|
var user = _ref.user,
|
|
userDetail = _ref.userDetail,
|
|
globalSetting = _ref.globalSetting,
|
|
loading = _ref.loading,
|
|
dispatch = _ref.dispatch,
|
|
props = objectWithoutProperties_default()(_ref, _excluded);
|
|
var _useSearchParams = (0,_umi_production_exports.useSearchParams)(),
|
|
_useSearchParams2 = slicedToArray_default()(_useSearchParams, 1),
|
|
searchParams = _useSearchParams2[0];
|
|
var location = (0,_umi_production_exports.useLocation)();
|
|
var _useState = (0,_react_17_0_2_react.useState)({}),
|
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
params = _useState2[0],
|
|
setParams = _useState2[1];
|
|
var username = (0,_react_17_0_2_react.useRef)();
|
|
var _useState3 = (0,_react_17_0_2_react.useState)(0),
|
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
count = _useState4[0],
|
|
setCount = _useState4[1];
|
|
var _useState5 = (0,_react_17_0_2_react.useState)([]),
|
|
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
data = _useState6[0],
|
|
setData = _useState6[1];
|
|
var _useState7 = (0,_react_17_0_2_react.useState)(),
|
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
isCurrent = _useState8[0],
|
|
setIsCurrent = _useState8[1];
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _location$pathname$sp;
|
|
username.current = (_location$pathname$sp = location.pathname.split('/')) === null || _location$pathname$sp === void 0 ? void 0 : _location$pathname$sp[2];
|
|
var query = {
|
|
category: searchParams.get("category") || '',
|
|
status: searchParams.get("status") || '',
|
|
page: 1,
|
|
per_page: 15,
|
|
sort_by: 'updated_on',
|
|
sort_direction: 'desc',
|
|
username: username.current
|
|
};
|
|
setParams(query);
|
|
getProjects(query);
|
|
}, [location.pathname]);
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
var _user$userInfo;
|
|
setIsCurrent(((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.login) === username.current);
|
|
}, [(_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login, username.current]);
|
|
var getProjects = /*#__PURE__*/function () {
|
|
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee(query) {
|
|
var res;
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
while (1) switch (_context.prev = _context.next) {
|
|
case 0:
|
|
_context.next = 2;
|
|
return dispatch({
|
|
type: 'userDetail/getProjects',
|
|
payload: query
|
|
});
|
|
case 2:
|
|
res = _context.sent;
|
|
if (res) {
|
|
setCount(res.count || 0);
|
|
setData(res.projects || []);
|
|
}
|
|
case 4:
|
|
case "end":
|
|
return _context.stop();
|
|
}
|
|
}, _callee);
|
|
}));
|
|
return function getProjects(_x) {
|
|
return _ref2.apply(this, arguments);
|
|
};
|
|
}();
|
|
var handleChangeCategory = function handleChangeCategory(category) {
|
|
var _window$location$href;
|
|
params.category = category;
|
|
params.status = '';
|
|
params.page = 1;
|
|
if ((_window$location$href = window.location.href.toString()) !== null && _window$location$href !== void 0 && _window$location$href.includes('category')) {
|
|
(0,util/* replaceParamVal */.jz)('category', category);
|
|
(0,util/* replaceParamVal */.jz)('status', '');
|
|
} else {
|
|
window.history.replaceState(null, '', window.location.href.indexOf('?') > -1 ? window.location.href + "&category=".concat(category) : "?category=".concat(category));
|
|
}
|
|
setParams(params);
|
|
getProjects(params);
|
|
};
|
|
var handleChangeStatus = function handleChangeStatus(status) {
|
|
var _window$location$href2;
|
|
params.status = status;
|
|
params.page = 1;
|
|
if ((_window$location$href2 = window.location.href.toString()) !== null && _window$location$href2 !== void 0 && _window$location$href2.includes('status')) {
|
|
(0,util/* replaceParamVal */.jz)('status', status);
|
|
} else {
|
|
window.history.replaceState(null, '', window.location.href.indexOf('?') > -1 ? window.location.href + "&status=".concat(status) : "?status=".concat(status));
|
|
}
|
|
setParams(params);
|
|
getProjects(params);
|
|
};
|
|
var handleChangeOrder = function handleChangeOrder(sort_direction) {
|
|
params.sort_direction = sort_direction;
|
|
setParams(params);
|
|
getProjects(params);
|
|
};
|
|
var handleChangeOrderField = function handleChangeOrderField(sort_by) {
|
|
params.sort_by = sort_by;
|
|
params.sort_direction = 'desc';
|
|
setParams(params);
|
|
getProjects(params);
|
|
};
|
|
var handleChangePage = function handleChangePage(page) {
|
|
params.page = page;
|
|
setParams(params);
|
|
getProjects(params);
|
|
};
|
|
var renderCategoryText = function renderCategoryText() {
|
|
if (!params.category) {
|
|
return '项目';
|
|
}
|
|
if (params.category === 'manage') {
|
|
return '发布';
|
|
}
|
|
return '学习';
|
|
};
|
|
var renderOrderText = function renderOrderText() {
|
|
if (params.sort_by === 'updated_on') {
|
|
return '最新动态';
|
|
}
|
|
if (params.sort_by === 'created_on') {
|
|
return '最新创建';
|
|
}
|
|
return '';
|
|
};
|
|
var tabs = [{
|
|
id: '',
|
|
name: '全部'
|
|
}, {
|
|
id: 'manage',
|
|
name: "".concat(isCurrent ? '我' : 'TA', "\u7BA1\u7406\u7684")
|
|
}, {
|
|
id: 'study',
|
|
name: "".concat(isCurrent ? '我' : 'TA', "\u5B66\u4E60\u7684")
|
|
}];
|
|
var tags = [{
|
|
id: '',
|
|
name: '全部'
|
|
}, {
|
|
id: 'publicly',
|
|
name: '公开'
|
|
}, {
|
|
id: 'personal',
|
|
name: '私有'
|
|
}];
|
|
var dropItem = [{
|
|
id: 'updated_on',
|
|
name: '最新动态'
|
|
}, {
|
|
id: 'created_on',
|
|
name: '最新创建'
|
|
}];
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Projectsmodules.wrap,
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTabs */.YG, {
|
|
value: params.category,
|
|
onChange: handleChangeCategory,
|
|
className: "mb25",
|
|
dataSource: tabs
|
|
}), isCurrent && /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomTags */.qp, {
|
|
title: "\u72B6\u6001",
|
|
value: params.status,
|
|
onChange: handleChangeStatus,
|
|
dataSource: tags,
|
|
titleWidth: 28
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* SuperiorSort */.cq, {
|
|
dataSource: dropItem,
|
|
sortValue: params.sort_direction,
|
|
dropValue: params.sort_by,
|
|
onSort: handleChangeOrder,
|
|
onDrop: handleChangeOrderField
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(skeleton/* default */.Z, {
|
|
loading: loading['userDetail/getProjects'],
|
|
active: true,
|
|
paragraph: {
|
|
rows: 5
|
|
},
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
className: Projectsmodules.cardWrap,
|
|
children: [params.page === 1 && isCurrent && !params.category && /*#__PURE__*/(0,jsx_runtime.jsx)(Items_CreateCard, {
|
|
url: "".concat((_user$navigationInfo = user.navigationInfo) === null || _user$navigationInfo === void 0 || (_user$navigationInfo = _user$navigationInfo.top) === null || _user$navigationInfo === void 0 ? void 0 : _user$navigationInfo.old_url, "/projects/deposit/new"),
|
|
name: "\u65B0\u5EFA\u5F00\u53D1\u9879\u76EE",
|
|
dispatch: dispatch
|
|
}), !data.length && params.category && /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {}), /*#__PURE__*/(0,jsx_runtime.jsx)(components_Items, {
|
|
data: data,
|
|
old_url: (_user$navigationInfo2 = user.navigationInfo) === null || _user$navigationInfo2 === void 0 || (_user$navigationInfo2 = _user$navigationInfo2.top) === null || _user$navigationInfo2 === void 0 ? void 0 : _user$navigationInfo2.old_url
|
|
})]
|
|
}), count > 15 && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
className: Projectsmodules.countWrap,
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
|
showQuickJumper: true,
|
|
showSizeChanger: false,
|
|
total: count,
|
|
onChange: function onChange(page) {
|
|
return handleChangePage(page);
|
|
},
|
|
pageSize: 16,
|
|
current: params.page
|
|
})
|
|
})]
|
|
})]
|
|
});
|
|
};
|
|
/* harmony default export */ var Detail_Projects = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
var user = _ref3.user,
|
|
userDetail = _ref3.userDetail,
|
|
loading = _ref3.loading,
|
|
globalSetting = _ref3.globalSetting;
|
|
return {
|
|
user: user,
|
|
userDetail: userDetail,
|
|
globalSetting: globalSetting,
|
|
loading: loading.effects
|
|
};
|
|
})(Projects));
|
|
|
|
/***/ })
|
|
|
|
}]); |