parent
c8b72ef74a
commit
dbd8436ef1
@ -0,0 +1,615 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[50662],{
|
||||
|
||||
/***/ 25213:
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./src/pages/Classrooms/Lists/components/BottomControl/index.tsx + 1 modules ***!
|
||||
\***********************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ components_BottomControl; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
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: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
||||
var es_menu = __webpack_require__(20834);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(1056);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
|
||||
var es_checkbox = __webpack_require__(24905);
|
||||
// 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/dropdown/index.js + 1 modules
|
||||
var dropdown = __webpack_require__(38854);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/BottomControl/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var BottomControlmodules = ({"bottomControlContainer":"bottomControlContainer___woAeo","buttonWrap":"buttonWrap___iRw4K","moveCategory":"moveCategory___oiQqw"});
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(13186);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(42884);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/BottomControl/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var BottomControl = function BottomControl(_ref) {
|
||||
var buttonDataSource = _ref.buttonDataSource,
|
||||
onButtonClick = _ref.onButtonClick,
|
||||
useBatchStatus = _ref.useBatchStatus,
|
||||
allSelect = _ref.allSelect,
|
||||
setAllSelect = _ref.setAllSelect,
|
||||
selectArrs = _ref.selectArrs,
|
||||
onMenuClick = _ref.onMenuClick,
|
||||
setSeleArr = _ref.setSeleArr,
|
||||
catalogue = _ref.catalogue,
|
||||
addCatalogue = _ref.addCatalogue;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
moveVisible = _useState2[0],
|
||||
setMoveVisible = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
keyword = _useState4[0],
|
||||
setKeyword = _useState4[1];
|
||||
console.log('---', catalogue);
|
||||
var menu = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: BottomControlmodules.moveCategory,
|
||||
onMouseLeave: function onMouseLeave(e) {
|
||||
return setMoveVisible(false);
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_menu/* default */.Z, {
|
||||
onClick: onMenuClick,
|
||||
style: {
|
||||
maxHeight: 300,
|
||||
width: 240,
|
||||
overflow: 'auto'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
||||
className: "ant-menu-item multi-llipsis1e ant-menu-item-only-child",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
onChange: function onChange(e) {
|
||||
setKeyword(e.target.value);
|
||||
}
|
||||
})
|
||||
}), catalogue === null || catalogue === void 0 ? void 0 : catalogue.map(function (item, key) {
|
||||
var _item$third_category;
|
||||
if (keyword !== '' && item.category_name.indexOf(keyword) < 0) {
|
||||
return;
|
||||
}
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
||||
className: "multi-llipsis1e",
|
||||
children: item.category_name
|
||||
}, item.category_id), item === null || item === void 0 || (_item$third_category = item.third_category) === null || _item$third_category === void 0 ? void 0 : _item$third_category.map(function (val) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(es_menu/* default */.Z.Item, {
|
||||
style: {
|
||||
marginLeft: 20
|
||||
},
|
||||
className: "multi-llipsis1e",
|
||||
children: val.category_name
|
||||
}, val.category_id);
|
||||
})]
|
||||
});
|
||||
}), addCatalogue && /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
|
||||
className: "ant-menu-item multi-llipsis1e ant-menu-item-only-child",
|
||||
onClick: addCatalogue,
|
||||
children: "\u65B0\u5EFA\u5B50\u76EE\u5F55..."
|
||||
})]
|
||||
})
|
||||
});
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: BottomControlmodules.bottomControlContainer,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_checkbox/* default */.Z, {
|
||||
checked: allSelect,
|
||||
onChange: setAllSelect,
|
||||
children: ["\u5168\u9009\u672C\u9875\uFF08", selectArrs.length, "\uFF09"]
|
||||
})
|
||||
}), (0,authority/* isAdmin */.GJ)() && buttonDataSource.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "primary",
|
||||
icon: item.icon,
|
||||
className: BottomControlmodules.buttonWrap,
|
||||
onClick: function onClick() {
|
||||
return onButtonClick(item);
|
||||
},
|
||||
children: item.name
|
||||
})
|
||||
}, item.name);
|
||||
}), (0,authority/* isAdmin */.GJ)() && (addCatalogue || catalogue) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
open: moveVisible,
|
||||
placement: "topLeft",
|
||||
autoAdjustOverflow: false,
|
||||
dropdownRender: function dropdownRender() {
|
||||
return menu;
|
||||
},
|
||||
getPopupContainer: function getPopupContainer(trigger) {
|
||||
return trigger.parentNode;
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "ant-dropdown-link",
|
||||
onMouseEnter: function onMouseEnter(e) {
|
||||
return setMoveVisible(true);
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "primary",
|
||||
className: BottomControlmodules.buttonWrap,
|
||||
icon: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-yidongmulu"
|
||||
}),
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
children: ["\u79FB\u52A8\u5230\u76EE\u5F55 ", /*#__PURE__*/(0,jsx_runtime.jsx)(DownOutlined/* default */.Z, {})]
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "primary",
|
||||
ghost: true,
|
||||
onClick: function onClick() {
|
||||
useBatchStatus(false);
|
||||
setSeleArr([]);
|
||||
},
|
||||
children: "\u53D6\u6D88\u64CD\u4F5C"
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var components_BottomControl = (BottomControl);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 24757:
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./src/pages/Classrooms/Lists/components/SearchSortController/index.tsx + 1 modules ***!
|
||||
\******************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ components_SearchSortController; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(93923);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
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: ./node_modules/_antd@5.9.0@antd/es/menu/index.js + 11 modules
|
||||
var menu = __webpack_require__(20834);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules
|
||||
var es_checkbox = __webpack_require__(24905);
|
||||
// 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/dropdown/index.js + 1 modules
|
||||
var dropdown = __webpack_require__(38854);
|
||||
// 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/input/index.js + 5 modules
|
||||
var input = __webpack_require__(1056);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/SearchSortController/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var SearchSortControllermodules = ({"searchSortControllerContainer":"searchSortControllerContainer___Xca1m","btn":"btn___sNJPX","btnSort":"btnSort___Fx9OM","tips":"tips___LrmpR"});
|
||||
// EXTERNAL MODULE: ./src/utils/authority.ts
|
||||
var authority = __webpack_require__(13186);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/UpOutlined.js + 1 modules
|
||||
var UpOutlined = __webpack_require__(20114);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/DownOutlined.js + 1 modules
|
||||
var DownOutlined = __webpack_require__(42884);
|
||||
// EXTERNAL MODULE: ./node_modules/_react-infinite-scroller@1.2.4@react-infinite-scroller/index.js
|
||||
var _react_infinite_scroller_1_2_4_react_infinite_scroller = __webpack_require__(26724);
|
||||
var _react_infinite_scroller_1_2_4_react_infinite_scroller_default = /*#__PURE__*/__webpack_require__.n(_react_infinite_scroller_1_2_4_react_infinite_scroller);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
|
||||
var _umi_production_exports = __webpack_require__(49266);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/SearchSortController/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var SearchSortController = function SearchSortController(_ref) {
|
||||
var isAdmin = _ref.isAdmin,
|
||||
dataSource = _ref.dataSource,
|
||||
batchStatus = _ref.batchStatus,
|
||||
SortMenuName = _ref.SortMenuName,
|
||||
setSortMenuName = _ref.setSortMenuName,
|
||||
detailCourseGroupsList = _ref.detailCourseGroupsList,
|
||||
onSearch = _ref.onSearch,
|
||||
onBoard = _ref.onBoard,
|
||||
onSort = _ref.onSort,
|
||||
isboard = _ref.isboard,
|
||||
dispatch = _ref.dispatch,
|
||||
onBatch = _ref.onBatch,
|
||||
SortMenus = _ref.SortMenus;
|
||||
var _useState = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
submenuVisible = _useState2[0],
|
||||
setSubmenuVisible = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
selectArrs = _useState4[0],
|
||||
setSelectArrs = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(true),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
hasMore = _useState6[0],
|
||||
setHasmore = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
tableData = _useState8[0],
|
||||
setTableData = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)(1),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
page = _useState10[0],
|
||||
setPage = _useState10[1];
|
||||
var _useState11 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState12 = slicedToArray_default()(_useState11, 2),
|
||||
isLoading = _useState12[0],
|
||||
setIsLoading = _useState12[1];
|
||||
var paramsFromRouter = (0,_umi_production_exports.useParams)();
|
||||
/**
|
||||
* 排序点击事件
|
||||
*/
|
||||
var sortClick = function sortClick(data) {
|
||||
setSortMenuName(data.name);
|
||||
onSort(data);
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
if (isboard) {
|
||||
handleInfiniteOnLoad();
|
||||
}
|
||||
}, [isboard]);
|
||||
var handleInfiniteOnLoad = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var _res$course_groups, res, items;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!(hasMore && !isLoading)) {
|
||||
_context.next = 10;
|
||||
break;
|
||||
}
|
||||
setIsLoading(true);
|
||||
setPage(page + 1);
|
||||
_context.next = 5;
|
||||
return dispatch({
|
||||
type: 'classroomList/getCourseGroupsList',
|
||||
payload: {
|
||||
page: page,
|
||||
id: paramsFromRouter.coursesId,
|
||||
limit: 20,
|
||||
nonenavigate: true
|
||||
}
|
||||
});
|
||||
case 5:
|
||||
res = _context.sent;
|
||||
items = toConsumableArray_default()((res === null || res === void 0 ? void 0 : res.course_groups) || []);
|
||||
if ((res === null || res === void 0 || (_res$course_groups = res.course_groups) === null || _res$course_groups === void 0 ? void 0 : _res$course_groups.length) < 20) {
|
||||
setHasmore(false);
|
||||
items.push({
|
||||
id: 0,
|
||||
name: '未分班'
|
||||
});
|
||||
}
|
||||
setIsLoading(false);
|
||||
setTableData([].concat(toConsumableArray_default()(tableData), toConsumableArray_default()(items)));
|
||||
case 10:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function handleInfiniteOnLoad() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var submenu = /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
||||
className: SearchSortControllermodules.dropmenu,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
maxHeight: 200,
|
||||
overflow: 'auto'
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)((_react_infinite_scroller_1_2_4_react_infinite_scroller_default()), {
|
||||
initialLoad: false,
|
||||
pageStart: 1,
|
||||
threshold: 20,
|
||||
loadMore: function loadMore(page) {
|
||||
handleInfiniteOnLoad();
|
||||
},
|
||||
hasMore: hasMore,
|
||||
useWindow: false,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
||||
style: {
|
||||
width: 240,
|
||||
zIndex: 10
|
||||
},
|
||||
children: (detailCourseGroupsList === null || detailCourseGroupsList === void 0 ? void 0 : detailCourseGroupsList.group_count) > 0 && (tableData === null || tableData === void 0 ? void 0 : tableData.filter(function (item) {
|
||||
return item.edit_auth || item.name === '未分班';
|
||||
}).map(function (item, key) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_checkbox/* default */.Z, {
|
||||
checked: selectArrs.includes(item.id),
|
||||
value: item.id,
|
||||
onChange: function onChange(e) {
|
||||
var key = selectArrs.indexOf(item.id);
|
||||
if (selectArrs.indexOf(item.id) > -1) {
|
||||
setSelectArrs(selectArrs.filter(function (val) {
|
||||
return val !== item.id;
|
||||
}));
|
||||
} else {
|
||||
setSelectArrs(selectArrs.concat(item.id));
|
||||
}
|
||||
},
|
||||
children: item.name
|
||||
})
|
||||
}, item.id);
|
||||
}))
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
|
||||
style: {
|
||||
background: "#fff"
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "link",
|
||||
onClick: function onClick() {
|
||||
// if (selectArrs == '') {
|
||||
// message.error('请选择你要操作的任务');
|
||||
// return null;
|
||||
// }
|
||||
onBoard(selectArrs);
|
||||
// params.group_ids = selectArrs;
|
||||
// params.page = 1;
|
||||
// setparams({ ...params })
|
||||
},
|
||||
children: "\u786E\u5B9A"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_button/* default */.ZP, {
|
||||
type: "link",
|
||||
onClick: function onClick() {
|
||||
setSelectArrs([]);
|
||||
},
|
||||
children: "\u91CD\u7F6E"
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
// 默认排序
|
||||
var isDefault = SortMenuName === '默认排序';
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: SearchSortControllermodules.searchSortControllerContainer,
|
||||
children: [!!(SortMenus !== null && SortMenus !== void 0 && SortMenus.length) && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
dropdownRender: function dropdownRender() {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
||||
selectedKeys: [SortMenuName],
|
||||
children: SortMenus.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
||||
onClick: function onClick() {
|
||||
return sortClick(item);
|
||||
},
|
||||
children: item.name
|
||||
}, item.name);
|
||||
})
|
||||
});
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: "".concat(SearchSortControllermodules.btn, " ").concat(isDefault ? SearchSortControllermodules.btnSort : ''),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-paixu font14 mr5"
|
||||
}), SortMenuName]
|
||||
})
|
||||
})
|
||||
})
|
||||
}), isDefault && /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: "\u4F18\u5148\u6309\u7167\u8C03\u6574\u6392\u5E8F\u7ED3\u679C\u5C55\u793A\uFF0C\u672A\u8BBE\u7F6E\u6392\u5E8F\u65F6\uFF0C\u6309\u7167\u521B\u5EFA\u65F6\u95F4\u964D\u5E8F\u6392\u5217",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: SearchSortControllermodules.tips,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-a-wenhaobeifen2"
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z.Search, {
|
||||
allowClear: true,
|
||||
placeholder: "\u8BF7\u8F93\u5165\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
|
||||
onSearch: onSearch,
|
||||
style: {
|
||||
width: 220,
|
||||
marginLeft: 'auto',
|
||||
marginRight: 10
|
||||
}
|
||||
}), (0,authority/* isAdmins */.eB)() && isboard && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
dropdownRender: function dropdownRender() {
|
||||
return submenu;
|
||||
},
|
||||
open: submenuVisible,
|
||||
onOpenChange: function onOpenChange(flag) {
|
||||
setSubmenuVisible(flag);
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
||||
children: ["\u5206\u73ED", submenuVisible ? /*#__PURE__*/(0,jsx_runtime.jsx)(UpOutlined/* default */.Z, {
|
||||
style: {
|
||||
marginLeft: 6
|
||||
}
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(DownOutlined/* default */.Z, {
|
||||
style: {
|
||||
marginLeft: 6
|
||||
}
|
||||
})]
|
||||
})
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var components_SearchSortController = (SearchSortController);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 57534:
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./src/pages/Classrooms/Lists/components/TabMenu/index.tsx + 1 modules ***!
|
||||
\*****************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ components_TabMenu; }
|
||||
});
|
||||
|
||||
// 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/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/menu/index.js + 11 modules
|
||||
var menu = __webpack_require__(20834);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules
|
||||
var dropdown = __webpack_require__(38854);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var TabMenumodules = ({"tabMenuContainer":"tabMenuContainer___uf5IP","control":"control___GheLs","iconH":"iconH___Wzw_r","selectBtn":"selectBtn___mfEnI"});
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts + 15 modules
|
||||
var _umi_production_exports = __webpack_require__(49266);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/Classrooms/Lists/components/TabMenu/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var TabMenu = function TabMenu(_ref) {
|
||||
var isLoading = _ref.isLoading,
|
||||
addText = _ref.addText,
|
||||
tabDataSource = _ref.tabDataSource,
|
||||
isAdmin = _ref.isAdmin,
|
||||
dispatch = _ref.dispatch,
|
||||
type = _ref.type,
|
||||
isExercise = _ref.isExercise,
|
||||
defaultSelectedKeys = _ref.defaultSelectedKeys,
|
||||
onTabMenuClick = _ref.onTabMenuClick,
|
||||
getDropdownMenu = _ref.getDropdownMenu,
|
||||
showControlButton = _ref.showControlButton,
|
||||
buttonText = _ref.buttonText,
|
||||
_ref$buttonIcon = _ref.buttonIcon,
|
||||
buttonIcon = _ref$buttonIcon === void 0 ? 'icon-tianjiadaohang' : _ref$buttonIcon,
|
||||
extraNode = _ref.extraNode,
|
||||
_ref$onButtonClick = _ref.onButtonClick,
|
||||
onButtonClick = _ref$onButtonClick === void 0 ? function () {} : _ref$onButtonClick;
|
||||
var params = (0,_umi_production_exports.useParams)();
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: TabMenumodules.tabMenuContainer,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
flex: "1",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
||||
onSelect: function onSelect(v) {
|
||||
return !isLoading ? onTabMenuClick(v) : {};
|
||||
},
|
||||
mode: "horizontal",
|
||||
selectedKeys: defaultSelectedKeys,
|
||||
children: tabDataSource.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)(menu/* default */.Z.Item, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-grey-666",
|
||||
children: item.name
|
||||
}), item.total !== undefined && isAdmin && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "c-grey-999 ml20",
|
||||
children: item.total || 0
|
||||
})]
|
||||
}, typeof item.index === 'number' ? item.index : item.id);
|
||||
})
|
||||
})
|
||||
}), isAdmin && /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
className: "mr20 gutter-row",
|
||||
style: {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
color: '#0152d9',
|
||||
paddingBottom: 3
|
||||
},
|
||||
children: [isExercise && false && /*#__PURE__*/0, /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: TabMenumodules.control,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: TabMenumodules.extra,
|
||||
children: extraNode
|
||||
}), showControlButton && /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
onClick: onButtonClick,
|
||||
style: {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
className: TabMenumodules.selectBtn,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont ".concat(buttonIcon)
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: buttonText
|
||||
})]
|
||||
}), !!getDropdownMenu && /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
className: "ml10",
|
||||
dropdownRender: getDropdownMenu,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
||||
className: TabMenumodules.selectBtn,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-tianjiadaohang"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: addText ? addText : '创建试卷'
|
||||
})]
|
||||
})
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var components_TabMenu = (TabMenu);
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@ -0,0 +1,784 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[55054],{
|
||||
|
||||
/***/ 15997:
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules ***!
|
||||
\*****************************************************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ icons_EyeOutlined; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
// 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.3.1@@ant-design/icons-svg/es/asn/EyeOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z" } }] }, "name": "eye", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeOutlined = (EyeOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeOutlined_EyeOutlined = function EyeOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeOutlined_EyeOutlined));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1056:
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules ***!
|
||||
\*********************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
Z: function() { return /* binding */ input; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_classnames@2.3.2@classnames/index.js
|
||||
var _classnames_2_3_2_classnames = __webpack_require__(12124);
|
||||
var _classnames_2_3_2_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_3_2_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/form/context.js
|
||||
var form_context = __webpack_require__(32441);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/style/index.js
|
||||
var style = __webpack_require__(9937);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Group.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const Group = props => {
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = (0,_react_17_0_2_react.useContext)(context/* ConfigContext */.E_);
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
className
|
||||
} = props;
|
||||
const prefixCls = getPrefixCls('input-group', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input');
|
||||
const [wrapSSR, hashId] = (0,style/* default */.ZP)(inputPrefixCls);
|
||||
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-lg`]: props.size === 'large',
|
||||
[`${prefixCls}-sm`]: props.size === 'small',
|
||||
[`${prefixCls}-compact`]: props.compact,
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl'
|
||||
}, hashId, className);
|
||||
const formItemContext = (0,_react_17_0_2_react.useContext)(form_context/* FormItemInputContext */.aM);
|
||||
const groupFormItemContext = (0,_react_17_0_2_react.useMemo)(() => Object.assign(Object.assign({}, formItemContext), {
|
||||
isFormItemInput: false
|
||||
}), [formItemContext]);
|
||||
if (false) {}
|
||||
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
||||
className: cls,
|
||||
style: props.style,
|
||||
onMouseEnter: props.onMouseEnter,
|
||||
onMouseLeave: props.onMouseLeave,
|
||||
onFocus: props.onFocus,
|
||||
onBlur: props.onBlur
|
||||
}, /*#__PURE__*/_react_17_0_2_react.createElement(form_context/* FormItemInputContext */.aM.Provider, {
|
||||
value: groupFormItemContext
|
||||
}, props.children)));
|
||||
};
|
||||
/* harmony default export */ var input_Group = (Group);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Input.js + 1 modules
|
||||
var Input = __webpack_require__(9432);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.5@@babel/runtime/helpers/esm/extends.js
|
||||
var esm_extends = __webpack_require__(61796);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.3.1@@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js
|
||||
// This icon file is generated automatically.
|
||||
var EyeInvisibleOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z" } }, { "tag": "path", "attrs": { "d": "M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z" } }] }, "name": "eye-invisible", "theme": "outlined" };
|
||||
/* harmony default export */ var asn_EyeInvisibleOutlined = (EyeInvisibleOutlined);
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
||||
var AntdIcon = __webpack_require__(91851);
|
||||
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeInvisibleOutlined.js
|
||||
|
||||
// GENERATE BY ./scripts/generate.ts
|
||||
// DON NOT EDIT IT MANUALLY
|
||||
|
||||
|
||||
|
||||
|
||||
var EyeInvisibleOutlined_EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
||||
ref: ref,
|
||||
icon: asn_EyeInvisibleOutlined
|
||||
}));
|
||||
};
|
||||
if (false) {}
|
||||
/* harmony default export */ var icons_EyeInvisibleOutlined = (/*#__PURE__*/_react_17_0_2_react.forwardRef(EyeInvisibleOutlined_EyeInvisibleOutlined));
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/EyeOutlined.js + 1 modules
|
||||
var EyeOutlined = __webpack_require__(15997);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/omit.js
|
||||
var omit = __webpack_require__(99468);
|
||||
// EXTERNAL MODULE: ./node_modules/_rc-util@5.38.1@rc-util/es/ref.js
|
||||
var es_ref = __webpack_require__(88831);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/hooks/useRemovePasswordTimeout.js
|
||||
var useRemovePasswordTimeout = __webpack_require__(59412);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Password.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 defaultIconRender = visible => visible ? /*#__PURE__*/_react_17_0_2_react.createElement(EyeOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_EyeInvisibleOutlined, null);
|
||||
const ActionMap = {
|
||||
click: 'onClick',
|
||||
hover: 'onMouseOver'
|
||||
};
|
||||
const Password = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
visibilityToggle = true
|
||||
} = props;
|
||||
const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;
|
||||
const [visible, setVisible] = (0,_react_17_0_2_react.useState)(() => visibilityControlled ? visibilityToggle.visible : false);
|
||||
const inputRef = (0,_react_17_0_2_react.useRef)(null);
|
||||
_react_17_0_2_react.useEffect(() => {
|
||||
if (visibilityControlled) {
|
||||
setVisible(visibilityToggle.visible);
|
||||
}
|
||||
}, [visibilityControlled, visibilityToggle]);
|
||||
// Remove Password value
|
||||
const removePasswordTimeout = (0,useRemovePasswordTimeout/* default */.Z)(inputRef);
|
||||
const onVisibleChange = () => {
|
||||
const {
|
||||
disabled
|
||||
} = props;
|
||||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (visible) {
|
||||
removePasswordTimeout();
|
||||
}
|
||||
setVisible(prevState => {
|
||||
var _a;
|
||||
const newState = !prevState;
|
||||
if (typeof visibilityToggle === 'object') {
|
||||
(_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);
|
||||
}
|
||||
return newState;
|
||||
});
|
||||
};
|
||||
const getIcon = prefixCls => {
|
||||
const {
|
||||
action = 'click',
|
||||
iconRender = defaultIconRender
|
||||
} = props;
|
||||
const iconTrigger = ActionMap[action] || '';
|
||||
const icon = iconRender(visible);
|
||||
const iconProps = {
|
||||
[iconTrigger]: onVisibleChange,
|
||||
className: `${prefixCls}-icon`,
|
||||
key: 'passwordIcon',
|
||||
onMouseDown: e => {
|
||||
// Prevent focused state lost
|
||||
// https://github.com/ant-design/ant-design/issues/15173
|
||||
e.preventDefault();
|
||||
},
|
||||
onMouseUp: e => {
|
||||
// Prevent caret position change
|
||||
// https://github.com/ant-design/ant-design/issues/23524
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.cloneElement( /*#__PURE__*/_react_17_0_2_react.isValidElement(icon) ? icon : /*#__PURE__*/_react_17_0_2_react.createElement("span", null, icon), iconProps);
|
||||
};
|
||||
const {
|
||||
className,
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
size
|
||||
} = props,
|
||||
restProps = __rest(props, ["className", "prefixCls", "inputPrefixCls", "size"]);
|
||||
const {
|
||||
getPrefixCls
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const prefixCls = getPrefixCls('input-password', customizePrefixCls);
|
||||
const suffixIcon = visibilityToggle && getIcon(prefixCls);
|
||||
const inputClassName = _classnames_2_3_2_classnames_default()(prefixCls, className, {
|
||||
[`${prefixCls}-${size}`]: !!size
|
||||
});
|
||||
const omittedProps = Object.assign(Object.assign({}, (0,omit/* default */.Z)(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {
|
||||
type: visible ? 'text' : 'password',
|
||||
className: inputClassName,
|
||||
prefixCls: inputPrefixCls,
|
||||
suffix: suffixIcon
|
||||
});
|
||||
if (size) {
|
||||
omittedProps.size = size;
|
||||
}
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(ref, inputRef)
|
||||
}, omittedProps));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Password = (Password);
|
||||
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.2.6@@ant-design/icons/es/icons/SearchOutlined.js + 1 modules
|
||||
var SearchOutlined = __webpack_require__(46820);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/reactNode.js
|
||||
var reactNode = __webpack_require__(92343);
|
||||
// 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/config-provider/hooks/useSize.js
|
||||
var useSize = __webpack_require__(19716);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/space/Compact.js
|
||||
var Compact = __webpack_require__(33234);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/Search.js
|
||||
"use client";
|
||||
|
||||
var Search_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 Search = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
||||
const {
|
||||
prefixCls: customizePrefixCls,
|
||||
inputPrefixCls: customizeInputPrefixCls,
|
||||
className,
|
||||
size: customizeSize,
|
||||
suffix,
|
||||
enterButton = false,
|
||||
addonAfter,
|
||||
loading,
|
||||
disabled,
|
||||
onSearch: customOnSearch,
|
||||
onChange: customOnChange,
|
||||
onCompositionStart,
|
||||
onCompositionEnd
|
||||
} = props,
|
||||
restProps = Search_rest(props, ["prefixCls", "inputPrefixCls", "className", "size", "suffix", "enterButton", "addonAfter", "loading", "disabled", "onSearch", "onChange", "onCompositionStart", "onCompositionEnd"]);
|
||||
const {
|
||||
getPrefixCls,
|
||||
direction
|
||||
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
||||
const composedRef = _react_17_0_2_react.useRef(false);
|
||||
const prefixCls = getPrefixCls('input-search', customizePrefixCls);
|
||||
const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);
|
||||
const {
|
||||
compactSize
|
||||
} = (0,Compact/* useCompactItemContext */.ri)(prefixCls, direction);
|
||||
const size = (0,useSize/* default */.Z)(ctx => {
|
||||
var _a;
|
||||
return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;
|
||||
});
|
||||
const inputRef = _react_17_0_2_react.useRef(null);
|
||||
const onChange = e => {
|
||||
if (e && e.target && e.type === 'click' && customOnSearch) {
|
||||
customOnSearch(e.target.value, e, {
|
||||
source: 'clear'
|
||||
});
|
||||
}
|
||||
if (customOnChange) {
|
||||
customOnChange(e);
|
||||
}
|
||||
};
|
||||
const onMouseDown = e => {
|
||||
var _a;
|
||||
if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {
|
||||
e.preventDefault();
|
||||
}
|
||||
};
|
||||
const onSearch = e => {
|
||||
var _a, _b;
|
||||
if (customOnSearch) {
|
||||
customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e, {
|
||||
source: 'input'
|
||||
});
|
||||
}
|
||||
};
|
||||
const onPressEnter = e => {
|
||||
if (composedRef.current || loading) {
|
||||
return;
|
||||
}
|
||||
onSearch(e);
|
||||
};
|
||||
const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/_react_17_0_2_react.createElement(SearchOutlined/* default */.Z, null) : null;
|
||||
const btnClassName = `${prefixCls}-button`;
|
||||
let button;
|
||||
const enterButtonAsElement = enterButton || {};
|
||||
const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;
|
||||
if (isAntdButton || enterButtonAsElement.type === 'button') {
|
||||
button = (0,reactNode/* cloneElement */.Tm)(enterButtonAsElement, Object.assign({
|
||||
onMouseDown,
|
||||
onClick: e => {
|
||||
var _a, _b;
|
||||
(_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);
|
||||
onSearch(e);
|
||||
},
|
||||
key: 'enterButton'
|
||||
}, isAntdButton ? {
|
||||
className: btnClassName,
|
||||
size
|
||||
} : {}));
|
||||
} else {
|
||||
button = /*#__PURE__*/_react_17_0_2_react.createElement(es_button/* default */.ZP, {
|
||||
className: btnClassName,
|
||||
type: enterButton ? 'primary' : undefined,
|
||||
size: size,
|
||||
disabled: disabled,
|
||||
key: "enterButton",
|
||||
onMouseDown: onMouseDown,
|
||||
onClick: onSearch,
|
||||
loading: loading,
|
||||
icon: searchIcon
|
||||
}, enterButton);
|
||||
}
|
||||
if (addonAfter) {
|
||||
button = [button, (0,reactNode/* cloneElement */.Tm)(addonAfter, {
|
||||
key: 'addonAfter'
|
||||
})];
|
||||
}
|
||||
const cls = _classnames_2_3_2_classnames_default()(prefixCls, {
|
||||
[`${prefixCls}-rtl`]: direction === 'rtl',
|
||||
[`${prefixCls}-${size}`]: !!size,
|
||||
[`${prefixCls}-with-button`]: !!enterButton
|
||||
}, className);
|
||||
const handleOnCompositionStart = e => {
|
||||
composedRef.current = true;
|
||||
onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);
|
||||
};
|
||||
const handleOnCompositionEnd = e => {
|
||||
composedRef.current = false;
|
||||
onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);
|
||||
};
|
||||
return /*#__PURE__*/_react_17_0_2_react.createElement(Input/* default */.Z, Object.assign({
|
||||
ref: (0,es_ref/* composeRef */.sQ)(inputRef, ref),
|
||||
onPressEnter: onPressEnter
|
||||
}, restProps, {
|
||||
size: size,
|
||||
onCompositionStart: handleOnCompositionStart,
|
||||
onCompositionEnd: handleOnCompositionEnd,
|
||||
prefixCls: inputPrefixCls,
|
||||
addonAfter: button,
|
||||
suffix: suffix,
|
||||
onChange: onChange,
|
||||
className: cls,
|
||||
disabled: disabled
|
||||
}));
|
||||
});
|
||||
if (false) {}
|
||||
/* harmony default export */ var input_Search = (Search);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/TextArea.js
|
||||
var TextArea = __webpack_require__(1643);
|
||||
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js
|
||||
"use client";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const input_Input = Input/* default */.Z;
|
||||
if (false) {}
|
||||
input_Input.Group = input_Group;
|
||||
input_Input.Search = input_Search;
|
||||
input_Input.TextArea = TextArea/* default */.Z;
|
||||
input_Input.Password = input_Password;
|
||||
/* harmony default export */ var input = (input_Input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8378:
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/collapse.js ***!
|
||||
\*******************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__) {
|
||||
|
||||
const genCollapseMotion = token => ({
|
||||
[token.componentCls]: {
|
||||
// For common/openAnimation
|
||||
[`${token.antCls}-motion-collapse-legacy`]: {
|
||||
overflow: 'hidden',
|
||||
'&-active': {
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
},
|
||||
[`${token.antCls}-motion-collapse`]: {
|
||||
overflow: 'hidden',
|
||||
transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},
|
||||
opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`
|
||||
}
|
||||
}
|
||||
});
|
||||
/* harmony default export */ __webpack_exports__.Z = (genCollapseMotion);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 92899:
|
||||
/*!***************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/move.js ***!
|
||||
\***************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Fm: function() { return /* binding */ initMoveMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports moveDownIn, moveDownOut, moveLeftIn, moveLeftOut, moveRightIn, moveRightOut, moveUpIn, moveUpOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 36646);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const moveDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveDownOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveLeftOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(-100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveRightOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(100%, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpIn', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const moveUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antMoveUpOut', {
|
||||
'0%': {
|
||||
transform: 'translate3d(0, 0, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'translate3d(0, -100%, 0)',
|
||||
transformOrigin: '0 0',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const moveMotion = {
|
||||
'move-up': {
|
||||
inKeyframes: moveUpIn,
|
||||
outKeyframes: moveUpOut
|
||||
},
|
||||
'move-down': {
|
||||
inKeyframes: moveDownIn,
|
||||
outKeyframes: moveDownOut
|
||||
},
|
||||
'move-left': {
|
||||
inKeyframes: moveLeftIn,
|
||||
outKeyframes: moveLeftOut
|
||||
},
|
||||
'move-right': {
|
||||
inKeyframes: moveRightIn,
|
||||
outKeyframes: moveRightOut
|
||||
}
|
||||
};
|
||||
const initMoveMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = moveMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutCirc
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInOutCirc
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13826:
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/_antd@5.9.0@antd/es/style/motion/slide.js ***!
|
||||
\****************************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||
/* harmony export */ Qt: function() { return /* binding */ slideDownIn; },
|
||||
/* harmony export */ Uw: function() { return /* binding */ slideUpOut; },
|
||||
/* harmony export */ fJ: function() { return /* binding */ slideUpIn; },
|
||||
/* harmony export */ ly: function() { return /* binding */ slideDownOut; },
|
||||
/* harmony export */ oN: function() { return /* binding */ initSlideMotion; }
|
||||
/* harmony export */ });
|
||||
/* unused harmony exports slideLeftIn, slideLeftOut, slideRightIn, slideRightOut */
|
||||
/* harmony import */ var _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @ant-design/cssinjs */ 36646);
|
||||
/* harmony import */ var _motion__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./motion */ 95406);
|
||||
|
||||
|
||||
const slideUpIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpIn', {
|
||||
'0%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideUpOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideUpOut', {
|
||||
'0%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideDownIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownIn', {
|
||||
'0%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideDownOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideDownOut', {
|
||||
'0%': {
|
||||
transform: 'scaleY(1)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleY(0.8)',
|
||||
transformOrigin: '100% 100%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideLeftIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftIn', {
|
||||
'0%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideLeftOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideLeftOut', {
|
||||
'0%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideRightIn = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightIn', {
|
||||
'0%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 0
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 1
|
||||
}
|
||||
});
|
||||
const slideRightOut = new _ant_design_cssinjs__WEBPACK_IMPORTED_MODULE_0__.Keyframes('antSlideRightOut', {
|
||||
'0%': {
|
||||
transform: 'scaleX(1)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 1
|
||||
},
|
||||
'100%': {
|
||||
transform: 'scaleX(0.8)',
|
||||
transformOrigin: '100% 0%',
|
||||
opacity: 0
|
||||
}
|
||||
});
|
||||
const slideMotion = {
|
||||
'slide-up': {
|
||||
inKeyframes: slideUpIn,
|
||||
outKeyframes: slideUpOut
|
||||
},
|
||||
'slide-down': {
|
||||
inKeyframes: slideDownIn,
|
||||
outKeyframes: slideDownOut
|
||||
},
|
||||
'slide-left': {
|
||||
inKeyframes: slideLeftIn,
|
||||
outKeyframes: slideLeftOut
|
||||
},
|
||||
'slide-right': {
|
||||
inKeyframes: slideRightIn,
|
||||
outKeyframes: slideRightOut
|
||||
}
|
||||
};
|
||||
const initSlideMotion = (token, motionName) => {
|
||||
const {
|
||||
antCls
|
||||
} = token;
|
||||
const motionCls = `${antCls}-${motionName}`;
|
||||
const {
|
||||
inKeyframes,
|
||||
outKeyframes
|
||||
} = slideMotion[motionName];
|
||||
return [(0,_motion__WEBPACK_IMPORTED_MODULE_1__/* .initMotion */ .R)(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
||||
[`
|
||||
${motionCls}-enter,
|
||||
${motionCls}-appear
|
||||
`]: {
|
||||
transform: 'scale(0)',
|
||||
transformOrigin: '0% 0%',
|
||||
opacity: 0,
|
||||
animationTimingFunction: token.motionEaseOutQuint,
|
||||
[`&-prepare`]: {
|
||||
transform: 'scale(1)'
|
||||
}
|
||||
},
|
||||
[`${motionCls}-leave`]: {
|
||||
animationTimingFunction: token.motionEaseInQuint
|
||||
}
|
||||
}];
|
||||
};
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,493 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[4757],{
|
||||
|
||||
/***/ 73208:
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/components/NoData/index.tsx ***!
|
||||
\*****************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectSpread2.js */ 26801);
|
||||
/* harmony import */ var _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ 59301);
|
||||
/* harmony import */ var _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/assets/images/icons/nodata.png */ 93314);
|
||||
/* harmony import */ var antd__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! antd */ 3113);
|
||||
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! react/jsx-runtime */ 37712);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var noData = function noData(_ref) {
|
||||
var img = _ref.img,
|
||||
_ref$buttonProps = _ref.buttonProps,
|
||||
buttonProps = _ref$buttonProps === void 0 ? {} : _ref$buttonProps,
|
||||
_ref$styles = _ref.styles,
|
||||
styles = _ref$styles === void 0 ? {} : _ref$styles,
|
||||
customText = _ref.customText,
|
||||
ButtonText = _ref.ButtonText,
|
||||
ButtonClick = _ref.ButtonClick,
|
||||
Buttonclass = _ref.Buttonclass,
|
||||
ButtonTwo = _ref.ButtonTwo,
|
||||
imgStyles = _ref.imgStyles,
|
||||
_ref$loading = _ref.loading,
|
||||
loading = _ref$loading === void 0 ? false : _ref$loading;
|
||||
return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("section", {
|
||||
className: "tc animated fadeIn",
|
||||
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, {
|
||||
color: '#999',
|
||||
margin: '100px auto',
|
||||
visibility: loading ? 'hidden' : 'visible'
|
||||
}), styles),
|
||||
children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("img", {
|
||||
src: img || _assets_images_icons_nodata_png__WEBPACK_IMPORTED_MODULE_2__,
|
||||
style: _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, imgStyles)
|
||||
}), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("p", {
|
||||
className: "mt20 font14",
|
||||
children: customText || '暂时还没有相关数据哦!'
|
||||
}), ButtonText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(antd__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP, _root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()(_root_workspace_ppte5yg23_SJ5m_develop_node_modules_babel_runtime_7_23_2_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({
|
||||
className: Buttonclass,
|
||||
onClick: ButtonClick
|
||||
}, buttonProps), {}, {
|
||||
children: ButtonText
|
||||
})), ButtonTwo && ButtonTwo]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ __webpack_exports__.Z = (noData);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 64024:
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./src/pages/virtualSpaces/Lists/Workplace/index.tsx + 2 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 */ Workplace; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(10574);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(39343);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(11006);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.2@@babel/runtime/helpers/objectWithoutProperties.js
|
||||
var objectWithoutProperties = __webpack_require__(27161);
|
||||
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 + 15 modules
|
||||
var _umi_production_exports = __webpack_require__(49266);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/form/index.js + 19 modules
|
||||
var es_form = __webpack_require__(78241);
|
||||
// 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/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/tooltip/index.js + 3 modules
|
||||
var tooltip = __webpack_require__(6848);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/modal/index.js + 16 modules
|
||||
var modal = __webpack_require__(43418);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/radio/index.js + 5 modules
|
||||
var es_radio = __webpack_require__(5112);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 5 modules
|
||||
var input = __webpack_require__(1056);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
|
||||
var date_picker = __webpack_require__(52409);
|
||||
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
||||
var NoData = __webpack_require__(73208);
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Workplace/img/hy.png
|
||||
var hy_namespaceObject = __webpack_require__.p + "static/hy.0eb54ee4.png";
|
||||
;// CONCATENATED MODULE: ./src/pages/virtualSpaces/Lists/Workplace/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Workplacemodules = ({"flex_box_center":"flex_box_center___ofzEF","flex_space_between":"flex_space_between___JM7gy","flex_box_vertical_center":"flex_box_vertical_center___oXDsy","flex_box_center_end":"flex_box_center_end___C_Cy9","flex_box_column":"flex_box_column___xOOoP","Onerow":"Onerow___ZVyoi","MultiLine":"MultiLine___NSBwM","TitleStyle":"TitleStyle___XZNci","DivStyle":"DivStyle___FouU1","InitDataStyle":"InitDataStyle___hMdIo","ImgDivStyle":"ImgDivStyle___yt06T","ImgDivStyleNum":"ImgDivStyleNum___r7B_6","ImgDivStyleBody":"ImgDivStyleBody___Hf3_B","Notice":"Notice___kM2Gm","NoticeTitle":"NoticeTitle___mEOQg","TeachActiv":"TeachActiv___PAehr","TeachActivTitle":"TeachActivTitle___nbkgq"});
|
||||
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
|
||||
var env = __webpack_require__(78130);
|
||||
// EXTERNAL MODULE: ./src/utils/util.tsx
|
||||
var util = __webpack_require__(22739);
|
||||
// EXTERNAL MODULE: ./src/utils/fetch.ts
|
||||
var fetch = __webpack_require__(91506);
|
||||
// EXTERNAL MODULE: ./node_modules/_dayjs@1.11.10@dayjs/dayjs.min.js
|
||||
var dayjs_min = __webpack_require__(9498);
|
||||
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/virtualSpaces/Lists/Workplace/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
var _excluded = ["classroomList", "virtualSpaces", "loading", "dispatch"];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var WorkplacePage = function WorkplacePage(_ref) {
|
||||
var _virtualSpacesDetails, _virtualSpacesDetails2;
|
||||
var classroomList = _ref.classroomList,
|
||||
virtualSpaces = _ref.virtualSpaces,
|
||||
loading = _ref.loading,
|
||||
dispatch = _ref.dispatch,
|
||||
props = objectWithoutProperties_default()(_ref, _excluded);
|
||||
var _Form$useForm = es_form/* default */.Z.useForm(),
|
||||
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
|
||||
form = _Form$useForm2[0];
|
||||
var virtualSpacesDetails = virtualSpaces.virtualSpacesDetails;
|
||||
var _virtualSpaces$Workpl = virtualSpaces === null || virtualSpaces === void 0 ? void 0 : virtualSpaces.Workplace,
|
||||
base_statistic_data = _virtualSpaces$Workpl.BaseData.base_statistic_data;
|
||||
var _useParams = (0,_umi_production_exports.useParams)(),
|
||||
virtual_spacesId = _useParams.virtual_spacesId;
|
||||
var _useState = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
list = _useState2[0],
|
||||
setList = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
isAddOpen = _useState4[0],
|
||||
setIsAddOpen = _useState4[1];
|
||||
var InitData = [{
|
||||
name: "通知数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.inform_count) || 0
|
||||
}, {
|
||||
name: "知识模块数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.knowledge_module_count) || 0
|
||||
}, {
|
||||
name: "知识点数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.knowledge_point_count) || 0
|
||||
}, {
|
||||
name: "教案数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.teaching_plan_count) || 0
|
||||
}, {
|
||||
name: "教材数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.teaching_material_count) || 0
|
||||
}, {
|
||||
name: "资源数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.resource_count) || 0
|
||||
}, {
|
||||
name: "成员数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.member_count) || 0
|
||||
}, {
|
||||
name: "线上会议数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.online_meeting_count) || 0
|
||||
}, {
|
||||
name: "线下活动数量",
|
||||
num: (base_statistic_data === null || base_statistic_data === void 0 ? void 0 : base_statistic_data.offline_activity_count) || 0
|
||||
}];
|
||||
var getInforms = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,fetch/* default */.ZP)("/api/virtual_classrooms/".concat(virtual_spacesId, "/informs.json"), {
|
||||
method: 'get',
|
||||
params: {
|
||||
page: 1,
|
||||
limit: 3
|
||||
}
|
||||
});
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if (res !== null && res !== void 0 && res.informs) {
|
||||
setList(res === null || res === void 0 ? void 0 : res.informs);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getInforms() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var getData = function getData() {
|
||||
dispatch({
|
||||
type: "virtualSpaces/getBaseStatisticData",
|
||||
payload: {
|
||||
virtual_spacesId: virtual_spacesId
|
||||
}
|
||||
});
|
||||
getInforms();
|
||||
};
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getData();
|
||||
}, []);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
console.log(virtualSpaces);
|
||||
}, [virtualSpaces]);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(spin/* default */.Z, {
|
||||
spinning: !!loading["virtualSpaces/getBaseStatisticData"],
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "ml30 mr30 mt20",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: "".concat(Workplacemodules.DivStyle, " ").concat(Workplacemodules.InitDataStyle),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Workplacemodules.TitleStyle,
|
||||
style: {
|
||||
position: "absolute",
|
||||
top: "20px",
|
||||
left: "20px"
|
||||
},
|
||||
children: "\u57FA\u7840\u6570\u636E"
|
||||
}), InitData === null || InitData === void 0 ? void 0 : InitData.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "font18",
|
||||
style: {
|
||||
color: "#3061D0",
|
||||
textAlign: "center"
|
||||
},
|
||||
children: item.num
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "font14 mt10",
|
||||
style: {
|
||||
color: "#666"
|
||||
},
|
||||
children: item.name
|
||||
})]
|
||||
}, index);
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: "mt20",
|
||||
style: {
|
||||
gap: "20px"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
className: "".concat(Workplacemodules.DivStyle),
|
||||
flex: 1,
|
||||
style: {
|
||||
width: 300
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
className: Workplacemodules.TitleStyle,
|
||||
children: (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.name) || ""
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "mt20 ".concat(Workplacemodules.ImgDivStyle),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: "".concat(env/* default */.Z.IMG_SERVER).concat(virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.cover_url),
|
||||
width: "100%",
|
||||
height: "100%"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Workplacemodules.ImgDivStyleNum,
|
||||
children: ["\u6210\u5458\xA0", (virtualSpacesDetails === null || virtualSpacesDetails === void 0 ? void 0 : virtualSpacesDetails.members_count) || 0, "\u4EBA"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Workplacemodules.ImgDivStyleBody,
|
||||
children: ["\u7275\u5934\u4EBA/\u5355\u4F4D\xA0", virtualSpacesDetails === null || virtualSpacesDetails === void 0 || (_virtualSpacesDetails = virtualSpacesDetails.admin_user_info) === null || _virtualSpacesDetails === void 0 ? void 0 : _virtualSpacesDetails.name, "\xA0", (virtualSpacesDetails === null || virtualSpacesDetails === void 0 || (_virtualSpacesDetails2 = virtualSpacesDetails.admin_user_info) === null || _virtualSpacesDetails2 === void 0 ? void 0 : _virtualSpacesDetails2.school) || ""]
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
className: "".concat(Workplacemodules.DivStyle),
|
||||
flex: 1,
|
||||
style: {
|
||||
width: 300
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
className: Workplacemodules.TitleStyle,
|
||||
children: "\u901A\u77E5\u516C\u544A"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
||||
onClick: function onClick() {
|
||||
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/add"));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-bianji-moren mr5"
|
||||
}), "\u521B\u5EFA\u901A\u77E5"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-you3 ml20",
|
||||
style: {
|
||||
fontSize: "10px",
|
||||
cursor: "pointer"
|
||||
},
|
||||
onClick: function onClick() {
|
||||
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement"));
|
||||
}
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: "mt20 ",
|
||||
children: list === null || list === void 0 ? void 0 : list.map(function (item, index) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(Workplacemodules.Notice),
|
||||
children: [/*#__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: "".concat(Workplacemodules.NoticeTitle, " ").concat(Workplacemodules.Onerow),
|
||||
style: {
|
||||
width: 260
|
||||
},
|
||||
onClick: function onClick() {
|
||||
return _umi_production_exports.history.push("/".concat(util/* vtrsKey */.AS, "/").concat(virtual_spacesId, "/announcement/").concat(item.id, "/detail"));
|
||||
},
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
className: "mt5 ".concat(Workplacemodules.NoticeContent),
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
wrap: false,
|
||||
style: {
|
||||
color: "#333"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
className: "mr5",
|
||||
style: {
|
||||
color: "#999"
|
||||
},
|
||||
children: "\u53D1\u5E03\u4EBA"
|
||||
}), item === null || item === void 0 ? void 0 : item.author_name]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
children: dayjs_min_default()(item === null || item === void 0 ? void 0 : item.publish_time).format("YYYY-MM-DD")
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
className: "".concat(Workplacemodules.DivStyle),
|
||||
flex: 1,
|
||||
style: {
|
||||
width: 300
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(row/* default */.Z, {
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
className: Workplacemodules.TitleStyle,
|
||||
children: "\u6559\u7814\u6210\u679C"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
||||
img: hy_namespaceObject,
|
||||
imgStyles: {
|
||||
width: 215,
|
||||
height: 150
|
||||
},
|
||||
styles: {
|
||||
margin: '10px auto'
|
||||
}
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "mt20 ".concat(Workplacemodules.DivStyle),
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
className: Workplacemodules.TitleStyle,
|
||||
children: "\u6559\u7814\u6D3B\u52A8"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("a", {
|
||||
onClick: function onClick() {
|
||||
setIsAddOpen(true);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-bianji-moren mr5"
|
||||
}), "\u521B\u5EFA\u6D3B\u52A8"]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {
|
||||
img: hy_namespaceObject,
|
||||
imgStyles: {
|
||||
width: 215,
|
||||
height: 150
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(modal/* default */.Z, {
|
||||
open: isAddOpen,
|
||||
destroyOnClose: true,
|
||||
centered: true,
|
||||
title: "创建教研活动",
|
||||
onCancel: function onCancel() {
|
||||
setIsAddOpen(false);
|
||||
},
|
||||
onOk: function onOk() {
|
||||
setIsAddOpen(false);
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_form/* default */.Z, {
|
||||
form: form,
|
||||
initialValues: {},
|
||||
colon: false,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "name1",
|
||||
label: "\u6D3B\u52A8\u7C7B\u578B",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(es_radio/* default.Group */.ZP.Group, {
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: "1",
|
||||
children: "\u7EBF\u4E0A\u4F1A\u8BAE"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_radio/* default */.ZP, {
|
||||
value: "2",
|
||||
children: "\u7EBF\u4E0B\u6D3B\u52A8"
|
||||
})]
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "name2",
|
||||
label: "\u6D3B\u52A8\u540D\u79F0",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u6D3B\u52A8\u540D\u79F0"
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "time3",
|
||||
label: "\u5F00\u59CB\u65F6\u95F4",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
||||
style: {
|
||||
width: "100%"
|
||||
},
|
||||
showTime: true
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
|
||||
name: "time4",
|
||||
label: "\u7ED3\u675F\u65F6\u95F4",
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(date_picker["default"], {
|
||||
style: {
|
||||
width: "100%"
|
||||
},
|
||||
showTime: true
|
||||
})
|
||||
})]
|
||||
})
|
||||
})]
|
||||
})
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Workplace = ((0,_umi_production_exports.connect)(function (_ref3) {
|
||||
var loading = _ref3.loading,
|
||||
user = _ref3.user,
|
||||
virtualSpaces = _ref3.virtualSpaces;
|
||||
return {
|
||||
loading: loading.effects,
|
||||
user: user,
|
||||
virtualSpaces: virtualSpaces
|
||||
};
|
||||
})(WorkplacePage));
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 185 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.5 MiB |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue