ResourceSharing.vue 86 KB

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