|
@@ -43,8 +43,9 @@
|
|
|
</a-spin>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="video-img-null" v-if="!videoSrc || !gwcUrl">
|
|
|
+ <!-- <span>{{ videoSrc }}</span>
|
|
|
+ <span>{{ gwcUrl }}</span> -->
|
|
|
+ <div class="video-img-null" v-if="!videoSrc &&!gwcUrl">
|
|
|
<img src="../../../assets/images/video-null2.png" alt="" />
|
|
|
暂无资源
|
|
|
</div>
|
|
@@ -103,7 +104,7 @@ export default {
|
|
|
],
|
|
|
carId: 2,
|
|
|
vehicleId: '',
|
|
|
- gwcUrl: '',
|
|
|
+ gwcUrl: null,
|
|
|
carInfo1: {},
|
|
|
spinning: false,
|
|
|
}
|
|
@@ -115,8 +116,10 @@ export default {
|
|
|
watch: {
|
|
|
videoid: {
|
|
|
handler(val) {
|
|
|
+ if(val){
|
|
|
this.vehicleId = val
|
|
|
this.FunVdieoList()
|
|
|
+ }
|
|
|
},
|
|
|
immediate: true,
|
|
|
deep: true,
|
|
@@ -134,14 +137,13 @@ export default {
|
|
|
methods: {
|
|
|
FunVdieoList() {
|
|
|
// g公务车情况
|
|
|
- if (this.carInfo1.categoryId == 2) {
|
|
|
+ if (this.carInfo1.categoryId ===2) {
|
|
|
const data = {
|
|
|
vehicleId: this.carInfo1.id,
|
|
|
}
|
|
|
this.spinning = true
|
|
|
getCmobd(data)
|
|
|
.then((response) => {
|
|
|
- console.log('-------公务车', response)
|
|
|
this.gwcUrl = response.data
|
|
|
setInterval(() => {
|
|
|
this.spinning = false
|
|
@@ -235,6 +237,7 @@ export default {
|
|
|
.video-img-null {
|
|
|
width: 200px;
|
|
|
height: 200px;
|
|
|
+ margin-left:-260px;
|
|
|
text-align: center;
|
|
|
img {
|
|
|
width: 200px;
|