27170
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
<!-- 统计 -->
|
||||
<div class="content-box">
|
||||
<div class="content-list">
|
||||
<div class="list-item" v-for="(item, index) in statisticsList" :key="index">
|
||||
<div class="list-item" v-for="(item, index) in staticName" :key="index">
|
||||
<h3>{{ item.value }}</h3>
|
||||
<p>{{ item.label }}</p>
|
||||
</div>
|
||||
@@ -77,6 +77,24 @@ export default {
|
||||
listTypeAll: [],
|
||||
groupType: [],
|
||||
showGird: false,
|
||||
staticName: [
|
||||
{
|
||||
label: '待处理',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: '上报数',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: '已办数',
|
||||
value: 0
|
||||
},
|
||||
{
|
||||
label: '今日办结',
|
||||
value: 0
|
||||
}
|
||||
],
|
||||
statisticsList: []
|
||||
}
|
||||
},
|
||||
@@ -137,13 +155,17 @@ export default {
|
||||
getStaticList() {
|
||||
this.$http.post('/app/appclapeventinfo/clapEventStatisticByGirdMember').then((res) => {
|
||||
if (res.code == 0){
|
||||
for (let i in res.data) {
|
||||
var obj = {
|
||||
label: i,
|
||||
value: res.data[i],
|
||||
}
|
||||
this.statisticsList.push(obj)
|
||||
}
|
||||
Object.keys(res.data).forEach(( ) => {
|
||||
// var info = {
|
||||
// label: key,
|
||||
// value: res.data[key]
|
||||
// }
|
||||
// this.statisticsList.push(info)
|
||||
this.staticName[0].value = res.data['待处理']
|
||||
this.staticName[1].value = res.data['上报数']
|
||||
this.staticName[2].value = res.data['已办数']
|
||||
this.staticName[3].value = res.data['今日办结']
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user