Auto Submit

dev_local_v9_test4
autosubmit 2 years ago
parent db98f55e0d
commit d17f4b4dbb

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

@ -255,12 +255,14 @@ var EditCommonHomework = function EditCommonHomework(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -449,6 +451,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -465,6 +469,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ })

@ -1085,12 +1085,14 @@ var PollDetail = function PollDetail(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -1279,6 +1281,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -1295,6 +1299,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ }),

@ -305,12 +305,14 @@ var Page = function Page(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -499,6 +501,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -515,6 +519,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ })

@ -883,6 +883,9 @@ var Navigation = function Navigation(_ref) {
var _item$response;
return item === null || item === void 0 || (_item$response = item.response) === null || _item$response === void 0 ? void 0 : _item$response.id;
}),
specify_user_ids: selectUsers.map(function (item) {
return item === null || item === void 0 ? void 0 : item.numid;
}),
permission: ((_myForm$getFieldValue4 = myForm.getFieldValue('permission')) === null || _myForm$getFieldValue4 === void 0 ? void 0 : _myForm$getFieldValue4.length) > 1 ? 2 : (_myForm$getFieldValue5 = myForm.getFieldValue('permission')) === null || _myForm$getFieldValue5 === void 0 ? void 0 : _myForm$getFieldValue5[0]
})
}).then(function (res) {
@ -911,6 +914,9 @@ var Navigation = function Navigation(_ref) {
var _item$response2;
return item === null || item === void 0 || (_item$response2 = item.response) === null || _item$response2 === void 0 ? void 0 : _item$response2.id;
}),
specify_user_ids: selectUsers.map(function (item) {
return item === null || item === void 0 ? void 0 : item.numid;
}),
permission: ((_myForm$getFieldValue7 = myForm.getFieldValue('permission')) === null || _myForm$getFieldValue7 === void 0 ? void 0 : _myForm$getFieldValue7.length) > 1 ? 2 : (_myForm$getFieldValue8 = myForm.getFieldValue('permission')) === null || _myForm$getFieldValue8 === void 0 ? void 0 : _myForm$getFieldValue8[0]
})
}).then(function (res) {

@ -289,12 +289,14 @@ var EditCommonHomework = function EditCommonHomework(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -483,6 +485,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -499,6 +503,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ })

@ -73,6 +73,8 @@ var es_button = __webpack_require__(3113);
/* harmony default export */ var Commentmodules = ({"flex_box_center":"flex_box_center___Cr67s","flex_space_between":"flex_space_between___yz6wQ","flex_box_vertical_center":"flex_box_vertical_center___TIsXG","flex_box_center_end":"flex_box_center_end___FBLGZ","flex_box_column":"flex_box_column___gRE9O","reply":"reply___IBOn9","replyList":"replyList___kTYWa","comment":"comment___Gxxyf","content":"content___Hq8yF","commentItem":"commentItem___U16wJ","commentParItem":"commentParItem___oYqHD","submitStyle":"submitStyle___QdfDF"});
// EXTERNAL MODULE: ./src/service/forums.ts
var forums = __webpack_require__(19471);
// EXTERNAL MODULE: ./src/service/broadcast.ts
var broadcast = __webpack_require__(69630);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Magazine/Detail/Comment/components/Second.tsx
@ -88,6 +90,8 @@ var jsx_runtime = __webpack_require__(37712);
dayjs_min_default().locale("ZH-cn");
function second(_ref) {
var user = _ref.user,
@ -101,7 +105,7 @@ function second(_ref) {
return /*#__PURE__*/(0,jsx_runtime.jsx)("aside", {
className: Commentmodules.comment,
children: vlist.map(function (val, key) {
var _user$userInfo, _user$userInfo2;
var _user$userInfo, _user$userInfo2, _user$userInfo3;
return /*#__PURE__*/(0,jsx_runtime.jsxs)(row/* default */.Z, {
className: Commentmodules.commentItem,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
@ -125,7 +129,83 @@ function second(_ref) {
},
children: val.time
})]
}), (val.can_delete || val.user_id === ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) || val.user_login === ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.login)) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
}), val.user_id != ((_user$userInfo = user.userInfo) === null || _user$userInfo === void 0 ? void 0 : _user$userInfo.user_id) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "forums-comment-par-delete",
style: {
display: 'none'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "\u8BBE\u7F6E",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
className: "iconfont icon-shezhi8 mr20 font14",
style: {
cursor: 'pointer'
},
onClick: function onClick() {
var is_forbid_msg = false;
(0,broadcast/* forbid_msg_status */.CR)({
id: params === null || params === void 0 ? void 0 : params.id,
user_id: val === null || val === void 0 ? void 0 : val.user_id
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
is_forbid_msg = res !== null && res !== void 0 && res.forbid_msg_status ? true : false;
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
icon: null,
title: '禁言设置',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
alignItems: 'center'
},
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
defaultChecked: is_forbid_msg,
checkedChildren: "\u662F",
unCheckedChildren: "\u5426",
style: {
marginLeft: '10px'
},
onChange: function onChange(e) {
is_forbid_msg = e;
}
})]
})
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
(0,broadcast/* forbid_msg */.eh)({
id: params === null || params === void 0 ? void 0 : params.id,
user_id: val === null || val === void 0 ? void 0 : val.user_id,
is_forbid_msg: is_forbid_msg
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
}
});
case 1:
case "end":
return _context.stop();
}
}, _callee);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
});
}
});
}
})
})
}), (val.can_delete || val.user_id === ((_user$userInfo2 = user.userInfo) === null || _user$userInfo2 === void 0 ? void 0 : _user$userInfo2.user_id) || val.user_login === ((_user$userInfo3 = user.userInfo) === null || _user$userInfo3 === void 0 ? void 0 : _user$userInfo3.login)) && /*#__PURE__*/(0,jsx_runtime.jsx)(col/* default */.Z, {
className: "forums-comment-delete",
style: {
display: 'none'
@ -146,18 +226,18 @@ function second(_ref) {
children: "\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var res, filterData;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
_context.next = 2;
_context2.next = 2;
return (0,forums/* deleteForums */.sW)({
id: val.id,
memo_type: 'magazine'
});
case 2:
res = _context.sent;
res = _context2.sent;
filterData = memo_replies.find(function (x) {
return x.id === id;
}).children.filter(function (y) {
@ -175,12 +255,12 @@ function second(_ref) {
});
case 6:
case "end":
return _context.stop();
return _context2.stop();
}
}, _callee);
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
return _onOk2.apply(this, arguments);
}
return onOk;
}()
@ -226,6 +306,7 @@ var util = __webpack_require__(27876);
dayjs_min_default().locale("ZH-cn");
var Comment = function Comment(_ref, ref) {
@ -374,7 +455,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) && /*#__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'
@ -387,45 +468,65 @@ var Comment = function Comment(_ref, ref) {
cursor: 'pointer'
},
onClick: function onClick() {
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
icon: null,
title: '禁言设置',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
alignItems: 'center'
},
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
checkedChildren: "\u662F",
unCheckedChildren: "\u5426",
style: {
marginLeft: '10px'
},
onChange: function onChange(e) {
console.log(e);
}
})]
})
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
case "end":
return _context2.stop();
var is_forbid_msg = false;
(0,broadcast/* forbid_msg_status */.CR)({
id: params === null || params === void 0 ? void 0 : params.id,
user_id: v === null || v === void 0 ? void 0 : v.user_id
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
is_forbid_msg = res !== null && res !== void 0 && res.forbid_msg_status ? true : false;
modal/* default */.Z.confirm({
centered: true,
okText: '确定',
cancelText: '取消',
icon: null,
title: '禁言设置',
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
style: {
display: "flex",
alignItems: 'center'
},
children: ["\u662F\u5426\u7981\u8A00 ", /*#__PURE__*/(0,jsx_runtime.jsx)(es_switch/* default */.Z, {
defaultChecked: is_forbid_msg,
checkedChildren: "\u662F",
unCheckedChildren: "\u5426",
style: {
marginLeft: '10px'
},
onChange: function onChange(e) {
is_forbid_msg = e;
}
})]
})
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
(0,broadcast/* forbid_msg */.eh)({
id: params === null || params === void 0 ? void 0 : params.id,
user_id: v === null || v === void 0 ? void 0 : v.user_id,
is_forbid_msg: is_forbid_msg
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
message/* default */.ZP.success('操作成功');
}
});
case 1:
case "end":
return _context2.stop();
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
}, _callee2);
}));
function onOk() {
return _onOk.apply(this, arguments);
}
return onOk;
}()
return onOk;
}()
});
}
});
}
})
@ -752,8 +853,6 @@ var Comment = function Comment(_ref, ref) {
}, null, null, {
forwardRef: true
})( /*#__PURE__*/(0,_react_17_0_2_react.forwardRef)(Comment)));
// EXTERNAL MODULE: ./src/service/broadcast.ts
var broadcast = __webpack_require__(69630);
// EXTERNAL MODULE: ./src/components/PreviewAll/index.tsx + 3 modules
var PreviewAll = __webpack_require__(89976);
;// CONCATENATED MODULE: ./src/pages/Magazine/Detail/index.tsx
@ -876,7 +975,7 @@ var PollDetail = function PollDetail(_ref) {
modal/* default */.Z.confirm({
centered: true,
title: '提示',
content: '是否删除该广播消息',
content: '是否删除该稿件',
icon: null,
okText: '确认',
cancelText: '取消',
@ -1101,12 +1200,14 @@ var PollDetail = function PollDetail(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -1295,6 +1396,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -1311,6 +1414,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ })

@ -373,12 +373,14 @@ var Page = function Page(_ref) {
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
/* harmony export */ A: function() { return /* binding */ broadcasts_update; },
/* harmony export */ CR: function() { return /* binding */ forbid_msg_status; },
/* harmony export */ Dg: function() { return /* binding */ broadcasts_info; },
/* harmony export */ Dx: function() { return /* binding */ revoke_apply_public; },
/* harmony export */ Pn: function() { return /* binding */ broadcasts_add; },
/* harmony export */ To: function() { return /* binding */ apply_public; },
/* harmony export */ a6: function() { return /* binding */ cancel_public; },
/* harmony export */ bV: function() { return /* binding */ broadcasts_delete; },
/* harmony export */ eh: function() { return /* binding */ forbid_msg; },
/* harmony export */ ev: function() { return /* binding */ magazine_cates_query; },
/* harmony export */ u$: function() { return /* binding */ broadcasts_query; }
/* harmony export */ });
@ -567,6 +569,8 @@ function _cancel_public() {
function magazine_cates_query() {
return _magazine_cates_query.apply(this, arguments);
}
// 查询禁言状态
function _magazine_cates_query() {
_magazine_cates_query = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee9() {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee9$(_context9) {
@ -583,6 +587,48 @@ function _magazine_cates_query() {
}));
return _magazine_cates_query.apply(this, arguments);
}
function forbid_msg_status(_x9) {
return _forbid_msg_status.apply(this, arguments);
}
// 禁言/取消禁言
function _forbid_msg_status() {
_forbid_msg_status = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee10(params) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee10$(_context10) {
while (1) switch (_context10.prev = _context10.next) {
case 0:
return _context10.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(params === null || params === void 0 ? void 0 : params.id, "/forbid_msg_status.json"), {
method: 'get',
params: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, params)
}));
case 1:
case "end":
return _context10.stop();
}
}, _callee10);
}));
return _forbid_msg_status.apply(this, arguments);
}
function forbid_msg(_x10) {
return _forbid_msg.apply(this, arguments);
}
function _forbid_msg() {
_forbid_msg = _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2___default()( /*#__PURE__*/_root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().mark(function _callee11(data) {
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0___default()().wrap(function _callee11$(_context11) {
while (1) switch (_context11.prev = _context11.next) {
case 0:
return _context11.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/broadcasts/".concat(data === null || data === void 0 ? void 0 : data.id, "/forbid_msg.json"), {
method: 'post',
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_1___default()({}, data)
}));
case 1:
case "end":
return _context11.stop();
}
}, _callee11);
}));
return _forbid_msg.apply(this, arguments);
}
/***/ })

@ -941,24 +941,35 @@ var Navigation = function Navigation(_ref) {
}),
onOk: function () {
var _onOk2 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4() {
var res, _res$data7;
var number, numberArr, res, _res$data7;
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
while (1) switch (_context4.prev = _context4.next) {
case 0:
_context4.next = 2;
return myRuleForm.validateFields();
case 2:
_context4.next = 4;
number = myRuleForm.getFieldValue('number');
numberArr = warehousingList === null || warehousingList === void 0 ? void 0 : warehousingList.map(function (item) {
return item.number;
});
if (!(numberArr !== null && numberArr !== void 0 && numberArr.includes(number))) {
_context4.next = 7;
break;
}
message/* default */.ZP.warning('该物资已存在申请物资列表中');
return _context4.abrupt("return");
case 7:
_context4.next = 9;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substance_details/serach_by_number.json", {
method: 'get',
params: {
number: myRuleForm.getFieldValue('number')
}
});
case 4:
case 9:
res = _context4.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) == 0)) {
_context4.next = 10;
_context4.next = 15;
break;
}
myRuleForm.setFieldValue('number', '');
@ -967,11 +978,11 @@ var Navigation = function Navigation(_ref) {
setWarehousingList(toConsumableArray_default()(warehousingList));
message/* default */.ZP.success('添加成功');
}
_context4.next = 11;
_context4.next = 16;
break;
case 10:
case 15:
return _context4.abrupt("return", Promise.reject());
case 11:
case 16:
case "end":
return _context4.stop();
}

@ -81,10 +81,10 @@ var _react_17_0_2_react = __webpack_require__(59301);
var _umi_production_exports = __webpack_require__(80608);
// 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/input/index.js + 3 modules
var input = __webpack_require__(92832);
// 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/input/index.js + 3 modules
var input = __webpack_require__(92832);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
@ -200,7 +200,7 @@ var Navigation = function Navigation(_ref) {
}
};
var addColumns = [{
title: '资编码',
title: '编码',
dataIndex: 'number',
ellipsis: true
}, {
@ -212,8 +212,8 @@ var Navigation = function Navigation(_ref) {
dataIndex: 'model',
ellipsis: true
}, {
title: '存放实验室房间',
dataIndex: 'classroom_room_title',
title: '数量',
dataIndex: 'num',
ellipsis: true
}, {
title: '单位',
@ -225,22 +225,13 @@ var Navigation = function Navigation(_ref) {
});
}
}, {
title: '可申请数量',
dataIndex: 'apply_total',
title: '所在实验室',
dataIndex: 'classroom_title',
ellipsis: true
}, {
title: '需申请数量',
dataIndex: 'apply_num',
ellipsis: true,
render: function render(text, record, index) {
return /*#__PURE__*/(0,jsx_runtime.jsx)(input/* default */.Z, {
defaultValue: text,
onChange: function onChange(e) {
formTableData[index].apply_num = e.target.value;
setFormTableData(toConsumableArray_default()(formTableData));
}
});
}
title: '所在实验室房间',
dataIndex: 'classroom_room_title',
ellipsis: true
}, {
title: '操作',
width: 60,
@ -642,6 +633,9 @@ var Navigation = function Navigation(_ref) {
},
children: "\u6DFB\u52A0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
rowKey: function rowKey(record) {
return record.number;
},
scroll: {
y: 300
},
@ -667,35 +661,17 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
className: AddReceiveScenemodules.submit_button,
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var regex, i, _myForm$getFieldValue, _myForm$getFieldValue2, _myForm$getFieldValue3, _myForm$getFieldValue4;
var _myForm$getFieldValue, _myForm$getFieldValue2, _myForm$getFieldValue3, _myForm$getFieldValue4;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
regex = /^(?!0+(\.0*)?$)\d+(\.\d)?$/;
_context.t0 = regeneratorRuntime_default()().keys(formTableData);
case 2:
if ((_context.t1 = _context.t0()).done) {
_context.next = 9;
break;
}
i = _context.t1.value;
if (regex.test(formTableData[i].apply_num)) {
_context.next = 7;
break;
}
message/* default */.ZP.error("请检查需申请数量必须大于0且最多只能一位小数");
return _context.abrupt("return", false);
case 7:
_context.next = 2;
break;
case 9:
myForm.setFieldValue('substances', formTableData === null || formTableData === void 0 ? void 0 : formTableData.map(function (item) {
item.apply_num = Number(item === null || item === void 0 ? void 0 : item.apply_num);
return item;
}));
_context.next = 12;
_context.next = 3;
return myForm.validateFields();
case 12:
case 3:
if ((params === null || params === void 0 ? void 0 : params.receiveId) != 'null') {
//编辑
(0,materials/* receives_update */.c7)({
@ -729,7 +705,7 @@ var Navigation = function Navigation(_ref) {
}
});
}
case 13:
case 4:
case "end":
return _context.stop();
}
@ -748,22 +724,42 @@ var Navigation = function Navigation(_ref) {
title: "\u589E\u52A0",
width: "400px",
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
var number, numberArr, res, _res$data26;
return regeneratorRuntime_default()().wrap(function _callee2$(_context2) {
while (1) switch (_context2.prev = _context2.next) {
case 0:
//去重保存已选的值的 需申请数据
// for (let i in modalTableData) {
// for (let j in formTableData) {
// if (formTableData[j].id == modalTableData[i].id) {
// modalTableData[i] = formTableData[j]
// }
// }
// }
// setFormTableData([...modalTableData])
console.log(myRuleForm.getFieldsValue());
number = myRuleForm.getFieldValue('number');
numberArr = formTableData === null || formTableData === void 0 ? void 0 : formTableData.map(function (item) {
return item.number;
});
if (!(numberArr !== null && numberArr !== void 0 && numberArr.includes(number))) {
_context2.next = 6;
break;
}
message/* default */.ZP.warning('该物资已存在申请物资列表中');
setOpenRuleModal(false);
setRefresh(new Date());
case 3:
return _context2.abrupt("return");
case 6:
_context2.next = 8;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substance_details/serach_by_number.json", {
method: 'get',
params: {
number: number
}
});
case 8:
res = _context2.sent;
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
myRuleForm.setFieldValue('number', '');
if (res !== null && res !== void 0 && (_res$data26 = res.data) !== null && _res$data26 !== void 0 && _res$data26.id) {
formTableData.push(res.data);
setFormTableData(toConsumableArray_default()(formTableData));
message/* default */.ZP.success('添加成功');
setOpenRuleModal(false);
setRefresh(new Date());
}
}
case 10:
case "end":
return _context2.stop();
}
@ -782,7 +778,7 @@ var Navigation = function Navigation(_ref) {
children: /*#__PURE__*/(0,jsx_runtime.jsx)(es_form/* default */.Z.Item, {
colon: false,
label: "\u8D44\u4EA7\u7F16\u53F7",
name: "num",
name: "number",
rules: [{
required: true,
message: '请输入资产编号'
@ -794,7 +790,7 @@ var Navigation = function Navigation(_ref) {
size: "large",
onChange: function onChange(e) {
var _e$target2;
myRuleForm.setFieldValue('num', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim());
myRuleForm.setFieldValue('number', e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 || (_e$target2 = _e$target2.value) === null || _e$target2 === void 0 ? void 0 : _e$target2.trim());
}
})
})

@ -38,10 +38,6 @@ var _umi_production_exports = __webpack_require__(80608);
var es_form = __webpack_require__(78241);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/select/index.js
var es_select = __webpack_require__(57809);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/input/index.js + 3 modules
@ -50,6 +46,10 @@ var input = __webpack_require__(92832);
var table = __webpack_require__(51945);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/pagination/index.js + 10 modules
var pagination = __webpack_require__(86859);
// 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/message/index.js + 4 modules
var message = __webpack_require__(8591);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/date-picker/index.js + 66 modules
var date_picker = __webpack_require__(30518);
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/timeline/index.js + 5 modules
@ -69,8 +69,6 @@ var dayjs_min = __webpack_require__(61186);
var dayjs_min_default = /*#__PURE__*/__webpack_require__.n(dayjs_min);
// EXTERNAL MODULE: ./src/components/NoData/index.tsx
var NoData = __webpack_require__(6638);
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
var RenderHtml = __webpack_require__(47759);
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/jsx-runtime.js
var jsx_runtime = __webpack_require__(37712);
;// CONCATENATED MODULE: ./src/pages/Materials/ItemAssets/InfoCode/index.tsx
@ -92,7 +90,6 @@ var jsx_runtime = __webpack_require__(37712);
var unitType = {
1: '个',
2: '套',
@ -178,6 +175,11 @@ var Navigation = function Navigation(_ref) {
_useState28 = slicedToArray_default()(_useState27, 2),
historyData = _useState28[0],
setHistoryData = _useState28[1];
var statusType = {
'not_exported': '未导出',
'exported': '已导出',
'stored': '已入库'
};
//资产表格
var columns = [{
@ -202,7 +204,7 @@ var Navigation = function Navigation(_ref) {
placement: "bottomLeft",
title: '已导出',
children: /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
children: "\u5DF2\u5BFC\u51FA"
children: statusType[text]
})
});
}
@ -341,9 +343,9 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u7269\xA0\xA0\xA0\u8D44\xA0\xA0\xA0\u7F16\xA0\xA0\xA0\u7801"
children: "\u7269\u8D44\u5206\u7C7B"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.number,
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.substance_category_title,
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
@ -351,10 +353,10 @@ var Navigation = function Navigation(_ref) {
width: '200px',
paddingLeft: '5px'
},
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.number
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.substance_category_title
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u578B\xA0\u53F7\xA0\u89C4\xA0\u683C"
children: "\u578B\u53F7\u89C4\u5219"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.model,
placement: "topLeft",
@ -369,37 +371,37 @@ var Navigation = function Navigation(_ref) {
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u751F\xA0\xA0\xA0\u4EA7\xA0\xA0\xA0\u5382\xA0\xA0\xA0\u5BB6"
children: "\u5BB9\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u91CF"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.facturer,
title: (itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.capacity) + '/' + unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit],
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#000',
width: '200px',
paddingLeft: '5px'
},
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.facturer
children: [itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.capacity, "/", unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit]]
})
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4"
children: "\u5B58\u653E\u5730\u70B9"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_titile,
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_room_title,
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#000',
width: '200px'
},
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_titile
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_room_title
})
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u6240\u5728\u5B9E\u9A8C\u5BA4\u623F\u95F4"
children: "\u5382\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u5BB6"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_room_title,
title: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.facturer,
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
@ -407,62 +409,23 @@ var Navigation = function Navigation(_ref) {
width: '200px',
paddingLeft: '5px'
},
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.classroom_room_title
children: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.facturer
})
}), /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u603B\xA0\xA0\xA0\u6570\xA0\xA0\xA0\u91CF"
children: "\u5355\xA0\xA0\xA0\xA0\xA0\xA0\xA0\u4EF7"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(tooltip/* default */.Z, {
title: "".concat(itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.total).concat(unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit], "\uFF08\u5269\u4F59").concat(itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.apply_total).concat(unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit], "\u53EF\u7533\u8BF7\uFF09"),
title: "".concat(itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.price, "\u5143"),
placement: "topLeft",
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#000',
width: '200px'
},
children: [itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.total, unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit], /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
style: {
color: '#01795D'
},
children: ["\uFF08\u5269\u4F59", itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.apply_total, unitType[itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.unit], "\u53EF\u7533\u8BF7\uFF09"]
})]
children: [itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.price, "\u5143"]
})
})]
})]
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.header_content,
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
children: "\u5907\xA0\xA0\xA0\u6CE8\xA0\xA0\xA0\u8BF4\xA0\xA0\xA0\u660E"
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
style: {
color: '#3061D0',
cursor: 'pointer',
marginLeft: '5px'
},
onClick: function onClick() {
if (itemAsssInfo !== null && itemAsssInfo !== void 0 && itemAsssInfo.description) {
modal/* default */.Z.info({
title: "备注说明",
icon: null,
okText: "关闭",
width: 600,
centered: true,
content: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
style: {
height: '400px',
overflowY: 'auto'
},
children: /*#__PURE__*/(0,jsx_runtime.jsx)(RenderHtml/* default */.Z, {
value: itemAsssInfo === null || itemAsssInfo === void 0 ? void 0 : itemAsssInfo.description
})
})
});
} else {
message/* default */.ZP.warning('该物资暂无备注说明');
}
},
children: "\u67E5\u770B\u5907\u6CE8\u8BF4\u660E"
})]
}), itemAsssInfo === null || itemAsssInfo === void 0 || (_itemAsssInfo$attachm = itemAsssInfo.attachments) === null || _itemAsssInfo$attachm === void 0 ? void 0 : _itemAsssInfo$attachm.map(function (item, index) {
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
className: InfoCodemodules.file_list,
@ -578,7 +541,11 @@ var Navigation = function Navigation(_ref) {
substance_id: itemAsssInfo.id
}).then(function (res) {
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
var _res$data4;
setOpenBox(true);
myForm.setFieldsValue({
number: res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.code
});
}
});
},

@ -37,14 +37,14 @@
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
margin-top: 10px;
margin-bottom: 20px;
margin-top: 42px;
margin-bottom: 30px;
}
.wrap___z4HXQ .header___JHqrw .header_params___riVNv .header_content___Qyx_E {
display: flex;
}
.wrap___z4HXQ .header___JHqrw .header_params___riVNv .header_content___Qyx_E span {
width: 100px;
width: 76px;
font-size: 14px;
font-family: PingFangSC, PingFang SC;
font-weight: 400;

@ -89,7 +89,7 @@ var ViewModal = function ViewModal(_ref) {
});
}
}, {
title: '可申请数量',
title: '库存',
dataIndex: 'apply_total',
ellipsis: true
}, {

@ -89,7 +89,7 @@ var ViewModal = function ViewModal(_ref) {
});
}
}, {
title: '可申请数量',
title: '库存',
dataIndex: 'apply_total',
ellipsis: true
}, {
@ -525,6 +525,8 @@ var ReturnModal_ViewModal = function ViewModal(_ref) {
});
};
/* harmony default export */ var ReturnModal = (ReturnModal_ViewModal);
// EXTERNAL MODULE: ./src/utils/fetch.ts
var fetch = __webpack_require__(49105);
;// CONCATENATED MODULE: ./src/pages/Materials/Receive/index.tsx
@ -545,6 +547,7 @@ var ReturnModal_ViewModal = function ViewModal(_ref) {
var statusType = {
pending: '待审核',
approved: '待归还',
@ -867,6 +870,10 @@ var Navigation = function Navigation(_ref) {
var _Form$useForm = es_form/* default */.Z.useForm(),
_Form$useForm2 = slicedToArray_default()(_Form$useForm, 1),
myRuleForm = _Form$useForm2[0];
var _useState33 = (0,_react_17_0_2_react.useState)([]),
_useState34 = slicedToArray_default()(_useState33, 2),
warehousingList = _useState34[0],
setWarehousingList = _useState34[1];
var addColumns = [{
title: '资产编码',
dataIndex: 'number',
@ -881,7 +888,7 @@ var Navigation = function Navigation(_ref) {
ellipsis: true
}, {
title: '数量',
dataIndex: 'apply_total',
dataIndex: 'num',
ellipsis: true
}, {
title: '单位',
@ -900,7 +907,7 @@ var Navigation = function Navigation(_ref) {
title: '所在实验室房间',
dataIndex: 'classroom_room_title',
ellipsis: true
}, canDelete && {
}, {
title: '操作',
width: 60,
render: function render(text, record, index) {
@ -910,15 +917,13 @@ var Navigation = function Navigation(_ref) {
cursor: 'pointer'
},
onClick: function onClick() {
// formTableData.splice(index, 1)
// setFormTableData([...formTableData])
warehousingList.splice(index, 1);
setWarehousingList(toConsumableArray_default()(warehousingList));
},
children: "\u5220\u9664"
});
}
}].filter(function (item) {
return !!item;
});
}];
//正则校验
var validateInput = function validateInput(rule, value, callback) {
@ -1243,12 +1248,48 @@ var Navigation = function Navigation(_ref) {
}),
onOk: function () {
var _onOk = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
var number, numberArr, res, _res$data4;
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
while (1) switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return myRuleForm.validateFields();
case 2:
number = myRuleForm.getFieldValue('number');
numberArr = warehousingList === null || warehousingList === void 0 ? void 0 : warehousingList.map(function (item) {
return item.number;
});
if (!(numberArr !== null && numberArr !== void 0 && numberArr.includes(number))) {
_context.next = 7;
break;
}
message/* default */.ZP.warning('该物资已存在申请物资列表中');
return _context.abrupt("return");
case 7:
_context.next = 9;
return (0,fetch/* default */.ZP)("/api/yn_classrooms/substance_details/serach_by_number.json", {
method: 'get',
params: {
number: myRuleForm.getFieldValue('number')
}
});
case 9:
res = _context.sent;
if (!((res === null || res === void 0 ? void 0 : res.status) == 0)) {
_context.next = 15;
break;
}
myRuleForm.setFieldValue('number', '');
if (res !== null && res !== void 0 && (_res$data4 = res.data) !== null && _res$data4 !== void 0 && _res$data4.id) {
warehousingList.push(res === null || res === void 0 ? void 0 : res.data);
setWarehousingList(toConsumableArray_default()(warehousingList));
message/* default */.ZP.success('添加成功');
}
_context.next = 16;
break;
case 15:
return _context.abrupt("return", Promise.reject());
case 16:
case "end":
return _context.stop();
}
@ -1264,7 +1305,7 @@ var Navigation = function Navigation(_ref) {
children: "\u589E\u52A0"
}), /*#__PURE__*/(0,jsx_runtime.jsx)(table/* default */.Z, {
pagination: false,
dataSource: [],
dataSource: warehousingList,
columns: addColumns
})]
})

@ -186,7 +186,7 @@
.reservation_dialog___J5l2y label,
.reservation_dialog___J5l2y [class~='ant-select-selection-item'] {
display: flex;
align-items: center;
align-items: center !important;
height: 38px;
}
.reservation_dialog___J5l2y [class~='ant-select'],

@ -170,7 +170,7 @@
.reservation_dialog___J5l2y label,
.reservation_dialog___J5l2y [class~='ant-select-selection-item'] {
display: flex;
align-items: center;
align-items: center !important;
height: 38px;
}
.reservation_dialog___J5l2y [class~='ant-select'],

@ -589,7 +589,7 @@
.reservation_dialog___J5l2y label,
.reservation_dialog___J5l2y [class~='ant-select-selection-item'] {
display: flex;
align-items: center;
align-items: center !important;
height: 38px;
}
.reservation_dialog___J5l2y [class~='ant-select'],

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