cbsl-app/pages/simpleResviror/jbxx/index.vue

52 lines
1.1 KiB
Vue
Raw Normal View History

2026-04-16 15:54:02 +08:00
<template>
<view class="jbxx-box">
<view class="jbxx-tabs">
<u-tabs
:list="list"
@click="tabsClick"
:scrollable="false"
:activeStyle="{
color: '#34a4fe',
}"
></u-tabs>
</view>
<view class="jbxx-content">
<Jbzz v-if = "status == 0" />
<view v-if="status == 1" class="gcgk">西</view>
<Krqx v-if="status == 2" stcd="3040" />
</view>
</view>
</template>
<script>
import Jbzz from './jbzz'
import Krqx from './krqx'
export default {
components: {
Jbzz,
Krqx
},
data() {
return {
list: [{ name: '基本资料' }, { name: '工程概况' }, { name: '库容曲线' }],
status:0
}
},
methods: {
tabsClick(e) {
this.status = e?.index;
}
}
}
</script>
<style lang="scss" scoped>
.jbxx-box{
padding: 5px;
.jbxx-tabs{
width: 100%;
background-color: #dff0f8;
}
.gcgk{
padding: 5px;
}
}
</style>