diff --git a/src/views/yinnong/my.vue b/src/views/yinnong/my.vue
index 01bce5ec..6018d384 100644
--- a/src/views/yinnong/my.vue
+++ b/src/views/yinnong/my.vue
@@ -19,12 +19,12 @@
待办
-
0
+
{{todoTotal}}
未完成的待办审批事项
已办
-
0
+
{{doneTotal}}
未完成的待办审批事项
@@ -140,6 +140,7 @@
import yinnongIndex from "../yinnongIndex";
import {getInfo, logout} from "../../api/login";
import request from '@/utils/request'
+ import {A_myDoneList, A_myTodoList} from "@/api/audit/aauditpipeline";
export default {
components: {
yinnongIndex
@@ -154,6 +155,13 @@
deptName:"",
userId:"",
avatar:"",
+ queryParams: {
+ pageNum: 1,
+ pageSize:5,
+ },
+ todoTotal:0,
+ doneTotal:0,
+
};
},
created() {
@@ -163,8 +171,17 @@
this.userId = response.user.userId
this.avatar = location.protocol+"//"+location.host+request.defaults.baseURL+response.user.avatar
});
+ this.getData();
},
methods: {
+ getData(){
+ A_myTodoList(this.queryParams).then((response) => {
+ this.todoTotal = response.total;
+ })
+ A_myDoneList(this.queryParams).then((response) => {
+ this.doneTotal = response.total;
+ })
+ },
logout(){
this.$store.dispatch('LogOut').then(() => {
this.$router.push({path:"../yinnongLogin"})