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

首页待办数单独接口

parent b45aeb5e
......@@ -35,7 +35,7 @@
<div class="card-panel-text">
{{$t('待办事项')}}
</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>
</el-col>
......@@ -72,13 +72,15 @@
import CountTo from 'vue-count-to'
import {panelData} from '@/api/system/pannel'
import {checkPermi} from '@/utils/permission'
import {taskTodoCount} from '@/api/bpm/task'
export default {
components: {
CountTo
},
data(){
return {
data: null
data: null,
todoCount: 0
}
},
methods: {
......@@ -91,6 +93,9 @@ export default {
panelData().then(res => {
this.data = res.data
})
taskTodoCount().then(res => {
this.todoCount = res.data
})
}
}
</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