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

底部接口添加

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