|
@@ -81,9 +81,14 @@
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div>
|
|
<!-- 机构详情 -->
|
|
<!-- 机构详情 -->
|
|
- <Statistics v-if="showBtn" />
|
|
|
|
|
|
+ <Statistics v-if="showBtn&&this.show==1" />
|
|
<!-- 在线车辆视频 -->
|
|
<!-- 在线车辆视频 -->
|
|
|
|
+ <!-- v-if="this.show==2&&carInfo" -->
|
|
<Video />
|
|
<Video />
|
|
|
|
+ <!-- 机构详情 -->
|
|
|
|
+ <FireStationDetails/>
|
|
|
|
+ <!-- 油箱 -->
|
|
|
|
+ <QuantityOil/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -92,6 +97,8 @@
|
|
import { getCarTree, getCarList } from '@/api/iot'
|
|
import { getCarTree, getCarList } from '@/api/iot'
|
|
import Statistics from './Statistics.vue'
|
|
import Statistics from './Statistics.vue'
|
|
import Video from './Video.vue'
|
|
import Video from './Video.vue'
|
|
|
|
+import FireStationDetails from './FireStationDetails.vue'
|
|
|
|
+import QuantityOil from './QuantityOil.vue'
|
|
const getParentKey = (key, tree) => {
|
|
const getParentKey = (key, tree) => {
|
|
let parentKey
|
|
let parentKey
|
|
for (let i = 0; i < tree.length; i++) {
|
|
for (let i = 0; i < tree.length; i++) {
|
|
@@ -107,7 +114,7 @@ const getParentKey = (key, tree) => {
|
|
return parentKey
|
|
return parentKey
|
|
}
|
|
}
|
|
export default {
|
|
export default {
|
|
- components: { Statistics, Video },
|
|
|
|
|
|
+ components: { Statistics, Video ,FireStationDetails,QuantityOil},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
placement: null,
|
|
placement: null,
|
|
@@ -122,6 +129,7 @@ export default {
|
|
dataList: [],
|
|
dataList: [],
|
|
autoExpandParent: true,
|
|
autoExpandParent: true,
|
|
showBtn: false,
|
|
showBtn: false,
|
|
|
|
+ carInfo:null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -185,7 +193,7 @@ export default {
|
|
this.showBtn = !this.showBtn
|
|
this.showBtn = !this.showBtn
|
|
},
|
|
},
|
|
OnlineCar(val) {
|
|
OnlineCar(val) {
|
|
- console.log(val)
|
|
|
|
|
|
+ this.carInfo=val
|
|
},
|
|
},
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|