lijinlong
杜函宇 1 year ago
parent 5360249569
commit ac302b80ac

@ -69,17 +69,17 @@
<div class="Special-report" @click="reportDetails('专报')"> <div class="Special-report" @click="reportDetails('专报')">
<div class="Special-icon"></div> <div class="Special-icon"></div>
<div class="Special-title">专报</div> <div class="Special-title">专报</div>
<div class="Special-num">{{ filteryqbg(1) }}</div> <div class="Special-num">{{Transfer[0].bg }}</div>
</div> </div>
<div class="Monthly-report" @click="reportDetails('月报')"> <div class="Monthly-report" @click="reportDetails('月报')">
<div class="Monthly-icon"></div> <div class="Monthly-icon"></div>
<div class="Monthly-title">月报</div> <div class="Monthly-title">月报</div>
<div class="Monthly-num">{{ filteryqbg(2) }}</div> <div class="Monthly-num">{{ Transfer[1].bg }}</div>
</div> </div>
<div class="depth-report" @click="reportDetails('深度报告')"> <div class="depth-report" @click="reportDetails('深度报告')">
<div class="depth-icon"></div> <div class="depth-icon"></div>
<div class="depth-title">深度报告</div> <div class="depth-title">深度报告</div>
<div class="depth-num">{{ filteryqbg(3) }}</div> <div class="depth-num">{{ Transfer[2].bg }}</div>
</div> </div>
</div> </div>
</div> </div>
@ -340,7 +340,21 @@ export default {
turnTime: null, turnTime: null,
tsdNum: 461, tsdNum: 461,
zbdNum: 475, zbdNum: 475,
Transfer: {}, Transfer: [
{
type: 1,
bg: 0,
},
{
type: 2,
bg: 0,
},
{
type: 3,
bg: 0,
},
],
turnDetailsList: [], turnDetailsList: [],
sentimeentList: { sentimeentList: {
options: ["转办量", "转办详情"], options: ["转办量", "转办详情"],
@ -437,17 +451,19 @@ export default {
this.getOneList(); this.getOneList();
}, },
methods: { methods: {
filteryqbg(e) {
let arr = this.Transfer.reportList.filter((value) => {
return value.sentimentReportType == e;
});
return arr[0].count;
},
getDataList() { getDataList() {
yqbg().then((res) => { yqbg().then((res) => {
this.tsdNum = res.data.reminder; this.tsdNum = res.data.reminder;
this.zbdNum = res.data.isturn; this.zbdNum = res.data.isturn;
this.Transfer = res.data; res.data.reportList.forEach((value, index) => {
this.Transfer.forEach((value1,index1)=>{
if(value.sentimentReportType == value1.type){
this.Transfer[index1].bg = value.count
return
}
})
});
console.log(this.Transfer);
}); });
// //
yuqingListA().then((res) => { yuqingListA().then((res) => {

Loading…
Cancel
Save