Commit 918e8b4b authored by dragondean@qq.com's avatar dragondean@qq.com

首页待办数单独接口

parent b45aeb5e
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="card-panel-text"> <div class="card-panel-text">
{{$t('待办事项')}} {{$t('待办事项')}}
</div> </div>
<count-to :start-val="0" :end-val="data.todoCount" :duration="3200" class="card-panel-num" /> <count-to :start-val="0" :end-val="todoCount" :duration="3200" class="card-panel-num" />
</div> </div>
</div> </div>
</el-col> </el-col>
...@@ -72,13 +72,15 @@ ...@@ -72,13 +72,15 @@
import CountTo from 'vue-count-to' import CountTo from 'vue-count-to'
import {panelData} from '@/api/system/pannel' import {panelData} from '@/api/system/pannel'
import {checkPermi} from '@/utils/permission' import {checkPermi} from '@/utils/permission'
import {taskTodoCount} from '@/api/bpm/task'
export default { export default {
components: { components: {
CountTo CountTo
}, },
data(){ data(){
return { return {
data: null data: null,
todoCount: 0
} }
}, },
methods: { methods: {
...@@ -91,6 +93,9 @@ export default { ...@@ -91,6 +93,9 @@ export default {
panelData().then(res => { panelData().then(res => {
this.data = res.data this.data = res.data
}) })
taskTodoCount().then(res => {
this.todoCount = res.data
})
} }
} }
</script> </script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment