|
|
|
|
@ -690,7 +690,9 @@ var Journal = function Journal() {
|
|
|
|
|
className: Detailmodules.icon,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-bianji2 mr10 current",
|
|
|
|
|
onClick: function onClick() {
|
|
|
|
|
onClick: function onClick(e) {
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
setEditId(article === null || article === void 0 ? void 0 : article.id);
|
|
|
|
|
modifyForm.setFieldsValue({
|
|
|
|
|
title: article === null || article === void 0 ? void 0 : article.title,
|
|
|
|
|
@ -700,7 +702,36 @@ var Journal = function Journal() {
|
|
|
|
|
setModify(2);
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-a-bianzu14beifen current"
|
|
|
|
|
className: "iconfont icon-a-bianzu14beifen current",
|
|
|
|
|
onClick: ( /*#__PURE__*/function () {
|
|
|
|
|
var _ref6 = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5(e) {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
e.stopPropagation();
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
_context5.next = 4;
|
|
|
|
|
return (0,magazine/* delMagazine */.r3)({
|
|
|
|
|
id: 1,
|
|
|
|
|
article_id: article === null || article === void 0 ? void 0 : article.id
|
|
|
|
|
});
|
|
|
|
|
case 4:
|
|
|
|
|
res = _context5.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
message/* default */.ZP.success('删除成功!');
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 6:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context5.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee5);
|
|
|
|
|
}));
|
|
|
|
|
return function (_x3) {
|
|
|
|
|
return _ref6.apply(this, arguments);
|
|
|
|
|
};
|
|
|
|
|
}())
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
@ -749,19 +780,19 @@ var Journal = function Journal() {
|
|
|
|
|
onCancel: function onCancel() {
|
|
|
|
|
setModify(0);
|
|
|
|
|
},
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee5() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee5$(_context5) {
|
|
|
|
|
while (1) switch (_context5.prev = _context5.next) {
|
|
|
|
|
onOk: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
_context5.next = 2;
|
|
|
|
|
_context6.next = 2;
|
|
|
|
|
return modifyForm.submit();
|
|
|
|
|
case 2:
|
|
|
|
|
setModify(0);
|
|
|
|
|
case 3:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context5.stop();
|
|
|
|
|
return _context6.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee5);
|
|
|
|
|
}, _callee6);
|
|
|
|
|
})),
|
|
|
|
|
okButtonProps: {
|
|
|
|
|
loading: modifyBtnLoading
|
|
|
|
|
@ -842,29 +873,29 @@ var Journal = function Journal() {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
onImgDimensions: null,
|
|
|
|
|
onClose: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee6() {
|
|
|
|
|
onClose: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee7() {
|
|
|
|
|
var res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee6$(_context6) {
|
|
|
|
|
while (1) switch (_context6.prev = _context6.next) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee7$(_context7) {
|
|
|
|
|
while (1) switch (_context7.prev = _context7.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
setPreviewData({
|
|
|
|
|
content: "",
|
|
|
|
|
type: ""
|
|
|
|
|
});
|
|
|
|
|
_context6.next = 3;
|
|
|
|
|
_context7.next = 3;
|
|
|
|
|
return (0,magazine/* reviewCount */.ah)({
|
|
|
|
|
id: editId
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context6.sent;
|
|
|
|
|
res = _context7.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
getData();
|
|
|
|
|
}
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context6.stop();
|
|
|
|
|
return _context7.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee6);
|
|
|
|
|
}, _callee7);
|
|
|
|
|
}))
|
|
|
|
|
})]
|
|
|
|
|
})
|
|
|
|
|
@ -897,6 +928,7 @@ var Journal = function Journal() {
|
|
|
|
|
/* harmony export */ lR: function() { return /* binding */ getMagazinDetail; },
|
|
|
|
|
/* harmony export */ lp: function() { return /* binding */ getReviewProgress; },
|
|
|
|
|
/* harmony export */ o7: function() { return /* binding */ getMagazinNew; },
|
|
|
|
|
/* harmony export */ r3: function() { return /* binding */ delMagazine; },
|
|
|
|
|
/* harmony export */ rZ: function() { return /* binding */ getStatistic; },
|
|
|
|
|
/* harmony export */ t_: function() { return /* binding */ getReviewList; },
|
|
|
|
|
/* harmony export */ vn: function() { return /* binding */ getMagazinHot; },
|
|
|
|
|
@ -1349,6 +1381,8 @@ function _delOtherMagazine() {
|
|
|
|
|
function reviewCount(_x15) {
|
|
|
|
|
return _reviewCount.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 删除期刊
|
|
|
|
|
function _reviewCount() {
|
|
|
|
|
_reviewCount = _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_1___default()().mark(function _callee21(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee21$(_context21) {
|
|
|
|
|
@ -1365,6 +1399,26 @@ function _reviewCount() {
|
|
|
|
|
}));
|
|
|
|
|
return _reviewCount.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function delMagazine(_x16) {
|
|
|
|
|
return _delMagazine.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _delMagazine() {
|
|
|
|
|
_delMagazine = _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_1___default()().mark(function _callee22(params) {
|
|
|
|
|
return _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1___default()().wrap(function _callee22$(_context22) {
|
|
|
|
|
while (1) switch (_context22.prev = _context22.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context22.abrupt("return", (0,_utils_fetch__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .ZP)("/api/articles/".concat(params === null || params === void 0 ? void 0 : params.id, ".json"), {
|
|
|
|
|
method: 'delete',
|
|
|
|
|
body: _root_workspace_ppte5yg23_local_v9_test4_node_modules_babel_runtime_7_23_6_babel_runtime_helpers_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0___default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context22.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee22);
|
|
|
|
|
}));
|
|
|
|
|
return _delMagazine.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|