This commit is contained in:
duanxiaohai 2024-06-20 17:14:36 +08:00
parent 53dbebd296
commit 6b4538aab6
1 changed files with 12 additions and 3 deletions

View File

@ -264,17 +264,17 @@
<div class="clue">
<div class="clueBox">
<div class="clueTitle">预警线索总数</div>
<div class="clueNum">355</div>
<div class="clueNum">{{ data.culeTotal }}</div>
<div class="clueUnit"></div>
</div>
<div class="clueBox">
<div class="clueTitle">公安协同 <br />处置线索</div>
<div class="clueNum">355</div>
<div class="clueNum">{{ data.gaCules }}</div>
<div class="clueUnit"></div>
</div>
<div class="clueBox">
<div class="clueTitle">检察官处置线索</div>
<div class="clueNum">355</div>
<div class="clueNum">{{ data.jcgCules }}</div>
<div class="clueUnit"></div>
</div>
</div>
@ -576,6 +576,9 @@ const data = reactive({
time: ["5.31", "6.1", "6.2", "6.3", "6.4"],
}, //线
},
culeTotal: "", //线
gaCules: "", //线
jcgCules: "", //线
});
const getData = async () => {
await http.get("/api/ggfwyth/education").then((res) => {
@ -609,6 +612,12 @@ const getData = async () => {
//
data.whistleblower = res.data.whistleblower;
// 线
const dataArray = res.data.whistleblower.culeTotal.data;
const dataArray1 = res.data.whistleblower.gaCules.data;
const dataArray2 = res.data.whistleblower.jcgCules.data;
data.culeTotal = dataArray[dataArray.length - 1];
data.gaCules = dataArray1[dataArray1.length - 1];
data.jcgCules = dataArray2[dataArray2.length - 1];
}
});
};