|
|
|
|
@ -293,7 +293,7 @@ var DragQuestions = function DragQuestions(_ref) {
|
|
|
|
|
backgroundColor: "#f4f4f4",
|
|
|
|
|
border: "1px solid #ddd",
|
|
|
|
|
borderRadius: "4px",
|
|
|
|
|
width: '23%',
|
|
|
|
|
width: '20%',
|
|
|
|
|
position: 'relative'
|
|
|
|
|
}, provided.draggableProps.style),
|
|
|
|
|
children: [(item === null || item === void 0 ? void 0 : item.category) !== 'directory' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
@ -452,32 +452,32 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
return _getdata.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _getdata() {
|
|
|
|
|
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var _select$get;
|
|
|
|
|
_getdata = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee2() {
|
|
|
|
|
var _select$get2;
|
|
|
|
|
var res;
|
|
|
|
|
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,fetch/* default */.ZP)("/api/monthly_magazines/preview.json", {
|
|
|
|
|
method: 'Post',
|
|
|
|
|
body: {
|
|
|
|
|
magazine_id: 1,
|
|
|
|
|
monthly_magazine_id: (params === null || params === void 0 ? void 0 : params.id) || '',
|
|
|
|
|
cover_image_id: select.get('cover_image_id'),
|
|
|
|
|
article_ids: (_select$get = select.get('article_ids')) === null || _select$get === void 0 ? void 0 : _select$get.split(',')
|
|
|
|
|
article_ids: (_select$get2 = select.get('article_ids')) === null || _select$get2 === void 0 ? void 0 : _select$get2.split(',')
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 2:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
res = _context2.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
setdatalist(res === null || res === void 0 ? void 0 : res.data);
|
|
|
|
|
}
|
|
|
|
|
case 4:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
return _context2.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
}, _callee2);
|
|
|
|
|
}));
|
|
|
|
|
return _getdata.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
@ -492,13 +492,13 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
imgUrl: logo
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: prviewmodules.reportContent,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
justifyContent: 'space-between'
|
|
|
|
|
},
|
|
|
|
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: prviewmodules.back_style,
|
|
|
|
|
style: {
|
|
|
|
|
color: '#fff',
|
|
|
|
|
@ -511,7 +511,53 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
className: "iconfont icon-fanhui2 font12 mr5"
|
|
|
|
|
}), "\u8FD4\u56DE"]
|
|
|
|
|
})
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
display: 'flex',
|
|
|
|
|
alignItems: 'center'
|
|
|
|
|
},
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
style: {
|
|
|
|
|
color: 'red',
|
|
|
|
|
marginRight: 20
|
|
|
|
|
},
|
|
|
|
|
children: "\u70B9\u51FB\u4FDD\u5B58\u540E\u81EA\u52A8\u751F\u6210\u5DF2\u6392\u7248\u7684\u6708\u520A"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: prviewmodules.addbutton,
|
|
|
|
|
onClick: /*#__PURE__*/asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee() {
|
|
|
|
|
var _select$get;
|
|
|
|
|
var url, res;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee$(_context) {
|
|
|
|
|
while (1) switch (_context.prev = _context.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
url = params !== null && params !== void 0 && params.id ? "/api/monthly_magazines/".concat(params.id, ".json") : "/api/monthly_magazines.json";
|
|
|
|
|
_context.next = 3;
|
|
|
|
|
return (0,fetch/* default */.ZP)(url, {
|
|
|
|
|
method: params !== null && params !== void 0 && params.id ? 'put' : 'post',
|
|
|
|
|
body: {
|
|
|
|
|
name: select.get('name'),
|
|
|
|
|
cover_image_id: select.get('cover_image_id'),
|
|
|
|
|
magazine_id: 1,
|
|
|
|
|
article_ids: (_select$get = select.get('article_ids')) === null || _select$get === void 0 ? void 0 : _select$get.split(','),
|
|
|
|
|
data: datalist
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
case 3:
|
|
|
|
|
res = _context.sent;
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) === 0) {
|
|
|
|
|
// message.info('新增成功')
|
|
|
|
|
_umi_production_exports.history.push('/magazinever/monthlyadmins');
|
|
|
|
|
}
|
|
|
|
|
// let res = await Fetch(``)
|
|
|
|
|
case 5:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee);
|
|
|
|
|
})),
|
|
|
|
|
children: "\u4FDD\u5B58"
|
|
|
|
|
})]
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: prviewmodules.wrap,
|
|
|
|
|
style: {
|
|
|
|
|
@ -531,13 +577,13 @@ var Navigation = function Navigation(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var prview = ((0,_umi_production_exports.connect)(function (_ref2) {
|
|
|
|
|
var loading = _ref2.loading,
|
|
|
|
|
user = _ref2.user,
|
|
|
|
|
engineeringNavigtion = _ref2.engineeringNavigtion,
|
|
|
|
|
dispatch = _ref2.dispatch,
|
|
|
|
|
account = _ref2.account,
|
|
|
|
|
classroomList = _ref2.classroomList;
|
|
|
|
|
/* harmony default export */ var prview = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
|
|
|
var loading = _ref3.loading,
|
|
|
|
|
user = _ref3.user,
|
|
|
|
|
engineeringNavigtion = _ref3.engineeringNavigtion,
|
|
|
|
|
dispatch = _ref3.dispatch,
|
|
|
|
|
account = _ref3.account,
|
|
|
|
|
classroomList = _ref3.classroomList;
|
|
|
|
|
return objectSpread2_default()(objectSpread2_default()({
|
|
|
|
|
loading: loading,
|
|
|
|
|
user: user
|