ThinkTankConsultingMynew.vue 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200
  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.ClimateGovernanceColumn') }}
  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. <!-- 会议相关内容 -->
  190. <div
  191. style="font-size: 18px;color: #666666;font-weight: 700;margin-top: 30px;border-bottom: 1px solid #2C558A;height: 30px;">
  192. <img src="@/assets/img/cooperationExchange/20200608_03.gif" alt=""
  193. style="height: 20px;vertical-align: middle;">
  194. {{ $t('common.ConferenceInformation') }}
  195. <span style="float: right;color:#778AA4;cursor: pointer;font-size: 16px;"
  196. @click="toViewMeeting('conferenceServices')">{{ $t('common.More') }}
  197. ></span>
  198. </div>
  199. <div class="conference-recommend-body">
  200. <ul class="conference-recommend-list">
  201. <li :key="i" v-for="(item, i) in filteredData" @click="toView('ConferenceResult', item.id)">
  202. <!-- <div class="cover" :style="{'backgroundImage': 'url(./api/file/pub/'+item.meetingPicUrl+')'}"></div> -->
  203. <!-- <img v-if="item.flag" src="@/assets/img/conference/conference-noon.png" alt style="width: 320px;height: 220px; margin-top: 30px" />
  204. <img v-if="!item.flag" :src="'./api/fileextend/pub/'+item.meetingPicUrl + '?custom=400_260'" alt style="width: 320px;height: 260px; margin-top: 30px" />-->
  205. <div v-if="item.flag" class="cover" :style="{'backgroundImage': 'url(@/assets/img/conference/conference-noon.png)'}"></div>
  206. <div v-if="!item.flag" class="cover" :style="{'backgroundImage': 'url(./api/fileextend/pub/'+item.meetingPicUrl+'?custom=400_260)'}"></div>
  207. <div class="conference-recommend-list-right">
  208. <p class="title">{{$i18n.locale=='en'?item.meetingNameEn: item.meetingName}}</p>
  209. <p>
  210. <span class="time">{{formatDate(item.meetingStartDate)}} - {{formatDate(item.meetingEndDate)}}</span>
  211. <span class="network" v-if="item.meetingMainFormDict == '02'">{{$i18n.locale=="en"? 'Network Meeting': '网络会议'}}</span>
  212. <span class="place" v-else>{{$i18n.locale=='en'?item.meetingPlaceEn: item.meetingPlace}}</span>
  213. </p>
  214. <p class="introduction plate">{{$i18n.locale=='en'?item.meetingIntroductionEn: item.meetingIntroduction}}</p>
  215. </div>
  216. </li>
  217. </ul>
  218. </div>
  219. </div>
  220. <!--发布咨询需求表单-->
  221. <!-- Form -->
  222. <el-dialog :title="$t('common.ThinkTankConsulting')" :visible.sync="dialogAssueVisible" :close-on-click-modal ="false" class="AssueBox" width="100%" >
  223. <div style="width: 100%; margin: auto">
  224. <el-form ref="thinkTankfrom" :model="thinkTankConsultation" :rules="assueRules"
  225. style="margin: auto;width: 90%;">
  226. <!--咨询类别-->
  227. <el-form-item :label="$t('common.ConsultingCategory')" prop="thinkTankType">
  228. <el-select v-model="thinkTankConsultation.thinkTankType"
  229. :placeholder="$t('common.PleaseSelect2') + $t('common.ConsultingCategory')"
  230. style="width: 65%" popper-class="thinkSelect">
  231. <el-option v-for="item in cateClass" :label="item.label" :value="item.value"
  232. style="width: 70%"></el-option>
  233. </el-select>
  234. </el-form-item>
  235. <!--需求内容-->
  236. <el-form-item :label="$t('common.Demandforcontent')" prop="content">
  237. <el-input type="textarea" style="width: 65%;" :autosize="{ minRows: 4, maxRows: 6 }"
  238. maxlength="1000" show-word-limit
  239. :placeholder="$t('common.PleaseEnter') + $t('common.Demandforcontent')"
  240. v-model="thinkTankConsultation.content" show-word-limit>
  241. </el-input>
  242. </el-form-item>
  243. <!--姓名-->
  244. <el-form-item :label="$t('common.Namethink')" prop="name">
  245. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Namethink')"
  246. v-model="thinkTankConsultation.name" maxlength="100" show-word-limit></el-input>
  247. </el-form-item>
  248. <!--职务-->
  249. <el-form-item :label="$t('common.Position')">
  250. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Position')"
  251. v-model="thinkTankConsultation.post" maxlength="100" show-word-limit></el-input>
  252. </el-form-item>
  253. <!--单位名称-->
  254. <el-form-item :label="$t('common.NameoftheEntity')">
  255. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.NameoftheEntity')"
  256. v-model="thinkTankConsultation.unitName" maxlength="100" show-word-limit></el-input>
  257. </el-form-item>
  258. <!--联系方式-->
  259. <el-form-item :label="$t('common.ContactWay')" prop="contactInformation">
  260. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.ContactWay')"
  261. v-model="thinkTankConsultation.contactInformation" maxlength="11" show-word-limit>
  262. </el-input>
  263. </el-form-item>
  264. <!--邮箱-->
  265. <el-form-item :label="$t('common.Email1')" prop="email">
  266. <el-input :placeholder="$t('common.PleaseEnter') + $t('common.Email1')"
  267. v-model="thinkTankConsultation.email" maxlength="32" show-word-limit></el-input>
  268. </el-form-item>
  269. </el-form>
  270. <div slot="footer" class="dialog-footer">
  271. <el-button @click="cancelSubmit">{{ $t('common.Cancel') }}</el-button>
  272. <el-button type="primary" @click="onSubmit">{{ $t('common.Submit') }}</el-button>
  273. </div>
  274. </div>
  275. </el-dialog>
  276. <!-- 登录提示-->
  277. <el-dialog :title="$i18n.locale == 'zh' ? '提示' : 'Reminder'" :visible.sync="toViewLogin"
  278. :width="$i18n.locale == 'zh' ? '500px' : '750px'" :height="$i18n.locale == 'zh' ? '300px' : '386px'"
  279. :before-close="toViewLoginChange">
  280. <div style="width: 100%;height: 100%;">
  281. <img src="@/assets/img/loginTips.png" alt="" style="width: 180px;height: 180px;margin-left: 20px;">
  282. <div style="float: right;margin-right: 20px;"
  283. :style="$i18n.locale == 'zh' ? 'width: 49%;margin-top: 10px;' : 'width: 453px;margin-top: -25px;'">
  284. <div style="font-size: 20px;font-weight: normal;color: #333333;
  285. font-family: HiraginoSansGB-W3, HiraginoSansGB;
  286. line-height: 40px;">
  287. {{ $t('common.ReminderFirst') }}
  288. </div>
  289. <div style="font-size: 16px;font-family: HiraginoSansGB-W3, HiraginoSansGB;
  290. font-weight: normal;color: #666666;line-height: 30px;">
  291. {{ $t('common.ReminderSecond') }} <span style="color: #0091FF;font-size: 18px;">{{ num }}</span>
  292. {{ $t('common.ReminderThird') }}
  293. </div>
  294. <div
  295. style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;font-weight: normal;color: #666666;line-height: 30px;">
  296. {{ $t('common.ReminderForth') }}
  297. </div>
  298. <div
  299. style="font-size: 14px;font-family: HiraginoSansGB-W3, HiraginoSansGB;height:33px;line-height:60px;font-weight: normal;color: #0091FF;">
  300. <span style="margin-left: 40px;" class="cursor" @click="toView('login')">
  301. {{ $t('common.ReminderFifth') }}
  302. </span>
  303. <span style="margin-left: 10px;" class="cursor" @click="toView('Register')">
  304. {{ $t('common.ReminderSixth') }}
  305. </span>
  306. </div>
  307. </div>
  308. </div>
  309. </el-dialog>
  310. </div>
  311. </div>
  312. </template>
  313. <script>
  314. import Base from "@/views/base/Base";
  315. import {Swiper} from "vue-awesome-swiper";
  316. import Screen from "@/components/screen";
  317. import {getBaseResearchResultViews, getVirtualPowerPlant} from "@/api/research/baseResearchResultView";
  318. import {baseThinkTankInfos} from "@/api/thinkTank/baseThinkTankInfo";
  319. import {hostFocusList, carbonNeutralList} from "@/api/financialService/cmsInformationViews";
  320. import {gateGetUnitViewById} from "@/api/baseUnitView";
  321. import {saveOrUpdate} from "@/api/thinkTank/thinkTankConsultation";
  322. import {getToken} from '@/utils/auth';
  323. import {getUserInfoStatus} from "@/api/userCenter";
  324. import {getDicts} from '@/api/dict'
  325. import { getConfrences, getConfrencesEn, getsOutInfo } from "@/api/meeting/meetingOutInfo";
  326. export default {
  327. name: "ThinkTankConsultingMynew",
  328. components: {Screen},
  329. extends: Base,
  330. data() {
  331. return {
  332. num: 5,
  333. timer: '',
  334. toViewLogin: false,
  335. index: 0,
  336. loading: true,
  337. totalPage: "",
  338. projectFaIcon: 2,
  339. menberDetails: {
  340. dictTypeId: "456",
  341. id: "3140",
  342. img: "group.png",
  343. label: "咨询公司",
  344. num: "42",
  345. value: "08",
  346. },
  347. listInformation: {
  348. pageNo: 1,
  349. pageSize: 5,
  350. language: '',
  351. },
  352. page: {
  353. pageSize: "10",
  354. pageNo: "1",
  355. language: '',
  356. descStatus: '0',
  357. },
  358. consultServe: [
  359. {
  360. title: 'common.ThinkTankMarketResearch',
  361. label: 'common.ThinkTankMarketResearchText'
  362. },
  363. {
  364. title: 'common.ThinkTankProjectConsultation',
  365. label: 'common.ThinkTankProjectConsultationText'
  366. },
  367. {
  368. title: 'common.ThinkTankScienceAndTechnologyInnovation',
  369. label: 'common.ThinkTankScienceAndTechnologyInnovationText'
  370. },
  371. {
  372. title: 'common.ThinkTankPlanningStudy',
  373. label: 'common.ThinkTankPlanningStudyText'
  374. },
  375. ],
  376. init: [],
  377. dict: {},
  378. informationList1: [],
  379. informationList1page: {
  380. pageSize: 5,
  381. pageNo: 1,
  382. language: '',
  383. totalPage: '',
  384. descStatus: 0
  385. },
  386. hotList: {
  387. pageSize: 5,
  388. pageNo: 1,
  389. language: ''
  390. },
  391. HotFocus: [],
  392. RecommendedList: [],
  393. dialogAssueVisible: false,
  394. textarea2: "",
  395. //资讯类别列表
  396. cateClass: [],
  397. //智库咨询表单
  398. thinkTankConsultation: {
  399. name: "",
  400. post: "",
  401. unitName: "",
  402. contactInformation: "",
  403. email: "",
  404. thinkTankType: "",
  405. content: "",
  406. },
  407. //用户信息
  408. userInfomation: {},
  409. countryLastestInfos: [],
  410. conferenceData: [],
  411. filteredData: [],
  412. }
  413. },
  414. updated() {
  415. this.Swiper();
  416. },
  417. computed: {
  418. //表单验证规则
  419. assueRules() {
  420. return {
  421. thinkTankType: [
  422. {
  423. required: true,
  424. message: this.$i18n.locale == 'zh' ? '请选择咨询类别' : 'Please select the type of information',
  425. trigger: 'change'
  426. },
  427. ],
  428. content: [
  429. {
  430. required: true,
  431. message: this.$i18n.locale == 'zh' ? '请输入需求内容' : 'Please enter requirements',
  432. trigger: 'blur'
  433. },
  434. ],
  435. name: [
  436. {
  437. required: true,
  438. message: this.$i18n.locale == 'zh' ? '请输入用户名' : 'Please enter a user name',
  439. trigger: 'blur'
  440. },
  441. ],
  442. contactInformation: [
  443. {
  444. required: true,
  445. message: this.$i18n.locale == 'zh' ? '请输入联系方式' : 'Please enter contact information',
  446. trigger: 'blur'
  447. },
  448. {
  449. pattern: /^0{0,1}(13[0-9]|15[7-9]|153|151|156|18[1-9])[0-9]{8}$/,
  450. message: this.$i18n.locale == 'zh' ? '联系方式格式不正确,请重新输入' : 'Contact number format is incorrect, please re-enter',
  451. trigger: 'blur'
  452. }
  453. ],
  454. email: [
  455. {message: this.$t('common.PleaseFillOut') + this.$t('common.Email'), trigger: 'blur'},
  456. {
  457. pattern: /^[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*@[a-zA-Z0-9]+([-_.][a-zA-Z0-9]+)*\.[a-z]{2,}$/,
  458. message: this.$i18n.locale == 'zh' ? '邮箱格式不正确,请重新输入' : 'Email format is incorrect, please re-enter',
  459. trigger: 'blur'
  460. }
  461. ],
  462. }
  463. }
  464. },
  465. mounted() {
  466. this.getInformationList1();
  467. this.getHotFocus();
  468. this.getRecommended();
  469. this.getInformation();
  470. this.getUserMessage();
  471. this.Myconference();
  472. this.$store.commit('modify', 'enterprise');
  473. window.localStorage.setItem('router', 'enterprise');
  474. },
  475. watch: {
  476. '$i18n.locale'() {
  477. this.getInformationList1();
  478. this.getHotFocus();
  479. this.getRecommended();
  480. this.getInformation(1);
  481. this.getUserMessage();
  482. // this.onSubmit()
  483. },
  484. "toViewLogin"() {
  485. if (this.toViewLogin == true) {
  486. this.loginTipsChange()
  487. }
  488. },
  489. },
  490. methods: {
  491. loginTipsChange() {
  492. const that = this;
  493. this.num = 5;
  494. // clearInterval(timer_interval);
  495. this.timer = setInterval(function () {
  496. if (that.num > 0) {
  497. that.num--;
  498. } else {
  499. if (that.toViewLogin == true) {
  500. clearInterval(that.timer);
  501. that.toView('login');
  502. } else {
  503. clearInterval(that.timer);
  504. }
  505. }
  506. }, 1000)
  507. },
  508. getInformation(value) {
  509. this.listInformation.pageNo = value ? value : 1;
  510. const that = this;
  511. let params = {
  512. pageSize: 5,
  513. pageNo: this.listInformation.pageNo,
  514. language: this.$i18n.locale.toUpperCase(),
  515. columnName: 'VIRTUAL_POWER_PLANT_VPP'
  516. }
  517. // this.listInformation={...params}
  518. getVirtualPowerPlant(params).then((res) => {
  519. this.countryLastestInfos = res.data;
  520. // console.log(this.countryLastestInfos, 11111111);
  521. this.shouldGetBegin = this.countryLastestInfos.length < 5 ? true : false;
  522. if (this.shouldGetBegin) {
  523. this.listInformation.pageNo = 0
  524. }
  525. });
  526. },
  527. //成果展示
  528. getInformationList1() {
  529. const that = this;
  530. let param = that.informationList1page;
  531. param.language = this.$i18n.locale.toUpperCase()
  532. getBaseResearchResultViews(param).then((resulet) => {
  533. let that = this;
  534. let data = resulet.data;
  535. if (data.baseResearchResultViews) {
  536. that.informationList1 = data.baseResearchResultViews;
  537. if (data.page) {
  538. that.informationList1page.totalPage = data.page.totalPage;
  539. }
  540. }
  541. });
  542. },
  543. //热点聚焦
  544. // getHotFocus(){
  545. // const that = this;
  546. // this.hotList.language = this.$i18n.locale.toUpperCase();
  547. // hostFocusList(this.hotList).then((res)=>{
  548. // if(res.data.length>0){
  549. // this.HotFocus = res.data;
  550. // }else{
  551. // this.hotList.pageNo = 1
  552. // }
  553. // })
  554. // },
  555. getHotFocus() {
  556. const that = this;
  557. this.hotList.language = this.$i18n.locale.toUpperCase();
  558. carbonNeutralList(this.hotList).then((res) => {
  559. if (res.data.length > 0) {
  560. this.HotFocus = res.data;
  561. } else {
  562. this.hotList.pageNo = 1;
  563. this.getHotFocus();
  564. }
  565. })
  566. },
  567. //智库推荐
  568. getRecommended() {
  569. let that = this;
  570. const recomParams = {
  571. // pageSize:5,
  572. // pageNo: 1,
  573. language: this.$i18n.locale.toUpperCase(),
  574. };
  575. baseThinkTankInfos(recomParams).then((res) => {
  576. this.RecommendedList = res.data.baseThinkTankInfos;
  577. for (let i = 0; i < this.RecommendedList.length; i++) {
  578. if (this.RecommendedList[i].photo == null) {
  579. this.RecommendedList[i].photo = '/def/def1.png';
  580. }
  581. }
  582. })
  583. },
  584. //成果展示 换一批
  585. resultsShowChange() {
  586. // let a = this.informationList1page.totalPage;
  587. // this.informationList1page.pageNo = Math.ceil(Math.random()*a);
  588. if (this.informationList1page.pageNo == this.informationList1page.totalPage) {
  589. this.informationList1page.pageNo = 0;
  590. }
  591. this.informationList1page.pageNo++
  592. this.getInformationList1();
  593. },
  594. // 热点聚焦换一批
  595. changePage() {
  596. this.hotList.pageNo = this.hotList.pageNo + 1;
  597. this.getHotFocus();
  598. },
  599. //查询热点聚焦
  600. toInformationList1(ele) {
  601. let params = {
  602. entityId: ele.entityId,
  603. // researchResultFileId:ele.researchResultFileId,
  604. }
  605. this.toViewInformationList('resourceSharingDetails', params)
  606. },
  607. //查询咨询类别列表
  608. getcateClass() {
  609. if (this.$i18n.locale == 'zh') {
  610. getDicts('THINK_TANK_TYPE_DICT').then((res) => {
  611. this.cateClass = res.data[0]
  612. })
  613. } else {
  614. getDicts('THINK_TANK_TYPE_DICT_EN').then((res) => {
  615. this.cateClass = res.data[0]
  616. })
  617. }
  618. },
  619. /* 跳转类 */
  620. //跳转 发布咨询需求
  621. toIssue() {
  622. if (!this.$Cookies.get('token')) {
  623. this.toViewLogin = true;
  624. } else {
  625. this.toViewHot('addMyProject')
  626. }
  627. },
  628. //跳转 智库详情
  629. toDetails(router, json) {
  630. let params = {
  631. unitId: json.baseEntityId,
  632. memberNameZh: json.unitName,
  633. memberNameEn: json.unitNameEn
  634. }
  635. gateGetUnitViewById(json.baseEntityId, this.$i18n.locale.toUpperCase()).then(res => {
  636. var data = res.data;
  637. if (data) {
  638. var baseUnitView = res.data.baseUnitView;
  639. if (baseUnitView.showable == '1') {
  640. this.$store.commit('modify', 'enterpriseDetails');
  641. window.localStorage.setItem('router', 'enterpriseDetails');
  642. const {href} = this.$router.resolve({
  643. name: 'enterpriseDetails',
  644. query: {
  645. key: params.unitId
  646. // key:json.baseEntityId,
  647. // member: JSON.stringify(params)
  648. }
  649. });
  650. window.open(href, '_blank');
  651. } else {
  652. this.$store.commit('modify', router);
  653. window.localStorage.setItem('router', router);
  654. const {href} = this.$router.resolve({
  655. name: router,
  656. query: {
  657. key: json.memberId,
  658. member: JSON.stringify(params)
  659. }
  660. });
  661. window.open(href, '_blank');
  662. }
  663. }
  664. });
  665. },
  666. //跳转至热点聚焦
  667. toViewInformationList(router, json) {
  668. clearInterval(this.timer);
  669. const {href} = this.$router.resolve({
  670. name: router,
  671. query: {
  672. key: JSON.stringify(json),
  673. }
  674. });
  675. window.open(href, '_blank');
  676. },
  677. toView(router, json) {
  678. clearInterval(this.timer);
  679. this.$router.push({
  680. name: router,
  681. query: {
  682. key: json,
  683. }
  684. });
  685. },
  686. //跳转至推荐更多
  687. toViewMore(router, json, type) {
  688. this.$router.push({name: router, params: {id: json, type: type}})
  689. },
  690. toViewHot(router, json) {
  691. this.$store.commit('modify', router);
  692. window.localStorage.setItem('router', router);
  693. const {href} = this.$router.resolve({
  694. name: router,
  695. query: {
  696. key: json
  697. }
  698. });
  699. window.open(href, '_blank');
  700. },
  701. //跳转到会议页面
  702. toViewMeeting(router) {
  703. this.$store.commit('modify', router);
  704. window.localStorage.setItem('router', router);
  705. const {href} = this.$router.resolve({
  706. name: router,
  707. });
  708. window.open(href, '_blank');
  709. },
  710. Swiper() {
  711. var galleryThumbs = new Swiper(".gallery-thumbs", {
  712. spaceBetween: 10,
  713. slidesPerView: 5,
  714. loop: true,
  715. allowTouchMove: false,
  716. preventClicks: true,
  717. watchSlidesVisibility: true,
  718. watchSlidesProgress: true,
  719. navigation: {
  720. nextEl: '.swiper-button-next',
  721. prevEl: '.swiper-button-prev',
  722. },
  723. autoplay: {//自动播放
  724. delay: 2000,
  725. disableOnInteraction: true,//用户操作后是否停止 默认停止(true)
  726. },
  727. });
  728. },
  729. // 我要发布表单提交
  730. onSubmit() {
  731. this.$refs['thinkTankfrom'].validate((valid1) => {
  732. if (valid1) {
  733. // this.thinkTankConsultation.name = this.userInfomation.name;
  734. // this.thinkTankConsultation.contactInformation = this.userInfomation.newMobile;
  735. // this.thinkTankConsultation.email = this.userInfomation.email;
  736. this.thinkTankConsultation.replyStatus = "0";
  737. this.thinkTankConsultation.approveStatus = "2";
  738. this.thinkTankConsultation.reserveOne = "0";
  739. this.submitHandler((token) => {
  740. saveOrUpdate(JSON.stringify(this.thinkTankConsultation), token).then(res => {
  741. this.$message({
  742. message: this.$i18n.locale.toUpperCase() == "ZH" ? '发布成功' : 'Release success',
  743. type: 'success'
  744. });
  745. this.dialogAssueVisible = false;
  746. this.resetToken();
  747. this.thinkTankConsultation = {
  748. name: "",
  749. post: "",
  750. unitName: "",
  751. contactInformation: "",
  752. email: "",
  753. thinkTankType: "",
  754. content: "",
  755. };
  756. }).catch((error) => {
  757. this.$notify.error({
  758. title: 'common.Error',
  759. message: error.msg
  760. });
  761. })
  762. })
  763. } else {
  764. this.$notify.error({
  765. title: this.$t('common.Error'),
  766. message: this.$t('common.CompleteInformation')
  767. });
  768. return false;
  769. }
  770. })
  771. },
  772. //取消提交
  773. cancelSubmit() {
  774. this.dialogAssueVisible = false;
  775. },
  776. // 点击发布项目按钮
  777. OpenThink() {
  778. if (!this.$Cookies.get('token')) {
  779. this.toViewLogin = true;
  780. } else {
  781. this.dialogAssueVisible = true;
  782. this.getUserMessage()
  783. }
  784. },
  785. //获取表格初始信息
  786. getUserMessage() {
  787. this.getcateClass();
  788. let user = JSON.parse(window.localStorage.getItem('user'));
  789. let userMess = user.umsUser
  790. let userMobile = userMess.userPreferredMobile.substring(4)
  791. this.thinkTankConsultation.name = userMess.userName,
  792. this.thinkTankConsultation.contactInformation = userMobile,
  793. this.thinkTankConsultation.email = userMess.userEmail
  794. this.thinkTankConsultation.post = "";
  795. this.thinkTankConsultation.unitName = "";
  796. },
  797. //获取中文会议或英文会议
  798. Myconference(){
  799. if(this.$i18n.locale=='en'){
  800. getConfrencesEn().then(res=>{
  801. this.bannerData = [];
  802. this.conferenceData = [];
  803. res.data.meetingBasicInfos.forEach(item=>{
  804. if(!item.meetingPicUrl){
  805. this.$set(item,'flag','true');
  806. }
  807. // 报名未开始会议
  808. if(!this.isMeetingOver(item.meetingEndDate) && item.meetingIsShow=="01" && item.meetingIsEnroll=="01"){
  809. this.conferenceData.push(item);
  810. }
  811. // 已结束会议
  812. if(this.isMeetingOver(item.meetingEndDate) && item.meetingIsShow=="01"){
  813. this.conferenceData.push(item);
  814. }
  815. })
  816. this.filteredData.push(this.conferenceData[0]);
  817. })
  818. }else{
  819. getConfrences().then(res=>{
  820. // console.log('6666666666666',res)
  821. // this.conferenceData = res.data.meetingBasicInfos.filter((item)=>{
  822. // return item.meetingIsShow == '01';
  823. // })
  824. this.bannerData = [];
  825. this.conferenceData = [];
  826. res.data.meetingBasicInfos.forEach(item=>{
  827. if(!item.meetingPicUrl){
  828. this.$set(item,'flag','true');
  829. }
  830. // 报名未开始会议
  831. if(!this.isMeetingOver(item.meetingEndDate) && item.meetingIsShow=="01" && item.meetingIsEnroll=="01"){
  832. this.conferenceData.push(item);
  833. }
  834. // 已结束会议
  835. if(this.isMeetingOver(item.meetingEndDate) && item.meetingIsShow=="01"){
  836. this.conferenceData.push(item);
  837. }
  838. })
  839. this.filteredData.push(this.conferenceData[0]);
  840. console.log('奇了怪了',this.filteredData)
  841. // console.log('会议', this.conferenceData)
  842. })
  843. };
  844. },
  845. // 判断会议是否结束
  846. isMeetingOver(t){
  847. var ct = Date.parse(new Date());
  848. if(ct-t > 0){
  849. return true;
  850. }else{
  851. return false;
  852. }
  853. },
  854. }
  855. }
  856. </script>
  857. <style scoped>
  858. .box {
  859. margin-top: 10px;
  860. background: #fff;
  861. /* height: 500px; */
  862. padding: 20px 0;
  863. }
  864. .crumbs {
  865. margin-left: 20px;
  866. }
  867. body {
  868. margin: 0;
  869. }
  870. li {
  871. display: inline-block;
  872. color: #1251a7;
  873. }
  874. .projectBox {
  875. width: 100%;
  876. }
  877. .relevanInformation {
  878. min-height: 200px;
  879. max-height: 400px;
  880. padding: 0;
  881. overflow: hidden;
  882. }
  883. .informationList {
  884. width: 100%;
  885. font-size: 12px;
  886. }
  887. .informationTitle {
  888. border-bottom: 1px solid #2C558A;
  889. padding: 0 0 10px 0;
  890. font-weight: 600;
  891. font-size: 20px;
  892. opacity: 0.9;
  893. }
  894. .informationTitleAfter {
  895. position: relative;
  896. }
  897. .informationList ul {
  898. margin-top: 14px;
  899. list-style-type: disc;
  900. padding: 0 0px 0 0;
  901. box-sizing: border-box;
  902. }
  903. .informationList ul li {
  904. width: 100%;
  905. amrgin-left: 20px;
  906. margin-bottom: 12px;
  907. color: #666666;
  908. cursor: pointer;
  909. font-size: 14px;
  910. height: 40px;
  911. line-height: 40px;
  912. }
  913. .informationList ul li .list {
  914. width: 73%;
  915. display: inline-block;
  916. overflow: hidden;
  917. text-overflow: ellipsis;
  918. white-space: nowrap;
  919. }
  920. .demand {
  921. width: 100%;
  922. height: 144px;
  923. background-image: url("../../assets/img/ThinkTankConsulting/List5.png");
  924. background-size: cover;
  925. position: relative;
  926. }
  927. .swipers {
  928. position: absolute;
  929. width: 100%;
  930. height: 100%;
  931. }
  932. .swiper-container {
  933. width: 100%;
  934. height: 100%;
  935. margin-left: auto;
  936. margin-right: auto;
  937. }
  938. .swiper-wrapper {
  939. /*overflow: hidden;*/
  940. position: relative;
  941. display: -webkit-box;
  942. /*display: flex;*/
  943. width: 100%;
  944. }
  945. .swiper-slide {
  946. background-size: cover;
  947. background-position: center;
  948. }
  949. .gallery-thumbs {
  950. overflow: hidden;
  951. box-sizing: border-box;
  952. padding: 10px 0;
  953. }
  954. .gallery-thumbs .swiper-slide {
  955. width: 25%;
  956. height: 100%;
  957. /*opacity: 0.8;*/
  958. }
  959. .gallery-thumbs .swiper-slide-thumb-active {
  960. opacity: 1;
  961. }
  962. .ListOne {
  963. background: url('./../../assets/img/ThinkTankConsulting/List1.png');
  964. }
  965. .ListTwo {
  966. background: url('./../../assets/img/ThinkTankConsulting/List2.png');
  967. }
  968. .ListThree {
  969. background: url('./../../assets/img/ThinkTankConsulting/List3.png');
  970. }
  971. .ListFour {
  972. background: url('./../../assets/img/ThinkTankConsulting/List4.png');
  973. }
  974. .el-carousel__item h3 {
  975. color: #475669;
  976. font-size: 18px;
  977. opacity: 0.75;
  978. margin: 0;
  979. }
  980. .boxOne {
  981. line-height: 37px;
  982. width: 113px;
  983. height: 38px;
  984. cursor: pointer;
  985. display: inline-block;
  986. text-align: center;
  987. border-radius: 5px;
  988. float: right;
  989. padding: 0 10px;
  990. margin: 50px 200px 0px 0;
  991. background: #9dd95c
  992. }
  993. .boxTwo {
  994. line-height: 37px;
  995. width: 113px;
  996. height: 38px;
  997. cursor: pointer;
  998. text-align: center;
  999. border-radius: 5px;
  1000. background: #9dd95c;
  1001. position: absolute;
  1002. left: 810px;
  1003. top: 53px;
  1004. padding: 0 10px;
  1005. }
  1006. .square {
  1007. width: 8px;
  1008. height: 8px;
  1009. background: rgb(5, 91, 219);
  1010. display: inline-block;
  1011. margin-right: 10px;
  1012. transform: translateY(-15px);
  1013. }
  1014. .AssueBox {
  1015. padding: 0 20%;
  1016. /*width:100%;*/
  1017. margin: auto;
  1018. }
  1019. .AssueBox >>> .el-dialog__header {
  1020. border-bottom: 1px solid #bcbcbc;
  1021. margin-left: 20px;
  1022. margin-right: 20px;
  1023. padding: 20px 0 20px;
  1024. }
  1025. .AssueBox >>> .el-dialog__headerbtn {
  1026. display: none;
  1027. }
  1028. .AssueBox .el-input {
  1029. width: 65%;
  1030. }
  1031. .AssueBox >>> .dialog-footer {
  1032. text-align: center;
  1033. }
  1034. >>> .AssueBox .el-form-item .el-form-item__label {
  1035. width: 150px;
  1036. }
  1037. >>> .el-form-item__error {
  1038. left: 32%;
  1039. }
  1040. .conference-recommend-body{
  1041. /* display: flex;
  1042. justify-content: space-between; */
  1043. font-size: 16px;
  1044. color: #555;
  1045. /* min-height: 693px; */
  1046. }
  1047. .conference-recommend-body .cover{
  1048. width: 100%;
  1049. background-size: 100% 100%;
  1050. }
  1051. .conference-recommend-body .title{
  1052. font-size: 18px;
  1053. font-weight: bold;
  1054. color: #333;
  1055. margin-bottom: 20px;
  1056. margin-top: 10px;
  1057. }
  1058. .conference-recommend-list{
  1059. /* width: 55%; */
  1060. display: flex;
  1061. flex-wrap: wrap;
  1062. }
  1063. .conference-recommend-list .introduction{
  1064. height: 106px;
  1065. line-height: 28px;
  1066. -webkit-box-orient: vertical;
  1067. position:relative;
  1068. line-height:1.4em;
  1069. overflow: hidden;
  1070. height:7em
  1071. }
  1072. .conference-recommend-list .cover{
  1073. height: 220px;
  1074. width: 320px;
  1075. }
  1076. .conference-recommend-list .title{
  1077. overflow: hidden;
  1078. color: #2c558a;
  1079. font-size: 24px;
  1080. line-height: 24px;
  1081. margin-top: 0;
  1082. }
  1083. .conference-recommend-list li{
  1084. width: 100%;
  1085. /* padding: 10px; */
  1086. position: relative;
  1087. cursor: pointer;
  1088. display: flex;
  1089. padding: 20px;
  1090. background: #fff;
  1091. margin-bottom: 20px;
  1092. }
  1093. .conference-recommend-list-right{
  1094. flex: 1;
  1095. margin-left: 20px;
  1096. }
  1097. .conference-recommend-list-right p span{
  1098. margin-right: 20px;
  1099. }
  1100. .conference-recommend-list .status{
  1101. width: 80px;
  1102. line-height: 26px;
  1103. position: absolute;
  1104. top: 0px;
  1105. right: 0px;
  1106. background: #e43f3f;
  1107. color: #fff;
  1108. font-size: 14px;
  1109. text-align: center;
  1110. border-radius: 0px 0px 0px 13px;
  1111. }
  1112. </style>