|
@@ -12,19 +12,19 @@
|
|
</swiper>
|
|
</swiper>
|
|
<view class="cu-list grid col-4 no-border fixed">
|
|
<view class="cu-list grid col-4 no-border fixed">
|
|
<view class="circle-button-box">
|
|
<view class="circle-button-box">
|
|
- <view class="text-primary text_font_size">26</view>
|
|
|
|
|
|
+ <view class="text-primary text_font_size">{{statistics.allcount?statistics.allcount:0}}</view>
|
|
<text>总数</text>
|
|
<text>总数</text>
|
|
</view>
|
|
</view>
|
|
<view class="circle-button-box">
|
|
<view class="circle-button-box">
|
|
- <view class="text-danger text_font_size">5</view>
|
|
|
|
|
|
+ <view class="text-danger text_font_size">{{statistics.db?statistics.db:0}}</view>
|
|
<text>待办</text>
|
|
<text>待办</text>
|
|
</view>
|
|
</view>
|
|
<view class="circle-button-box">
|
|
<view class="circle-button-box">
|
|
- <view class="text-success text_font_size">26</view>
|
|
|
|
|
|
+ <view class="text-success text_font_size">{{statistics.yb?statistics.yb:0}}</view>
|
|
<text>已办</text>
|
|
<text>已办</text>
|
|
</view>
|
|
</view>
|
|
<view class="circle-button-box">
|
|
<view class="circle-button-box">
|
|
- <view class="text-warning text_font_size">26</view>
|
|
|
|
|
|
+ <view class="text-warning text_font_size">{{statistics.gdcount?statistics.gdcount:0}}</view>
|
|
<text>归档</text>
|
|
<text>归档</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -72,6 +72,7 @@
|
|
import actCategoryService from "@/api/flowable/actCategoryService"
|
|
import actCategoryService from "@/api/flowable/actCategoryService"
|
|
import processService from "@/api/flowable/processService"
|
|
import processService from "@/api/flowable/processService"
|
|
import taskService from "@/api/flowable/taskService"
|
|
import taskService from "@/api/flowable/taskService"
|
|
|
|
+ import gwCirculationCard2Service from '@/api/circulation/gwCirculationCard2.js'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -110,33 +111,37 @@
|
|
}],
|
|
}],
|
|
dotStyle: false,
|
|
dotStyle: false,
|
|
towerStart: 0,
|
|
towerStart: 0,
|
|
- direction: ''
|
|
|
|
|
|
+ direction: '',
|
|
|
|
+ statistics:{},
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: mapState({
|
|
computed: mapState({
|
|
username: (state) => state.user.username
|
|
username: (state) => state.user.username
|
|
}),
|
|
}),
|
|
async mounted() {
|
|
async mounted() {
|
|
-
|
|
|
|
- let res = await actCategoryService.treeData()
|
|
|
|
- let data = await processService.list({current: 1, size: -1})
|
|
|
|
- this.processMap = new Map()
|
|
|
|
- res.forEach((item)=>{
|
|
|
|
- this.processMap.set(item.name, [])
|
|
|
|
- })
|
|
|
|
- let list = data.records
|
|
|
|
- list.forEach((item)=>{
|
|
|
|
- if(this.processMap.has(item.category)){
|
|
|
|
- let list = this.processMap.get(item.category)
|
|
|
|
- list.push(item)
|
|
|
|
- }else{
|
|
|
|
- this.processMap.set(item.category, [item])
|
|
|
|
- }
|
|
|
|
|
|
+ gwCirculationCard2Service.getStatistics().then(data =>{
|
|
|
|
+ console.log("Statistics==",data);
|
|
|
|
+ this.statistics = data
|
|
})
|
|
})
|
|
|
|
+ // let res = await actCategoryService.treeData()
|
|
|
|
+ // let data = await processService.list({current: 1, size: -1})
|
|
|
|
+ // this.processMap = new Map()
|
|
|
|
+ // res.forEach((item)=>{
|
|
|
|
+ // this.processMap.set(item.name, [])
|
|
|
|
+ // })
|
|
|
|
+ // let list = data.records
|
|
|
|
+ // list.forEach((item)=>{
|
|
|
|
+ // if(this.processMap.has(item.category)){
|
|
|
|
+ // let list = this.processMap.get(item.category)
|
|
|
|
+ // list.push(item)
|
|
|
|
+ // }else{
|
|
|
|
+ // this.processMap.set(item.category, [item])
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
|
|
- for(let [key,value] of this.processMap){
|
|
|
|
- console.log(key,value);
|
|
|
|
- }
|
|
|
|
|
|
+ // for(let [key,value] of this.processMap){
|
|
|
|
+ // console.log(key,value);
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
},
|
|
},
|