ThinkTankConsultingMynewOld.vue 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025
  1. <template>
  2. <div>
  3. <div class="autoBox box">
  4. <div class="crumbs">
  5. <el-breadcrumb separator="/">
  6. <el-breadcrumb-item :to="{ path: 'home' }">{{ $t('common.Home') }}</el-breadcrumb-item>
  7. <el-breadcrumb-item>{{ $t('common.ThinkTankConsulting') }}</el-breadcrumb-item>
  8. </el-breadcrumb>
  9. </div>
  10. <div style="padding:20px 20px;">
  11. <div style="font-size: 20px;color: #2C558A;font-weight: 700">
  12. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt=""
  13. style="height: 20px;vertical-align: middle;">
  14. {{ $t('common.ThinkTankConsultingServe') }}
  15. </div>
  16. <div
  17. style="width: 100%;margin-top: 22px;display: flex;justify-content: space-between;flex-wrap:wrap;color: #fff">
  18. <div style="width: 45%;height: 119px;margin-bottom: 25px;padding:23px;" class="ListOne">
  19. <div>
  20. <img src="@/assets/img/ThinkTankConsulting/content1.png" alt=""
  21. style="width: 30px;height: 30px;float: left;margin-right: 10px"
  22. :style="$i18n.locale == 'zh' ? 'margin-top:8px;' : ''">
  23. <span style="font-size: 30px;">{{ $t(consultServe[0].title) }}</span>
  24. </div>
  25. <p v-html="$t(consultServe[0].label)" style="font-size: 16px;"></p>
  26. </div>
  27. <div style="width: 45%;height: 119px;margin-bottom: 25px;padding:23px;" class="ListTwo">
  28. <div>
  29. <img src="@/assets/img/ThinkTankConsulting/content2.png" alt="" style="width: 30px;height: 30px;float: left;margin-right: 10px;vertical-align: middle;
  30. " :style="$i18n.locale == 'zh' ? 'margin-top:8px;' : ''">
  31. <span style="font-size: 30px;">{{ $t(consultServe[1].title) }}</span>
  32. </div>
  33. <p v-html="$t(consultServe[1].label)" style="font-size: 16px;"></p>
  34. </div>
  35. <div style="width: 45%;height: 119px;margin-bottom: 30px;padding:23px;" class="ListThree">
  36. <div>
  37. <img src="@/assets/img/ThinkTankConsulting/content3.png" alt=""
  38. style="width: 30px;height: 35px;float: left;margin-right: 10px"
  39. :style="$i18n.locale == 'zh' ? 'margin-top:4px;' : ''">
  40. <span style="font-size: 30px;">{{ $t(consultServe[2].title) }}</span>
  41. </div>
  42. <p v-html="$t(consultServe[2].label)" style="font-size: 16px;"></p>
  43. </div>
  44. <div style="width: 45%;height: 119px;margin-bottom: 30px;padding:23px;" class="ListFour">
  45. <div>
  46. <img src="@/assets/img/ThinkTankConsulting/content4.png" alt="" style="width: 30px;height: 23px;float: left;margin-right: 10px;margin-top: 8px;
  47. " :style="$i18n.locale == 'zh' ? 'margin-top:8px;' : ''">
  48. <span style="font-size: 30px;">{{ $t(consultServe[3].title) }}</span>
  49. </div>
  50. <p v-html="$t(consultServe[3].label)" style="font-size: 16px;"></p>
  51. </div>
  52. </div>
  53. <!--发布咨询需求-->
  54. <div class="demand">
  55. <span style="font-size: 30px;margin-left: 112px;color: #fff;display: inline-block;"
  56. :style="$i18n.locale == 'zh' ? 'margin-top: 51px;' : 'width: 600px;margin-top: 41px;'">
  57. {{ $t('common.ThinkTankSolution') }}
  58. </span>
  59. <div :class="$i18n.locale == 'zh' ? 'boxOne' : 'boxTwo'" @click="OpenThink">
  60. <span style="color: #1e6e93;font-size: 14px">{{ $t('common.ThinkTankPostDemand') }}</span>
  61. </div>
  62. <div style="clear: both"></div>
  63. </div>
  64. <!-- 成果展示-->
  65. <div style="display: flex;justify-content: space-between;width: 100%;margin-top: 30px;">
  66. <!-- <div style="float: left;width: 49%;box-sizing: border-box;">
  67. <div class="relevanInformation">
  68. <div class="informationTitle informationTitleAfter" >
  69. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt="" style="height: 20px;vertical-align: middle;">
  70. {{$t('common.ThinkTankResultsShow')}}
  71. <span @click="resultsShowChange()" style="float: right;cursor: pointer;">
  72. <div style="width: 19px;height: 19px;float: right;margin-right: 5px;">
  73. <img src="@/assets/img/helpCenter/change1.png" alt="" style="width:100%;transform: translateY(0px);">
  74. </div>
  75. <div style="float:right;margin-right:5px;font-size:16px;color:#778AA4">
  76. {{$t('common.ChangeTheBatch')}}
  77. </div>
  78. </span>
  79. </div>
  80. <div class="informationList">
  81. <ul>
  82. <li style="display: list-item;border-bottom: 1px dashed #999;" v-for="(infoItem,index) in informationList1"
  83. @click="toInformationList1(infoItem)">
  84. <div class="square"></div>
  85. <div class="list" style="width: 70%">
  86. {{infoItem.name}}
  87. </div>
  88. </li>
  89. </ul>
  90. </div>
  91. </div>
  92. </div> -->
  93. <!--热点聚焦-->
  94. <div style="float: left;width: 49%;box-sizing: border-box;">
  95. <div class="relevanInformation">
  96. <div class="informationTitle informationTitleAfter">
  97. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt=""
  98. style="height: 20px;vertical-align: middle;">
  99. {{ $t('common.ThinkTankHotFocus') }}
  100. <span @click="changePage()" style="float: right;cursor: pointer;">
  101. <div style="width: 19px;height: 19px;float: right;margin-right: 5px;">
  102. <img src="@/assets/img/helpCenter/change1.png" alt=""
  103. style="width:100%;transform: translateY(0px);">
  104. </div>
  105. <div style="float:left;margin-right:5px;font-size:16px;color:#778AA4">
  106. {{ $t('common.ChangeTheBatch') }}
  107. </div>
  108. </span>
  109. </div>
  110. <div class="informationList">
  111. <ul style="padding-left: 10px">
  112. <li v-for="(infoItem, index) in HotFocus"
  113. @click="toViewHot('realTimeInfoItemdetails', infoItem.baseEntityId)"
  114. style="list-style: disc inside;border-bottom: 1px dashed #999;">
  115. <div class="square"></div>
  116. <div class="list">
  117. {{ infoItem.title }}
  118. </div>
  119. <div class="list" style="width: 20%;float: right">
  120. {{ formatDate(infoItem.updateDate) }}
  121. </div>
  122. </li>
  123. </ul>
  124. </div>
  125. </div>
  126. </div>
  127. <!-- 虚拟电厂-->
  128. <div style="float: left;width: 49%;box-sizing: border-box;">
  129. <div class="relevanInformation">
  130. <div class="informationTitle informationTitleAfter">
  131. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt=""
  132. style="height: 20px;vertical-align: middle;">
  133. {{ $t('common.VirtualPowerPlant') }}
  134. <span @click="getInformation(listInformation.pageNo + 1)" style="float: right;cursor: pointer;">
  135. <div style="width: 19px;height: 19px;float: right;margin-right: 5px;">
  136. <img src="@/assets/img/helpCenter/change1.png" alt=""
  137. style="width:100%;transform: translateY(0px);">
  138. </div>
  139. <div style="float:left;margin-right:5px;font-size:16px;color:#778AA4">
  140. {{ $t('common.ChangeTheBatch') }}
  141. </div>
  142. </span>
  143. </div>
  144. <div class="informationList">
  145. <ul style="padding-left: 10px">
  146. <li v-for="(infoItem, index) in countryLastestInfos"
  147. @click="toViewHot('realTimeInfoItemdetails', infoItem.baseEntityId)"
  148. style="list-style: disc inside;border-bottom: 1px dashed #999;">
  149. <div class="square"></div>
  150. <div class="list">
  151. {{ infoItem.title }}
  152. </div>
  153. <div class="list" style="width: 20%;float: right">
  154. {{ formatDate(infoItem.updateDate) }}
  155. </div>
  156. </li>
  157. </ul>
  158. </div>
  159. </div>
  160. </div>
  161. <div style="clear: both"></div>
  162. </div>
  163. <!--智库推荐-->
  164. <!-- <div style="width: 100%; min-height: 235px; padding: 10px 0;box-sizing: border-box;position: relative"> -->
  165. <div
  166. style="font-size: 18px;color: #666666;font-weight: 700;margin-top: 30px;border-bottom: 1px solid #2C558A;height: 30px;">
  167. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt=""
  168. style="height: 20px;vertical-align: middle;">
  169. {{ $t('common.ThinkTankRecommended') }}
  170. <span style="float: right;color:#778AA4;cursor: pointer;font-size: 16px;"
  171. @click="toViewMore('IntroductionMemberInformation', menberDetails, '08')">{{ $t('common.More') }}
  172. ></span>
  173. </div>
  174. <div
  175. style="width: 100%; min-height: 235px; padding: 10px 0;box-sizing: border-box;position: relative;text-align: center;">
  176. <div class="swipers">
  177. <div class="swiper-container gallery-thumbs">
  178. <div class="swiper-wrapper">
  179. <div class="swiper-slide" v-for="(recommenItem, index) in RecommendedList">
  180. <img :src="'api/file/pub/' + recommenItem.photo" alt
  181. style="width: 100%;height:180px;cursor: pointer"
  182. @click="toDetails('IntroductionPresentationDetails', recommenItem)"/>
  183. <span>{{ recommenItem.unitName }}</span>
  184. </div>
  185. </div>
  186. </div>
  187. </div>
  188. </div>
  189. </div>
  190. <!--发布咨询需求表单-->
  191. <!-- Form -->
  192. <el-dialog :title="$t('common.ThinkTankConsulting')" :visible.sync="dialogAssueVisible" :close-on-click-modal ="false" class="AssueBox" width="100%" >
  193. <div style="width: 100%; margin: auto">
  194. <el-form ref="thinkTankfrom" :model="thinkTankConsultation" :rules="assueRules"
  195. style="margin: auto;width: 90%;">
  196. <!--咨询类别-->
  197. <el-form-item :label="$t('common.ConsultingCategory')" prop="thinkTankType">
  198. <el-select v-model="thinkTankConsultation.thinkTankType"
  199. :placeholder="$t('common.PleaseSelect2') + $t('common.ConsultingCategory')"
  200. style="width: 65%" popper-class="thinkSelect">
  201. <el-option v-for="item in cateClass" :label="item.label" :value="item.value"
  202. style="width: 70%"></el-option>
  203. </el-select>
  204. </el-form-item>
  205. <!--需求内容-->
  206. <el-form-item :label="$t('common.Demandforcontent')" prop="content">
  207. <el-input type="textarea" style="width: 65%;" :autosize="{ minRows: 4, maxRows: 6 }"
  208. maxlength="1000" show-word-limit
  209. :placeholder="$t('common.PleaseEnter') + $t('common.Demandforcontent')"
  210. v-model="thinkTankConsultation.content" show-word-limit>
  211. </el-input>
  212. </el-form-item>
  213. <!--姓名-->
  214. <el-form-item :label="$t('common.Namethink')" prop="name">
  215. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Namethink')"
  216. v-model="thinkTankConsultation.name" maxlength="100" show-word-limit></el-input>
  217. </el-form-item>
  218. <!--职务-->
  219. <el-form-item :label="$t('common.Position')">
  220. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Position')"
  221. v-model="thinkTankConsultation.post" maxlength="100" show-word-limit></el-input>
  222. </el-form-item>
  223. <!--单位名称-->
  224. <el-form-item :label="$t('common.NameoftheEntity')">
  225. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.NameoftheEntity')"
  226. v-model="thinkTankConsultation.unitName" maxlength="100" show-word-limit></el-input>
  227. </el-form-item>
  228. <!--联系方式-->
  229. <el-form-item :label="$t('common.ContactWay')" prop="contactInformation">
  230. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.ContactWay')"
  231. v-model="thinkTankConsultation.contactInformation" maxlength="11" show-word-limit>
  232. </el-input>
  233. </el-form-item>
  234. <!--邮箱-->
  235. <el-form-item :label="$t('common.Email1')" prop="email">
  236. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Email1')"
  237. v-model="thinkTankConsultation.email" maxlength="32" show-word-limit></el-input>
  238. </el-form-item>
  239. </el-form>
  240. <div slot="footer" class="dialog-footer">
  241. <el-button @click="cancelSubmit">{{ $t('common.Cancel') }}</el-button>
  242. <el-button type="primary" @click="onSubmit">{{ $t('common.Submit') }}</el-button>
  243. </div>
  244. </div>
  245. </el-dialog>
  246. <!-- 登录提示-->
  247. <el-dialog :title="$i18n.locale == 'zh' ? '提示' : 'Reminder'" :visible.sync="toViewLogin"
  248. :width="$i18n.locale == 'zh' ? '500px' : '750px'" :height="$i18n.locale == 'zh' ? '300px' : '386px'"
  249. :before-close="toViewLoginChange">
  250. <div style="width: 100%;height: 100%;">
  251. <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
  252. <div style="float: right;margin-right: 20px;"
  253. :style="$i18n.locale == 'zh' ? 'width: 49%;margin-top: 10px;' : 'width: 453px;margin-top: -25px;'">
  254. <div style="font-size: 20px;font-weight: normal;color: #333333;
  255. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  256. line-height: 40px;">
  257. {{ $t('common.ReminderFirst') }}
  258. </div>
  259. <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  260. font-weight: normal;color: #666666;line-height: 30px;">
  261. {{ $t('common.ReminderSecond') }} <span style="color: #0091FF;font-size: 18px;">{{ num }}</span>
  262. {{ $t('common.ReminderThird') }}
  263. </div>
  264. <div
  265. style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;font-weight: normal;color: #666666;line-height: 30px;">
  266. {{ $t('common.ReminderForth') }}
  267. </div>
  268. <div
  269. style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
  270. <span style="margin-left: 40px;" class="cursor" @click="toView('login')">
  271. {{ $t('common.ReminderFifth') }}
  272. </span>
  273. <span style="margin-left: 10px;" class="cursor" @click="toView('Register')">
  274. {{ $t('common.ReminderSixth') }}
  275. </span>
  276. </div>
  277. </div>
  278. </div>
  279. </el-dialog>
  280. </div>
  281. </div>
  282. </template>
  283. <script>
  284. import Base from "@/views/base/Base";
  285. import {Swiper} from "vue-awesome-swiper";
  286. import Screen from "@/components/screen";
  287. import {getBaseResearchResultViews, getVirtualPowerPlant} from "@/api/research/baseResearchResultView";
  288. import {baseThinkTankInfos} from "@/api/thinkTank/baseThinkTankInfo";
  289. import {hostFocusList, carbonNeutralList} from "@/api/financialService/cmsInformationViews";
  290. import {gateGetUnitViewById} from "@/api/baseUnitView";
  291. import {saveOrUpdate} from "@/api/thinkTank/thinkTankConsultation";
  292. import {getToken} from '@/utils/auth';
  293. import {getUserInfoStatus} from "@/api/userCenter";
  294. import {getDicts} from '@/api/dict'
  295. export default {
  296. name: "ThinkTankConsultingMynew",
  297. components: {Screen},
  298. extends: Base,
  299. data() {
  300. return {
  301. num: 5,
  302. timer: '',
  303. toViewLogin: false,
  304. index: 0,
  305. loading: true,
  306. totalPage: "",
  307. projectFaIcon: 2,
  308. menberDetails: {
  309. dictTypeId: "456",
  310. id: "3140",
  311. img: "group.png",
  312. label: "咨询公司",
  313. num: "42",
  314. value: "08",
  315. },
  316. listInformation: {
  317. pageNo: 1,
  318. pageSize: 5,
  319. language: '',
  320. },
  321. page: {
  322. pageSize: "10",
  323. pageNo: "1",
  324. language: '',
  325. descStatus: '0',
  326. },
  327. consultServe: [
  328. {
  329. title: 'common.ThinkTankMarketResearch',
  330. label: 'common.ThinkTankMarketResearchText'
  331. },
  332. {
  333. title: 'common.ThinkTankProjectConsultation',
  334. label: 'common.ThinkTankProjectConsultationText'
  335. },
  336. {
  337. title: 'common.ThinkTankScienceAndTechnologyInnovation',
  338. label: 'common.ThinkTankScienceAndTechnologyInnovationText'
  339. },
  340. {
  341. title: 'common.ThinkTankPlanningStudy',
  342. label: 'common.ThinkTankPlanningStudyText'
  343. },
  344. ],
  345. init: [],
  346. dict: {},
  347. informationList1: [],
  348. informationList1page: {
  349. pageSize: 5,
  350. pageNo: 1,
  351. language: '',
  352. totalPage: '',
  353. descStatus: 0
  354. },
  355. hotList: {
  356. pageSize: 5,
  357. pageNo: 1,
  358. language: ''
  359. },
  360. HotFocus: [],
  361. RecommendedList: [],
  362. dialogAssueVisible: false,
  363. textarea2: "",
  364. //资讯类别列表
  365. cateClass: [],
  366. //智库咨询表单
  367. thinkTankConsultation: {
  368. name: "",
  369. post: "",
  370. unitName: "",
  371. contactInformation: "",
  372. email: "",
  373. thinkTankType: "",
  374. content: "",
  375. },
  376. //用户信息
  377. userInfomation: {},
  378. countryLastestInfos: [],
  379. }
  380. },
  381. updated() {
  382. this.Swiper();
  383. },
  384. computed: {
  385. //表单验证规则
  386. assueRules() {
  387. return {
  388. thinkTankType: [
  389. {
  390. required: true,
  391. message: this.$i18n.locale == 'zh' ? '请选择咨询类别' : 'Please select the type of information',
  392. trigger: 'change'
  393. },
  394. ],
  395. content: [
  396. {
  397. required: true,
  398. message: this.$i18n.locale == 'zh' ? '请输入需求内容' : 'Please enter requirements',
  399. trigger: 'blur'
  400. },
  401. ],
  402. name: [
  403. {
  404. required: true,
  405. message: this.$i18n.locale == 'zh' ? '请输入用户名' : 'Please enter a user name',
  406. trigger: 'blur'
  407. },
  408. ],
  409. contactInformation: [
  410. {
  411. required: true,
  412. message: this.$i18n.locale == 'zh' ? '请输入联系方式' : 'Please enter contact information',
  413. trigger: 'blur'
  414. },
  415. {
  416. pattern: /^0{0,1}(13[0-9]|15[7-9]|153|151|156|18[1-9])[0-9]{8}$/,
  417. message: this.$i18n.locale == 'zh' ? '联系方式格式不正确,请重新输入' : 'Contact number format is incorrect, please re-enter',
  418. trigger: 'blur'
  419. }
  420. ],
  421. email: [
  422. {message: this.$t('common.PleaseFillOut') + this.$t('common.Email'), trigger: 'blur'},
  423. {
  424. pattern: /^[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*\.[a-z]{2,}$/,
  425. message: this.$i18n.locale == 'zh' ? '邮箱格式不正确,请重新输入' : 'Email format is incorrect, please re-enter',
  426. trigger: 'blur'
  427. }
  428. ],
  429. }
  430. }
  431. },
  432. mounted() {
  433. this.getInformationList1();
  434. this.getHotFocus();
  435. this.getRecommended();
  436. this.getInformation();
  437. this.getUserMessage();
  438. this.$store.commit('modify', 'enterprise');
  439. window.localStorage.setItem('router', 'enterprise');
  440. },
  441. watch: {
  442. '$i18n.locale'() {
  443. this.getInformationList1();
  444. this.getHotFocus();
  445. this.getRecommended();
  446. this.getInformation(1);
  447. this.getUserMessage();
  448. // this.onSubmit()
  449. },
  450. "toViewLogin"() {
  451. if (this.toViewLogin == true) {
  452. this.loginTipsChange()
  453. }
  454. },
  455. },
  456. methods: {
  457. loginTipsChange() {
  458. const that = this;
  459. this.num = 5;
  460. // clearInterval(timer_interval);
  461. this.timer = setInterval(function () {
  462. if (that.num > 0) {
  463. that.num--;
  464. } else {
  465. if (that.toViewLogin == true) {
  466. clearInterval(that.timer);
  467. that.toView('login');
  468. } else {
  469. clearInterval(that.timer);
  470. }
  471. }
  472. }, 1000)
  473. },
  474. getInformation(value) {
  475. this.listInformation.pageNo = value ? value : 1;
  476. const that = this;
  477. let params = {
  478. pageSize: 5,
  479. pageNo: this.listInformation.pageNo,
  480. language: this.$i18n.locale.toUpperCase(),
  481. columnName: 'VIRTUAL_POWER_PLANT_VPP'
  482. }
  483. // this.listInformation={...params}
  484. getVirtualPowerPlant(params).then((res) => {
  485. this.countryLastestInfos = res.data;
  486. // console.log(this.countryLastestInfos, 11111111);
  487. this.shouldGetBegin = this.countryLastestInfos.length < 5 ? true : false;
  488. if (this.shouldGetBegin) {
  489. this.listInformation.pageNo = 0
  490. }
  491. });
  492. },
  493. //成果展示
  494. getInformationList1() {
  495. const that = this;
  496. let param = that.informationList1page;
  497. param.language = this.$i18n.locale.toUpperCase()
  498. getBaseResearchResultViews(param).then((resulet) => {
  499. let that = this;
  500. let data = resulet.data;
  501. if (data.baseResearchResultViews) {
  502. that.informationList1 = data.baseResearchResultViews;
  503. if (data.page) {
  504. that.informationList1page.totalPage = data.page.totalPage;
  505. }
  506. }
  507. });
  508. },
  509. //热点聚焦
  510. // getHotFocus(){
  511. // const that = this;
  512. // this.hotList.language = this.$i18n.locale.toUpperCase();
  513. // hostFocusList(this.hotList).then((res)=>{
  514. // if(res.data.length>0){
  515. // this.HotFocus = res.data;
  516. // }else{
  517. // this.hotList.pageNo = 1
  518. // }
  519. // })
  520. // },
  521. getHotFocus() {
  522. const that = this;
  523. this.hotList.language = this.$i18n.locale.toUpperCase();
  524. carbonNeutralList(this.hotList).then((res) => {
  525. if (res.data.length > 0) {
  526. this.HotFocus = res.data;
  527. } else {
  528. this.hotList.pageNo = 1;
  529. this.getHotFocus();
  530. }
  531. })
  532. },
  533. //智库推荐
  534. getRecommended() {
  535. let that = this;
  536. const recomParams = {
  537. // pageSize:5,
  538. // pageNo: 1,
  539. language: this.$i18n.locale.toUpperCase(),
  540. };
  541. baseThinkTankInfos(recomParams).then((res) => {
  542. this.RecommendedList = res.data.baseThinkTankInfos;
  543. for (let i = 0; i < this.RecommendedList.length; i++) {
  544. if (this.RecommendedList[i].photo == null) {
  545. this.RecommendedList[i].photo = '/def/def1.png';
  546. }
  547. }
  548. })
  549. },
  550. //成果展示 换一批
  551. resultsShowChange() {
  552. // let a = this.informationList1page.totalPage;
  553. // this.informationList1page.pageNo = Math.ceil(Math.random()*a);
  554. if (this.informationList1page.pageNo == this.informationList1page.totalPage) {
  555. this.informationList1page.pageNo = 0;
  556. }
  557. this.informationList1page.pageNo++
  558. this.getInformationList1();
  559. },
  560. // 热点聚焦换一批
  561. changePage() {
  562. this.hotList.pageNo = this.hotList.pageNo + 1;
  563. this.getHotFocus();
  564. },
  565. //查询热点聚焦
  566. toInformationList1(ele) {
  567. let params = {
  568. entityId: ele.entityId,
  569. // researchResultFileId:ele.researchResultFileId,
  570. }
  571. this.toViewInformationList('resourceSharingDetails', params)
  572. },
  573. //查询咨询类别列表
  574. getcateClass() {
  575. if (this.$i18n.locale == 'zh') {
  576. getDicts('THINK_TANK_TYPE_DICT').then((res) => {
  577. this.cateClass = res.data[0]
  578. })
  579. } else {
  580. getDicts('THINK_TANK_TYPE_DICT_EN').then((res) => {
  581. this.cateClass = res.data[0]
  582. })
  583. }
  584. },
  585. /* 跳转类 */
  586. //跳转 发布咨询需求
  587. toIssue() {
  588. if (!this.$Cookies.get('token')) {
  589. this.toViewLogin = true;
  590. } else {
  591. this.toViewHot('addMyProject')
  592. }
  593. },
  594. //跳转 智库详情
  595. toDetails(router, json) {
  596. let params = {
  597. unitId: json.baseEntityId,
  598. memberNameZh: json.unitName,
  599. memberNameEn: json.unitNameEn
  600. }
  601. gateGetUnitViewById(json.baseEntityId, this.$i18n.locale.toUpperCase()).then(res => {
  602. var data = res.data;
  603. if (data) {
  604. var baseUnitView = res.data.baseUnitView;
  605. if (baseUnitView.showable == '1') {
  606. this.$store.commit('modify', 'enterpriseDetails');
  607. window.localStorage.setItem('router', 'enterpriseDetails');
  608. const {href} = this.$router.resolve({
  609. name: 'enterpriseDetails',
  610. query: {
  611. key: params.unitId
  612. // key:json.baseEntityId,
  613. // member: JSON.stringify(params)
  614. }
  615. });
  616. window.open(href, '_blank');
  617. } else {
  618. this.$store.commit('modify', router);
  619. window.localStorage.setItem('router', router);
  620. const {href} = this.$router.resolve({
  621. name: router,
  622. query: {
  623. key: json.memberId,
  624. member: JSON.stringify(params)
  625. }
  626. });
  627. window.open(href, '_blank');
  628. }
  629. }
  630. });
  631. },
  632. //跳转至热点聚焦
  633. toViewInformationList(router, json) {
  634. clearInterval(this.timer);
  635. const {href} = this.$router.resolve({
  636. name: router,
  637. query: {
  638. key: JSON.stringify(json),
  639. }
  640. });
  641. window.open(href, '_blank');
  642. },
  643. toView(router, json) {
  644. clearInterval(this.timer);
  645. this.$router.push({
  646. name: router,
  647. query: {
  648. key: json,
  649. }
  650. });
  651. },
  652. //跳转至推荐更多
  653. toViewMore(router, json, type) {
  654. this.$router.push({name: router, params: {id: json, type: type}})
  655. },
  656. toViewHot(router, json) {
  657. this.$store.commit('modify', router);
  658. window.localStorage.setItem('router', router);
  659. const {href} = this.$router.resolve({
  660. name: router,
  661. query: {
  662. key: json
  663. }
  664. });
  665. window.open(href, '_blank');
  666. },
  667. // 判断未登录跳转是否关闭
  668. toViewLoginChange(done) {
  669. this.toViewLogin = false;
  670. this.num = 5;
  671. clearInterval(this.timer);
  672. },
  673. Swiper() {
  674. var galleryThumbs = new Swiper(".gallery-thumbs", {
  675. spaceBetween: 10,
  676. slidesPerView: 5,
  677. loop: true,
  678. allowTouchMove: false,
  679. preventClicks: true,
  680. watchSlidesVisibility: true,
  681. watchSlidesProgress: true,
  682. navigation: {
  683. nextEl: '.swiper-button-next',
  684. prevEl: '.swiper-button-prev',
  685. },
  686. autoplay: {//自动播放
  687. delay: 2000,
  688. disableOnInteraction: true,//用户操作后是否停止 默认停止(true)
  689. },
  690. });
  691. },
  692. // 我要发布表单提交
  693. onSubmit() {
  694. this.$refs['thinkTankfrom'].validate((valid1) => {
  695. if (valid1) {
  696. // this.thinkTankConsultation.name = this.userInfomation.name;
  697. // this.thinkTankConsultation.contactInformation = this.userInfomation.newMobile;
  698. // this.thinkTankConsultation.email = this.userInfomation.email;
  699. this.thinkTankConsultation.replyStatus = "0";
  700. this.thinkTankConsultation.approveStatus = "2";
  701. this.thinkTankConsultation.reserveOne = "0";
  702. this.submitHandler((token) => {
  703. saveOrUpdate(JSON.stringify(this.thinkTankConsultation), token).then(res => {
  704. this.$message({
  705. message: this.$i18n.locale.toUpperCase() == "ZH" ? '发布成功' : 'Release success',
  706. type: 'success'
  707. });
  708. this.dialogAssueVisible = false;
  709. this.resetToken();
  710. this.thinkTankConsultation = {
  711. name: "",
  712. post: "",
  713. unitName: "",
  714. contactInformation: "",
  715. email: "",
  716. thinkTankType: "",
  717. content: "",
  718. };
  719. }).catch((error) => {
  720. this.$notify.error({
  721. title: 'common.Error',
  722. message: error.msg
  723. });
  724. })
  725. })
  726. } else {
  727. this.$notify.error({
  728. title: this.$t('common.Error'),
  729. message: this.$t('common.CompleteInformation')
  730. });
  731. return false;
  732. }
  733. })
  734. },
  735. //取消提交
  736. cancelSubmit() {
  737. this.dialogAssueVisible = false;
  738. },
  739. // 点击发布项目按钮
  740. OpenThink() {
  741. if (!this.$Cookies.get('token')) {
  742. this.toViewLogin = true;
  743. } else {
  744. this.dialogAssueVisible = true;
  745. this.getUserMessage()
  746. }
  747. },
  748. //获取表格初始信息
  749. getUserMessage() {
  750. this.getcateClass();
  751. let user = JSON.parse(window.localStorage.getItem('user'));
  752. let userMess = user.umsUser
  753. let userMobile = userMess.userPreferredMobile.substring(4)
  754. this.thinkTankConsultation.name = userMess.userName,
  755. this.thinkTankConsultation.contactInformation = userMobile,
  756. this.thinkTankConsultation.email = userMess.userEmail
  757. this.thinkTankConsultation.post = "";
  758. this.thinkTankConsultation.unitName = "";
  759. }
  760. }
  761. }
  762. </script>
  763. <style scoped>
  764. .box {
  765. margin-top: 10px;
  766. background: #fff;
  767. /* height: 500px; */
  768. padding: 20px 0;
  769. }
  770. .crumbs {
  771. margin-left: 20px;
  772. }
  773. body {
  774. margin: 0;
  775. }
  776. li {
  777. display: inline-block;
  778. color: #1251a7;
  779. }
  780. .projectBox {
  781. width: 100%;
  782. }
  783. .relevanInformation {
  784. min-height: 200px;
  785. max-height: 400px;
  786. padding: 0;
  787. overflow: hidden;
  788. }
  789. .informationList {
  790. width: 100%;
  791. font-size: 12px;
  792. }
  793. .informationTitle {
  794. border-bottom: 1px solid #2C558A;
  795. padding: 0 0 10px 0;
  796. font-weight: 600;
  797. font-size: 20px;
  798. opacity: 0.9;
  799. }
  800. .informationTitleAfter {
  801. position: relative;
  802. }
  803. .informationList ul {
  804. margin-top: 14px;
  805. list-style-type: disc;
  806. padding: 0 0px 0 0;
  807. box-sizing: border-box;
  808. }
  809. .informationList ul li {
  810. width: 100%;
  811. amrgin-left: 20px;
  812. margin-bottom: 12px;
  813. color: #666666;
  814. cursor: pointer;
  815. font-size: 14px;
  816. height: 40px;
  817. line-height: 40px;
  818. }
  819. .informationList ul li .list {
  820. width: 73%;
  821. display: inline-block;
  822. overflow: hidden;
  823. text-overflow: ellipsis;
  824. white-space: nowrap;
  825. }
  826. .demand {
  827. width: 100%;
  828. height: 144px;
  829. background-image: url("../../assets/img/ThinkTankConsulting/List5.png");
  830. background-size: cover;
  831. position: relative;
  832. }
  833. .swipers {
  834. position: absolute;
  835. width: 100%;
  836. height: 100%;
  837. }
  838. .swiper-container {
  839. width: 100%;
  840. height: 100%;
  841. margin-left: auto;
  842. margin-right: auto;
  843. }
  844. .swiper-wrapper {
  845. /*overflow: hidden;*/
  846. position: relative;
  847. display: -webkit-box;
  848. /*display: flex;*/
  849. width: 100%;
  850. }
  851. .swiper-slide {
  852. background-size: cover;
  853. background-position: center;
  854. }
  855. .gallery-thumbs {
  856. overflow: hidden;
  857. box-sizing: border-box;
  858. padding: 10px 0;
  859. }
  860. .gallery-thumbs .swiper-slide {
  861. width: 25%;
  862. height: 100%;
  863. /*opacity: 0.8;*/
  864. }
  865. .gallery-thumbs .swiper-slide-thumb-active {
  866. opacity: 1;
  867. }
  868. .ListOne {
  869. background: url('./../../assets/img/ThinkTankConsulting/List1.png');
  870. }
  871. .ListTwo {
  872. background: url('./../../assets/img/ThinkTankConsulting/List2.png');
  873. }
  874. .ListThree {
  875. background: url('./../../assets/img/ThinkTankConsulting/List3.png');
  876. }
  877. .ListFour {
  878. background: url('./../../assets/img/ThinkTankConsulting/List4.png');
  879. }
  880. .el-carousel__item h3 {
  881. color: #475669;
  882. font-size: 18px;
  883. opacity: 0.75;
  884. margin: 0;
  885. }
  886. .boxOne {
  887. line-height: 37px;
  888. width: 113px;
  889. height: 38px;
  890. cursor: pointer;
  891. display: inline-block;
  892. text-align: center;
  893. border-radius: 5px;
  894. float: right;
  895. padding: 0 10px;
  896. margin: 50px 200px 0px 0;
  897. background: #9dd95c
  898. }
  899. .boxTwo {
  900. line-height: 37px;
  901. width: 113px;
  902. height: 38px;
  903. cursor: pointer;
  904. text-align: center;
  905. border-radius: 5px;
  906. background: #9dd95c;
  907. position: absolute;
  908. left: 810px;
  909. top: 53px;
  910. padding: 0 10px;
  911. }
  912. .square {
  913. width: 8px;
  914. height: 8px;
  915. background: rgb(5, 91, 219);
  916. display: inline-block;
  917. margin-right: 10px;
  918. transform: translateY(-15px);
  919. }
  920. .AssueBox {
  921. padding: 0 20%;
  922. /*width:100%;*/
  923. margin: auto;
  924. }
  925. .AssueBox >>> .el-dialog__header {
  926. border-bottom: 1px solid #bcbcbc;
  927. margin-left: 20px;
  928. margin-right: 20px;
  929. padding: 20px 0 20px;
  930. }
  931. .AssueBox >>> .el-dialog__headerbtn {
  932. display: none;
  933. }
  934. .AssueBox .el-input {
  935. width: 65%;
  936. }
  937. .AssueBox >>> .dialog-footer {
  938. text-align: center;
  939. }
  940. >>> .AssueBox .el-form-item .el-form-item__label {
  941. width: 150px;
  942. }
  943. >>> .el-form-item__error {
  944. left: 32%;
  945. }
  946. </style>
  947. <style>
  948. .thinkSelect {
  949. width: 300px !important;
  950. }
  951. </style>