饮用水框架页面
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
>
|
||||
<template #footer>
|
||||
<div class="footer">
|
||||
饮用水源水质监测累积月份统计样品数:10个
|
||||
饮用水源水质监测累积月份统计样品数:{{count}}个
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -66,7 +66,7 @@ import {
|
||||
} from "@/api/ecology/new-drinking-water";
|
||||
import locale from "ant-design-vue/es/date-picker/locale/zh_CN";
|
||||
import { tableColumns } from "./../colums/base";
|
||||
import Search from "./../components/search.vue";
|
||||
import Search from "./../components/countySearch.vue";
|
||||
|
||||
export default {
|
||||
name: "DrinkingWaterBase",
|
||||
@@ -93,6 +93,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
count:0, //样品数
|
||||
current:0,
|
||||
data: [],
|
||||
locale,
|
||||
@@ -131,8 +132,10 @@ export default {
|
||||
if(res.data.code){
|
||||
this.$message.error(res.data.msg);
|
||||
this.datasource = []
|
||||
this.count = 0
|
||||
}else{
|
||||
this.datasource = res.data.data
|
||||
this.count = res.data.count
|
||||
}
|
||||
}).catch(()=>{
|
||||
this.loading = false;
|
||||
|
||||
Reference in New Issue
Block a user