|
|
|
|
@ -514,6 +514,7 @@ function _my_answers_or_questions() {
|
|
|
|
|
function my_duty_or_today_specialists(_x3) {
|
|
|
|
|
return _my_duty_or_today_specialists.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
//我的投稿/我的审核
|
|
|
|
|
function _my_duty_or_today_specialists() {
|
|
|
|
|
_my_duty_or_today_specialists = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee3(params) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee3$(_context3) {
|
|
|
|
|
@ -531,6 +532,26 @@ function _my_duty_or_today_specialists() {
|
|
|
|
|
}));
|
|
|
|
|
return _my_duty_or_today_specialists.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function my_articles_or_audits(_x4) {
|
|
|
|
|
return _my_articles_or_audits.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
function _my_articles_or_audits() {
|
|
|
|
|
_my_articles_or_audits = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee4(params) {
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee4$(_context4) {
|
|
|
|
|
while (1) switch (_context4.prev = _context4.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
return _context4.abrupt("return", (0,fetch/* default */.ZP)("/api/magazines/".concat(params === null || params === void 0 ? void 0 : params.id, "/my_articles_or_audits.json"), {
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: objectSpread2_default()({}, params)
|
|
|
|
|
}));
|
|
|
|
|
case 1:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context4.stop();
|
|
|
|
|
}
|
|
|
|
|
}, _callee4);
|
|
|
|
|
}));
|
|
|
|
|
return _my_articles_or_audits.apply(this, arguments);
|
|
|
|
|
}
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
|
|
|
|
|
var tooltip = __webpack_require__(6848);
|
|
|
|
|
// EXTERNAL MODULE: ./src/service/broadcast.ts
|
|
|
|
|
@ -573,7 +594,7 @@ var week = {
|
|
|
|
|
'7': '七'
|
|
|
|
|
};
|
|
|
|
|
var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
var _magazinInfo$info, _magazinInfo$info2, _magazinInfo$info3, _magazinInfo$data, _user$userInfo, _ref2, _dutyData$my_duty, _dutyData$specialists, _user$userInfo2, _questionsData$specia, _ref3;
|
|
|
|
|
var _magazinInfo$info, _magazinInfo$info2, _magazinInfo$info3, _magazinInfo$data, _user$userInfo2, _ref2, _dutyData$my_duty, _dutyData$specialists, _user$userInfo3, _questionsData$specia, _user$userInfo4;
|
|
|
|
|
var user = _ref.user,
|
|
|
|
|
dispatch = _ref.dispatch,
|
|
|
|
|
dataSorce = _ref.dataSorce;
|
|
|
|
|
@ -597,10 +618,15 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
|
|
|
magazinInfo = _useState10[0],
|
|
|
|
|
setMagazinInfo = _useState10[1];
|
|
|
|
|
var _useState11 = (0,_react_17_0_2_react.useState)([]),
|
|
|
|
|
_useState12 = slicedToArray_default()(_useState11, 2),
|
|
|
|
|
articlesData = _useState12[0],
|
|
|
|
|
setArticlesData = _useState12[1];
|
|
|
|
|
(0,_react_17_0_2_react.useEffect)(function () {
|
|
|
|
|
getDataInfo();
|
|
|
|
|
}, []);
|
|
|
|
|
var getDataInfo = function getDataInfo() {
|
|
|
|
|
var _user$userInfo;
|
|
|
|
|
// 我的值班/今日值班专家
|
|
|
|
|
my_duty_or_today_specialists({}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
@ -638,7 +664,7 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
var _res$data2;
|
|
|
|
|
(0,magazine/* getReviewList */.t_)({
|
|
|
|
|
id: res === null || res === void 0 || (_res$data2 = res.data) === null || _res$data2 === void 0 || (_res$data2 = _res$data2[0]) === null || _res$data2 === void 0 ? void 0 : _res$data2.id,
|
|
|
|
|
is_me: 1,
|
|
|
|
|
status: "approved",
|
|
|
|
|
page: 1,
|
|
|
|
|
limit: 4
|
|
|
|
|
}).then(function (resItem) {
|
|
|
|
|
@ -652,6 +678,18 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//我的投稿/我的审核
|
|
|
|
|
if (user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.magazine_id) {
|
|
|
|
|
//有值才调用接口
|
|
|
|
|
my_articles_or_audits({
|
|
|
|
|
id: 50
|
|
|
|
|
}).then(function (res) {
|
|
|
|
|
if ((res === null || res === void 0 ? void 0 : res.status) == 0) {
|
|
|
|
|
var _res$data4;
|
|
|
|
|
setArticlesData(res === null || res === void 0 || (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.list);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: dataInfomodules.dataInfo,
|
|
|
|
|
@ -781,7 +819,7 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: dataInfomodules.title_name,
|
|
|
|
|
children: user !== null && user !== void 0 && (_user$userInfo = user.userInfo) !== null && _user$userInfo !== void 0 && _user$userInfo.specialist_id ? '本周的值班日期' : '今日值班专家'
|
|
|
|
|
children: user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.specialist_id ? '本周的值班日期' : '今日值班专家'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: dataInfomodules.title_more,
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
@ -865,7 +903,7 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: dataInfomodules.title_name,
|
|
|
|
|
children: user !== null && user !== void 0 && (_user$userInfo2 = user.userInfo) !== null && _user$userInfo2 !== void 0 && _user$userInfo2.specialist_id ? '我的解答' : '我的提问'
|
|
|
|
|
children: user !== null && user !== void 0 && (_user$userInfo3 = user.userInfo) !== null && _user$userInfo3 !== void 0 && _user$userInfo3.specialist_id ? '我的解答' : '我的提问'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: dataInfomodules.title_more,
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
@ -964,7 +1002,7 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
}
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
|
|
|
className: dataInfomodules.title_name,
|
|
|
|
|
children: "\u6295\u7A3F\u5BA1\u6838"
|
|
|
|
|
children: user !== null && user !== void 0 && (_user$userInfo4 = user.userInfo) !== null && _user$userInfo4 !== void 0 && _user$userInfo4.is_magazine_authors ? '投稿审核' : '我的投稿'
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("span", {
|
|
|
|
|
className: dataInfomodules.title_more,
|
|
|
|
|
children: ["\u67E5\u770B\u66F4\u591A ", /*#__PURE__*/(0,jsx_runtime.jsx)("i", {
|
|
|
|
|
@ -976,22 +1014,23 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: dataInfomodules.right_bottom_content,
|
|
|
|
|
children: (_ref3 = [1, 2, 3, 4]) === null || _ref3 === void 0 ? void 0 : _ref3.map(function (item, index) {
|
|
|
|
|
children: articlesData === null || articlesData === void 0 ? void 0 : articlesData.map(function (item, index) {
|
|
|
|
|
var _moment3;
|
|
|
|
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
className: dataInfomodules.content_list,
|
|
|
|
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: dataInfomodules.list_time,
|
|
|
|
|
children: "08 26"
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
|
|
|
children: (_moment3 = dayjs_min_default()(item === null || item === void 0 ? void 0 : item.created_at)) === null || _moment3 === void 0 ? void 0 : _moment3.format('MM DD')
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
className: dataInfomodules.list_text,
|
|
|
|
|
children: ["\u5185\u5BB9\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053\u4E91\u520A\u95EE\u9053", item]
|
|
|
|
|
children: item === null || item === void 0 ? void 0 : item.category_name
|
|
|
|
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
|
|
|
style: {
|
|
|
|
|
color: '#00D4FF',
|
|
|
|
|
color: (item === null || item === void 0 ? void 0 : item.status) == 'approved' ? '#63FFDC' : (item === null || item === void 0 ? void 0 : item.status) == 'rejected' ? '#FD607B' : '#FFD099',
|
|
|
|
|
marginLeft: 'auto',
|
|
|
|
|
fontSize: '1.5vh'
|
|
|
|
|
},
|
|
|
|
|
children: "\u5F85\u5BA1\u6838"
|
|
|
|
|
children: (item === null || item === void 0 ? void 0 : item.status) == 'approved' ? '已通过' : (item === null || item === void 0 ? void 0 : item.status) == 'rejected' ? '已拒绝' : '审核中'
|
|
|
|
|
})]
|
|
|
|
|
}, index);
|
|
|
|
|
})
|
|
|
|
|
@ -1000,8 +1039,8 @@ var dataInfo = function dataInfo(_ref) {
|
|
|
|
|
})]
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|
/* harmony default export */ var DefendCloud_dataInfo = ((0,_umi_production_exports.connect)(function (_ref4) {
|
|
|
|
|
var user = _ref4.user;
|
|
|
|
|
/* harmony default export */ var DefendCloud_dataInfo = ((0,_umi_production_exports.connect)(function (_ref3) {
|
|
|
|
|
var user = _ref3.user;
|
|
|
|
|
return {
|
|
|
|
|
user: user
|
|
|
|
|
};
|