ykzz-app/pages/syq/index.vue

46 lines
890 B
Vue

<template>
<view :style="{ height: '100vh', overflow: 'hidden' }">
<u-status-bar></u-status-bar>
<u-navbar
title="水雨情"
:autoBack="true"
:titleStyle="{
fontSize: '18px',
}"
:height="44"
:safeAreaInsetTop="true"
leftIconSize="20"
leftIconColor="rgb(153, 153, 153)"
>
</u-navbar>
<view style="margin-top:50px;padding:10px">
<SlTable :tableData="slData"></SlTable>
</view>
</view>
</template>
<script>
import SlTable from "./slTable.vue";
export default {
components: {
SlTable,
},
data() {
return {
slData:[]
};
},
methods: {
getList() {
uni.$http.post("/gunshiApp/ykz/stPptnRReal/data").then((res) => {
if(res.data.code == 200){
this.slData = res.data.data;
}
});
},
},
onLoad() {
this.getList();
},
};
</script>