autoUpdataFile

dev_local_v9_zzxy
eduauto 1 year ago
parent 574134f1a4
commit 0981151493

@ -27,7 +27,7 @@
display: block !important;
}
</style><script>if(document.domain !== "www.educoder.net") document.title = '';</script>
<script src="/react/build/umi.6a90cac3.js"></script>
<script src="/react/build/umi.2b8617a2.js"></script>
<script src="/react/build/js/public.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

@ -154,7 +154,7 @@ var Message = function Message(_ref) {
case 11:
res = _context.t0;
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
message/* default */.ZP.success("上传成功!");
message/* default */.ZP.success(isEdit ? '编辑成功' : '上传成功');
onOk();
}
setLoading(false);
@ -587,10 +587,21 @@ var CustomTree = function CustomTree(_ref) {
}, val === null || val === void 0 ? void 0 : val.id);
};
var handleTitleRender = function handleTitleRender(nodeData) {
console.log(nodeData);
var nodeLevel = findFolderLevel(data, nodeData === null || nodeData === void 0 ? void 0 : nodeData.key); // 获取当前节点的层级
var widths = {
1: 220,
2: 190,
3: 160,
4: 131
};
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: CustomTreemodules.row,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: CustomTreemodules.title,
style: {
maxWidth: widths[nodeLevel]
},
children: nodeData.title
}), /*#__PURE__*/(0,jsx_runtime.jsx)(popover/* default */.Z, {
autoAdjustOverflow: false,
@ -876,7 +887,7 @@ var Detail_Message = function Message(_ref) {
sort_by: 'created_at',
sort_direction: 'desc',
page: 1,
limit: 2
limit: 10
}),
_useState8 = slicedToArray_default()(_useState7, 2),
params = _useState8[0],
@ -955,7 +966,7 @@ var Detail_Message = function Message(_ref) {
}, [directoryId]);
var getNewList = function getNewList() {
params.category = null, params.sort_by = 'created_at', params.sort_direction = 'desc', params.page = 1;
params.limit = 2;
params.limit = 10;
setParams(objectSpread2_default()({}, params));
getData();
};
@ -1235,6 +1246,7 @@ var Detail_Message = function Message(_ref) {
params.sort_direction = item.direction;
params.page = 1;
setSortMenuName(item.name);
getData();
},
children: item.name
}, item.name);

@ -453,7 +453,7 @@ var Comment = function Comment(_ref, ref) {
},
children: v.time
})]
}), v.user_id != ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id) && !allowForbidMsg && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
}), v.user_id != ((_user$userInfo5 = user.userInfo) === null || _user$userInfo5 === void 0 ? void 0 : _user$userInfo5.user_id) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "forums-comment-par-delete",
style: {
display: 'none'
@ -684,7 +684,7 @@ var Comment = function Comment(_ref, ref) {
style: {
textAlign: 'right'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: [!allowForbidMsg && /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
className: "iconfont icon-xiaopinglun mr30 current font14",
onClick: function onClick() {
return setShowItemReply(k);
@ -766,7 +766,7 @@ var Comment = function Comment(_ref, ref) {
})
})]
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
}), !allowForbidMsg && /*#__PURE__*/(0,jsx_runtime.jsxs)("aside", {
className: Commentmodules.reply,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(markdown_editor/* default */.Z, {
onBlur: function onBlur() {
@ -1093,7 +1093,7 @@ var Journal = function Journal(search) {
// })
}
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
children: [(item === null || item === void 0 ? void 0 : item.recommended) && /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: rec_namespaceObject,
width: 16,
style: {
@ -3179,8 +3179,8 @@ function _getMagazinRecArc() {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/recommended.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":

@ -766,8 +766,8 @@ function _getMagazinRecArc() {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/recommended.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":

@ -331,8 +331,8 @@ function _getMagazinRecArc() {
while (1) switch (_context6.prev = _context6.next) {
case 0:
return _context6.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/recommended.json", {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test3_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
}));
case 1:
case "end":

@ -24,7 +24,9 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi_production_exports = __webpack_require__(88271);
;// CONCATENATED MODULE: ./src/pages/NewHomeEntrance1/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var NewHomeEntrance1modules = ({"homeEntrance":"homeEntrance___MyCMy","go_back":"go_back___uP7d0","heard_warp":"heard_warp___IPU2u","info_con":"info_con___DQWVI","left_Warp":"left_Warp___yOqIn","tabs":"tabs____LrNs","con_img":"con_img___U8H2R","right_Warp":"right_Warp___pkVIA","title":"title___Wvyt0","con_text":"con_text___cuWmr","detail_btn":"detail_btn___B3mW1","text3":"text3___kgmiO","text4":"text4___hjJHl","text5":"text5___klMzn","text3_active":"text3_active___ETqmQ","text4_active":"text4_active___pWHSi","text5_active":"text5_active___YfsF_","content":"content___TrM8Y","ts":"ts___N9uUa","detail":"detail___IE98U","detail1":"detail1___zHTxL","sy_top_bom":"sy_top_bom___Zo69t","sy_top_bom1":"sy_top_bom1___hj0mc"});
/* harmony default export */ var NewHomeEntrance1modules = ({"homeEntrance":"homeEntrance___MyCMy","go_back":"go_back___uP7d0","heard_warp":"heard_warp___IPU2u","info_con":"info_con___DQWVI","left_Warp":"left_Warp___yOqIn","tabs":"tabs____LrNs","con_img":"con_img___U8H2R","right_Warp":"right_Warp___pkVIA","title":"title___Wvyt0","con_text":"con_text___cuWmr","detail_btn":"detail_btn___B3mW1","text3":"text3___kgmiO","text4":"text4___hjJHl","text5":"text5___klMzn","text3_active":"text3_active___ETqmQ","text4_active":"text4_active___pWHSi","text5_active":"text5_active___YfsF_","content":"content___TrM8Y","ts":"ts___N9uUa","detail":"detail___IE98U","detail1":"detail1___zHTxL","sy_top_bom":"sy_top_bom___Zo69t","sy_top_bom1":"sy_top_bom1___hj0mc","bottom_list":"bottom_list___MNE7M","bottom_list1":"bottom_list1___Yo7gx"});
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = __webpack_require__(64118);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/NewHomeEntrance1/index.tsx
@ -34,8 +36,9 @@ var jsx_runtime = __webpack_require__(37712);
var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
var _data$current, _data$current2, _data$current3, _data$current4, _data$current5, _data$current6;
var _data$current, _data$current2, _data$current3, _data$current4, _data$current5, _data$current6, _data$current7;
var user = _ref.user,
dispatch = _ref.dispatch;
var _useState = (0,_react_17_0_2_react.useState)(0),
@ -51,11 +54,92 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
var data = [{
name: '实验室管理',
className: 'text5',
url: '/laboratory/reservations',
title: '预约先行,科研无忧',
content: '提供在线预约、智能资源分配、多级审批流程等功能,确保实验空间及其他设施的合理利用',
img1: [__webpack_require__(/*! ./img/实验预约.png */ 36852), __webpack_require__(/*! ./img/实验开放预约.png */ 96217), __webpack_require__(/*! ./img/我的预约.png */ 36583)],
img2: [__webpack_require__(/*! ./img/工作台1.png */ 6476), __webpack_require__(/*! ./img/工作台2.png */ 87304), __webpack_require__(/*! ./img/工作台3.png */ 94370), __webpack_require__(/*! ./img/工作台4.png */ 40111), __webpack_require__(/*! ./img/工作台5.png */ 82726), __webpack_require__(/*! ./img/工作台6.png */ 98177)]
dom: function dom() {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntrance1modules.sy_top_bom,
children: [{
url: '',
img: __webpack_require__(/*! ./img/实验预约.png */ 36852)
}, {
url: '',
img: __webpack_require__(/*! ./img/实验开放预约.png */ 96217)
}, {
url: '',
img: __webpack_require__(/*! ./img/我的预约.png */ 36583)
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.bottom_list,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item === null || item === void 0 ? void 0 : item.img,
style: {
position: 'relative',
width: '100%',
height: '100%'
}
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.detail,
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
style: {
width: '1.2vw',
height: '1vh',
marginLeft: '0.3vw',
marginRight: '1vw'
}
})]
})]
}, index);
})
}), !(0,authority/* isCommonStudent */.JA)() && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntrance1modules.sy_top_bom1,
children: [{
url: '',
img: __webpack_require__(/*! ./img/工作台1.png */ 6476)
}, {
url: '',
img: __webpack_require__(/*! ./img/工作台2.png */ 87304)
}, {
url: '',
img: __webpack_require__(/*! ./img/工作台3.png */ 94370)
}, {
url: '',
img: __webpack_require__(/*! ./img/工作台4.png */ 40111)
}, {
url: '',
img: __webpack_require__(/*! ./img/工作台5.png */ 82726)
}, {
url: '',
img: __webpack_require__(/*! ./img/工作台6.png */ 98177)
}].map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.bottom_list1,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item === null || item === void 0 ? void 0 : item.img,
style: {
position: 'relative',
width: '100%',
height: '100%'
}
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(NewHomeEntrance1modules.detail, " ").concat(NewHomeEntrance1modules.detail1),
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
style: {
width: '1vw',
height: '0.8vh',
marginLeft: '0.3vw',
marginRight: '1vw'
}
})]
})]
}, index);
})
})]
});
}
}, {
name: '设备管理',
className: 'text4',
@ -78,6 +162,8 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
content: '提供在线预约、智能资源分配、多级审批流程等功能,确保实验空间及其他设施的合理利用',
img: __webpack_require__(/*! ./img/教学课堂.png */ 88500)
}];
//<img src={require(`./img/${data[current]?.name}.png`)} style={{ width: '44.5vw', height: '49.5vh' }} />
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.homeEntrance,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@ -105,70 +191,7 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntrance1modules.con_img,
children: ((_data$current = data[current]) === null || _data$current === void 0 ? void 0 : _data$current.name) == '实验室管理' && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntrance1modules.sy_top_bom,
children: data[current].img1.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative',
width: '32%',
height: '100%'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item,
style: {
position: 'relative',
width: '100%',
height: '100%'
}
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.detail,
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
style: {
width: '1.2vw',
height: '1vh',
marginLeft: '0.3vw',
marginRight: '1vw'
}
})]
})]
}, index);
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: NewHomeEntrance1modules.sy_top_bom1,
children: data[current].img2.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
position: 'relative',
width: '31%',
height: '36%',
marginTop: '2vh'
},
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: item,
style: {
position: 'relative',
width: '100%',
height: '100%'
}
}, index), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: "".concat(NewHomeEntrance1modules.detail, " ").concat(NewHomeEntrance1modules.detail1),
children: ["\u67E5\u770B\u8BE6\u60C5", /*#__PURE__*/(0,jsx_runtime.jsx)("img", {
src: __webpack_require__(/*! ./img/箭头.png */ 70514),
style: {
width: '1.2vw',
height: '1vh',
marginLeft: '0.3vw',
marginRight: '1vw'
}
})]
})]
}, index);
})
})]
})
children: ((_data$current = data[current]) === null || _data$current === void 0 ? void 0 : _data$current.name) == '实验室管理' && data[current].dom()
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.right_Warp,
@ -208,12 +231,12 @@ var NewHomeEntrance1 = function NewHomeEntrance1(_ref) {
className: NewHomeEntrance1modules.content,
children: (_data$current6 = data[current]) === null || _data$current6 === void 0 ? void 0 : _data$current6.content
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
}), !['实验室管理'].includes((_data$current7 = data[current]) === null || _data$current7 === void 0 ? void 0 : _data$current7.name) && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: NewHomeEntrance1modules.detail_btn,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
onClick: function onClick() {
var _data$current7;
return _umi_production_exports.history.push((_data$current7 = data[current]) === null || _data$current7 === void 0 ? void 0 : _data$current7.url);
var _data$current8;
return _umi_production_exports.history.push((_data$current8 = data[current]) === null || _data$current8 === void 0 ? void 0 : _data$current8.url);
},
children: "\u67E5\u770B\u8BE6\u60C5"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("img", {

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save