EnterPriseMoreInformationList.vue 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <div class="autoBox box">
  3. <div class="crumbs">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item :to="{ path: 'home' }">{{$t('common.Home')}}</el-breadcrumb-item>
  6. <el-breadcrumb-item :to="{ path: 'enterprise' }">{{$t('common.EnterpriseShow')}}</el-breadcrumb-item>
  7. <el-breadcrumb-item>{{$t('common.MoreInformationList')}}</el-breadcrumb-item>
  8. </el-breadcrumb>
  9. </div>
  10. <div style="margin-top: 30px;width: 100%;">
  11. <div style="margin-left: 50px;">
  12. <div class="cursor" v-for="(item,index) in initData" @click="toViewDetail('enterpriseInformationDetails',item.baseEntityId)"
  13. style="font-size: 15px;width: 100%;line-height: 40px;">
  14. <span style="font-weight: 700;">{{item.title}}</span>
  15. <span style="float: right;margin-right: 150px;">{{formatDate(item.createDate)}}</span>
  16. </div>
  17. </div>
  18. </div>
  19. <div>
  20. <div style="width: 100%;position: relative;height: 100px;">
  21. <el-pagination
  22. style="height: 80px;position: absolute;left: 50%;top: 100px;transform: translate(-50%,-50%);"
  23. background
  24. page-size=10
  25. layout="prev, pager, next"
  26. :total=totalCount
  27. @current-change="handleCurrentChange">
  28. </el-pagination>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import { Swiper, SwiperSlide, directive } from 'vue-awesome-swiper'
  35. import 'vue-awesome-swiper/node_modules/swiper/dist/css/swiper.css'
  36. import Base from "@/views/base/Base";
  37. import { formatDate } from "@/utils/formatUtils";
  38. import { cmsInformationViews} from "@/api/baseUnitView";
  39. export default {
  40. name: 'EnterPriseMoreInformationList',
  41. extends: Base,
  42. data () {
  43. return {
  44. initData:[],
  45. page:{
  46. businessType:"unitShow",
  47. businessId:this.$route.query.key,
  48. typeDict:this.$route.query.businessType,
  49. pageSize:10,
  50. pageNo:1,
  51. },
  52. totalCount:0
  53. }
  54. },
  55. created(){},
  56. mounted(){
  57. this.getInformationList();
  58. this.Swiper();
  59. },
  60. watch: {
  61. '$i18n.locale'(){
  62. this.getInformationList();
  63. },
  64. },
  65. methods:{
  66. getInformationList(){
  67. this.page.language=this.$i18n.locale.toUpperCase();
  68. cmsInformationViews(this.page).then(res=>{
  69. var data = res.data;
  70. if(data){
  71. this.initData = data.allDataList||[];
  72. this.totalCount = data.page.totalCount - 0;
  73. }else {
  74. this.totalCount = 0;
  75. this.initData = [];
  76. }
  77. })
  78. },
  79. handleCurrentChange(val) {
  80. this.page.pageNo = val;
  81. this.getInformationList();
  82. },
  83. toViewDetail(router,json){
  84. this.$store.commit('modify', router);
  85. window.localStorage.setItem('router', router);
  86. const { href } = this.$router.resolve({
  87. name: router,
  88. query: {
  89. key: json
  90. }
  91. });
  92. window.open(href, '_blank');
  93. },
  94. Swiper(){
  95. var galleryThumbs = new Swiper('.gallery-thumbs', {
  96. spaceBetween: 10,
  97. slidesPerView: 4,
  98. freeMode: true,
  99. watchSlidesVisibility: true,
  100. watchSlidesProgress: true,
  101. });
  102. var galleryTop = new Swiper('.gallery-top', {
  103. spaceBetween: 10,
  104. navigation: {
  105. nextEl: '.swiper-button-next',
  106. prevEl: '.swiper-button-prev',
  107. },
  108. thumbs: {
  109. swiper: galleryThumbs
  110. }
  111. });
  112. },
  113. getIconUrl(url){
  114. return require("@/assets/img/realTimeInfo/"+url);
  115. },
  116. toView(router,json){
  117. this.$router.push({name:router,params:json})
  118. },
  119. screenBack(data){
  120. console.log(data,'screenBackscreenBackscreenBackscreenBack')
  121. },
  122. screen(i){
  123. this.index=i
  124. },
  125. getInformation(num){
  126. this.informationsClass=num
  127. },
  128. }
  129. }
  130. </script>
  131. <style scoped>
  132. .box {
  133. margin-top: 10px;
  134. background: #fff;
  135. /* height: 500px; */
  136. padding: 20px 0;
  137. }
  138. .crumbs {
  139. margin-left: 20px;
  140. }
  141. body {
  142. margin: 0;
  143. }
  144. .swipers {
  145. position: absolute;
  146. top: 30px;
  147. left: 100px;
  148. width: 460px;
  149. height: 390px;
  150. }
  151. .details {
  152. position: absolute;
  153. top: 30px;
  154. left: 600px;
  155. width: 460px;
  156. height: 390px;
  157. }
  158. .swiper-container {
  159. width: 100%;
  160. height: 300px;
  161. margin-left: auto;
  162. margin-right: auto;
  163. }
  164. .swiper-slide {
  165. background-size: cover;
  166. background-position: center;
  167. }
  168. .gallery-top {
  169. height: 80%;
  170. width: 100%;
  171. }
  172. .gallery-thumbs {
  173. height: 20%;
  174. box-sizing: border-box;
  175. padding: 10px 0;
  176. }
  177. .gallery-thumbs .swiper-slide {
  178. width: 25%;
  179. height: 100%;
  180. opacity: 0.4;
  181. }
  182. .gallery-thumbs .swiper-slide-thumb-active {
  183. opacity: 1;
  184. }
  185. .initData_label {
  186. color: #6c8c9d;
  187. font-weight: 700;
  188. font-size: 18px;
  189. line-height: 42px;
  190. }
  191. .enterprise_style{
  192. line-height: 50px;
  193. color: #6C819D;
  194. padding-left: 100px;
  195. font-size: 18px;
  196. font-weight: 700;
  197. margin-top: 5px;
  198. }
  199. .enterprise_style_span {
  200. padding: 10px;
  201. text-align: center;
  202. height: 100%;
  203. border-bottom: 2px solid #6699ff;
  204. }
  205. .enterprise_style_product tr {
  206. line-height: 30px;
  207. width: 100%;
  208. display: inline-block;
  209. border-bottom: 1px dashed #ccc;
  210. font-size: 14px;
  211. color: #6C819D;
  212. margin-bottom: 5px;
  213. }
  214. .recommend {
  215. margin-top:15px;
  216. margin-left: 100px;
  217. }
  218. .recommend li{
  219. display: inline-block;
  220. width: 170px;
  221. /* height: 130px; */
  222. text-align: center;
  223. margin-right: 15px;
  224. }
  225. .information1 {
  226. display: inline-block;
  227. width: 123px;
  228. height: 100%;
  229. border:1px solid rgba(228, 228, 228, 1);
  230. text-align: center;
  231. background: #f9f9f9;
  232. color: #999;
  233. }
  234. .information2 {
  235. display: inline-block;
  236. width: 123px;
  237. height: 100%;
  238. border-top:3px solid #2c5589;
  239. text-align: center;
  240. color: #2c5589;
  241. }
  242. .information1:hover {
  243. color: #FF0036;
  244. }
  245. </style>