details.vue 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <div class="lookDetail">
  3. <div class="left">
  4. <div class="list-item">
  5. <el-carousel
  6. :interval="5000"
  7. height="400px"
  8. arrow="always"
  9. >
  10. <el-carousel-item
  11. v-for="item in vehiclePicture"
  12. :key="item"
  13. >
  14. <img
  15. :src="item"
  16. alt=""
  17. >
  18. </el-carousel-item>
  19. </el-carousel>
  20. </div>
  21. </div>
  22. <div class="right">
  23. <div class="list-item">
  24. <template>
  25. <div
  26. style="height:32px"
  27. v-for="(item,index) in cols"
  28. :key="index"
  29. >
  30. <el-col :span="8">{{item.name}}</el-col>
  31. <el-col :span="16">{{item.label}}</el-col>
  32. </div>
  33. </template>
  34. </div>
  35. </div>
  36. </div>
  37. </template>
  38. <script>
  39. export default {
  40. props: ['params'],
  41. data () {
  42. return {
  43. cols: [
  44. {
  45. name: '车场名称',
  46. label: '6.x灰度环境测试车场B1停车场', //
  47. }, {
  48. name: '车牌号码',
  49. label: '浙61616',//plateNo
  50. }, {
  51. name: '识别车牌',
  52. label: '少旭入口'//plateNo
  53. }, {
  54. name: '进场地点',
  55. label: '2020-04-06 09:42:11'//capPlace
  56. }, {
  57. name: '进场时间',
  58. label: '2020-04-06 09:42:11'//capTime
  59. },
  60. // {
  61. // name: '放行渠道',
  62. // label: '临时车'//passType
  63. // },
  64. {
  65. name: '车牌类型',
  66. label: '-'//carType
  67. }, {
  68. name: '车辆车型',
  69. label: '车牌识别'//carStyle
  70. }, {
  71. name: '凭据号码',
  72. label: '长抬放行'//carSerial
  73. },
  74. // {
  75. // name: '进场凭据',
  76. // label: '线下车场'
  77. // },
  78. {
  79. name: '放行类型',
  80. label: '服务到期长抬进出'//passType
  81. }
  82. // , {
  83. // name: '操作人员',
  84. // label: '服务到期长抬进出'
  85. // }, {
  86. // name: '进场备注',
  87. // label: '服务到期长抬进出'
  88. // }
  89. ],
  90. vehiclePicture: []
  91. }
  92. },
  93. created () {
  94. console.log(this.params);
  95. this.cols[0].label = this.params.parkName;
  96. this.cols[1].label = this.params.row.plateNo;
  97. this.cols[2].label = this.params.row.plateNo;
  98. this.cols[3].label = this.params.row.capPlace;
  99. this.cols[4].label = this.params.row.capTime;
  100. this.cols[5].label = this.params.row.carType == 0 ? '临时车'
  101. : this.params.row.carType == 1 ? 'VIP车'
  102. : this.params.row.carType == 2 ? '月租车'
  103. : this.params.row.carType == 3 ? '充时车'
  104. : this.params.row.carType == 4 ? '时租车'
  105. : this.params.row.carType == 5 ? '产权车'
  106. : this.params.row.carType == 6 ? '计次车'
  107. : this.params.row.carType == 7 ? '贵宾卡'
  108. : this.params.row.carType == 8 ? '员工卡' : '--';
  109. this.cols[6].label = this.params.row.carStyle == 0 ? '小轿车' : this.params.row.carStyle == 1 ? '大型车' : this.params.row.carStyle == 2 ? '货车' : this.params.row.carStyle == 3 ? '摩托车' : '其他';
  110. this.cols[7].label = this.params.row.carSerial;
  111. this.cols[8].label = this.params.row.passType == 0 ? '正常放行'
  112. : this.params.row.passType == 1 ? '免费放行'
  113. : this.params.row.passType == 2 ? '异常放行'
  114. : this.params.row.passType == 3 ? '遥控放行'
  115. : this.params.row.passType == 4 ? '跟车放行'
  116. : this.params.row.passType == 5 ? '补录放行'
  117. : this.params.row.passType == 6 ? '长抬放行'
  118. : this.params.row.passType == 7 ? '临时车异常放行'
  119. : this.params.row.passType == 8 ? '远程放行'
  120. : '相机缓慢放行';
  121. debugger
  122. this.vehiclePicture.push(this.params.row.imgInfo)
  123. }
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. @import '@assets/css/public-style.scss';
  128. .el-col {
  129. height: 32px !important;
  130. }
  131. .el-select {
  132. width: 120px !important;
  133. }
  134. .el-input {
  135. width: 120px !important;
  136. }
  137. .lookDetail {
  138. /deep/ .el-form-item__label,
  139. /deep/.el-form-item__content {
  140. font-size: 12px;
  141. }
  142. /deep/ .el-step__title.is-finish,
  143. /deep/ .el-step__title.is-process,
  144. /deep/ .el-step__description.is-finish {
  145. font-weight: 500 !important;
  146. color: #424656 !important;
  147. }
  148. display: flex;
  149. justify-content: space-between;
  150. .formContent-item_title {
  151. clear: both;
  152. }
  153. .left {
  154. width: 600px;
  155. }
  156. .right {
  157. width: calc(100% - 620px);
  158. }
  159. .list-item {
  160. clear: inherit;
  161. }
  162. }
  163. .el-carousel__container {
  164. height: 456px !important;
  165. }
  166. .el-carousel__container {
  167. height: 500px !important;
  168. }
  169. // 轮播图
  170. .el-carousel__item h3 {
  171. color: #475669;
  172. font-size: 18px;
  173. opacity: 0.75;
  174. line-height: 300px;
  175. margin: 0;
  176. }
  177. .el-carousel__item:nth-child(2n) {
  178. background-color: #99a9bf;
  179. }
  180. .el-carousel__item:nth-child(2n + 1) {
  181. background-color: #d3dce6;
  182. }
  183. </style>