xytSk-App/pages/skInfo/detail/index.vue

95 lines
1.8 KiB
Vue
Raw Normal View History

2024-09-14 09:22:12 +08:00
<template>
2024-11-04 17:57:12 +08:00
<view :style="{height:'100vh',overflow:'auto'}">
<u-navbar :title="skInfo.resName" :autoBack="true" :titleStyle="{
2024-09-14 09:22:12 +08:00
fontSize:'18px'
}" :height='44' :safeAreaInsetTop=true leftIconSize='20' leftIconColor='rgb(153, 153, 153)'>
</u-navbar>
2024-11-04 17:57:12 +08:00
<u-tabs :list="list1" @click="click" style="background-color: #fff;margin-top: 60px;"></u-tabs>
<Jcxx v-show="tabs == 0"></Jcxx>
<Zrtx v-show="tabs == 4"></Zrtx>
2024-09-14 09:22:12 +08:00
</view>
</template>
<script>
import moment from 'moment'
2024-11-04 17:57:12 +08:00
import Jcxx from "./jcxx.vue"
import Zrtx from "../../skDetail/zrtx/zrtx.vue"
2024-09-14 09:22:12 +08:00
export default {
2024-11-04 17:57:12 +08:00
2024-09-14 09:22:12 +08:00
data() {
return {
2024-11-04 17:57:12 +08:00
tabs:0,
2024-09-14 09:22:12 +08:00
model: {
stm: '',
etm: ''
},
customStyle: {
background: '#000'
},
list1: [{
name: '监测信息',
}, {
name: '基础信息',
}, {
name: '特征参数'
}, {
name: '库容曲线'
}, {
name: '责任人'
2024-11-04 17:57:12 +08:00
}],
skInfo:{}
2024-09-14 09:22:12 +08:00
};
},
2024-11-04 17:57:12 +08:00
components:{
Jcxx,
Zrtx
},
2024-10-31 17:39:30 +08:00
onLoad() {
2024-11-04 17:57:12 +08:00
this.getList();
2024-09-14 09:22:12 +08:00
},
methods: {
click(item) {
2024-11-04 17:57:12 +08:00
this.tabs = item.index;
2024-09-14 09:22:12 +08:00
},
2024-10-31 17:39:30 +08:00
getList(){
uni.$http.post('/gunshiApp/xyt/attResBase/list',this.model).then(res=>{
console.log(res,'res');
2024-11-04 17:57:12 +08:00
this.skInfo = res.data.data[0];
2024-10-31 17:39:30 +08:00
})
},
2024-09-14 09:22:12 +08:00
toDetail() {
uni.navigateTo({
url: '/pages/wtcl/detail/index'
})
}
}
}
</script>
<style lang="scss" scoped>
.swiper-content{
position: relative;
.num{
position: absolute;
top: 4px;
left: 4px;
z-index: 1;
background-color: #000;
color: #fff;
padding: 0 4px;
border-radius: 6px;
opacity: .4;
font-size: 12px;
}
.time{
position: absolute;
background-color: #000;
opacity: .4;
color: #fff;
bottom: 0;
width:100%;
padding: 4px;
}
}
</style>