Commit b319eaca authored by 张牧越's avatar 张牧越

底部接口添加

parent b632451c
...@@ -96,3 +96,11 @@ export async function getProjectList(params, noloading) { ...@@ -96,3 +96,11 @@ export async function getProjectList(params, noloading) {
noloading: noloading, noloading: noloading,
}) })
} }
// 获取严重问题列表
export async function getImportantQuestion() {
return await request({
url: `/site/index/getLevel`,
method: 'get',
})
}
...@@ -155,6 +155,5 @@ export default { ...@@ -155,6 +155,5 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: 100%; height: 100%;
flex-grow: 1;
} }
</style> </style>
\ No newline at end of file
...@@ -196,6 +196,7 @@ import { ...@@ -196,6 +196,7 @@ import {
getScoreByCity, getScoreByCity,
getScoreStatusByCity, getScoreStatusByCity,
getProjectList, getProjectList,
getImportantQuestion,
} from "@/api/dataStatis"; } from "@/api/dataStatis";
import { mapState } from "vuex"; import { mapState } from "vuex";
...@@ -466,32 +467,30 @@ export default { ...@@ -466,32 +467,30 @@ export default {
{ {
name: "工程名称", name: "工程名称",
props: "project_name", props: "project_name",
width: "45%", width: "55%",
headerStyle: {},
style: {},
align: "left", align: "left",
}, },
{ {
name: "所属区域", name: "所属区域",
props: "prname", props: "city_name",
width: "20%", width: "10%",
headerStyle: {}, headerStyle: {},
style: {}, style: {},
align: "left", align: "left",
}, },
{ {
name: "当前问题总数", name: "当前问题总数",
props: "zfjg", props: "question_total",
width: "10%", width: "10%",
}, },
{ {
name: "严重问题数量", name: "严重问题数量",
props: "zlglzd", props: "level_count",
width: "10%", width: "10%",
}, },
{ {
name: "最近严重预警时间", name: "最近严重预警时间",
props: "zzzg", props: "update_time",
width: "15%", width: "15%",
}, },
], ],
...@@ -554,6 +553,9 @@ export default { ...@@ -554,6 +553,9 @@ export default {
this.data2 = res.data.data; this.data2 = res.data.data;
this.data3 = res.data.data; this.data3 = res.data.data;
}); });
getImportantQuestion().then((res) => {
this.data5 = res.data;
});
// getYearQuestion().then((res) => { // getYearQuestion().then((res) => {
// this.data1 = res.data; // this.data1 = res.data;
// }); // });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment