@ -44,8 +44,6 @@ var objectSpread2_default = /*#__PURE__*/__webpack_require__.n(objectSpread2);
var collapse = _ _webpack _require _ _ ( 36381 ) ;
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tooltip/index.js + 3 modules
var tooltip = _ _webpack _require _ _ ( 6848 ) ;
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = _ _webpack _require _ _ ( 69423 ) ;
; // CONCATENATED MODULE: ./src/pages/Magazinejor/component/Detail/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Detailmodules = ( { "Onerow" : "Onerow___NVCta" , "MultiLine" : "MultiLine___QpteS" , "detailWrap" : "detailWrap___ZjiJI" , "detailTop" : "detailTop___eoFqK" , "topLeft" : "topLeft___KhWEM" , "imgCover" : "imgCover___yzn5x" , "imgDes" : "imgDes___ptSKF" , "d1" : "d1___X4CRE" , "d2" : "d2___LFRtU" , "label" : "label___KAPru" , "info" : "info___LqGYH" , "d3" : "d3___xTY9z" , "d4" : "d4___MtL8r" , "btn" : "btn___ldQvs" , "detailCon" : "detailCon___KvaHJ" , "leftWrap" : "leftWrap___ryJ1V" , "commonMonth" : "commonMonth___Yd9zq" , "activeMonth" : "activeMonth___Pk1Q4" , "disMonth" : "disMonth___BpTwX" , "rightWrap" : "rightWrap___fgkpp" , "itemWrap" : "itemWrap___ir4i9" , "bgimg" : "bgimg___reDEW" , "itemName" : "itemName___PSPLa" , "arcWrap" : "arcWrap___cIWb0" , "artItem" : "artItem___ULJ1F" , "deltop" : "deltop___WjU5l" , "icon" : "icon___w5A9I" , "title" : "title___yU81x" , "delbottom" : "delbottom___VgQH2" } ) ;
@ -70,7 +68,6 @@ var jsx_runtime = __webpack_require__(37712);
// import mess from '../../../img/mess.png';
// import rec from '../../../img/rec.png';
@ -358,12 +355,9 @@ var Journal = function Journal(search) {
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
className : Detailmodules . arcWrap ,
children : item === null || item === void 0 || ( _item$articles = item . articles ) === null || _item$articles === void 0 ? void 0 : _item$articles . map ( function ( article , i ) {
var _article$attachment2 , _article$attachment3 ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . artItem ,
style : {
marginRight : ( i + 1 ) % 3 == 0 ? '0px' : '20px'
} ,
// style={{ marginRight: (i + 1) % 3 == 0 ? '0px' : '20px' }}
onClick : function onClick ( ) {
var _article$attachment ;
if ( article !== null && article !== void 0 && ( _article$attachment = article . attachment ) !== null && _article$attachment !== void 0 && _article$attachment . url ) {
@ -376,7 +370,7 @@ var Journal = function Journal(search) {
}
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
src : article !== null && article !== void 0 && ( _article$attachment2 = article . attachment ) !== null && _article$attachment2 !== void 0 && _article$attachment2 . url ? ( env /* default */ . Z === null || env /* default */ . Z === void 0 ? void 0 : env /* default */ . Z . PROXY _SERVER ) + ( article === null || article === void 0 || ( _article$attachment3 = article . attachment ) === null || _article$attachment3 === void 0 ? void 0 : _article$attachment3 . url ) : __webpack _require _ _ ( /*! ../../img/detaildefault.png */ 4907 ) ,
src : __webpack _require _ _ ( /*! ../../img/detaildefault.png */ 4907 ) ,
width : 113
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Detailmodules . detailWrap ,
@ -391,9 +385,9 @@ var Journal = function Journal(search) {
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
className : Detailmodules . icon ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon- rili3 mr10"
className : "iconfont icon- bianji14 mr10"
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon- rili 3"
className : "iconfont icon- shanchu1 3"
} ) ]
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
@ -1231,6 +1225,8 @@ var toConsumableArray = __webpack_require__(37205);
var toConsumableArray _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( toConsumableArray ) ;
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.0@@ant-design/icons/es/icons/DeleteOutlined.js + 1 modules
var DeleteOutlined = _ _webpack _require _ _ ( 76466 ) ;
// EXTERNAL MODULE: ./src/utils/env.ts + 1 modules
var env = _ _webpack _require _ _ ( 69423 ) ;
// EXTERNAL MODULE: ./src/components/markdown-editor/index.tsx + 10 modules
var markdown _editor = _ _webpack _require _ _ ( 92042 ) ;
// EXTERNAL MODULE: ./src/components/RenderHtml/index.tsx + 2 modules
@ -2037,6 +2033,8 @@ var Comment = function Comment(_ref, ref) {
; // CONCATENATED MODULE: ./src/pages/Magazinejor/component/Journal/index.less?modules
// extracted by mini-css-extract-plugin
/* harmony default export */ var Journalmodules = ( { "Onerow" : "Onerow___b5D0L" , "MultiLine" : "MultiLine___cBLR3" , "wrap" : "wrap___tIUGb" , "topWrap" : "topWrap___CXoWL" , "btn" : "btn___tTfH0" , "contSty" : "contSty___Qnqof" , "itemWrap" : "itemWrap___KNeZs" } ) ;
// EXTERNAL MODULE: ./src/utils/authority.ts
var authority = _ _webpack _require _ _ ( 64118 ) ;
; // CONCATENATED MODULE: ./src/pages/Magazinejor/component/Journal/index.tsx
@ -2052,39 +2050,39 @@ var Comment = function Comment(_ref, ref) {
var Journal _Journal = function Journal ( search ) {
var urlParams = ( 0 , _umi _production _exports . useParams ) ( ) ;
var Journal _Journal = function Journal ( ) {
var _useState = ( 0 , _react _17 _0 _2 _react . useState ) ( false ) ,
_useState2 = slicedToArray _default ( ) ( _useState , 2 ) ,
loading = _useState2 [ 0 ] ,
setLoading = _useState2 [ 1 ] ;
var _useState3 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
year : dayjs _min _default ( ) ( ) . format ( 'YYYY' ) ,
month : dayjs _min _default ( ) ( ) . format ( 'MM' )
} ) ,
var _useState3 = ( 0 , _react _17 _0 _2 _react . useState ) ( { } ) ,
_useState4 = slicedToArray _default ( ) ( _useState3 , 2 ) ,
params = _useState4 [ 0 ] ,
setParams = _useState4 [ 1 ] ;
var _useState5 = ( 0 , _react _17 _0 _2 _react . useState ) ( dayjs _min _default ( ) ( ) . year ( ) ) ,
_useState6 = slicedToArray _default ( ) ( _useState5 , 2 ) ,
currentYear = _useState6 [ 0 ] ,
setCurrentYear = _useState6 [ 1 ] ;
var _useState7 = ( 0 , _react _17 _0 _2 _react . useState ) ( dayjs _min _default ( ) ( ) . month ( ) + 1 ) ,
_useState8 = slicedToArray _default ( ) ( _useState7 , 2 ) ,
currentMonth = _useState8 [ 0 ] ,
setCurrentMonth = _useState8 [ 1 ] ; // 月份从1开始
var _useState9 = ( 0 , _react _17 _0 _2 _react . useState ) ( { } ) ,
_useState10 = slicedToArray _default ( ) ( _useState9 , 2 ) ,
data = _useState10 [ 0 ] ,
setData = _useState10 [ 1 ] ;
var _useState11 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
data = _useState4 [ 0 ] ,
setData = _useState4 [ 1 ] ;
var _useState5 = ( 0 , _react _17 _0 _2 _react . useState ) ( {
content : "" ,
type : ""
} ) ,
_useState 12 = slicedToArray _default ( ) ( _useState11 , 2 ) ,
previewData = _useState 12 [ 0 ] ,
setPreviewData = _useState 12 [ 1 ] ;
_useState6 = slicedToArray _default ( ) ( _useState5 , 2 ) ,
previewData = _useState6 [ 0 ] ,
setPreviewData = _useState6 [ 1 ] ;
var monacoValueRef = ( 0 , _react _17 _0 _2 _react . useRef ) ( ) ;
var _useState7 = ( 0 , _react _17 _0 _2 _react . useState ) ( 0 ) ,
_useState8 = slicedToArray _default ( ) ( _useState7 , 2 ) ,
modalVis = _useState8 [ 0 ] ,
setModalVis = _useState8 [ 1 ] ;
var _useState9 = ( 0 , _react _17 _0 _2 _react . useState ) ( false ) ,
_useState10 = slicedToArray _default ( ) ( _useState9 , 2 ) ,
modifyBtnLoading = _useState10 [ 0 ] ,
setModifyBtnLoading = _useState10 [ 1 ] ;
var _Form$useForm = es _form /* default */ . Z . useForm ( ) ,
_Form$useForm2 = slicedToArray _default ( ) ( _Form$useForm , 1 ) ,
modifyForm = _Form$useForm2 [ 0 ] ;
var _useState11 = ( 0 , _react _17 _0 _2 _react . useState ) ( ) ,
_useState12 = slicedToArray _default ( ) ( _useState11 , 2 ) ,
editId = _useState12 [ 0 ] ,
setEditId = _useState12 [ 1 ] ;
var preview = /*#__PURE__*/ function ( ) {
var _ref = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee ( item ) {
var res ;
@ -2120,21 +2118,25 @@ var Journal_Journal = function Journal(search) {
return _ref . apply ( this , arguments ) ;
} ;
} ( ) ;
( 0 , _react _17 _0 _2 _react . useEffect ) ( function ( ) {
getData ( ) ;
} , [ ] ) ;
var getData = /*#__PURE__*/ function ( ) {
var _ref2 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee2 ( ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee2$ ( _context2 ) {
while ( 1 ) switch ( _context2 . prev = _context2 . next ) {
case 0 :
setLoading ( true ) ;
_context2 . next = 3 ;
return ( 0 , magazine /* getMagazinHot */ . vn ) ( ) . then ( function ( res ) {
if ( ( res === null || res === void 0 ? void 0 : res . status ) == 0 ) {
setData ( res === null || res === void 0 ? void 0 : res . data ) ;
}
} ) ;
return ( 0 , magazine /* getOtherMagazine */ . _3 ) ( ) ;
case 3 :
res = _context2 . sent ;
if ( res ) {
setData ( res ) ;
}
setLoading ( false ) ;
case 4 :
case 6 :
case "end" :
return _context2 . stop ( ) ;
}
@ -2144,9 +2146,53 @@ var Journal_Journal = function Journal(search) {
return _ref2 . apply ( this , arguments ) ;
} ;
} ( ) ;
( 0 , _react _17 _0 _2 _react . useEffect ) ( function ( ) {
getData ( ) ;
} , [ params , search ] ) ;
var handleModifyFinish = /*#__PURE__*/ function ( ) {
var _ref3 = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee3 ( values ) {
var _values$cover _id , res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee3$ ( _context3 ) {
while ( 1 ) switch ( _context3 . prev = _context3 . next ) {
case 0 :
setModifyBtnLoading ( true ) ;
if ( values . cover _id ) {
values . cover _id = values === null || values === void 0 || ( _values$cover _id = values . cover _id ) === null || _values$cover _id === void 0 || ( _values$cover _id = _values$cover _id . map ( function ( v ) {
return v . response . id ;
} ) ) === null || _values$cover _id === void 0 ? void 0 : _values$cover _id [ 0 ] ;
}
if ( ! ( modalVis == 1 ) ) {
_context3 . next = 8 ;
break ;
}
_context3 . next = 5 ;
return ( 0 , magazine /* createOtherMagazine */ . P6 ) ( objectSpread2 _default ( ) ( { } , values ) ) ;
case 5 :
_context3 . t0 = _context3 . sent ;
_context3 . next = 11 ;
break ;
case 8 :
_context3 . next = 10 ;
return ( 0 , magazine /* modifyOtherMagazine */ . fp ) ( objectSpread2 _default ( ) ( objectSpread2 _default ( ) ( { } , values ) , { } , {
id : editId
} ) ) ;
case 10 :
_context3 . t0 = _context3 . sent ;
case 11 :
res = _context3 . t0 ;
if ( ( res === null || res === void 0 ? void 0 : res . status ) === 0 ) {
message /* default */ . ZP . success ( '操作成功' ) ;
setModalVis ( 0 ) ;
getData ( ) ;
}
setModifyBtnLoading ( false ) ;
case 14 :
case "end" :
return _context3 . stop ( ) ;
}
} , _callee3 ) ;
} ) ) ;
return function handleModifyFinish ( _x2 ) {
return _ref3 . apply ( this , arguments ) ;
} ;
} ( ) ;
return /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( spin /* default */ . Z , {
spinning : loading ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
@ -2157,7 +2203,11 @@ var Journal_Journal = function Journal(search) {
className : "align-center" ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
src : _ _webpack _require _ _ ( /*! ../../img/otherjor.png */ 78391 ) ,
width : 20
width : 20 ,
style : {
marginTop : '4px' ,
marginRight : '8px'
}
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "span" , {
style : {
color : '#fff' ,
@ -2166,8 +2216,11 @@ var Journal_Journal = function Journal(search) {
} ,
children : "\u5176\u4ED6\u671F\u520A"
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
} ) , ( 0 , authority /* isSuperAdmins */ . Ny ) ( ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
className : Journalmodules . btn ,
onClick : function onClick ( ) {
setModalVis ( 1 ) ;
} ,
children : "\u65B0\u589E\u671F\u520A"
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
@ -2177,10 +2230,83 @@ var Journal_Journal = function Journal(search) {
return /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
className : Journalmodules . itemWrap ,
style : {
marginTop : index > 4 ? '30px' : '0px' ,
marginRight : ( index + 1 ) % 5 === 0 ? '0px' : '40px'
// marginTop: index >4 ? '30px':'0px',
// marginRight: (index+1)%5 === 0 ? '0px':'40px'
} ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
children : [ ( 0 , authority /* isSuperAdmins */ . Ny ) ( ) && /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "span" , {
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( tooltip /* default */ . Z , {
title : "\u7F16\u8F91" ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon-bianji14 mr10 current" ,
style : {
color : '#5980FC' ,
fontSize : '24px'
} ,
onClick : function onClick ( ) {
setEditId ( item === null || item === void 0 ? void 0 : item . id ) ;
modifyForm . setFieldsValue ( {
name : item === null || item === void 0 ? void 0 : item . name ,
redirect _url : item === null || item === void 0 ? void 0 : item . redirect _url ,
cover _id : item !== null && item !== void 0 && item . attachment ? ( 0 , MultiUpload /* coverToFileList */ . z ) ( [ item === null || item === void 0 ? void 0 : item . attachment ] ) : [ ]
} ) ;
setModalVis ( 2 ) ;
}
} )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( tooltip /* default */ . Z , {
title : "\u5220\u9664" ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "i" , {
className : "iconfont icon-shanchu13 current" ,
style : {
color : '#5980FC' ,
fontSize : '24px'
} ,
onClick : function onClick ( ) {
modal /* default */ . Z . confirm ( {
title : '删除期刊' ,
width : 550 ,
centered : true ,
closable : true ,
okText : '确定' ,
onOk : function ( ) {
var _onOk = asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee4 ( ) {
var res ;
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee4$ ( _context4 ) {
while ( 1 ) switch ( _context4 . prev = _context4 . next ) {
case 0 :
_context4 . next = 2 ;
return ( 0 , magazine /* delOtherMagazine */ . UV ) ( {
id : item === null || item === void 0 ? void 0 : item . id
} ) ;
case 2 :
res = _context4 . sent ;
if ( ( res === null || res === void 0 ? void 0 : res . status ) == 0 ) {
message /* default */ . ZP . success ( '操作成功!' ) ;
getData ( ) ;
}
case 4 :
case "end" :
return _context4 . stop ( ) ;
}
} , _callee4 ) ;
} ) ) ;
function onOk ( ) {
return _onOk . apply ( this , arguments ) ;
}
return onOk ;
} ( ) ,
cancelText : '取消' ,
icon : null ,
content : /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( "div" , {
style : {
color : '#000'
} ,
children : [ "\u786E\u5B9A\u8981\u5220\u9664\u300A" , item === null || item === void 0 ? void 0 : item . name , "\u300B\u5417\uFF1F" ]
} )
} ) ;
}
} )
} ) ]
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "img" , {
src : item === null || item === void 0 ? void 0 : item . cover _url
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( "div" , {
children : item === null || item === void 0 ? void 0 : item . name
@ -2188,6 +2314,87 @@ var Journal_Journal = function Journal(search) {
} , index ) ;
} )
} ) : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( NoData /* default */ . Z , { } )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( modal /* default */ . Z , {
centered : true ,
maskClosable : false ,
destroyOnClose : true ,
open : [ 1 , 2 ] . includes ( modalVis ) ,
title : modalVis == 1 ? '新增期刊' : '编辑期刊' ,
width : "935px" ,
className : Journalmodules . modalStyle ,
okText : modalVis == 1 ? '确认新增' : '确定' ,
onCancel : function onCancel ( ) {
setModalVis ( 0 ) ;
modifyForm . resetFields ( ) ;
} ,
onOk : /*#__PURE__*/ asyncToGenerator _default ( ) ( /*#__PURE__*/ regeneratorRuntime _default ( ) ( ) . mark ( function _callee5 ( ) {
return regeneratorRuntime _default ( ) ( ) . wrap ( function _callee5$ ( _context5 ) {
while ( 1 ) switch ( _context5 . prev = _context5 . next ) {
case 0 :
_context5 . next = 2 ;
return modifyForm . submit ( ) ;
case 2 :
setModalVis ( 0 ) ;
case 3 :
case "end" :
return _context5 . stop ( ) ;
}
} , _callee5 ) ;
} ) ) ,
okButtonProps : {
loading : modifyBtnLoading
} ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsxs ) ( es _form /* default */ . Z , {
form : modifyForm ,
onFinish : handleModifyFinish ,
scrollToFirstError : true ,
size : "large" ,
labelAlign : "right" ,
labelCol : {
span : 2 ,
offset : 0
} ,
colon : false ,
children : [ /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _form /* default */ . Z . Item , {
name : "name" ,
label : "\u671F\u520A\u540D\u79F0" ,
rules : [ {
required : true ,
message : "请输入期刊名称"
} ] ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( input /* default */ . Z , {
showCount : true ,
maxLength : 50 ,
placeholder : "\u8BF7\u8F93\u5165\u671F\u520A\u540D\u79F0" ,
style : {
width : "770px"
}
} )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _form /* default */ . Z . Item , {
name : "redirect_url" ,
label : "\u5916\u94FE" ,
rules : [ {
required : true ,
message : "请输入外链"
} ] ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( input /* default */ . Z , {
placeholder : "\u8BF7\u8F93\u5165\u5916\u94FE" ,
style : {
width : "770px"
}
} )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( es _form /* default */ . Z . Item , {
name : "cover_id" ,
label : "\u5C01\u9762\u56FE" ,
rules : [ {
required : true ,
message : "请上传封面图"
} ] ,
children : /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( MultiUpload /* default */ . Z , {
number : 1
} )
} ) ]
} )
} ) , /*#__PURE__*/ ( 0 , jsx _runtime . jsx ) ( PreviewAll /* default */ . Z , {
close : true ,
data : previewData === null || previewData === void 0 ? void 0 : previewData . content ,
@ -2644,8 +2851,12 @@ function _forbid_msg() {
/* harmony export */ BL : function ( ) { return /* binding */ getMagazinCheck ; } ,
/* harmony export */ E : function ( ) { return /* binding */ canclePost ; } ,
/* harmony export */ OD : function ( ) { return /* binding */ editArticle ; } ,
/* harmony export */ P6 : function ( ) { return /* binding */ createOtherMagazine ; } ,
/* harmony export */ QM : function ( ) { return /* binding */ postMagazin ; } ,
/* harmony export */ UV : function ( ) { return /* binding */ delOtherMagazine ; } ,
/* harmony export */ _3 : function ( ) { return /* binding */ getOtherMagazine ; } ,
/* harmony export */ dV : function ( ) { return /* binding */ getMagazinCat ; } ,
/* harmony export */ fp : function ( ) { return /* binding */ modifyOtherMagazine ; } ,
/* harmony export */ id : function ( ) { return /* binding */ getMagazinColumn ; } ,
/* harmony export */ j : function ( ) { return /* binding */ getMagazinRecArc ; } ,
/* harmony export */ lR : function ( ) { return /* binding */ getMagazinDetail ; } ,
@ -2656,7 +2867,7 @@ function _forbid_msg() {
/* harmony export */ vn : function ( ) { return /* binding */ getMagazinHot ; } ,
/* harmony export */ zo : function ( ) { return /* binding */ getMagazinRec ; }
/* harmony export */ } ) ;
/* unused harmony export getMagazinList */
/* unused harmony export s getMagazinList, reviewCoun t */
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _objectSpread2 _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ = _ _webpack _require _ _ ( /*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/objectSpread2.js */ 82242 ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _objectSpread2 _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ _default = /*#__PURE__*/ _ _webpack _require _ _ . n ( _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _objectSpread2 _js _ _WEBPACK _IMPORTED _MODULE _0 _ _ ) ;
/* harmony import */ var _root _workspace _ppte5yg23 _local _v9 _test4 _node _modules _babel _runtime _7 _23 _6 _babel _runtime _helpers _regeneratorRuntime _js _ _WEBPACK _IMPORTED _MODULE _1 _ _ = _ _webpack _require _ _ ( /*! ./node_modules/_@babel_runtime@7.23.6@@babel/runtime/helpers/regeneratorRuntime.js */ 7557 ) ;
@ -2995,6 +3206,8 @@ function _canclePost() {
function editArticle ( _x11 ) {
return _editArticle . apply ( this , arguments ) ;
}
// 其他期刊 -获取
function _editArticle ( ) {
_editArticle = _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 _callee16 ( 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 _callee16$ ( _context16 ) {
@ -3012,6 +3225,111 @@ function _editArticle() {
} ) ) ;
return _editArticle . apply ( this , arguments ) ;
}
function getOtherMagazine ( ) {
return _getOtherMagazine . apply ( this , arguments ) ;
}
// 其他期刊 -创建
function _getOtherMagazine ( ) {
_getOtherMagazine = _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 _callee17 ( ) {
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 _callee17$ ( _context17 ) {
while ( 1 ) switch ( _context17 . prev = _context17 . next ) {
case 0 :
return _context17 . abrupt ( "return" , ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* ["default"] */ . ZP ) ( "/api/magazines/others.json" , {
method : 'get'
} ) ) ;
case 1 :
case "end" :
return _context17 . stop ( ) ;
}
} , _callee17 ) ;
} ) ) ;
return _getOtherMagazine . apply ( this , arguments ) ;
}
function createOtherMagazine ( _x12 ) {
return _createOtherMagazine . apply ( this , arguments ) ;
}
// 其他期刊 -修改
function _createOtherMagazine ( ) {
_createOtherMagazine = _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 _callee18 ( 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 _callee18$ ( _context18 ) {
while ( 1 ) switch ( _context18 . prev = _context18 . next ) {
case 0 :
return _context18 . abrupt ( "return" , ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* ["default"] */ . ZP ) ( "/api/magazines.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 _0 _ _ _default ( ) ( { } , params )
} ) ) ;
case 1 :
case "end" :
return _context18 . stop ( ) ;
}
} , _callee18 ) ;
} ) ) ;
return _createOtherMagazine . apply ( this , arguments ) ;
}
function modifyOtherMagazine ( _x13 ) {
return _modifyOtherMagazine . apply ( this , arguments ) ;
}
// 其他期刊 -删除
function _modifyOtherMagazine ( ) {
_modifyOtherMagazine = _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 _callee19 ( 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 _callee19$ ( _context19 ) {
while ( 1 ) switch ( _context19 . prev = _context19 . next ) {
case 0 :
return _context19 . abrupt ( "return" , ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* ["default"] */ . ZP ) ( "/api/magazines/" . concat ( params === null || params === void 0 ? void 0 : params . id , ".json" ) , {
method : 'put' ,
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 _context19 . stop ( ) ;
}
} , _callee19 ) ;
} ) ) ;
return _modifyOtherMagazine . apply ( this , arguments ) ;
}
function delOtherMagazine ( _x14 ) {
return _delOtherMagazine . apply ( this , arguments ) ;
}
// 文章阅读量+1
function _delOtherMagazine ( ) {
_delOtherMagazine = _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 _callee20 ( 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 _callee20$ ( _context20 ) {
while ( 1 ) switch ( _context20 . prev = _context20 . next ) {
case 0 :
return _context20 . abrupt ( "return" , ( 0 , _utils _fetch _ _WEBPACK _IMPORTED _MODULE _3 _ _ /* ["default"] */ . ZP ) ( "/api/magazines/" . concat ( params === null || params === void 0 ? void 0 : params . id , ".json" ) , {
method : 'delete'
} ) ) ;
case 1 :
case "end" :
return _context20 . stop ( ) ;
}
} , _callee20 ) ;
} ) ) ;
return _delOtherMagazine . apply ( this , arguments ) ;
}
function reviewCount ( _x15 ) {
return _reviewCount . apply ( this , arguments ) ;
}
function _reviewCount ( ) {
_reviewCount = _asyncToGenerator ( /*#__PURE__*/ _regeneratorRuntime ( ) . mark ( function _callee21 ( params ) {
return _regeneratorRuntime ( ) . wrap ( function _callee21$ ( _context21 ) {
while ( 1 ) switch ( _context21 . prev = _context21 . next ) {
case 0 :
return _context21 . abrupt ( "return" , Fetch ( "/api/articles/" . concat ( params === null || params === void 0 ? void 0 : params . id , "/viewed.json" ) , {
method : 'put'
} ) ) ;
case 1 :
case "end" :
return _context21 . stop ( ) ;
}
} , _callee21 ) ;
} ) ) ;
return _reviewCount . apply ( this , arguments ) ;
}
/***/ } ) ,