RealTimeInfoResault.vue 48 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459
  1. <template>
  2. <div class="autoBox box" style="min-height: 900px; position: relative">
  3. <div class="slideShow" style="margin-top: 10px">
  4. <div style="width: 100%; height: 300px">
  5. <img
  6. v-if="$i18n.locale == 'zh'"
  7. src="../../assets/img/ResourceSharing/bannerZh.jpg"
  8. alt=""
  9. style="width: 100%; height: 100%"
  10. />
  11. <img
  12. v-else
  13. src="../../assets/img/ResourceSharing/bannerEn.jpg"
  14. alt=""
  15. style="width: 100%; height: 100%"
  16. />
  17. </div>
  18. </div>
  19. <div class="mainBody">
  20. <div
  21. class="researchClassify"
  22. style="width: 100%; border: 1px solid white; box-sizing: border-box"
  23. >
  24. <div class="option">
  25. <div style="display: inline-block">
  26. <span
  27. :class="classifySel1 == -1 ? 'active' : ''"
  28. style="font-size: 16px; padding: 0 7px; font-weight: 600"
  29. @click="cliRecommend"
  30. >{{ $t("common.resource") }}</span
  31. >
  32. <span
  33. v-for="(item, index) in classify1"
  34. :class="index == classifySel1 ? 'active' : ''"
  35. style="padding: 0 8px"
  36. :style="{ fontSize: $i18n.locale == 'zh' ? '16px' : '14px' }"
  37. s
  38. :key="item.value"
  39. @click="dataChangeByType1(item, index)"
  40. >{{ item.label }}</span
  41. >
  42. <!--<span :class="classifySel1==-1?'active':''"
  43. style="font-size: 16px;"
  44. :style="{marginRight:language=='zh'?'40px':'30px',fontSize:language=='zh'?'16px':'14px'}"
  45. @click="dataChangeByType1(-1)"
  46. >{{$t('common.resource')}}</span>
  47. <span
  48. v-for="(item,index) in classify1" :class="index==classifySel1?'active':''"
  49. style="font-size: 16px;"
  50. :style="{marginRight:language=='zh'?'30px':'16px',fontSize:language=='zh'?'16px':'14px'}"
  51. :key="item.value"
  52. @click="dataChangeByType1(item,index)"
  53. >{{item.label}}</span>-->
  54. </div>
  55. <div class="rankSearchPub">
  56. <div class="rank">
  57. <span
  58. :class="rankActive == 0 ? 'active' : ''"
  59. style="margin-right: 25px"
  60. @click="dataChangeByTime1"
  61. >{{ $t("common.resourceAccordingTime") }}
  62. </span>
  63. <span
  64. :class="rankActive == 1 ? 'active' : ''"
  65. style="margin-right: 25px"
  66. @click="dataChangeByHeat1"
  67. >{{ $t("common.resourceAccordingHeat") }}
  68. </span>
  69. </div>
  70. <div
  71. class="search"
  72. style="width: 104px; margin-top: 0; margin-bottom: 0"
  73. >
  74. <!--<input type="text" style="width: 270px;" :placeholder="$t('common.resourceInputName')" onkeydown="dataChangeByName1" v-model="searchText1">-->
  75. <!--<el-input v-model="searchText1" :placeholder="$t('common.resourceInputName')" @change="dataChangeByName1" style="width: 103px;"></el-input>-->
  76. <el-input
  77. v-model="searchText1"
  78. @change="dataChangeByName1"
  79. style="width: 104px"
  80. ></el-input>
  81. <i
  82. style="
  83. position: absolute;
  84. right: 0;
  85. margin: 18px 8px 0 0;
  86. opacity: 0.5;
  87. "
  88. class="el-icon-search"
  89. @click="dataChangeByName1"
  90. ></i>
  91. </div>
  92. <!--我要发布-->
  93. <div class="publishing">
  94. <span
  95. style="color: #0091ff; font-size: 12px; line-height: 30px"
  96. @click="toResultsIssue"
  97. >{{ $t("common.resourceWantRelease") }}</span
  98. >
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. <div style="width: 98%; overflow: hidden; margin: auto">
  104. <div
  105. v-show="cursorList1.length == 0 || cursorList1.length == undefined"
  106. style="
  107. text-align: center;
  108. height: 60px;
  109. border-bottom: 1px solid #eee;
  110. border-top: 1px solid #eee;
  111. "
  112. >
  113. <span v-show="language == 'en'" style="line-height: 60px"
  114. >no data</span
  115. >
  116. <span v-show="language == 'zh'" style="line-height: 60px"
  117. >暂无数据</span
  118. >
  119. </div>
  120. <div
  121. v-for="(item, index) in cursorList1"
  122. class="cursor"
  123. :style="{
  124. 'margin-left': index % 3 == 0 ? '0' : '2.5%',
  125. 'margin-right': index % 3 == 2 ? '0' : '2.5%',
  126. }"
  127. @click="toDetails(item, index)"
  128. >
  129. <div
  130. v-if="
  131. item.informationVisibleStatus == 'Y' && item.reserveFive !== 1
  132. "
  133. style="
  134. width: 60px;
  135. height: 44px;
  136. position: absolute;
  137. top: 0;
  138. right: 0;
  139. "
  140. >
  141. <!-- <span style="background: red">会员</span>-->
  142. <img
  143. v-show="$i18n.locale == 'zh'"
  144. src="@/assets/img/ResourceSharing/vipzh.png"
  145. alt=""
  146. style="width: 100%"
  147. />
  148. <img
  149. v-show="$i18n.locale == 'en'"
  150. src="@/assets/img/ResourceSharing/vipen.png"
  151. alt=""
  152. style="width: 100%"
  153. />
  154. </div>
  155. <!--推荐-->
  156. <div
  157. v-if="item.reserveFive && item.reserveFive == 1"
  158. style="
  159. width: 60px;
  160. height: 44px;
  161. position: absolute;
  162. top: 0;
  163. right: 0;
  164. z-index: 1;
  165. "
  166. >
  167. <!-- <span style="background: red">会员</span>-->
  168. <img
  169. v-show="$i18n.locale == 'zh'"
  170. src="@/assets/img/ResourceSharing/recommendzh.png"
  171. alt=""
  172. style="width: 100%"
  173. />
  174. <img
  175. v-show="$i18n.locale == 'en'"
  176. src="@/assets/img/ResourceSharing/recommenden.png"
  177. alt=""
  178. style="width: 100%"
  179. />
  180. </div>
  181. <div style="box-sizing: border-box; height: 100%">
  182. <div
  183. style="
  184. width: 85%;
  185. height: 288px;
  186. margin: 10px auto 10px auto;
  187. text-align: center;
  188. "
  189. >
  190. <!-- <img :src="item.researchResultCover" alt="">-->
  191. <div
  192. v-if="
  193. item['researchResultCover'] == undefined ||
  194. item.researchResultCover == false ||
  195. item.researchResultCover == 'null' ||
  196. item.researchResultCover == null
  197. "
  198. style="width: 208px; height: 288px; margin: auto"
  199. >
  200. <div style="width: 208px; height: 288px; position: relative">
  201. <img
  202. src="@/assets/img/ResourceSharing/backImage.png"
  203. alt=""
  204. style="
  205. width: 100%;
  206. height: 100%;
  207. position: absolute;
  208. top: 0;
  209. left: 0;
  210. "
  211. />
  212. <p
  213. style="
  214. padding: 35px 9px 0 9px;
  215. width: 100%;
  216. height: 135px;
  217. box-sizing: border-box;
  218. margin: 0;
  219. text-align: center;
  220. position: absolute;
  221. top: 0;
  222. left: 0;
  223. color: #ffffff;
  224. font-size: 12px;
  225. display: flex;
  226. align-items: center;
  227. justify-content: center;
  228. "
  229. :style="{
  230. wordBreak: $i18n.locale == 'zh' ? 'normal;' : 'keep-all',
  231. }"
  232. >
  233. {{ item.name }}
  234. </p>
  235. <!--<p style="padding:110px 7px 0 7px;width:100%;height: 150px;box-sizing: border-box;margin: 0;text-align: center;
  236. position: absolute;top: 115px;left: 0;color: #002C6C;font-size: 12px;word-break:keep-all; ">{{item.affiliatedUnitName}}</p>-->
  237. </div>
  238. </div>
  239. <!-- <img v-if="item['researchResultCover']==undefined||item.researchResultCover==false||item.researchResultCover==''" src="../../assets/img/ResourceSharing/baogao.png" alt="" style="width: 208px; height: 288px;">-->
  240. <img
  241. v-else
  242. :src="'api/file/pub/' + item.researchResultCover"
  243. alt=""
  244. style="width: 208px; height: 288px; border: 1px solid #ccc"
  245. />
  246. </div>
  247. <div style="color: #333333">
  248. <!--<div style="width: 100%;height: 59px;font-weight: 700; font-size: 20px;text-align: center; ">
  249. <span style="display: inline-block; width: 5%;margin: 14px 2px;overflow: hidden;">《</span>
  250. <span style="display: inline-block; max-width:85%;margin: 14px 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  251. {{item.name}}
  252. </span>
  253. <span style="display: inline-block; width: 5%;margin: 14px 2px;overflow: hidden;">》</span>
  254. </div>-->
  255. <div
  256. style="
  257. width: 100%;
  258. height: 60px;
  259. font-weight: 700;
  260. font-size: 18px;
  261. display: flex;
  262. align-items: center;
  263. overflow: hidden;
  264. padding: 14px 8px;
  265. box-sizing: border-box;
  266. margin: 14px 0;
  267. justify-content: center;
  268. "
  269. >
  270. <span
  271. style="max-width: 100%; overflow: hidden; text-align: center"
  272. :style="{
  273. wordBreak: $i18n.locale == 'zh' ? 'normal;' : 'keep-all',
  274. }"
  275. class="oneLine"
  276. >
  277. {{ item.name }}
  278. </span>
  279. </div>
  280. <!--影响高42px class cursor-->
  281. <p
  282. style="
  283. margin: 0 0 14px 0;
  284. text-align: center;
  285. color: #666666;
  286. height: 28.8px;
  287. "
  288. >
  289. <span
  290. style="
  291. font-weight: 400;
  292. font-size: 16px;
  293. display: inline-block;
  294. max-width: 85%;
  295. height: 24.8px;
  296. "
  297. class="oneLine"
  298. >{{ item.affiliatedUnitName }}</span
  299. >
  300. </p>
  301. <p
  302. style="
  303. margin: 14px 0 14px 0;
  304. color: #1890ff;
  305. text-align: center;
  306. height: 21.7px;
  307. "
  308. >
  309. <span
  310. style="
  311. font-weight: 400;
  312. font-size: 16px;
  313. border: 1px solid #1890ff;
  314. padding: 2px 14px;
  315. box-sizing: border-box;
  316. "
  317. >{{ item.researchResultType }}</span
  318. >
  319. </p>
  320. <p
  321. style="margin: 14px 0 16px 0; text-align: center; height: 21px"
  322. >
  323. <span style="color: #666666; font-size: 14px">{{
  324. item.createDate
  325. }}</span>
  326. </p>
  327. <div
  328. style="
  329. overflow: hidden;
  330. width: 100%;
  331. height: 46px;
  332. background: #f8f8f8;
  333. position: absolute;
  334. bottom: 0;
  335. left: 0;
  336. "
  337. >
  338. <div style="float: right; line-height: 46px; color: #333333">
  339. <img
  340. src="@/assets/img/ResourceSharing/collect.png"
  341. alt=""
  342. style="
  343. width: 16px;
  344. height: 16px;
  345. margin: 0 3px 0 15px;
  346. vertical-align: middle;
  347. "
  348. />
  349. <!-- <i class="el-icon-star-off" style="margin-right: 5px;vertical-align: middle;"></i>-->
  350. <!-- <span style="margin-right: 15px;vertical-align: middle;">0</span>-->
  351. <span
  352. v-if="item.num == 'null' || item.num == null"
  353. style="margin-right: 30px; vertical-align: middle"
  354. >0</span
  355. >
  356. <span
  357. v-else
  358. style="margin-right: 30px; vertical-align: middle"
  359. >{{ item.num }}</span
  360. >
  361. <!-- <i class="el-icon-star-off" style="margin-right: 3px;vertical-align: middle;"></i>-->
  362. <!-- |<img src="@/assets/img/ResourceSharing/heat.png" alt="" style="width: 16px;height: 16px;margin: 0 3px 0 15px;vertical-align: middle;">-->
  363. <!-- <span v-if="item.num=='null' || item.num==null" style="margin-right: 30px;vertical-align: middle;">0</span>-->
  364. <!-- <span v-else style="margin-right: 30px;vertical-align: middle;">{{item.num}}</span>-->
  365. </div>
  366. </div>
  367. </div>
  368. </div>
  369. </div>
  370. </div>
  371. <div
  372. style="
  373. width: 100%;
  374. position: relative;
  375. height: 100px;
  376. margin-bottom: 30px;
  377. "
  378. v-show="cursorList1.length != 0 && cursorList1.length != undefined"
  379. >
  380. <el-pagination
  381. background
  382. style="
  383. height: 80px;
  384. position: absolute;
  385. left: 50%;
  386. top: 100px;
  387. transform: translate(-50%, -50%);
  388. "
  389. :current-page="page.results.currentPage - 0"
  390. :page-size="page.results.pageSize"
  391. @current-change="handleCurrentChange1"
  392. layout="prev, pager, next"
  393. :page-count="page.results.totalPage - 0"
  394. ></el-pagination>
  395. </div>
  396. </div>
  397. <el-dialog
  398. :title="$i18n.locale == 'zh' ? '提示' : 'Reminder'"
  399. :visible.sync="toViewLogin"
  400. :width="$i18n.locale == 'zh' ? '500px' : '750px'"
  401. :height="$i18n.locale == 'zh' ? '300px' : '386px'"
  402. :before-close="toViewLoginChange"
  403. >
  404. <div style="width: 100%; height: 100%">
  405. <img
  406. src="@/assets/img/loginTips.png"
  407. alt=""
  408. style="width: 180px; height: 180px; margin-left: 20px"
  409. />
  410. <div
  411. style="float: right; margin-right: 20px"
  412. :style="
  413. $i18n.locale == 'zh'
  414. ? 'width: 49%;margin-top: 10px;'
  415. : 'width: 453px;margin-top: -25px;'
  416. "
  417. >
  418. <div
  419. style="
  420. font-size: 20px;
  421. font-weight: normal;
  422. color: #333333;
  423. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  424. line-height: 40px;
  425. "
  426. >
  427. {{ $t("common.ReminderFirst") }}
  428. </div>
  429. <div
  430. style="
  431. font-size: 16px;
  432. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  433. font-weight: normal;
  434. color: #666666;
  435. line-height: 30px;
  436. "
  437. >
  438. {{ $t("common.ReminderSecond") }}
  439. <span style="color: #0091ff; font-size: 18px">{{ num }}</span>
  440. {{ $t("common.ReminderThird") }}
  441. </div>
  442. <div
  443. style="
  444. font-size: 14px;
  445. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  446. font-weight: normal;
  447. color: #666666;
  448. line-height: 30px;
  449. "
  450. >
  451. {{ $t("common.ReminderForth") }}
  452. </div>
  453. <div
  454. style="
  455. font-size: 14px;
  456. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  457. height: 33px;
  458. line-height: 60px;
  459. font-weight: normal;
  460. color: #0091ff;
  461. "
  462. >
  463. <span
  464. style="margin-left: 40px"
  465. class="cursor"
  466. @click="toView('login')"
  467. >
  468. {{ $t("common.ReminderFifth") }}
  469. </span>
  470. <span
  471. style="margin-left: 10px"
  472. class="cursor"
  473. @click="toView('Register')"
  474. >
  475. {{ $t("common.ReminderSixth") }}
  476. </span>
  477. </div>
  478. </div>
  479. </div>
  480. </el-dialog>
  481. </div>
  482. </template>
  483. <script>
  484. import Base from "@/views/base/Base";
  485. import { getDicts } from "@/api/dict";
  486. import {
  487. getBaseResearchResultViews,
  488. gatAllCarouselMapPicture,
  489. getRecommendesearchResultList,
  490. } from "@/api/research/baseResearchResultView";
  491. import { getBaseResearchResourcesViews } from "@/api/research/resource/baseResearchResourcesView";
  492. import { formatDate } from "@/utils/formatUtils";
  493. export default {
  494. name: "RealTimeInfoResault",
  495. data() {
  496. return {
  497. num: 5,
  498. timer: "",
  499. toViewLogin: false,
  500. language: this.$i18n.locale,
  501. params: {
  502. pageNo: "",
  503. pageSize: "",
  504. language: "",
  505. status: 0,
  506. name: "",
  507. researchResultType: "",
  508. researchResourcesType: "",
  509. },
  510. screenIndex: 0, //screen状态
  511. resourceSharingScreen: [
  512. {
  513. label: "common.resource",
  514. value: "0",
  515. },
  516. {
  517. label: "common.researchResource",
  518. value: "1",
  519. },
  520. ],
  521. page: {
  522. results: {
  523. currentPage: 0, //当前页
  524. totalPage: "", //页数
  525. pageNo: 1,
  526. pageSize: 6,
  527. language: "",
  528. status: 0,
  529. name: "",
  530. researchResultType: "",
  531. descStatus: 0,
  532. reserveTwo: "Y",
  533. },
  534. resource: {
  535. currentPage: 0, //当前页
  536. totalPage: "", //页数
  537. pageNo: 1,
  538. pageSize: 9,
  539. language: "",
  540. status: 0,
  541. name: "",
  542. researchResourcesType: "",
  543. descStatus: 0,
  544. effective: "Y",
  545. },
  546. },
  547. slideShowImg: [],
  548. // slideShowImgFlag:0,
  549. classifySel1: -1, //子分类选中
  550. classifySel2: -1, //子分类选中
  551. classify1: "",
  552. screen1: {
  553. value: "common.Type",
  554. item: [],
  555. },
  556. screen2: {
  557. value: "common.Type",
  558. item: [],
  559. },
  560. classify2: "",
  561. rankActive: 0, //时间、热度排行选中
  562. cursorList1: [],
  563. cursorList2: [],
  564. searchText1: "",
  565. searchText2: "",
  566. isRecommond: true,
  567. nowPosition: 0,
  568. islogin: "",
  569. };
  570. },
  571. created() {
  572. if (this.$route.query.key) {
  573. this.screenIndex = this.$route.query.key;
  574. console.log(this.screenIndex);
  575. }
  576. },
  577. mounted() {
  578. this.paramsScreen();
  579. this.gatAllPicture();
  580. this.initData();
  581. if (!this.$Cookies.get("token")) {
  582. this.islogin = false;
  583. } else {
  584. this.islogin = true;
  585. }
  586. },
  587. watch: {
  588. "$i18n.locale"() {
  589. // this.slideShowImgFlag=0;
  590. this.slideShowImg = [];
  591. this.gatAllPicture();
  592. this.initData();
  593. },
  594. screenIndex() {
  595. this.initData();
  596. },
  597. toViewLogin() {
  598. if (this.toViewLogin == true) {
  599. this.loginTipsChange();
  600. }
  601. },
  602. },
  603. methods: {
  604. initData() {
  605. this.getClassify();
  606. },
  607. paramsScreen() {
  608. if (this.$route.params.key) {
  609. this.screenIndex = this.$route.params.key;
  610. }
  611. },
  612. toDetails(item, index) {
  613. let params = {
  614. entityId: item.entityId,
  615. // researchResultFileId:item.researchResultFileId,
  616. };
  617. let rpath = {
  618. name: "resourceSharingDetails",
  619. query: { key: JSON.stringify(params) },
  620. };
  621. sessionStorage.setItem("pathReminder", JSON.stringify(rpath));
  622. this.toViewQuery("resourceSharingDetails", params);
  623. },
  624. toResourceDetails(item, index) {
  625. let params = {
  626. entityId: item.entityId,
  627. };
  628. let rpath = {
  629. name: "resourceSharingResourceDetails",
  630. query: { key: JSON.stringify(params) },
  631. };
  632. sessionStorage.setItem("pathReminder", JSON.stringify(rpath));
  633. this.toViewQuery("resourceSharingResourceDetails", params);
  634. // this.toView('resourceSharingResourceDetails',params)
  635. },
  636. toViewQuery(router, json) {
  637. this.$router.push({ name: router, query: { key: JSON.stringify(json) } });
  638. },
  639. toResultsIssue() {
  640. if (!this.$Cookies.get("token")) {
  641. this.toViewLogin = true;
  642. } else {
  643. console.log(1111);
  644. this.toView("resourceform");
  645. // this.toView('resourceSharingResultsIssue')
  646. }
  647. },
  648. toResourceIssue() {
  649. if (!this.$Cookies.get("token")) {
  650. this.toViewLogin = true;
  651. } else {
  652. this.toView("resourceform");
  653. // this.toView('resourceSharingResourceIssue')
  654. }
  655. },
  656. toView(router, json) {
  657. if (router == "login" || router == "Register") {
  658. clearInterval(this.timer);
  659. }
  660. this.$router.push({ name: router, params: { key: json } });
  661. },
  662. screenChange(item, index) {
  663. this.screenIndex = index;
  664. this.rankActive = 0;
  665. this.page = {
  666. results: {
  667. currentPage: 0, //当前页
  668. totalPage: "", //页数
  669. pageNo: 1,
  670. pageSize: 6,
  671. language: "",
  672. status: 0,
  673. name: "",
  674. researchResultType: "",
  675. descStatus: 0,
  676. reserveTwo: "Y",
  677. },
  678. resource: {
  679. currentPage: "", //当前页
  680. totalPage: "", //页数
  681. pageNo: 1,
  682. pageSize: 9,
  683. language: "",
  684. status: 0,
  685. name: "",
  686. researchResourcesType: "",
  687. descStatus: 0,
  688. effective: "Y",
  689. },
  690. };
  691. },
  692. handleCurrentChange1(val) {
  693. this.page.results.currentPage = val;
  694. this.page.results.pageNo = val;
  695. this.initData();
  696. },
  697. handleCurrentChange2(val) {
  698. this.page.resource.currentPage = val;
  699. this.page.resource.pageNo = val;
  700. this.initData();
  701. },
  702. async getClassify() {
  703. let that = this;
  704. if (this.$i18n.locale.toUpperCase() == "ZH") {
  705. that.classify1 = "";
  706. that.classify2 = "";
  707. that.screen1.item = [];
  708. that.screen2.item = [];
  709. await getDicts(
  710. "RESEARCH_RESULT_TYPE_DICT,RESEARCH_RESOURCE_TYPE_DICT"
  711. ).then((result) => {
  712. if (result.data) {
  713. that.classify1 = result.data[0];
  714. // that.screen1.item = result.data[0];
  715. // let labels = '';
  716. // if(that.$i18n.locale == 'zh'){
  717. // labels = '研究成果'
  718. // }else {
  719. // labels = 'results'
  720. // }
  721. // that.screen1.item.unshift({
  722. // label: labels,
  723. // value: null,
  724. // });
  725. that.classify2 = result.data[1];
  726. // that.screen2.item = result.data[1];
  727. // let labels2 = '';
  728. // if(that.$i18n.locale == 'zh'){
  729. // labels2 = '调研资源'
  730. // }else {
  731. // labels2 = 'resource'
  732. // }
  733. // that.screen2.item.unshift({
  734. // label: labels2,
  735. // value: null,
  736. // });
  737. this.language = this.$i18n.locale;
  738. }
  739. });
  740. if (this.islogin) {
  741. // this.getCursorList1();
  742. this.getCursorListNew();
  743. this.getCursorList2();
  744. } else {
  745. // this.getCursorListNew();
  746. this.getCursorList1();
  747. this.getCursorList2();
  748. }
  749. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  750. that.classify1 = "";
  751. that.classify2 = "";
  752. that.screen1.item = [];
  753. that.screen2.item = [];
  754. await getDicts(
  755. "RESEARCH_RESULT_TYPE_DICT_EN,RESEARCH_RESOURCE_TYPE_DICT_EN"
  756. ).then((result) => {
  757. if (result.data) {
  758. that.classify1 = result.data[0];
  759. // that.screen1.item = result.data[0];
  760. // let labels = '';
  761. // if(that.$i18n.locale == 'zh'){
  762. // labels = '研究成果'
  763. // }else {
  764. // labels = 'results'
  765. // }
  766. // that.screen1.item.unshift({
  767. // label: labels,
  768. // value: null,
  769. // });
  770. that.classify2 = result.data[1];
  771. // that.screen2.item = result.data[1];
  772. // let labels2 = '';
  773. // if(that.$i18n.locale == 'zh'){
  774. // labels2 = '调研资源'
  775. // }else {
  776. // labels2 = 'resource'
  777. // }
  778. // that.screen2.item.unshift({
  779. // label: labels2,
  780. // value: null,
  781. // });
  782. this.language = this.$i18n.locale;
  783. }
  784. });
  785. if (that.islogin) {
  786. // this.getCursorList1();
  787. this.getCursorListNew();
  788. this.getCursorList2();
  789. } else {
  790. this.getCursorList1();
  791. // this.getCursorListNew();
  792. this.getCursorList2();
  793. }
  794. }
  795. },
  796. async gatAllPicture() {
  797. let params = {
  798. language: this.$i18n.locale.toUpperCase(),
  799. uploadCarouselMap: "Y",
  800. };
  801. gatAllCarouselMapPicture(params).then((resulet) => {
  802. if (resulet.data) {
  803. this.slideShowImg = resulet.data.addresses;
  804. }
  805. });
  806. },
  807. getCursorListNew(descStatus) {
  808. let that = this;
  809. that.nowPosition = 0;
  810. let param = that.page.results;
  811. if (this.$i18n.locale.toUpperCase() == "ZH") {
  812. param.language = "ZH";
  813. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  814. param.language = "EN";
  815. }
  816. if (descStatus == 0 || descStatus == 1) {
  817. param.descStatus = descStatus;
  818. }
  819. getRecommendesearchResultList(param).then((resulet) => {
  820. let that = this;
  821. let data = resulet.data;
  822. if (data.baseResearchResultViews) {
  823. that.cursorList1 = data.baseResearchResultViews;
  824. that.cursorList1.forEach((i) => {
  825. i.createDate = i.createDate
  826. ? formatDate(i.createDate, "YYYY-MM-DD")
  827. : "";
  828. });
  829. for (let i = 0; i < that.cursorList1.length; i++) {
  830. for (let o = 0; o < that.classify1.length; o++) {
  831. if (
  832. that.cursorList1[i].researchResultType ==
  833. that.classify1[o].value
  834. ) {
  835. that.cursorList1[i].researchResultType =
  836. that.classify1[o].label;
  837. }
  838. }
  839. }
  840. }
  841. if (data.page) {
  842. that.page.results.totalPage = data.page.totalPage;
  843. that.page.results.currentPage = data.page.pageNo;
  844. } else {
  845. that.page.results.totalPage = "1";
  846. that.page.results.currentPage = 1;
  847. }
  848. });
  849. },
  850. getCursorList1(descStatus) {
  851. let that = this;
  852. that.nowPosition = 1;
  853. let param = that.page.results;
  854. if (this.$i18n.locale.toUpperCase() == "ZH") {
  855. param.language = "ZH";
  856. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  857. param.language = "EN";
  858. }
  859. if (descStatus == 0 || descStatus == 1) {
  860. param.descStatus = descStatus;
  861. }
  862. getBaseResearchResultViews(param).then((resulet) => {
  863. let that = this;
  864. let data = resulet.data;
  865. if (data.baseResearchResultViews) {
  866. that.cursorList1 = data.baseResearchResultViews;
  867. that.cursorList1.forEach((i) => {
  868. i.createDate = i.createDate
  869. ? formatDate(i.createDate, "YYYY-MM-DD")
  870. : "";
  871. });
  872. for (let i = 0; i < that.cursorList1.length; i++) {
  873. for (let o = 0; o < that.classify1.length; o++) {
  874. if (
  875. that.cursorList1[i].researchResultType ==
  876. that.classify1[o].value
  877. ) {
  878. that.cursorList1[i].researchResultType =
  879. that.classify1[o].label;
  880. }
  881. }
  882. }
  883. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  884. that.cursorList1.forEach((i) => {
  885. if(i.uploadCarouselMap == 'Y'){
  886. let arr = {
  887. name:i.name,
  888. address:'',
  889. affiliatedUnitName:i.affiliatedUnitName,
  890. researchType:i.researchResultType,
  891. createDate:i.createDate,
  892. carouselMapAddress:i.carouselMapAddress,
  893. entityId:i.entityId,
  894. toView:0,
  895. }
  896. that.slideShowImg.push(arr);
  897. }
  898. })
  899. that.slideShowImgFlag++;
  900. }*/
  901. }
  902. if (data.page) {
  903. that.page.results.totalPage = data.page.totalPage;
  904. that.page.results.currentPage = data.page.pageNo;
  905. } else {
  906. that.page.results.totalPage = "1";
  907. that.page.results.currentPage = 1;
  908. }
  909. });
  910. },
  911. getCursorList2(descStatus) {
  912. let that = this;
  913. let param = that.page.resource;
  914. if (this.$i18n.locale.toUpperCase() == "ZH") {
  915. param.language = "ZH";
  916. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  917. param.language = "EN";
  918. }
  919. if (descStatus == 0 || descStatus == 1) {
  920. param.descStatus = descStatus;
  921. }
  922. getBaseResearchResourcesViews(param).then((resulet) => {
  923. let that = this;
  924. let data = resulet.data;
  925. if (data.baseResearchResourcesViews) {
  926. that.cursorList2 = data.baseResearchResourcesViews;
  927. that.cursorList2.forEach((i) => {
  928. i.createDate = i.createDate
  929. ? formatDate(i.createDate, "YYYY-MM-DD")
  930. : "";
  931. if (i.researchResourcesMedia) {
  932. i.researchResourcesMedia = i.researchResourcesMedia.split(",");
  933. i.researchResourcesMedia = i.researchResourcesMedia[0];
  934. }
  935. });
  936. for (let i = 0; i < that.cursorList2.length; i++) {
  937. for (let o = 0; o < that.classify2.length; o++) {
  938. if (
  939. that.cursorList2[i].researchResourcesType ==
  940. that.classify2[o].value
  941. ) {
  942. that.cursorList2[i].researchResourcesType =
  943. that.classify2[o].label;
  944. }
  945. }
  946. }
  947. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  948. that.cursorList2.forEach((i) => {
  949. if(i.uploadCarouselMap == 'Y'){
  950. let arr = {
  951. name:i.name,
  952. address:i.address,
  953. affiliatedUnitName:i.affiliatedUnitName,
  954. researchType:i.researchResourcesType,
  955. createDate:'',
  956. carouselMapAddress:i.carouselMapAddress,
  957. entityId:i.entityId,
  958. toView:1,
  959. }
  960. that.slideShowImg.push(arr);
  961. }
  962. });
  963. that.slideShowImgFlag++;
  964. }*/
  965. }
  966. if (data.page) {
  967. that.page.resource.totalPage = data.page.totalPage;
  968. that.page.resource.currentPage = data.page.pageNo;
  969. } else {
  970. that.page.resource.totalPage = "1";
  971. that.page.resource.currentPage = 1;
  972. }
  973. });
  974. },
  975. dataChangeByType1(item, index) {
  976. let that = this;
  977. that.nowPosition = 1;
  978. let param = that.page.results;
  979. param.pageNo = 1;
  980. if (this.$i18n.locale.toUpperCase() == "ZH") {
  981. param.language = "ZH";
  982. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  983. param.language = "EN";
  984. }
  985. if (item == -1) {
  986. that.classifySel1 = item;
  987. param.researchResultType = "";
  988. } else {
  989. that.classifySel1 = index;
  990. param.researchResultType = item.value;
  991. }
  992. getBaseResearchResultViews(param).then((resulet) => {
  993. let data = resulet.data;
  994. if (data.baseResearchResultViews) {
  995. that.cursorList1 = data.baseResearchResultViews;
  996. that.cursorList1.forEach((i) => {
  997. i.createDate = i.createDate
  998. ? formatDate(i.createDate, "YYYY-MM-DD")
  999. : "";
  1000. });
  1001. for (let i = 0; i < that.cursorList1.length; i++) {
  1002. for (let o = 0; o < that.classify1.length; o++) {
  1003. if (
  1004. that.cursorList1[i].researchResultType ==
  1005. that.classify1[o].value
  1006. ) {
  1007. that.cursorList1[i].researchResultType =
  1008. that.classify1[o].label;
  1009. }
  1010. }
  1011. }
  1012. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  1013. that.cursorList1.forEach((i) => {
  1014. if(i.uploadCarouselMap == 'Y'){
  1015. that.slideShowImg.push(i.carouselMapAddress);
  1016. }
  1017. })
  1018. that.slideShowImgFlag++;
  1019. }*/
  1020. } else {
  1021. that.cursorList1 = {};
  1022. }
  1023. if (data.page) {
  1024. that.page.results.totalPage = data.page.totalPage;
  1025. that.page.results.currentPage = data.page.pageNo;
  1026. } else {
  1027. that.page.results.totalPage = "1";
  1028. that.page.results.currentPage = 1;
  1029. }
  1030. });
  1031. },
  1032. dataChangeByType2(item, index) {
  1033. let that = this;
  1034. that.nowPosition = 1;
  1035. let param = that.page.resource;
  1036. param.pageNo = 1;
  1037. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1038. param.language = "ZH";
  1039. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1040. param.language = "EN";
  1041. }
  1042. if (item == -1) {
  1043. that.classifySel2 = item;
  1044. param.researchResourcesType = "";
  1045. } else {
  1046. that.classifySel2 = index;
  1047. param.researchResourcesType = item.value;
  1048. }
  1049. getBaseResearchResourcesViews(param).then((resulet) => {
  1050. let data = resulet.data;
  1051. if (data.baseResearchResourcesViews) {
  1052. that.cursorList2 = data.baseResearchResourcesViews;
  1053. that.cursorList2.forEach((i) => {
  1054. i.createDate = i.createDate
  1055. ? formatDate(i.createDate, "YYYY-MM-DD")
  1056. : "";
  1057. if (i.researchResourcesMedia) {
  1058. i.researchResourcesMedia = i.researchResourcesMedia.split(",");
  1059. i.researchResourcesMedia = i.researchResourcesMedia[0];
  1060. }
  1061. });
  1062. for (let i = 0; i < that.cursorList2.length; i++) {
  1063. for (let o = 0; o < that.classify2.length; o++) {
  1064. if (
  1065. that.cursorList2[i].researchResourcesType ==
  1066. that.classify2[o].value
  1067. ) {
  1068. that.cursorList2[i].researchResourcesType =
  1069. that.classify2[o].label;
  1070. }
  1071. }
  1072. }
  1073. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  1074. that.cursorList2.forEach((i) => {
  1075. if(i.uploadCarouselMap == 'Y'){
  1076. that.slideShowImg.push(i.carouselMapAddress);
  1077. }
  1078. })
  1079. that.slideShowImgFlag++;
  1080. }*/
  1081. } else {
  1082. that.cursorList2 = {};
  1083. }
  1084. if (data.page) {
  1085. that.page.resource.totalPage = data.page.totalPage;
  1086. that.page.resource.currentPage = data.page.pageNo;
  1087. } else {
  1088. that.page.resource.totalPage = "1";
  1089. that.page.resource.currentPage = 1;
  1090. }
  1091. });
  1092. },
  1093. dataChangeByName1(item, index) {
  1094. let that = this;
  1095. let param = that.page.results;
  1096. param.pageNo = 1;
  1097. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1098. param.language = "ZH";
  1099. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1100. param.language = "EN";
  1101. }
  1102. param.name = that.searchText1;
  1103. getBaseResearchResultViews(param).then((resulet) => {
  1104. let that = this;
  1105. let data = resulet.data;
  1106. if (data.baseResearchResultViews) {
  1107. that.cursorList1 = data.baseResearchResultViews;
  1108. that.cursorList1.forEach((i) => {
  1109. i.createDate = i.createDate
  1110. ? formatDate(i.createDate, "YYYY-MM-DD")
  1111. : "";
  1112. });
  1113. for (let i = 0; i < that.cursorList1.length; i++) {
  1114. for (let o = 0; o < that.classify1.length; o++) {
  1115. if (
  1116. that.cursorList1[i].researchResultType ==
  1117. that.classify1[o].value
  1118. ) {
  1119. that.cursorList1[i].researchResultType =
  1120. that.classify1[o].label;
  1121. }
  1122. }
  1123. }
  1124. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  1125. that.cursorList1.forEach((i) => {
  1126. if(i.uploadCarouselMap == 'Y'){
  1127. that.slideShowImg.push(i.carouselMapAddress);
  1128. }
  1129. })
  1130. that.slideShowImgFlag++;
  1131. }*/
  1132. } else {
  1133. that.cursorList1 = {};
  1134. }
  1135. if (data.page) {
  1136. that.page.results.totalPage = data.page.totalPage;
  1137. that.page.results.currentPage = data.page.pageNo;
  1138. } else {
  1139. that.page.results.totalPage = "1";
  1140. that.page.results.currentPage = 1;
  1141. }
  1142. });
  1143. },
  1144. dataChangeByName2(item, index) {
  1145. let that = this;
  1146. let param = that.page.resource;
  1147. param.pageNo = 1;
  1148. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1149. param.language = "ZH";
  1150. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1151. param.language = "EN";
  1152. }
  1153. param.name = that.searchText2;
  1154. getBaseResearchResourcesViews(param).then((resulet) => {
  1155. let that = this;
  1156. let data = resulet.data;
  1157. if (data.baseResearchResourcesViews) {
  1158. that.cursorList2 = data.baseResearchResourcesViews;
  1159. that.cursorList2.forEach((i) => {
  1160. i.createDate = i.createDate
  1161. ? formatDate(i.createDate, "YYYY-MM-DD")
  1162. : "";
  1163. if (i.researchResourcesMedia) {
  1164. i.researchResourcesMedia = i.researchResourcesMedia.split(",");
  1165. i.researchResourcesMedia = i.researchResourcesMedia[0];
  1166. }
  1167. });
  1168. for (let i = 0; i < that.cursorList2.length; i++) {
  1169. for (let o = 0; o < that.classify2.length; o++) {
  1170. if (
  1171. that.cursorList2[i].researchResourcesType ==
  1172. that.classify2[o].value
  1173. ) {
  1174. that.cursorList2[i].researchResourcesType =
  1175. that.classify2[o].label;
  1176. }
  1177. }
  1178. }
  1179. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  1180. that.cursorList2.forEach((i) => {
  1181. if(i.uploadCarouselMap == 'Y'){
  1182. that.slideShowImg.push(i.carouselMapAddress);
  1183. }
  1184. })
  1185. that.slideShowImgFlag++;
  1186. }*/
  1187. } else {
  1188. that.cursorList2 = {};
  1189. }
  1190. if (data.page) {
  1191. that.page.resource.totalPage = data.page.totalPage;
  1192. that.page.resource.currentPage = data.page.pageNo;
  1193. } else {
  1194. that.page.resource.totalPage = "1";
  1195. that.page.resource.currentPage = 1;
  1196. }
  1197. });
  1198. },
  1199. dataChangeByTime1() {
  1200. console.log("time1");
  1201. let that = this;
  1202. let param = that.page.results;
  1203. param.pageNo = 1;
  1204. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1205. param.language = "ZH";
  1206. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1207. param.language = "EN";
  1208. }
  1209. this.nowPosition = 0;
  1210. if (this.nowPosition == 0) {
  1211. this.getCursorListNew(0);
  1212. } else {
  1213. this.getCursorList1(0);
  1214. }
  1215. // this.getCursorList1(0)
  1216. this.rankActive = 0;
  1217. },
  1218. dataChangeByHeat1() {
  1219. let that = this;
  1220. let param = that.page.results;
  1221. param.pageNo = 1;
  1222. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1223. param.language = "ZH";
  1224. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1225. param.language = "EN";
  1226. }
  1227. this.getCursorList1(1);
  1228. this.rankActive = 1;
  1229. },
  1230. dataChangeByTime2() {
  1231. let that = this;
  1232. let param = that.page.resource;
  1233. param.pageNo = 1;
  1234. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1235. param.language = "ZH";
  1236. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1237. param.language = "EN";
  1238. }
  1239. this.getCursorList2(0);
  1240. this.rankActive = 0;
  1241. },
  1242. dataChangeByHeat2() {
  1243. let that = this;
  1244. let param = that.page.resource;
  1245. param.pageNo = 1;
  1246. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1247. param.language = "ZH";
  1248. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1249. param.language = "EN";
  1250. }
  1251. this.getCursorList2(1);
  1252. this.rankActive = 1;
  1253. },
  1254. // 判断未登录跳转是否关闭
  1255. toViewLoginChange(done) {
  1256. this.toViewLogin = false;
  1257. this.num = 5;
  1258. clearInterval(this.timer);
  1259. },
  1260. loginTipsChange() {
  1261. const that = this;
  1262. this.num = 5;
  1263. // clearInterval(timer_interval);
  1264. this.timer = setInterval(function () {
  1265. if (that.num > 0) {
  1266. that.num--;
  1267. } else {
  1268. if (that.toViewLogin == true) {
  1269. clearInterval(that.timer);
  1270. that.toView("login");
  1271. } else {
  1272. clearInterval(that.timer);
  1273. }
  1274. }
  1275. }, 1000);
  1276. },
  1277. dataChangeByTypeRecommed(item, index) {
  1278. let that = this;
  1279. that.nowPosition = 0;
  1280. let param = that.page.results;
  1281. // param.pageNo = 1;
  1282. if (this.$i18n.locale.toUpperCase() == "ZH") {
  1283. param.language = "ZH";
  1284. } else if (this.$i18n.locale.toUpperCase() == "EN") {
  1285. param.language = "EN";
  1286. }
  1287. if (item == -1) {
  1288. that.classifySel1 = item;
  1289. param.researchResultType = "";
  1290. } else {
  1291. that.classifySel1 = index;
  1292. param.researchResultType = item.value;
  1293. }
  1294. getRecommendesearchResultList(param).then((resulet) => {
  1295. let data = resulet.data;
  1296. if (data.baseResearchResultViews) {
  1297. that.cursorList1 = data.baseResearchResultViews;
  1298. that.cursorList1.forEach((i) => {
  1299. i.createDate = i.createDate
  1300. ? formatDate(i.createDate, "YYYY-MM-DD")
  1301. : "";
  1302. });
  1303. for (let i = 0; i < that.cursorList1.length; i++) {
  1304. for (let o = 0; o < that.classify1.length; o++) {
  1305. if (
  1306. that.cursorList1[i].researchResultType ==
  1307. that.classify1[o].value
  1308. ) {
  1309. that.cursorList1[i].researchResultType =
  1310. that.classify1[o].label;
  1311. }
  1312. }
  1313. }
  1314. /*if(that.slideShowImgFlag==0||that.slideShowImgFlag==1){
  1315. that.cursorList1.forEach((i) => {
  1316. if(i.uploadCarouselMap == 'Y'){
  1317. that.slideShowImg.push(i.carouselMapAddress);
  1318. }
  1319. })
  1320. that.slideShowImgFlag++;
  1321. }*/
  1322. } else {
  1323. that.cursorList1 = {};
  1324. }
  1325. if (data.page) {
  1326. that.page.results.totalPage = data.page.totalPage;
  1327. that.page.results.currentPage = data.page.pageNo;
  1328. } else {
  1329. that.page.results.totalPage = "1";
  1330. that.page.results.currentPage = 1;
  1331. }
  1332. });
  1333. },
  1334. cliRecommend() {
  1335. if (this.islogin) {
  1336. console.log("11");
  1337. this.dataChangeByTypeRecommed(-1);
  1338. } else {
  1339. console.log("22");
  1340. this.dataChangeByType1(-1);
  1341. }
  1342. },
  1343. },
  1344. };
  1345. </script>
  1346. <style scoped>
  1347. .InfoResault {
  1348. width: 100%;
  1349. }
  1350. .mainBody {
  1351. width: 100%;
  1352. /*margin-top: 10px;*/
  1353. box-sizing: border-box;
  1354. }
  1355. .mainBody .slideShow {
  1356. width: 100%;
  1357. }
  1358. .mainBody .researchClassify {
  1359. cursor: pointer;
  1360. /* margin: 0 20px; */
  1361. /*height: 51px;*/
  1362. overflow: hidden;
  1363. margin: 20px 0 30px 0;
  1364. background-color: #f8f8f8;
  1365. }
  1366. .mainBody .researchClassify .option {
  1367. /*float: left;*/
  1368. height: 51px;
  1369. color: #9b9b9b;
  1370. margin: 0 20px;
  1371. font-size: 16px;
  1372. font-weight: 400;
  1373. line-height: 51px;
  1374. /* padding: 0 10px; */
  1375. box-sizing: border-box;
  1376. }
  1377. .mainBody .researchClassify .option .active {
  1378. color: #6699ff;
  1379. font-weight: 600;
  1380. /*color: #eb8154;*/
  1381. /*background-color: #fbecda;*/
  1382. border-radius: 10px;
  1383. line-height: 20px;
  1384. }
  1385. .mainBody .researchClassify .rankSearchPub {
  1386. float: right;
  1387. height: 56px;
  1388. box-sizing: border-box;
  1389. }
  1390. .mainBody .researchClassify .rankSearchPub .rank {
  1391. float: left;
  1392. height: 51px;
  1393. line-height: 51px;
  1394. font-size: 16px;
  1395. color: rgba(0, 0, 0, 0.65);
  1396. }
  1397. .mainBody .researchClassify .rankSearchPub .rank .active {
  1398. color: #6699ff;
  1399. font-weight: 600;
  1400. /*color: #eb8154;*/
  1401. /*background-color: #fbecda;*/
  1402. border-radius: 10px;
  1403. line-height: 20px;
  1404. }
  1405. .mainBody .researchClassify .rankSearchPub .search {
  1406. float: left;
  1407. width: 103px;
  1408. /*height: 32px;*/
  1409. margin: 10px 15px 9px 0;
  1410. border-radius: 5px;
  1411. position: relative;
  1412. }
  1413. .mainBody .researchClassify .rankSearchPub .search input[type="text"] {
  1414. width: 103px;
  1415. height: 32px;
  1416. border: 1px solid #d9d9d9;
  1417. margin: 0;
  1418. padding: 0 32px 0 5px;
  1419. box-sizing: border-box;
  1420. border-radius: 4px;
  1421. }
  1422. .mainBody .researchClassify .rankSearchPub .search input[type="text"]:focus {
  1423. border: 1px solid #0091ff;
  1424. outline: none;
  1425. }
  1426. .mainBody .researchClassify .rankSearchPub .publishing {
  1427. float: left;
  1428. width: 72px;
  1429. height: 32px;
  1430. line-height: 30px;
  1431. margin: 9px 30px 8px 0;
  1432. /*padding: 0 20px;*/
  1433. box-sizing: border-box;
  1434. border: 1px solid #1890ff;
  1435. color: #1890ff;
  1436. border-radius: 16px;
  1437. text-align: center;
  1438. }
  1439. .mainBody .cursor {
  1440. width: 30%;
  1441. /*height: 525px;*/
  1442. height: 572px;
  1443. border: 1px solid rgba(228, 228, 228, 1);
  1444. float: left;
  1445. margin: 0 2.5% 30px 2.5%;
  1446. box-sizing: border-box;
  1447. position: relative;
  1448. }
  1449. </style>