index.vue
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<template>
<div class="app-container"></div>
</template>
<script>
import { workList } from "@/api/main/todoList";
import { getToken, Workflow } from '@/utils/auth'
import { getUserProfile } from "@/api/system/user";
export default {
data() {
return {
userName: '',
token: getToken(),
params: {
CC_DATE: [],
SHEETCREATETIME: [],
STATUS: "",
currentPage: 1,
order: "",
orderNumOrTitle: "",
pageLimit: 10,
processId: "",
timeRangeType: "",
type: "myAllTask",
userName: ''
}
}
},
created() {
this.getUser();
},
methods: {
getUser() {
getUserProfile().then(response => {
this.params.userName = response.data.userName;
this.getToDo();
});
},
getToDo() {
workList(this.token, this.params).then((res) => {
})
},
},
}
</script>