parent
09b602bf54
commit
a5d6a7ef50
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,664 @@
|
||||
"use strict";
|
||||
(self["webpackChunk"] = self["webpackChunk"] || []).push([[86400],{
|
||||
|
||||
/***/ 4429:
|
||||
/*!***********************************************************!*\
|
||||
!*** ./src/pages/CaseLibrary/Index/index.tsx + 1 modules ***!
|
||||
\***********************************************************/
|
||||
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
// ESM COMPAT FLAG
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXPORTS
|
||||
__webpack_require__.d(__webpack_exports__, {
|
||||
"default": function() { return /* binding */ Index; }
|
||||
});
|
||||
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js
|
||||
var objectSpread2 = __webpack_require__(82242);
|
||||
var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/toConsumableArray.js
|
||||
var toConsumableArray = __webpack_require__(37205);
|
||||
var toConsumableArray_default = /*#__PURE__*/__webpack_require__.n(toConsumableArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js
|
||||
var regeneratorRuntime = __webpack_require__(7557);
|
||||
var regeneratorRuntime_default = /*#__PURE__*/__webpack_require__.n(regeneratorRuntime);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/asyncToGenerator.js
|
||||
var asyncToGenerator = __webpack_require__(41498);
|
||||
var asyncToGenerator_default = /*#__PURE__*/__webpack_require__.n(asyncToGenerator);
|
||||
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/slicedToArray.js
|
||||
var slicedToArray = __webpack_require__(79800);
|
||||
var slicedToArray_default = /*#__PURE__*/__webpack_require__.n(slicedToArray);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
||||
var _react_17_0_2_react = __webpack_require__(59301);
|
||||
// EXTERNAL MODULE: ./src/.umi-production/exports.ts
|
||||
var _umi_production_exports = __webpack_require__(3125);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/message/index.js + 4 modules
|
||||
var message = __webpack_require__(8591);
|
||||
// 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);
|
||||
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/skeleton/index.js + 12 modules
|
||||
var skeleton = __webpack_require__(78485);
|
||||
// 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/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/pagination/index.js + 10 modules
|
||||
var pagination = __webpack_require__(25700);
|
||||
;// CONCATENATED MODULE: ./src/pages/CaseLibrary/Index/index.less?modules
|
||||
// extracted by mini-css-extract-plugin
|
||||
/* harmony default export */ var Indexmodules = ({"flex_box_center":"flex_box_center___i_mQV","flex_space_between":"flex_space_between___fmHhd","flex_box_vertical_center":"flex_box_vertical_center___QPH7l","flex_box_center_end":"flex_box_center_end___NjEY9","flex_box_column":"flex_box_column___hoinV","BannerStyle":"BannerStyle___voGrn","BannerStyleContent":"BannerStyleContent___vcZ4B","DivDownPlay":"DivDownPlay___v8xdO","paramsStyle":"paramsStyle___KMZlF","type":"type___v29FY","typeName":"typeName___1qdlh","type_item_active":"type_item_active___rkG7U","type_item":"type_item___maCDq","subMenu":"subMenu___cuEAF","ziyuan_list":"ziyuan_list___eGXFX","ziyuan_item":"ziyuan_item___twCB3","ziyuan_title":"ziyuan_title___YnmJ3","item_data_style":"item_data_style___TFAEU","item_data_info":"item_data_info___HTYLW","img_type":"img_type___vM7md"});
|
||||
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
|
||||
var NoData = __webpack_require__(94398);
|
||||
// EXTERNAL MODULE: ./src/pages/CaseLibrary/AddOrEdit/index.tsx + 1 modules
|
||||
var AddOrEdit = __webpack_require__(3608);
|
||||
// EXTERNAL MODULE: ./src/components/ui-customization/index.tsx + 32 modules
|
||||
var ui_customization = __webpack_require__(88174);
|
||||
// EXTERNAL MODULE: ./src/service/rescoure.ts
|
||||
var rescoure = __webpack_require__(14820);
|
||||
// EXTERNAL MODULE: ./src/service/notice_and_case.ts
|
||||
var notice_and_case = __webpack_require__(21013);
|
||||
// EXTERNAL MODULE: ./src/utils/image.ts
|
||||
var utils_image = __webpack_require__(97422);
|
||||
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
|
||||
var jsx_runtime = __webpack_require__(37712);
|
||||
;// CONCATENATED MODULE: ./src/pages/CaseLibrary/Index/index.tsx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Page = function Page(_ref) {
|
||||
var _ref5, _ref6, _ref7, _ref8;
|
||||
var dispatch = _ref.dispatch,
|
||||
virtualSpaces = _ref.virtualSpaces,
|
||||
globalSetting = _ref.globalSetting;
|
||||
var _useState = (0,_react_17_0_2_react.useState)({
|
||||
page: 1,
|
||||
limit: 20
|
||||
}),
|
||||
_useState2 = slicedToArray_default()(_useState, 2),
|
||||
page = _useState2[0],
|
||||
setpage = _useState2[1];
|
||||
var _useState3 = (0,_react_17_0_2_react.useState)(0),
|
||||
_useState4 = slicedToArray_default()(_useState3, 2),
|
||||
total = _useState4[0],
|
||||
setTotal = _useState4[1];
|
||||
var _useState5 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState6 = slicedToArray_default()(_useState5, 2),
|
||||
loading = _useState6[0],
|
||||
setLoading = _useState6[1];
|
||||
var _useState7 = (0,_react_17_0_2_react.useState)(false),
|
||||
_useState8 = slicedToArray_default()(_useState7, 2),
|
||||
visible = _useState8[0],
|
||||
setVisible = _useState8[1];
|
||||
var _useState9 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState10 = slicedToArray_default()(_useState9, 2),
|
||||
list = _useState10[0],
|
||||
setList = _useState10[1];
|
||||
//知识点
|
||||
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState12 = slicedToArray_default()(_useState11, 2),
|
||||
zsd = _useState12[0],
|
||||
setZsd = _useState12[1]; //数据列表
|
||||
var _useState13 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState14 = slicedToArray_default()(_useState13, 2),
|
||||
activeZsd = _useState14[0],
|
||||
setActiveZsd = _useState14[1]; //选中的id
|
||||
var _useState15 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState16 = slicedToArray_default()(_useState15, 2),
|
||||
zsdStyle = _useState16[0],
|
||||
setZsdStyle = _useState16[1]; //校验选中的id 作样式使用
|
||||
//思政点
|
||||
var _useState17 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState18 = slicedToArray_default()(_useState17, 2),
|
||||
szd = _useState18[0],
|
||||
setSzd = _useState18[1]; //数据列表
|
||||
var _useState19 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState20 = slicedToArray_default()(_useState19, 2),
|
||||
activeSzd = _useState20[0],
|
||||
setActiveSzd = _useState20[1]; //选中的id
|
||||
var _useState21 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState22 = slicedToArray_default()(_useState21, 2),
|
||||
szdStyle = _useState22[0],
|
||||
setSzdStyle = _useState22[1]; //校验选中的id 作样式使用
|
||||
//实施方式
|
||||
var _useState23 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState24 = slicedToArray_default()(_useState23, 2),
|
||||
ssfs = _useState24[0],
|
||||
setSsfs = _useState24[1]; //数据列表
|
||||
var _useState25 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState26 = slicedToArray_default()(_useState25, 2),
|
||||
activeSsfs = _useState26[0],
|
||||
setActiveSsfs = _useState26[1]; //选中的id
|
||||
var _useState27 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState28 = slicedToArray_default()(_useState27, 2),
|
||||
ssfsStyle = _useState28[0],
|
||||
setSsfsStyle = _useState28[1]; //校验选中的id 作样式使用
|
||||
//素材类型
|
||||
var _useState29 = (0,_react_17_0_2_react.useState)([]),
|
||||
_useState30 = slicedToArray_default()(_useState29, 2),
|
||||
sclx = _useState30[0],
|
||||
setSclx = _useState30[1]; //数据列表
|
||||
var _useState31 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState32 = slicedToArray_default()(_useState31, 2),
|
||||
activeSclx = _useState32[0],
|
||||
setActiveSclx = _useState32[1]; //选中的id
|
||||
//最新最热 类型
|
||||
var _useState33 = (0,_react_17_0_2_react.useState)('created_at'),
|
||||
_useState34 = slicedToArray_default()(_useState33, 2),
|
||||
type = _useState34[0],
|
||||
setType = _useState34[1];
|
||||
//关键字
|
||||
var _useState35 = (0,_react_17_0_2_react.useState)(''),
|
||||
_useState36 = slicedToArray_default()(_useState35, 2),
|
||||
keyword = _useState36[0],
|
||||
setkeyword = _useState36[1];
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getData();
|
||||
}, []);
|
||||
(0,_react_17_0_2_react.useEffect)(function () {
|
||||
getList();
|
||||
}, [keyword, type, activeZsd, activeSzd, activeSsfs, activeSclx, page]);
|
||||
var getData = /*#__PURE__*/function () {
|
||||
var _ref2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
||||
var res, _res$data, _res$data2, _res$data3, _res$data4;
|
||||
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
||||
while (1) switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return (0,rescoure/* get_resource_libraries */.iq)();
|
||||
case 2:
|
||||
res = _context.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
setZsd(res === null || res === void 0 || (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.knowledge_point);
|
||||
setSzd(res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.political_point);
|
||||
setSsfs(res === null || res === void 0 || (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.embodiment);
|
||||
setSclx(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.material_type);
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}, _callee);
|
||||
}));
|
||||
return function getData() {
|
||||
return _ref2.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var getList = /*#__PURE__*/function () {
|
||||
var _ref3 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
||||
var res, _res$data5, _res$data6;
|
||||
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
|
||||
while (1) switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
setLoading(true);
|
||||
_context2.next = 3;
|
||||
return (0,notice_and_case/* get_resource_list */.J)({
|
||||
kowledge_point_id: activeZsd,
|
||||
political_point_id: activeSzd,
|
||||
embodiment_id: activeSsfs,
|
||||
material_type_id: activeSclx,
|
||||
keyword: keyword,
|
||||
page: page.page,
|
||||
limit: page.limit,
|
||||
order: type
|
||||
});
|
||||
case 3:
|
||||
res = _context2.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
setList((res === null || res === void 0 || (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.list) || []);
|
||||
setTotal((res === null || res === void 0 || (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.size) || 0);
|
||||
}
|
||||
setLoading(false);
|
||||
case 6:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}, _callee2);
|
||||
}));
|
||||
return function getList() {
|
||||
return _ref3.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var handleOk = /*#__PURE__*/function () {
|
||||
var _ref4 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(values) {
|
||||
var res;
|
||||
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
||||
while (1) switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return (0,rescoure/* add_resource */.FW)(values);
|
||||
case 2:
|
||||
res = _context3.sent;
|
||||
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
||||
message/* default */.ZP.success('添加成功');
|
||||
setVisible(false);
|
||||
getList();
|
||||
}
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}, _callee3);
|
||||
}));
|
||||
return function handleOk(_x) {
|
||||
return _ref4.apply(this, arguments);
|
||||
};
|
||||
}();
|
||||
var renderMenu = function renderMenu() {
|
||||
var children = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
var id = arguments.length > 1 ? arguments[1] : undefined;
|
||||
var type = arguments.length > 2 ? arguments[2] : undefined;
|
||||
var objActive = '';
|
||||
if (type == '知识点') {
|
||||
objActive = zsdStyle;
|
||||
} else if (type == '思政点') {
|
||||
objActive = szdStyle;
|
||||
} else if (type == '实施方式') {
|
||||
objActive = ssfsStyle;
|
||||
}
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z, {
|
||||
className: Indexmodules.subMenu,
|
||||
children: children === null || children === void 0 ? void 0 : children.map(function (item) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)(menu/* default */.Z.Item, {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("a", {
|
||||
className: "".concat(Indexmodules.subItem, " ").concat(objActive == item.id ? Indexmodules.subActive : ''),
|
||||
onClick: function onClick() {
|
||||
if (type == '知识点') {
|
||||
setActiveZsd(item.id);
|
||||
setZsdStyle(id);
|
||||
} else if (type == '思政点') {
|
||||
setActiveSzd(item.id);
|
||||
setSzdStyle(id);
|
||||
} else if (type == '实施方式') {
|
||||
setActiveSsfs(item.id);
|
||||
setSsfsStyle(id);
|
||||
}
|
||||
},
|
||||
children: item.name
|
||||
})
|
||||
}, item.id);
|
||||
})
|
||||
});
|
||||
};
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("section", {
|
||||
style: {
|
||||
background: '#fff'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.BannerStyle,
|
||||
style: {
|
||||
backgroundImage: "url(".concat(__webpack_require__(/*! ../imgs/banner.png */ 33651), ")")
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.BannerStyleContent,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
margin: 'auto'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
color: "#1B8565",
|
||||
fontSize: "34px",
|
||||
letterSpacing: "5px",
|
||||
fontWeight: 600
|
||||
},
|
||||
children: "\u8BFE\u7A0B\u601D\u653F\u7D20\u6750\u5E93"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: "".concat(Indexmodules.DivDownPlay),
|
||||
onClick: function onClick() {
|
||||
setVisible(true);
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "iconfont icon-icon_xinyong_xianxing_jijin-249",
|
||||
style: {
|
||||
marginRight: "5px"
|
||||
}
|
||||
}), "\u4E0A\u4F20\u601D\u653F\u6848\u4F8B"]
|
||||
})]
|
||||
})
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
width: "1200px",
|
||||
margin: "36px auto 0 auto",
|
||||
background: '#fff',
|
||||
paddingBottom: '10px'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.paramsStyle,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.type,
|
||||
style: {
|
||||
borderBottom: '1px dashed #37AD83'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.typeName,
|
||||
children: "\u77E5\u8BC6\u70B9"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
flex: 1
|
||||
},
|
||||
children: (_ref5 = [{
|
||||
"id": '',
|
||||
"name": "全部"
|
||||
}].concat(toConsumableArray_default()(zsd))) === null || _ref5 === void 0 ? void 0 : _ref5.map(function (v, k) {
|
||||
var _v$children;
|
||||
return (v === null || v === void 0 || (_v$children = v.children) === null || _v$children === void 0 ? void 0 : _v$children.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
overlayStyle: {
|
||||
width: 600
|
||||
},
|
||||
getPopupContainer: function getPopupContainer(trigger) {
|
||||
return trigger.parentNode;
|
||||
},
|
||||
dropdownRender: function dropdownRender() {
|
||||
return renderMenu(v === null || v === void 0 ? void 0 : v.children, v === null || v === void 0 ? void 0 : v.id, '知识点');
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: zsdStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveZsd(v === null || v === void 0 ? void 0 : v.id);
|
||||
setZsdStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k)
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: zsdStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveZsd(v === null || v === void 0 ? void 0 : v.id);
|
||||
setZsdStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k);
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.type,
|
||||
style: {
|
||||
borderBottom: '1px dashed #37AD83'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.typeName,
|
||||
children: "\u601D\u653F\u70B9"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
flex: 1
|
||||
},
|
||||
children: (_ref6 = [{
|
||||
"id": '',
|
||||
"name": "全部"
|
||||
}].concat(toConsumableArray_default()(szd))) === null || _ref6 === void 0 ? void 0 : _ref6.map(function (v, k) {
|
||||
var _v$children2;
|
||||
return (v === null || v === void 0 || (_v$children2 = v.children) === null || _v$children2 === void 0 ? void 0 : _v$children2.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
overlayStyle: {
|
||||
width: 600
|
||||
},
|
||||
getPopupContainer: function getPopupContainer(trigger) {
|
||||
return trigger.parentNode;
|
||||
},
|
||||
dropdownRender: function dropdownRender() {
|
||||
return renderMenu(v === null || v === void 0 ? void 0 : v.children, v === null || v === void 0 ? void 0 : v.id, '思政点');
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: szdStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveSzd(v === null || v === void 0 ? void 0 : v.id);
|
||||
setSzdStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k)
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: szdStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveSzd(v === null || v === void 0 ? void 0 : v.id);
|
||||
setSzdStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k);
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.type,
|
||||
style: {
|
||||
borderBottom: '1px dashed #37AD83'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.typeName,
|
||||
children: "\u5B9E\u65BD\u65B9\u5F0F"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
flex: 1
|
||||
},
|
||||
children: (_ref7 = [{
|
||||
"id": '',
|
||||
"name": "全部"
|
||||
}].concat(toConsumableArray_default()(ssfs))) === null || _ref7 === void 0 ? void 0 : _ref7.map(function (v, k) {
|
||||
var _v$children3;
|
||||
return (v === null || v === void 0 || (_v$children3 = v.children) === null || _v$children3 === void 0 ? void 0 : _v$children3.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(dropdown/* default */.Z, {
|
||||
placement: "bottomLeft",
|
||||
overlayStyle: {
|
||||
width: 600
|
||||
},
|
||||
getPopupContainer: function getPopupContainer(trigger) {
|
||||
return trigger.parentNode;
|
||||
},
|
||||
dropdownRender: function dropdownRender() {
|
||||
return renderMenu(v === null || v === void 0 ? void 0 : v.children, v === null || v === void 0 ? void 0 : v.id, '实施方式');
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ssfsStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveSsfs(v === null || v === void 0 ? void 0 : v.id);
|
||||
setSsfsStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k)
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: ssfsStyle == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveSsfs(v === null || v === void 0 ? void 0 : v.id);
|
||||
setSsfsStyle(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k);
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.type,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.typeName,
|
||||
children: "\u7D20\u6750\u7C7B\u578B"
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
flex: 1
|
||||
},
|
||||
children: (_ref8 = [{
|
||||
"id": '',
|
||||
"name": "全部"
|
||||
}].concat(toConsumableArray_default()(sclx))) === null || _ref8 === void 0 ? void 0 : _ref8.map(function (v, k) {
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: activeSclx == (v === null || v === void 0 ? void 0 : v.id) ? Indexmodules.type_item_active : Indexmodules.type_item,
|
||||
onClick: function onClick() {
|
||||
setActiveSclx(v === null || v === void 0 ? void 0 : v.id);
|
||||
},
|
||||
children: v === null || v === void 0 ? void 0 : v.name
|
||||
}, k);
|
||||
})
|
||||
})]
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
style: {
|
||||
display: 'flex',
|
||||
alignItems: 'center'
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* SuperiorTabs */.tp, {
|
||||
dataSource: [{
|
||||
id: 'created_at',
|
||||
name: '最新'
|
||||
}, {
|
||||
id: 'hot',
|
||||
name: '最热'
|
||||
}],
|
||||
value: type,
|
||||
onChange: function onChange(id) {
|
||||
setType(id);
|
||||
}
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(ui_customization/* CustomInput */.t7, {
|
||||
placeholder: "\u8BF7\u8F93\u5165\u8D44\u6E90\u540D\u79F0\u8FDB\u884C\u641C\u7D22",
|
||||
style: {
|
||||
marginLeft: 'auto'
|
||||
},
|
||||
className: Indexmodules.CustomInputStyle,
|
||||
value: keyword,
|
||||
onChange: function onChange(e) {
|
||||
setkeyword(e);
|
||||
}
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(skeleton/* default */.Z, {
|
||||
loading: loading,
|
||||
style: {
|
||||
margin: '20px 0'
|
||||
},
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.ziyuan_list,
|
||||
children: (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
||||
children: list === null || list === void 0 ? void 0 : list.map(function (item, index) {
|
||||
var _item$attachment;
|
||||
// 获取资源图标
|
||||
var iconSrc = (0,utils_image/* getFillTypeImg */.K)(item === null || item === void 0 || (_item$attachment = item.attachment) === null || _item$attachment === void 0 ? void 0 : _item$attachment.file_sub);
|
||||
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.ziyuan_item,
|
||||
onClick: function onClick() {
|
||||
_umi_production_exports.history.push("/caselibrary/detail/".concat(item === null || item === void 0 ? void 0 : item.id));
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
|
||||
title: item === null || item === void 0 ? void 0 : item.name,
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
||||
className: Indexmodules.ziyuan_title,
|
||||
children: item === null || item === void 0 ? void 0 : item.name
|
||||
})
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
||||
src: iconSrc,
|
||||
className: Indexmodules.img_type
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.item_data_style,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.item_data_info,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "".concat(Indexmodules.item_data_info, " iconfont icon-dianzan4 mt5")
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: item === null || item === void 0 ? void 0 : item.like_count
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.item_data_info,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "".concat(Indexmodules.item_data_info, " iconfont icon-shoucang mt5")
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: item === null || item === void 0 ? void 0 : item.collect_count
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
||||
className: Indexmodules.item_data_info,
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
||||
className: "".concat(Indexmodules.item_data_info, " iconfont icon-xiaopinglun mt5")
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
children: item === null || item === void 0 ? void 0 : item.comment_count
|
||||
})]
|
||||
})]
|
||||
})]
|
||||
}, index);
|
||||
})
|
||||
}) : /*#__PURE__*/(0,jsx_runtime.jsx)(NoData/* default */.Z, {})
|
||||
})
|
||||
}), (list === null || list === void 0 ? void 0 : list.length) > 0 && /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
|
||||
wrap: false,
|
||||
align: "middle",
|
||||
justify: "space-between",
|
||||
style: {
|
||||
width: "1200px",
|
||||
margin: "20px auto"
|
||||
},
|
||||
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)(col/* default */.Z, {
|
||||
children: ["\u5171\xA0", /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
||||
style: {
|
||||
color: "#165DFF"
|
||||
},
|
||||
children: total || 0
|
||||
}), "\xA0\u6761\u6570\u636E"]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
|
||||
children: /*#__PURE__*/(0,jsx_runtime.jsx)(pagination/* default */.Z, {
|
||||
showSizeChanger: false,
|
||||
showQuickJumper: true,
|
||||
hideOnSinglePage: true,
|
||||
current: page.page,
|
||||
pageSize: page.limit,
|
||||
onChange: function onChange(pageNum, limit) {
|
||||
page.page = pageNum;
|
||||
setpage(objectSpread2_default()({}, page));
|
||||
},
|
||||
total: total || 0
|
||||
})
|
||||
})]
|
||||
}), /*#__PURE__*/(0,jsx_runtime.jsx)(AddOrEdit/* default */.Z, {
|
||||
visible: visible,
|
||||
title: "\u7D20\u6750",
|
||||
onCancel: function onCancel() {
|
||||
return setVisible(false);
|
||||
},
|
||||
onOk: handleOk
|
||||
})]
|
||||
})]
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var Index = ((0,_umi_production_exports.connect)(function (_ref9) {
|
||||
var user = _ref9.user,
|
||||
globalSetting = _ref9.globalSetting,
|
||||
virtualSpaces = _ref9.virtualSpaces;
|
||||
return {
|
||||
user: user,
|
||||
globalSetting: globalSetting,
|
||||
virtualSpaces: virtualSpaces
|
||||
};
|
||||
})(Page));
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 33651:
|
||||
/*!***********************************************!*\
|
||||
!*** ./src/pages/CaseLibrary/imgs/banner.png ***!
|
||||
\***********************************************/
|
||||
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
||||
|
||||
module.exports = __webpack_require__.p + "static/banner.6d03b2ef.png";
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue