|
@@ -19,12 +19,12 @@ |
|
|
<div class="flex_main"> |
|
|
<div class="flex_main"> |
|
|
<div class="flex_block"> |
|
|
<div class="flex_block"> |
|
|
<p>待办</p> |
|
|
<p>待办</p> |
|
|
<p>0</p> |
|
|
|
|
|
|
|
|
<p>{{todoTotal}}</p> |
|
|
<p>未完成的待办审批事项</p> |
|
|
<p>未完成的待办审批事项</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="flex_block"> |
|
|
<div class="flex_block"> |
|
|
<p>已办</p> |
|
|
<p>已办</p> |
|
|
<p>0</p> |
|
|
|
|
|
|
|
|
<p>{{doneTotal}}</p> |
|
|
<p>未完成的待办审批事项</p> |
|
|
<p>未完成的待办审批事项</p> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@@ -140,6 +140,7 @@ |
|
|
import yinnongIndex from "../yinnongIndex"; |
|
|
import yinnongIndex from "../yinnongIndex"; |
|
|
import {getInfo, logout} from "../../api/login"; |
|
|
import {getInfo, logout} from "../../api/login"; |
|
|
import request from '@/utils/request' |
|
|
import request from '@/utils/request' |
|
|
|
|
|
import {A_myDoneList, A_myTodoList} from "@/api/audit/aauditpipeline"; |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
yinnongIndex |
|
|
yinnongIndex |
|
@@ -154,6 +155,13 @@ |
|
|
deptName:"", |
|
|
deptName:"", |
|
|
userId:"", |
|
|
userId:"", |
|
|
avatar:"", |
|
|
avatar:"", |
|
|
|
|
|
queryParams: { |
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
pageSize:5, |
|
|
|
|
|
}, |
|
|
|
|
|
todoTotal:0, |
|
|
|
|
|
doneTotal:0, |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
created() { |
|
|
created() { |
|
@@ -163,8 +171,17 @@ |
|
|
this.userId = response.user.userId |
|
|
this.userId = response.user.userId |
|
|
this.avatar = location.protocol+"//"+location.host+request.defaults.baseURL+response.user.avatar |
|
|
this.avatar = location.protocol+"//"+location.host+request.defaults.baseURL+response.user.avatar |
|
|
}); |
|
|
}); |
|
|
|
|
|
this.getData(); |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getData(){ |
|
|
|
|
|
A_myTodoList(this.queryParams).then((response) => { |
|
|
|
|
|
this.todoTotal = response.total; |
|
|
|
|
|
}) |
|
|
|
|
|
A_myDoneList(this.queryParams).then((response) => { |
|
|
|
|
|
this.doneTotal = response.total; |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
logout(){ |
|
|
logout(){ |
|
|
this.$store.dispatch('LogOut').then(() => { |
|
|
this.$store.dispatch('LogOut').then(() => { |
|
|
this.$router.push({path:"../yinnongLogin"}) |
|
|
this.$router.push({path:"../yinnongLogin"}) |
|
|