饮用水框架页面

This commit is contained in:
庞东林
2021-12-14 10:20:11 +08:00
parent c95c693570
commit c36a162d33
11 changed files with 778 additions and 38 deletions

View File

@@ -72,12 +72,12 @@ export default {
datasource:{},
selection: [],
columns:[
{title:"断面名称",dataIndex:"city",},
{title:"时间",dataIndex:"place",},
{title:"水质目标",dataIndex:"sourceWaterName",},
{title:"水质类别",dataIndex:"waterSourceProperty",},
{title: "达标情况", dataIndex: ""},
{title: "达标率", dataIndex: ""},
{title:"断面名称",dataIndex:"sectionName",},
{title:"时间",dataIndex:"time",},
{title:"水质目标",dataIndex:"waterTarget",},
{title:"水质类别",dataIndex:"waterQualityCategory",},
{title: "达标情况", dataIndex: "standard"},
{title: "达标率", dataIndex: "standardRate"},
// {title:"达标情况",align: 'center',children: [
// {title: "达标情况", dataIndex: ""},
// {title: "达标率", dataIndex: ""},
@@ -112,7 +112,12 @@ export default {
this.$message.error(res.data.msg);
this.datasource = []
}else{
this.datasource = res.data.data
let newData = []
const resData = res.data.data || {}
for(let i in resData){
newData.push(resData[i])
}
this.datasource = newData
}
}).catch(()=>{
this.loading = false;