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

52 lines
1.1 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<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>