|
@@ -5,9 +5,10 @@
|
|
|
<el-carousel
|
|
|
:interval="5000"
|
|
|
height="400px"
|
|
|
- :arrow="this.vehiclePicture.length == 1 ? never : always"
|
|
|
+ :arrow='this.arrowPicture'
|
|
|
>
|
|
|
<!-- :arrow="this.vehiclePicture.length != 1 ? always : never" -->
|
|
|
+ <!-- :arrow="this.vehiclePicture.length == 1 ? never : always" -->
|
|
|
<el-carousel-item
|
|
|
v-for="item in vehiclePicture"
|
|
|
:key="item"
|
|
@@ -90,11 +91,12 @@ export default {
|
|
|
// label: '服务到期长抬进出'
|
|
|
// }
|
|
|
],
|
|
|
- vehiclePicture: []
|
|
|
+ vehiclePicture: [],
|
|
|
+ arrowPicture: 'never'
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
- console.log(this.params);
|
|
|
+ this.vehiclePicture = [];
|
|
|
this.cols[0].label = this.params.parkName;
|
|
|
this.cols[1].label = this.params.row.plateNo;
|
|
|
this.cols[2].label = this.params.row.plateNo;
|
|
@@ -122,9 +124,12 @@ export default {
|
|
|
: this.params.row.passType == 8 ? '远程放行'
|
|
|
: '相机缓慢放行';
|
|
|
|
|
|
- debugger
|
|
|
this.vehiclePicture.push(this.params.row.imgInfo);
|
|
|
- console.log('555', this.vehiclePicture.length)
|
|
|
+ if (this.vehiclePicture.length == 1) {
|
|
|
+ this.arrowPicture = 'never'
|
|
|
+ } else {
|
|
|
+ this.arrowPicture = 'always'
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
}
|