NationaIntroductionList.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <template>
  2. <div>
  3. <div v-if="introduce[0]" :class="introduce[0].length>0?'introduceBorder':''">
  4. <div class="introduce" v-for="(item,index) in introduce[0]">
  5. <div class="introduceItem">
  6. <!-- title -->
  7. <div :class="$i18n.locale=='zh'?'introduceItemTitle':'introduceItemTitleEn'"
  8. v-if="index==0">{{type=='region'?committeePostDictsMap[item.regionDutyDict]:committeeUnitPostDictsMap[item.countryDutyDict]}}</div>
  9. <!-- 头像 -->
  10. <div class="introduce_F5FAFF" style="position: relative;">
  11. <div style="min-height: 100px;float: left">
  12. <img v-if = "!item.spareTwo" src="@/assets/img/projectPresentation/user.png" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  13. <img v-else :src="'/api/file/pub/' + item.spareTwo" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  14. <!-- 名字国家 -->
  15. <div class="introduceItemName">
  16. <div class="introduceItemPersonnel" @click="toView('NationalPersonnelProfile',item.entityId)">
  17. {{$i18n.locale == 'zh'?item.name:item.nameEn}}
  18. </div>
  19. <div class="introduceItemCountry">
  20. <span v-if="item.countryDict">(</span>{{countryDictsMap[item.countryDict]}} <span v-if="item.countryDict">)</span>
  21. </div>
  22. </div>
  23. </div>
  24. <div style="clear: both;"></div>
  25. <div class="regionalIntroduce" v-html="item.correlationType =='C'?item.unitProfile:item.personalProfileUe">
  26. </div>
  27. <i class="el-icon-d-arrow-right cursor" @click="toView('NationalPersonnelProfile',item.entityId)" v-if="item.unitProfile"
  28. style="position: absolute;bottom: 56px;right: 30px;color: #66b1ff;font-weight: 700;"></i>
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. <div v-if="introduce[1]" :class="introduce[1].length>0?'introduceBorder':''">
  34. <div class="introduce" v-for="(item,index) in introduce[1]">
  35. <div class="introduceItem">
  36. <!-- title -->
  37. <div :class="$i18n.locale=='zh'?'introduceItemTitle':'introduceItemTitleEn'" v-if="index==0">{{type=='region'?committeePostDictsMap[item.regionDutyDict]:committeePostDictsMap[item.countryDutyDict]}}</div>
  38. <!-- 头像 -->
  39. <div class="introduce_F5FAFF" style="position: relative;">
  40. <div style="min-height: 100px;float: left">
  41. <img v-if = "!item.spareTwo" src="@/assets/img/projectPresentation/user.png" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  42. <img v-else :src="'/api/file/pub/' + item.spareTwo" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  43. <!-- 名字国家 -->
  44. <div class="introduceItemName">
  45. <div class="introduceItemPersonnel" @click="toView('NationalPersonnelProfile',item.entityId)">
  46. {{$i18n.locale == 'zh'?item.name:item.nameEn}}
  47. </div>
  48. <div class="introduceItemCountry">
  49. <span v-if="item.countryDict">(</span>{{countryDictsMap[item.countryDict]}} <span v-if="item.countryDict">)</span>
  50. </div>
  51. </div>
  52. </div>
  53. <div style="clear: both;"></div>
  54. <div class="regionalIntroduce" v-html="item.correlationType =='C'?item.unitProfile:item.personalProfileUe">
  55. </div>
  56. <i class="el-icon-d-arrow-right cursor" @click="toView('NationalPersonnelProfile',item.entityId)" v-if="item.correlationType =='C' && item.unitProfile || item.correlationType !=='C' && item.personalProfileUe"
  57. style="position: absolute;bottom: 56px;right: 30px;color: #66b1ff;font-weight: 700;"></i>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div v-if="introduce[2]" :class="introduce[2].length>0?'introduceBorder':''">
  63. <div class="introduce" v-for="(item,index) in introduce[2]">
  64. <div class="introduceItem" >
  65. <!-- title -->
  66. <div :class="$i18n.locale=='zh'?'introduceItemTitle':'introduceItemTitleEn'" v-if="index==0">{{type=='region'?committeePostDictsMap[item.regionDutyDict]:committeePostDictsMap[item.countryDutyDict]}}</div>
  67. <!-- 头像 -->
  68. <div class="introduce_F5FAFF" style="position: relative;">
  69. <div style="min-height: 100px;float: left">
  70. <img v-if = "!item.spareTwo" src="@/assets/img/projectPresentation/user.png" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  71. <img v-else :src="'/api/file/pub/' + item.spareTwo" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  72. </div>
  73. <!-- 名字国家 -->
  74. <div class="introduceItemName">
  75. <div class="introduceItemPersonnel" @click="toView('NationalPersonnelProfile',item.entityId)">
  76. {{$i18n.locale == 'zh'?item.name:item.nameEn}}
  77. </div>
  78. <div class="introduceItemCountry">
  79. <span v-if="item.countryDict">(</span>{{countryDictsMap[item.countryDict]}} <span v-if="item.countryDict">)</span>
  80. </div>
  81. </div>
  82. <div style="clear: both;"></div>
  83. <div class="regionalIntroduce" v-html="item.personalProfileUe">
  84. </div>
  85. <i class="el-icon-d-arrow-right cursor" v-if="item.correlationType =='C' && item.unitProfile || item.correlationType !=='C' && item.personalProfileUe"
  86. style="position: absolute;bottom: 56px;right: 30px;
  87. color: #66b1ff;font-weight: 700;" @click="toView('NationalPersonnelProfile',item.entityId)">
  88. </i>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <!-- -->
  94. <div v-if="introduce[3]" :class="introduce[3].length>0?'introduceBorder':''">
  95. <!-- -->
  96. <div class="introduce" v-for="(item,index) in introduce[3]" >
  97. <div class="introduceItem" >
  98. <!-- title -->
  99. <div :class="$i18n.locale=='zh'?'introduceItemTitle':'introduceItemTitleEn'" v-if="index == 0">{{type=='region'?committeePostDictsMap[item.regionDutyDict]:committeePostDictsMap[item.countryDutyDict]}}</div>
  100. <!-- 头像 -->
  101. <div class="introduce_F5FAFF" style="position: relative;">
  102. <!-- -->
  103. <div style="min-height: 100px;float: left">
  104. <img v-if = "!item.spareTwo" src="@/assets/img/projectPresentation/user.png" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  105. <img v-else :src="'/api/file/pub/' + item.spareTwo" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  106. </div>
  107. <!-- 名字国家 -->
  108. <div class="introduceItemName">
  109. <div class="introduceItemPersonnel" @click="toView('NationalPersonnelProfile',item.entityId)">
  110. {{$i18n.locale == 'zh'?item.name:item.nameEn}}
  111. </div>
  112. <div class="introduceItemCountry">
  113. <span v-if="item.countryDict">(</span>{{countryDictsMap[item.countryDict]}} <span v-if="item.countryDict">)</span>
  114. </div>
  115. </div>
  116. <div style="clear: both;"></div>
  117. <div class="regionalIntroduce" v-html="item.correlationType =='C'?item.unitProfile:item.personalProfileUe"></div>
  118. <i class="el-icon-d-arrow-right cursor" @click="toView('NationalPersonnelProfile',item.entityId)" v-if="item.correlationType =='C' && item.unitProfile || item.correlationType !=='C' && item.personalProfileUe"
  119. style="position: absolute;bottom: 56px;right: 30px;color: #66b1ff;font-weight: 700;"></i>
  120. </div>
  121. </div>
  122. </div>
  123. </div>
  124. <div v-if="introduce[4]" :class="introduce[4].length>0?'introduceBorder':''">
  125. <div class="introduce" v-for="(item,index) in introduce[4]">
  126. <div class="introduceItem">
  127. <!-- title -->
  128. <div :class="$i18n.locale=='zh'?'introduceItemTitle':'introduceItemTitleEn'"
  129. v-if="index==0">{{type=='region'?committeePostDictsMap[item.regionDutyDict]:committeePostDictsMap[item.countryDutyDict]}}</div>
  130. <!-- 头像 -->
  131. <div class="introduce_F5FAFF" style="position: relative;">
  132. <div style="min-height: 100px;float: left">
  133. <img v-if = "!item.spareTwo" src="@/assets/img/projectPresentation/user.png" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  134. <img v-else :src="'/api/file/pub/' + item.spareTwo" alt="" :class="$i18n.locale=='zh'?'introduceItemImg':'introduceItemImgEn'">
  135. </div>
  136. <!-- 名字国家 -->
  137. <div class="introduceItemName">
  138. <div class="introduceItemPersonnel" @click="toView('NationalPersonnelProfile',item.entityId)">
  139. {{$i18n.locale == 'zh'?item.name:item.nameEn}}
  140. </div>
  141. <div class="introduceItemCountry">
  142. <span v-if="item.countryDict">
  143. ({{countryDictsMap[item.countryDict]}})
  144. </span>
  145. </div>
  146. </div>
  147. <div style="clear: both;"></div>
  148. <div class="regionalIntroduce" v-html="item.correlationType =='C'?item.unitProfile:item.personalProfileUe"></div>
  149. <i class="el-icon-d-arrow-right cursor" style="position: absolute;bottom: 56px;right: 30px;
  150. color: #66b1ff;font-weight: 700;" v-if=" item.correlationType=='C' && item.unitProfile" @click="toView('NationalPersonnelProfile',item.entityId)"></i>
  151. <i class="el-icon-d-arrow-right cursor" style="position: absolute;bottom: 56px;right: 30px;
  152. color: #66b1ff;font-weight: 700;" v-if=" item.correlationType!=='C' && item.personalProfileUe" @click="toView('NationalPersonnelProfile',item.entityId)"></i>
  153. </div>
  154. </div>
  155. </div>
  156. </div>
  157. </div>
  158. </template>
  159. <script>
  160. import { getDicts } from "@/api/dict";
  161. export default {
  162. name: "NationalregionalCommissions",
  163. props:[ 'introduce','type'],
  164. components: {Screen},
  165. data () {
  166. return {
  167. committeePostDicts:[],
  168. committeeUnitPostDicts:[],
  169. countryDicts:[],
  170. }
  171. },
  172. mounted(){
  173. this.getDict();
  174. },
  175. watch: {
  176. "$i18n.locale"() {
  177. this.getDict();
  178. },
  179. "introduce"(){
  180. this.$forceUpdate();
  181. }
  182. },
  183. computed: {
  184. committeePostDictsMap(){
  185. return this.committeePostDicts.array2Obj("value","label");
  186. },
  187. committeeUnitPostDictsMap(){
  188. return this.committeeUnitPostDicts.array2Obj("value","label");
  189. },
  190. countryDictsMap(){
  191. return this.countryDicts.array2Obj("value","label");
  192. },
  193. },
  194. methods:{
  195. getDict() {
  196. getDicts("COMMITTEE_POST_DICT,COMMITTEE_POST_DICT_EN,COMMITTEE_UNIT_POST_DICT,COMMITTEE_UNIT_POST_DICT_EN,UNIT_COUNTRY_DICT,UNIT_COUNTRY_DICT_EN").then(res => {
  197. var data = res.data;
  198. if(data){
  199. if(this.$i18n.locale == 'zh'){
  200. this.committeePostDicts = res.data[0] ||[];
  201. this.committeeUnitPostDicts = res.data[2] ||[];
  202. this.countryDicts = res.data[4] || [];
  203. }else if(this.$i18n.locale == 'en'){
  204. this.committeePostDicts = res.data[1] ||[];
  205. this.committeeUnitPostDicts = res.data[3] ||[];
  206. this.countryDicts = res.data[5] || [];
  207. }
  208. }
  209. });
  210. },
  211. toView(router,json){
  212. this.$store.commit('modify', router);
  213. window.localStorage.setItem('router', router);
  214. const { href } = this.$router.resolve({
  215. name: router,
  216. query: {
  217. key: json
  218. },
  219. });
  220. window.open(href, '_blank');
  221. },
  222. }
  223. }
  224. </script>
  225. <style scoped>
  226. .marginTop {
  227. margin-top: 20px;
  228. }
  229. .title {
  230. width: 100%;
  231. height: 60px;
  232. background-color: #EBF5FF;
  233. text-align: center;
  234. color: #1890FF;
  235. line-height: 60px;
  236. font-size: 25px;
  237. font-family: PingFangSC-Semibold, PingFang SC;
  238. font-weight: 600;
  239. }
  240. .missions {
  241. margin-top: 30px;
  242. }
  243. .missionsLeft {
  244. float: left;
  245. width: 258px;
  246. height: 430px;
  247. }
  248. .missionsLeft li {
  249. width: 100%;
  250. height: 50px;
  251. text-align: center;
  252. font-size: 20px;
  253. font-family: PingFangSC-Semibold, PingFang SC;
  254. line-height: 50px;
  255. letter-spacing: 1px;
  256. border-radius: 5px;
  257. cursor: pointer;
  258. overflow: hidden;
  259. margin-bottom: 3px;
  260. }
  261. .missionsLeft .liTager {
  262. background-color: #1890FF;
  263. color: #FFFFFF;
  264. }
  265. .missionsLeft .liNoTager {
  266. background-color: #EBF5FF;
  267. color: #333333;
  268. }
  269. .missionsRight {
  270. float: right;
  271. width: 900px;
  272. }
  273. .missionsRightTitle {
  274. font-size: 23px;
  275. font-family: PingFangSC-Semibold, PingFang SC;
  276. font-weight: 500;
  277. color: #1890FF;
  278. line-height: 32px;
  279. }
  280. .briefIntroduction {
  281. font-size: 16px;
  282. font-family: PingFangSC-Regular, PingFang SC;
  283. font-weight: 400;
  284. color: #333333;
  285. line-height: 30px;
  286. margin: 20px 0 12px 0;
  287. text-indent: 2em;
  288. }
  289. .email {
  290. font-size: 16px;
  291. font-family: PingFangSC-Regular, PingFang SC;
  292. font-weight: 400;
  293. color: #333333;
  294. margin-bottom: 20px;
  295. line-height: 22px;
  296. }
  297. .introduce {
  298. margin-top: 10px;
  299. }
  300. .introduceBorder {
  301. border-top: 1px solid rgba(0,121,239,.5);
  302. }
  303. .introduceItem {
  304. margin: 10px 0;
  305. position: relative;
  306. }
  307. .introduceItem :hover .iconRight{
  308. color: #0091FF;
  309. }
  310. .introduceItemTitle {
  311. width: 100px;
  312. height: 34px;
  313. line-height: 34px;
  314. z-index: 99;
  315. border: 1px solid #0091FF;
  316. text-align: center;
  317. color: #0091FF;
  318. position: absolute;
  319. top: 25px;
  320. left: 0px;
  321. }
  322. .introduceItemTitleEn {
  323. width: 117px;
  324. line-height: 34px;
  325. border: 1px solid #0091FF;
  326. text-align: center;
  327. color: #0091FF;
  328. position: absolute;
  329. z-index: 99;
  330. top: 25px;
  331. left: 0px;
  332. }
  333. .borderBottom {
  334. /* border-bottom: 1px solid #0091FF; */
  335. }
  336. .introduceItemImg {
  337. width: 80px;height: 80px;
  338. position: absolute;
  339. border-radius: 45px;
  340. overflow: hidden;
  341. top: 10px;
  342. left: 10px;
  343. }
  344. .introduceItemImgEn {
  345. width: 80px;height: 80px;
  346. position: absolute;
  347. border-radius: 45px;
  348. overflow: hidden;
  349. top: 10px;
  350. left: 10px;
  351. }
  352. .introduceItemName {
  353. width: 625px;
  354. position: absolute;
  355. top: 10px;
  356. left: 100px;
  357. padding: 10px 0;
  358. }
  359. .introduceItemPersonnel {
  360. width: 100%;
  361. font-size: 20px;
  362. font-family: PingFangSC-Semibold, PingFang SC;
  363. font-weight: 600;
  364. text-align: center;
  365. color: #333333;
  366. line-height: 20px;/*原值28 临时处理*/
  367. max-height: 60px;
  368. overflow: hidden;
  369. text-overflow: ellipsis;
  370. display: -webkit-box;
  371. -webkit-line-clamp: 2;
  372. -webkit-box-orient: vertical;
  373. cursor: pointer;
  374. }
  375. .introduceItemPersonnel:hover {
  376. color: #0091FF;
  377. }
  378. .introduceItemCountry {
  379. font-size: 14px;
  380. text-align: center;
  381. font-family: PingFangSC-Regular, PingFang SC;
  382. font-weight: 400;
  383. color: #333333;
  384. line-height: 22px;
  385. }
  386. .regionalIntroduce {
  387. width: 620px;
  388. /* height: 66px; */
  389. color: #333333;
  390. line-height: 22px;
  391. overflow: hidden;
  392. margin-left: 110px;
  393. font-size: 16px;
  394. max-height: 66px;
  395. /*margin-top: -20px;*/
  396. position: relative;
  397. top: -20px;
  398. /* text-indent: 2em; */
  399. overflow: hidden;
  400. text-overflow: ellipsis;
  401. display: -webkit-box;
  402. -webkit-line-clamp: 3;
  403. -webkit-box-orient: vertical;
  404. }
  405. .dynamic {
  406. padding: 20px 0 10px 0;
  407. font-size: 16px;
  408. font-family: HiraginoSansGB-W6, HiraginoSansGB;
  409. font-weight: normal;
  410. color: #1890FF;
  411. line-height: 30px;
  412. }
  413. .dynamicLeft {
  414. float: left;
  415. margin-top: 15px;
  416. width: 280px;
  417. }
  418. .dynamicImg {
  419. width: 100%;
  420. height: 200px;
  421. }
  422. .dynamicRight {
  423. float: right;
  424. margin-top: 15px;
  425. margin-right: 10px;
  426. width: 590px;
  427. color: #979797;
  428. }
  429. .dynamicTitle {
  430. float: left;
  431. width: 500px;
  432. color: #333333;
  433. display: inline-block;
  434. overflow: hidden;
  435. text-overflow: ellipsis;
  436. white-space: nowrap;
  437. line-height: 40px;
  438. position: relative;
  439. text-indent: 1em;
  440. }
  441. .dynamicTitle::before{
  442. content: '';
  443. display: block;
  444. width: 8px;
  445. height: 8px;
  446. background: #0B82FF;
  447. position: absolute;
  448. top: 17px;
  449. left: 0;
  450. }
  451. .dynamicTime {
  452. line-height: 40px;
  453. }
  454. .map ul {
  455. padding: 20px 0px 20px 20px;
  456. }
  457. .map ul li {
  458. float: left;
  459. width: 130px;
  460. margin-right: 17px;
  461. }
  462. .mapImg {
  463. width: 130px;
  464. height: 100px;
  465. }
  466. .mapName {
  467. font-size: 16px;
  468. font-family: PingFangSC-Semibold, PingFang SC;
  469. font-weight: 600;
  470. color: #2C558A;
  471. text-align: center;
  472. height: 50px;
  473. margin-top: 10px;
  474. }
  475. .position {
  476. height: 80px;
  477. position: absolute;
  478. left: 50%;
  479. top: 100px;
  480. transform: translate(-50%,-50%);
  481. }
  482. .countryMapTitle {
  483. margin-top: 10px;
  484. font-size: 20px;
  485. font-family: PingFangSC-Semibold, PingFang SC;
  486. font-weight: 600;
  487. color: #1890FF;
  488. line-height: 32px;
  489. }
  490. .countryMapMiss {
  491. margin-top: 20px;
  492. font-size: 16px;
  493. font-family: PingFangSC-Regular, PingFang SC;
  494. font-weight: 400;
  495. color: #333333;
  496. line-height: 40px;
  497. padding-bottom: 30px ;
  498. border-bottom: 1px solid #0B82FF;
  499. }
  500. .introduce_F5FAFF {
  501. background-color:#F5FAFF;
  502. margin-left: 125px;
  503. min-height: 200px;
  504. }
  505. .iconRight {
  506. float: right;
  507. margin-top: 5px;
  508. }
  509. .regionalIntroduce >>> p{
  510. margin: 0;
  511. }
  512. </style>