Browse Source

11/17/ 5:40

main
parent
commit
990b957afc
  1. 36
      src/views/datav/SceneInsp.vue

36
src/views/datav/SceneInsp.vue

@ -78,7 +78,7 @@
<datav-date-picker v-model="time"/> <datav-date-picker v-model="time"/>
<div class="flex gap-42"> <div class="flex gap-42">
<datav-statistic <datav-statistic
:value="overview.supervisionNotifyTotal" :value="overview.supervisionNotifyPreTotal"
title="通报问题数" title="通报问题数"
style="width: 16.66%" style="width: 16.66%"
/> />
@ -146,6 +146,7 @@
size="large" size="large"
title="问题数排名" title="问题数排名"
sub-title="问题数" sub-title="问题数"
:color="colors"
/> />
</el-scrollbar> </el-scrollbar>
</datav-tab-item> </datav-tab-item>
@ -209,16 +210,9 @@ import moment from "moment";
import {getAllSupervisionNotifyCount, getChangedRank, getSupervisionTrend} from "@/api/data/supervisionNotify.ts"; import {getAllSupervisionNotifyCount, getChangedRank, getSupervisionTrend} from "@/api/data/supervisionNotify.ts";
import {getGobalRecentlyTrendByMonth} from "@/api/data/basicScreen.ts"; import {getGobalRecentlyTrendByMonth} from "@/api/data/basicScreen.ts";
const data1= ref([]); const data1 = ref([]);
const activeTabLeft = ref("3"); const activeTabLeft = ref("3");
const overview = ref({
supervisionNotifyTotal: 0,
supervisionNotifyOrgTotal: 0,
supervisionNotifyPreTotal: 0,
supervisionNotifyChangingTotal: 0,
supervisionNotifyChangedTotal: 0,
correctionRate: 0,
});
const rankOverview = ref({ const rankOverview = ref({
proTotal: 0, proTotal: 0,
changing: 0, changing: 0,
@ -227,7 +221,14 @@ const rankOverview = ref({
}); });
const wtlxList = ref([]) const wtlxList = ref([])
const hddList = ref([]) const hddList = ref([])
const overview = ref({
correctionRate: 0,
supervisionNotifyPreTotal: 0,
supervisionNotifyChangingTotal: 0,
supervisionNotifyChangedTotal: 0,
supervisionNotifyTotal: 0,
supervisionNotifyOrgTotal: 0,
});
echarts.registerMap("changsha", changshaMap); echarts.registerMap("changsha", changshaMap);
@ -437,7 +438,6 @@ const option = ref({
// endregion // endregion
// region // region
const time = ref([ const time = ref([
@ -445,10 +445,17 @@ const time = ref([
moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD"),
]); ]);
// //
function getData() { function getData() {
getAllSupervisionNotifyCount(time.value).then((res) => { getAllSupervisionNotifyCount(time.value).then((res) => {
overview.value = res.overview; Object.assign(overview.value, {
correctionRate: Number(res.overview.correctionRate),
supervisionNotifyPreTotal: Number(res.overview.supervisionNotifyPreTotal),
supervisionNotifyChangingTotal: Number(res.overview.supervisionNotifyChangingTotal),
supervisionNotifyChangedTotal: Number(res.overview.supervisionNotifyChangedTotal),
supervisionNotifyTotal: Number(res.overview.supervisionNotifyTotal),
supervisionNotifyOrgTotal: Number(res.overview.supervisionNotifyOrgTotal),
});
wtlxList.value = res.wtlxList wtlxList.value = res.wtlxList
hddList.value = res.hddList; hddList.value = res.hddList;
superviseTempMapVoList = res.superviseTempMapVoList; superviseTempMapVoList = res.superviseTempMapVoList;
@ -504,7 +511,6 @@ const colors = [
// endregion // endregion
const data2 = [ const data2 = [
{ {
name: "开福分局", name: "开福分局",

Loading…
Cancel
Save