You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
580 B
29 lines
580 B
<!-- 巡查记录 -->
|
|
<script>
|
|
import Dike from './Dike.vue'
|
|
import Reservoir from './Reservoir.vue'
|
|
import Sluice from './Sluice.vue'
|
|
export default {
|
|
name: 'InspectionItems',
|
|
components: {
|
|
Reservoir, // 水库
|
|
Sluice, // 水闸
|
|
Dike, // 堤防
|
|
},
|
|
computed: {
|
|
selectTab() {
|
|
return this.$store.state.topTab.selectTab
|
|
},
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<Reservoir v-if="selectTab == 0"></Reservoir>
|
|
<Sluice v-if="selectTab == 1"></Sluice>
|
|
<Dike v-if="selectTab == 2"></Dike>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped lang="less"></style>
|