api.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. import axios from 'axios';
  2. // var baseURL='https://www.scxjc.club'
  3. var baseURL = ''
  4. axios.interceptors.request.use(
  5. config => {
  6. const token = localStorage.getItem('token');
  7. // if (config.url.indexOf('downloadzip') >= 0) {
  8. // if (token) { // 判断是否存在token,如果存在的话,则每个http header都加上token
  9. // config.headers.Authorization = `${token}`;
  10. // } else {
  11. // //未登录
  12. // window.location.hash = "/login";
  13. // }
  14. // }
  15. return config;
  16. },
  17. err => {
  18. return Promise.reject(err);
  19. });
  20. axios.interceptors.response.use(function(response) {
  21. // console.log(response.headers)
  22. // IE 8-9
  23. if (response.data == null && response.config.responseType === 'json' && response.request.responseText != null) {
  24. try {
  25. // eslint-disable-next-line no-param-reassign
  26. response.data = JSON.parse(response.request.responseText);
  27. } catch (e) {
  28. // ignored
  29. }
  30. }
  31. // 对响应数据做点什么
  32. if (response.data.code == 401) {
  33. // window.location.hash = "/login";
  34. // window.location.hash = "/";
  35. }
  36. if (response.data.code == 305) {
  37. // window.location.hash = "/";
  38. }
  39. return response;
  40. }, function(error) {
  41. // 对响应错误做点什么
  42. if (error.request.status == 403) {
  43. // window.location.hash = "/login";
  44. window.location.hash = "/";
  45. }
  46. // console.log(Object.getOwnPropertyNames(error))
  47. // console.log(error.request,error.message)
  48. return Promise.reject(error);
  49. });
  50. export default {
  51. //登录
  52. login: params => {
  53. return axios.post(`${baseURL}/api/account/login`, params);
  54. },
  55. logout: params => {
  56. return axios.post(`${baseURL}/api/account/logout`, params);
  57. },
  58. // 全局账号信息
  59. getAccountInfo: params => {
  60. return axios.get(`${baseURL}/api/account/info`)
  61. },
  62. // 验证码
  63. getCode: params => {
  64. return axios.get(`${baseURL}/api/account/imgcode`)
  65. },
  66. // 四封审读
  67. getWorksheetList: params => {
  68. return axios.get(`${baseURL}/api/admin/examine/worksheet/list`, { params: params })
  69. },
  70. getWorkflowList: params => {
  71. return axios.get(`${baseURL}/api/admin/examine/workflow/list`, { params: params })
  72. },
  73. addWorksheet: params => {
  74. return axios.post(`${baseURL}/api/admin/examine/worksheet`, params)
  75. },
  76. updateWorksheet: params => {
  77. return axios.put(`${baseURL}/api/admin/examine/worksheet`, params)
  78. },
  79. delWorksheet: params => {
  80. return axios.delete(`${baseURL}/api/admin/examine/worksheet`, { params: params })
  81. },
  82. activeWorksheet: params => {
  83. return axios.put(`${baseURL}/api/admin/examine/worksheet/active`, params)
  84. },
  85. getWorkflow: params => {
  86. return axios.get(`${baseURL}/api/admin/examine/workflow`, { params: params })
  87. },
  88. //新建审读
  89. addWorkflow: params => {
  90. return axios.post(`${baseURL}/api/admin/examine/workflow/record`, params)
  91. },
  92. // 任务分配
  93. getWorkflowassignList: params => {
  94. return axios.get(`${baseURL}/api/admin/examine/workflow/assign/list`, { params: params })
  95. },
  96. assignWorkflow: params => {
  97. return axios.put(`${baseURL}/api/admin/examine/workflow/assign`, params)
  98. },
  99. //审核组成员
  100. getWorkexpertList: params => {
  101. return axios.get(`${baseURL}/api/admin/examine/worksheet/expert/list`, { params: params })
  102. },
  103. addWorksheetexpert: params => {
  104. return axios.post(`${baseURL}/api/admin/examine/worksheet/expert/add`, params)
  105. },
  106. delWorksheetexpert: params => {
  107. return axios.delete(`${baseURL}/api/admin/examine/worksheet/expert/del`, { params: params })
  108. },
  109. //专家列表
  110. searchExamineList: params => {
  111. return axios.get(`${baseURL}/api/admin/examine/expert/search`, { params: params })
  112. },
  113. //年份列表
  114. journalyearList: params => {
  115. return axios.get(`${baseURL}/api/admin/map/journalyear/list`, { params: params })
  116. },
  117. journalissueList: params => {
  118. return axios.get(`${baseURL}/api/admin/map/journalissue/list`, { params: params })
  119. },
  120. //新建年份
  121. addYear: params => {
  122. return axios.post(`${baseURL}/api/admin/map/journalyear`, params)
  123. },
  124. updateYear: params => {
  125. return axios.put(`${baseURL}/api/admin/map/journalyear`, params)
  126. },
  127. delYear: params => {
  128. return axios.delete(`${baseURL}/api/admin/map/journalyear`, { params: params })
  129. },
  130. //期号
  131. addJournalissue: params => {
  132. return axios.post(`${baseURL}/api/admin/map/journalissue`, params)
  133. },
  134. updateJournalissue: params => {
  135. return axios.put(`${baseURL}/api/admin/map/journalissue`, params)
  136. },
  137. delJournalissue: params => {
  138. return axios.delete(`${baseURL}/api/admin/map/journalissue`, { params: params })
  139. },
  140. //消息接收人
  141. receiverList: params => {
  142. return axios.get(`${baseURL}/api/admin/examine/journalusers/search`, { params: params })
  143. },
  144. // 获取用户待选期刊列表
  145. getUserJournals: () => {
  146. return axios.get(`${baseURL}/api/admin/user/journals`)
  147. },
  148. // 获取用户待选角色列表
  149. getUserRoles: () => {
  150. return axios.get(`${baseURL}/api/admin/user/roles`)
  151. },
  152. //新增管理员
  153. addUser: params => {
  154. return axios.post(`${baseURL}/api/admin/user`, params);
  155. },
  156. // 修改管理员
  157. editUser: params => {
  158. return axios.put(`${baseURL}/api/admin/user`, params);
  159. },
  160. // 删除管理员
  161. delUser: params => {
  162. return axios.delete(`${baseURL}/api/admin/user`, { params: params });
  163. },
  164. // 获取角色权限
  165. getUserPermissions: () => {
  166. return axios.get(`${baseURL}/api/admin/user/permissions`)
  167. },
  168. // 新增表单模板
  169. addTemplate: params => {
  170. return axios.post(`${baseURL}/api/admin/message/template`, params);
  171. },
  172. // 编辑表单模板
  173. editTemplate: params => {
  174. return axios.put(`${baseURL}/api/admin/message/template`, params);
  175. },
  176. editTemplateStatus: params => {
  177. return axios.put(`${baseURL}/api/admin/message/template/status`, params);
  178. },
  179. // 删除表单模板
  180. delTemplate: params => {
  181. return axios.delete(`${baseURL}/api/admin/message/template`, { params: params });
  182. },
  183. // 获取模板详情
  184. getTemplate: params => {
  185. return axios.get(`${baseURL}/api/admin/message/template`, { params: params });
  186. },
  187. // 获取模板列表
  188. getTemplateList: params => {
  189. return axios.get(`${baseURL}/api/admin/message/template/list`, { params: params })
  190. },
  191. //获取所有模板列表
  192. getAllTemplateList: params => {
  193. return axios.get(`${baseURL}/api/admin/message/template/all`, { params: params })
  194. },
  195. // 新增角色
  196. addRole: params => {
  197. return axios.post(`${baseURL}/api/admin/role`, params);
  198. },
  199. // 修改角色
  200. editRole: params => {
  201. return axios.put(`${baseURL}/api/admin/role`, params);
  202. },
  203. delRole: params => {
  204. return axios.delete(`${baseURL}/api/admin/role`, { params: params });
  205. },
  206. // 获取角色列表
  207. getRoleList: params => {
  208. return axios.get(`${baseURL}/api/admin/role/list`, { params: params });
  209. },
  210. // 获取角色详情
  211. getRoleInfo: params => {
  212. return axios.get(`${baseURL}/api/admin/role`, { params: params });
  213. },
  214. //导出
  215. getJournalData: params => {
  216. return axios.get(`${baseURL}/api/admin/journal/download`, {
  217. params: params,
  218. responseType: "blob"
  219. });
  220. },
  221. //专家相关
  222. // 新增专家
  223. addExpert: params => {
  224. return axios.post(`${baseURL}/api/admin/examine/expert`, params);
  225. },
  226. // 修改专家
  227. editExpert: params => {
  228. return axios.put(`${baseURL}/api/admin/examine/expert`, params);
  229. },
  230. delExpert: params => {
  231. return axios.delete(`${baseURL}/api/admin/examine/expert`, { params: params });
  232. },
  233. // 获取专家列表
  234. getExpertList: params => {
  235. return axios.get(`${baseURL}/api/admin/examine/expert/list`, { params: params });
  236. },
  237. // 获取专家详情
  238. getExpertInfo: params => {
  239. return axios.get(`${baseURL}/api/admin/examine/expert`, { params: params });
  240. },
  241. // 专业搜索
  242. getSubjectList: params => {
  243. return axios.get(`${baseURL}/api/admin/subject/search`, { params: params });
  244. },
  245. // 期刊搜索
  246. getJournalList: params => {
  247. return axios.get(`${baseURL}/api/admin/journal/search`, { params: params });
  248. },
  249. // 单位搜索
  250. getBranchList: params => {
  251. return axios.get(`${baseURL}/api/admin/branch/search`, { params: params });
  252. },
  253. // 院所
  254. getCollegeList: params => {
  255. return axios.get(`${baseURL}/api/admin/organizer/search`, { params: params });
  256. },
  257. // 编辑部账号
  258. addJournalUsers: params => {
  259. return axios.post(`${baseURL}/api/admin/examine/journalusers`, params);
  260. },
  261. // 修改专家
  262. editJournalUsers: params => {
  263. return axios.put(`${baseURL}/api/admin/examine/journalusers`, params);
  264. },
  265. delJournalUsers: params => {
  266. return axios.delete(`${baseURL}/api/admin/examine/journalusers`, { params: params });
  267. },
  268. // 获取专家列表
  269. getJournalUsersList: params => {
  270. return axios.get(`${baseURL}/api/admin/examine/journalusers/list`, { params: params });
  271. },
  272. // 获取专家详情
  273. getJournalUsersInfo: params => {
  274. return axios.get(`${baseURL}/api/admin/examine/journalusers`, { params: params });
  275. },
  276. // 我的工作组
  277. getGroupList: params => {
  278. return axios.get(`${baseURL}/api/admin/examine/group/list`, { params: params });
  279. },
  280. // 获取工作组成员
  281. getGroupMember: params => {
  282. return axios.get(`${baseURL}/api/admin/examine/group/member`, { params: params });
  283. },
  284. // 专家审读工作统计
  285. getExpertWorkflowAnalysis: params => {
  286. return axios.get(`${baseURL}/api/admin/examine/expert/analysis`, { params: params });
  287. },
  288. // 专家审读工作统计导出
  289. downloadExpertWorkflowAnalysis: params => {
  290. return axios.get(`${baseURL}/api/admin/examine/expert/analysis/download`, { params: params, responseType: "blob" });
  291. },
  292. // 注册期刊账号
  293. registJournalUsers: params => {
  294. return axios.post(`${baseURL}/api/admin/examine/journalusers/regist`, params);
  295. },
  296. // 注册专家账号
  297. registExpertUsers: params => {
  298. return axios.post(`${baseURL}/api/admin/examine/expert/regist`, params);
  299. },
  300. // 审核专家账号
  301. examineExpertUsers: params => {
  302. return axios.post(`${baseURL}/api/admin/examine/expert/examine`, params);
  303. },
  304. // 数据统计相关
  305. getMessageSurveyAnalyse: params => {
  306. return axios.get(`${baseURL}/api/admin/message/survey/analyse`, { params: params });
  307. },
  308. getMessageSurveyAnalyseOut: params => {
  309. return axios.get(`${baseURL}/api/admin/message/survey/analyse/out`, { params: params });
  310. },
  311. getMessageSurveyQuestionAnalyse: params => {
  312. return axios.get(`${baseURL}/api/admin/message/survey/question/analyse`, { params: params });
  313. },
  314. downloadSurveyResult: params => {
  315. return axios.get(`${baseURL}/api/admin/message/survey/result/download`, {
  316. params: params,
  317. responseType: "blob"
  318. });
  319. },
  320. downloadSurveyResultOut: params => {
  321. return axios.get(`${baseURL}/api/admin/message/survey/result/download/out`, {
  322. params: params,
  323. responseType: "blob"
  324. });
  325. },
  326. downloadAnalyseAll: params => {
  327. return axios.get(`${baseURL}/api/admin/message/survey/result/download/all`, {
  328. params: params,
  329. responseType: "blob"
  330. });
  331. },
  332. downloadAnalyseItem: params => {
  333. return axios.post(`${baseURL}/api/admin/message/survey/result/download/item`, params, { responseType: "blob" });
  334. },
  335. showAnalyseItem: params => {
  336. return axios.get(`${baseURL}/api/admin/message/survey/result/show/item`, { params: params });
  337. },
  338. //
  339. // 催办提醒
  340. cuiJournalUserPost: params => {
  341. return axios.post(`${baseURL}/api/admin/examine/workflow/cui`, params);
  342. },
  343. // 下载四封图片
  344. downloadFourFace: params => {
  345. return axios.post(`${baseURL}/api/admin/examine/workflow/fourface/download`, params, { responseType: "blob" });
  346. },
  347. // 修改密码
  348. changePassword: params => {
  349. return axios.post(`${baseURL}/api/account/changepwd`, params);
  350. },
  351. //审读列表
  352. mapList: params => {
  353. return axios.get(`${baseURL}/api/admin/map/mapreview/list`, { params: params })
  354. },
  355. //修改审读禁用启用
  356. updateMapActive: params => {
  357. return axios.put(`${baseURL}/api/admin/map/mapreview/active`, params)
  358. },
  359. //单位列表
  360. getOrganizerList: params => {
  361. return axios.get(`${baseURL}/api/admin/organizer/search`, { params: params })
  362. },
  363. //审读专家列表
  364. getMapExpertList: params => {
  365. return axios.get(`${baseURL}/api/admin/map/mapreview/expert/list`, { params: params })
  366. },
  367. // 增加审读
  368. insertMap: params => {
  369. return axios.post(`${baseURL}/api/admin/map/mapreview`, params);
  370. },
  371. // update审读
  372. updateMap: params => {
  373. return axios.put(`${baseURL}/api/admin/map/mapreview`, params);
  374. },
  375. //添加审读专家
  376. addExpert: params => {
  377. return axios.post(`${baseURL}/api/admin/map/mapreview/expert`, params);
  378. },
  379. //删除审读专家
  380. delMapExpert: params => {
  381. return axios.delete(`${baseURL}/api/admin/map/mapreview/expert`, { params: params });
  382. },
  383. //审读期刊统计列表
  384. mapJournalList: params => {
  385. return axios.get(`${baseURL}/api/admin/map/mapreview/journal/list`, { params: params })
  386. },
  387. //审读图片列表
  388. getMapImgList: params => {
  389. return axios.get(`${baseURL}/api/admin/map/mapreview/img/list`, { params: params })
  390. },
  391. //审读期刊详情
  392. getMapImgDetail: params => {
  393. return axios.get(`${baseURL}/api/admin/map/mapreview/journal/detail`, { params: params })
  394. },
  395. //审读统计列表
  396. getMapDataStatistic: params => {
  397. return axios.get(`${baseURL}/api/admin/map/mapreview/journal/statistic`, { params: params })
  398. },
  399. //审读统计导出
  400. getMapDataExport: params => {
  401. return axios.get(`${baseURL}/api/admin/map/mapreview/journal/statistic/export`, { params: params, responseType: "blob" })
  402. },
  403. //删除期刊审读
  404. delJournalMap: params => {
  405. return axios.delete(`${baseURL}/api/admin/map/mapreview/journal`, { params: params });
  406. },
  407. //删除审读
  408. delMap: params => {
  409. return axios.delete(`${baseURL}/api/admin/map/mapreview`, { params: params });
  410. },
  411. //审读
  412. recordExpert: params => {
  413. return axios.post(`${baseURL}/api/admin/map/mapreview/img/record`, params);
  414. },
  415. //枚举
  416. getDefault: params => {
  417. return axios.get(`${baseURL}/api/admin/map/mapreview/default`, { params: params })
  418. },
  419. //专家列表
  420. getExpertListSearch: params => {
  421. return axios.get(`${baseURL}/api/admin/examine/expert/search`, { params: params })
  422. },
  423. //任务列表
  424. getAssignList: params => {
  425. return axios.get(`${baseURL}/api/admin/map/mapreview/journal/assign/list`, { params: params })
  426. },
  427. //任务分配
  428. setMapAssign: params => {
  429. return axios.post(`${baseURL}/api/admin/map/mapreview/journal/assign`, params);
  430. },
  431. //任务催办
  432. setMapAssignUrge: params => {
  433. return axios.post(`${baseURL}/api/admin/map/mapreview/journal/urge`, params);
  434. },
  435. //撤回审读
  436. delMapRecord: params => {
  437. return axios.delete(`${baseURL}/api/admin/map/mapreview/img/record`, { params: params });
  438. },
  439. //学术列表
  440. getScienceViewList: params => {
  441. return axios.get(`${baseURL}/api/admin/aca/acareview/list`, { params: params })
  442. },
  443. //修改学术启用禁用
  444. updateScienceViewActive: params => {
  445. return axios.put(`${baseURL}/api/admin/aca/acareview/active`, params);
  446. },
  447. //新建学术审读
  448. setScienceView: params => {
  449. return axios.post(`${baseURL}/api/admin/aca/acareview`, params);
  450. },
  451. //修改学术
  452. updateScienceView: params => {
  453. return axios.put(`${baseURL}/api/admin/aca/acareview`, params);
  454. },
  455. //删除学术审读
  456. delScienceView: params => {
  457. return axios.delete(`${baseURL}/api/admin/aca/acareview`, { params: params });
  458. },
  459. //学术学科列表
  460. getScienceSubList: params => {
  461. return axios.get(`${baseURL}/api/admin/aca/acareview/subject/list`, { params: params })
  462. },
  463. //设置学科审读专家
  464. setScienceSubExpert: params => {
  465. return axios.put(`${baseURL}/api/admin/aca/acareview/subject/assign`, params);
  466. },
  467. //学术不端专家列表
  468. getScienceExpert: params => {
  469. return axios.get(`${baseURL}/api/admin/aca/acareview/expert/list`, { params: params });
  470. },
  471. //学术不端枚举
  472. getScienceDefault: params => {
  473. return axios.get(`${baseURL}/api/admin/aca/acareview/default`, { params: params });
  474. },
  475. //学术期刊列表
  476. getSciencejourList: params => {
  477. return axios.get(`${baseURL}/api/admin/aca/acareview/journal/list`, { params: params });
  478. },
  479. //催办
  480. pressScience: params => {
  481. return axios.post(`${baseURL}/api/admin/aca/acareview/journal/urge`, params);
  482. },
  483. //学术wenzhang列表
  484. getScienceArtList: params => {
  485. return axios.get(`${baseURL}/api/admin/aca/acareview/article/list`, { params: params });
  486. },
  487. //学术文章详情
  488. getScienceArtDetail: params => {
  489. return axios.get(`${baseURL}/api/admin/aca/acareview/article`, { params: params });
  490. },
  491. //学术任务分配列表
  492. getScienceAssignList: params => {
  493. return axios.get(`${baseURL}/api/admin/aca/acareview/journal/assign/list`, { params: params });
  494. },
  495. //期刊任务分配
  496. setJourScienceAssign: params => {
  497. return axios.post(`${baseURL}/api/admin/aca/acareview/journal/assign`, params);
  498. },
  499. //学术审读
  500. setScienceArtRecord: params => {
  501. return axios.post(`${baseURL}/api/admin/aca/acareview/article/record`, params);
  502. },
  503. //学术期刊数据导出
  504. exportScienceJourList: params => {
  505. return axios.get(`${baseURL}/api/admin/aca/acareview/expert/statistic/export`, { params: params });
  506. },
  507. //专家审读数据统计列表
  508. getExpertStaticList: params => {
  509. return axios.get(`${baseURL}/api/admin/aca/acareview/expert/statistic`, { params: params });
  510. },
  511. //删除文章审读
  512. delScienceActView: params => {
  513. return axios.delete(`${baseURL}/api/admin/aca/acareview/article/record`, { params: params });
  514. },
  515. //小结列表
  516. getSumarryList: params => {
  517. return axios.get(`${baseURL}/api/admin/message/survey/sumarry/analyse`, { params: params });
  518. },
  519. //新加评分规则
  520. setScoreRule: params => {
  521. return axios.post(`${baseURL}/api/admin/mark/markrule`, params);
  522. },
  523. //修改规则
  524. updateScoreRule: params => {
  525. return axios.put(`${baseURL}/api/admin/mark/markrule`, params);
  526. },
  527. //列表
  528. getScoreRuleList: params => {
  529. return axios.get(`${baseURL}/api/admin/mark/markrule/list`, { params: params });
  530. },
  531. //权重列表
  532. getWeightList: params => {
  533. return axios.get(`${baseURL}/api/admin/mark/markweight/list`, { params: params });
  534. },
  535. //修改权重
  536. updateWeight: params => {
  537. return axios.put(`${baseURL}/api/admin/mark/markweight`, params);
  538. },
  539. //新增权重
  540. setWeight: params => {
  541. return axios.post(`${baseURL}/api/admin/mark/markweight`, params);
  542. },
  543. //新增评分
  544. setScore: params => {
  545. return axios.post(`${baseURL}/api/admin/mark/automark`, params);
  546. },
  547. //修改评分
  548. updateScore: params => {
  549. return axios.put(`${baseURL}/api/admin/mark/automark`, params);
  550. },
  551. //评分列表
  552. getScoreList: params => {
  553. return axios.get(`${baseURL}/api/admin/mark/automark/list`, { params: params });
  554. },
  555. //导出小结列表
  556. downloadSumarryList: params => {
  557. return axios.post(`${baseURL}/api/admin/message/survey/sumarry/analyse/download`, params, { responseType: "blob" });
  558. },
  559. //评分详情列表接口
  560. getSocreDetailList: params => {
  561. return axios.get(`${baseURL}/api/admin/mark/automark/result/list`, { params });
  562. },
  563. //删除评分详情
  564. delScoreDetailList: params => {
  565. return axios.delete(`${baseURL}/api/admin/mark/automark/result/list`, { params: params });
  566. },
  567. //删除评分
  568. delScoreList: params => {
  569. return axios.delete(`${baseURL}/api/admin/mark/automark`, { params: params });
  570. },
  571. //删除评分规则
  572. delScoreRule: params => {
  573. return axios.delete(`${baseURL}/api/admin/mark/markrule`, { params: params });
  574. },
  575. delScoreWeiht: params => {
  576. return axios.delete(`${baseURL}/api/admin/mark/markweight`, { params: params });
  577. },
  578. //评分统计
  579. getScoreEcharts: params => {
  580. return axios.get(`${baseURL}/api/admin/mark/automark/result/analyse`, { params });
  581. },
  582. //统计报表
  583. getScoreStatement: params => {
  584. return axios.get(`${baseURL}/api/admin/mark/automark/result/statistic`, { params });
  585. },
  586. //首页工作组统计
  587. getGroupIndex: params => {
  588. return axios.get(`${baseURL}/api/admin/index/group/statistic`, { params });
  589. },
  590. //首页
  591. getIndexMapList: params => {
  592. return axios.get(`${baseURL}/api/admin/index/mapgroup/list`, { params });
  593. },
  594. //首页学术
  595. getIndexScienList: params => {
  596. return axios.get(`${baseURL}/api/admin/index/acagroup/list`, { params });
  597. },
  598. //首页四封
  599. getIndexSfList: params => {
  600. return axios.get(`${baseURL}/api/admin/index/fourgroup/list`, { params });
  601. },
  602. //工作组专家列表
  603. getMapExpertList: params => {
  604. return axios.get(`${baseURL}/api/admin/index/mapgroup/expert/list`, { params });
  605. },
  606. //学术工作组专家列表
  607. getSciExpertList: params => {
  608. return axios.get(`${baseURL}/api/admin/index/acagroup/expert/list`, { params });
  609. },
  610. //四封工作组专家列表
  611. getSfExpertList: params => {
  612. return axios.get(`${baseURL}/api/admin/index/fourgroup/expert/list`, { params });
  613. },
  614. //文件列表
  615. getMapFileList: params => {
  616. return axios.get(`${baseURL}/api/admin/map/mapreview/zipfile/list`, { params });
  617. },
  618. //学术文件列表
  619. getAcaFileList: params => {
  620. return axios.get(`${baseURL}/api/admin/aca/acareview/zipfile/list`, { params });
  621. },
  622. //删除统计报表
  623. delAutoMark: params => {
  624. return axios.delete(`${baseURL}automark/result`, { params: params });
  625. },
  626. //导出
  627. indexMapExport: params => {
  628. return axios.get(`${baseURL}/api/admin/index/mapgroup/expert/list/download`, { params, responseType: "blob" });
  629. },
  630. indexAcaExport: params => {
  631. return axios.get(`${baseURL}/api/admin/index/acagroup/expert/list/download`, { params, responseType: "blob" });
  632. },
  633. indexSfExport: params => {
  634. return axios.get(`${baseURL}/api/admin/index/fourgroup/expert/list/download`, { params, responseType: "blob" });
  635. },
  636. lastMapExport: params => {
  637. return axios.get(`${baseURL}/api/admin/map/mapreview/img/list/download`, { params, responseType: "blob" });
  638. },
  639. lastAcaTwoExport: params => {
  640. return axios.get(`${baseURL}/api/admin/aca/acareview/journal/list/download`, { params, responseType: "blob" });
  641. },
  642. expertAcaExport: params => {
  643. return axios.get(`${baseURL}/api/admin/aca/acareview/expert/statistic/export`, { params, responseType: "blob" });
  644. },
  645. scoreDetailExport: params => {
  646. return axios.get(`${baseURL} /api/admin/mark/automark/result/download`, { params, responseType: "blob" });
  647. },
  648. //上传文件
  649. addMapreviewMapfile: params => {
  650. return axios.post(`${baseURL}/api/admin/map/mapreview/addmapfile`, params);
  651. },
  652. // 重新解析
  653. flushMapfile: params => {
  654. return axios.post(`${baseURL}/api/admin/map/mapreview/flushmapfile`, params);
  655. },
  656. //上传学术不端文件
  657. addACAreviewACAfile: params => {
  658. return axios.post(`${baseURL}/api/admin/aca/acareview/addacafile`, params);
  659. },
  660. // 重新解析
  661. flushACAfile: params => {
  662. return axios.post(`${baseURL}/api/admin/aca/acareview/flushacafile`, params);
  663. },
  664. // 编辑学术不端文章
  665. updateACAArticle: params => {
  666. return axios.put(`${baseURL}/api/admin/aca/acareview/article`, params);
  667. },
  668. //重新分配
  669. resetExpertUser: params => {
  670. return axios.put(`${baseURL}/api/admin/aca/acareview/resetexpertuser`, params);
  671. },
  672. //撤回重新审读
  673. rebackMapReview: params => {
  674. return axios.put(`${baseURL}/api/admin/map/mapreview/img/reback`, params);
  675. },
  676. //撤回重新审读
  677. delMapImgDetail: params => {
  678. return axios.delete(`${baseURL}/api/admin/map/mapreview/img`, { params: params });
  679. },
  680. // 同意初审意见
  681. agreeFirst: params => {
  682. return axios.post(`${baseURL}/api/admin/map/mapreview/img/agreefirst`, params);
  683. },
  684. // 下载学术不端审读结果
  685. downloadAcaReviewResult: params => {
  686. return axios.get(`${baseURL} /api/admin/aca/acareview/downloadresult`, { params, responseType: "blob" });
  687. },
  688. // 重新分配
  689. resetAssign: params => {
  690. return axios.put(`${baseURL}/api/admin/map/mapreview/reset/assign`, params);
  691. },
  692. // 重重置审读
  693. resetRecord: params => {
  694. return axios.put(`${baseURL}/api/admin/map/mapreview/reset/record`, params);
  695. },
  696. }