|
|
@@ -1,27 +1,129 @@
|
|
1
|
1
|
<template>
|
|
2
|
2
|
<div class="app-container home">
|
|
3
|
|
- 调解系统
|
|
|
3
|
+ <div class="header">
|
|
|
4
|
+ <div class="iconTitle"></div>
|
|
|
5
|
+ <div class="headerMain">我的待办</div>
|
|
|
6
|
+ </div>
|
|
|
7
|
+ <div class="homeMain">
|
|
|
8
|
+ <div class="cardList" v-for="(item, index) in pendingTasks" :key="index" @click="pushPage(item.caseFlowId)">
|
|
|
9
|
+ <div class="badge">{{item.caseCount}}</div>
|
|
|
10
|
+ <div class="cardMain">
|
|
|
11
|
+ <img class="iconImg" src="@/assets/images/daiban.png" alt="" />
|
|
|
12
|
+ </div>
|
|
|
13
|
+ <div class="cardMain">
|
|
|
14
|
+ <div class="imgTitle">{{ item.caseStatusName }}</div>
|
|
|
15
|
+ </div>
|
|
|
16
|
+ </div>
|
|
|
17
|
+ </div>
|
|
4
|
18
|
</div>
|
|
5
|
19
|
</template>
|
|
6
|
20
|
|
|
7
|
21
|
<script>
|
|
|
22
|
+import { todoCount } from "@/api/system/homepage.js";
|
|
8
|
23
|
export default {
|
|
9
|
24
|
name: "Index",
|
|
10
|
25
|
data() {
|
|
11
|
26
|
return {
|
|
12
|
27
|
// 版本号
|
|
13
|
|
- version: "3.8.6"
|
|
|
28
|
+ version: "3.8.6",
|
|
|
29
|
+ pendingTasks: [], //案件代办状态
|
|
14
|
30
|
};
|
|
15
|
31
|
},
|
|
|
32
|
+ created() {
|
|
|
33
|
+ this.gettodoCount();
|
|
|
34
|
+ },
|
|
16
|
35
|
methods: {
|
|
17
|
36
|
goTarget(href) {
|
|
18
|
37
|
window.open(href, "_blank");
|
|
|
38
|
+ },
|
|
|
39
|
+ // 查询代办状态
|
|
|
40
|
+ gettodoCount() {
|
|
|
41
|
+ todoCount({}).then((res) => {
|
|
|
42
|
+ this.pendingTasks = res.data.toDoCountList
|
|
|
43
|
+ console.log(res.data.toDoCountList, "this.pendingTasks");
|
|
|
44
|
+ });
|
|
|
45
|
+ },
|
|
|
46
|
+ // 点击待办按钮跳转
|
|
|
47
|
+ pushPage(status) {
|
|
|
48
|
+ this.$router.push({ path: '/caseManagement/caseManagement/caseList', query: { caseFlowId: status + '' } })
|
|
19
|
49
|
}
|
|
20
|
|
- }
|
|
|
50
|
+ },
|
|
21
|
51
|
};
|
|
22
|
52
|
</script>
|
|
23
|
53
|
|
|
24
|
54
|
<style scoped lang="scss">
|
|
|
55
|
+.home {
|
|
|
56
|
+ font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
|
57
|
+ font-size: 13px;
|
|
|
58
|
+ color: #676a6c;
|
|
|
59
|
+ overflow-x: hidden;
|
|
|
60
|
+ background-color: #f1f1f1;
|
|
|
61
|
+ height: 100vh;
|
|
|
62
|
+
|
|
|
63
|
+ .header {
|
|
|
64
|
+ width: 100%;
|
|
|
65
|
+ height: 80px;
|
|
|
66
|
+ display: flex;
|
|
|
67
|
+ align-items: center;
|
|
|
68
|
+
|
|
|
69
|
+ .iconTitle {
|
|
|
70
|
+ width: 5px;
|
|
|
71
|
+ height: 25px;
|
|
|
72
|
+ background-color: #0f5c9b;
|
|
|
73
|
+ margin-right: 25px;
|
|
|
74
|
+ }
|
|
|
75
|
+
|
|
|
76
|
+ .headerMain {
|
|
|
77
|
+ font-size: 20px;
|
|
|
78
|
+ }
|
|
|
79
|
+ }
|
|
|
80
|
+
|
|
|
81
|
+ .homeMain {
|
|
|
82
|
+ width: 100%;
|
|
|
83
|
+ display: flex;
|
|
|
84
|
+ flex-wrap: wrap;
|
|
|
85
|
+
|
|
|
86
|
+ .cardList {
|
|
|
87
|
+ width: 13%;
|
|
|
88
|
+ height: 200px;
|
|
|
89
|
+ border-radius: 30px;
|
|
|
90
|
+ background-color: #ffffff;
|
|
|
91
|
+ position: relative;
|
|
|
92
|
+ margin-right: 38px;
|
|
|
93
|
+ margin-bottom: 30px;
|
|
|
94
|
+
|
|
|
95
|
+ .badge {
|
|
|
96
|
+ width: 50px;
|
|
|
97
|
+ height: 30px;
|
|
|
98
|
+ text-align: center;
|
|
|
99
|
+ line-height: 30px;
|
|
|
100
|
+ font-size: 18px;
|
|
|
101
|
+ font-weight: 500;
|
|
|
102
|
+ color: #e32a4f;
|
|
|
103
|
+ border-radius: 10px 30px 10px 30px;
|
|
|
104
|
+ background-color: #05baf1;
|
|
|
105
|
+ position: absolute;
|
|
|
106
|
+ right: 0;
|
|
|
107
|
+ }
|
|
25
|
108
|
|
|
|
109
|
+ .cardMain {
|
|
|
110
|
+ width: 100%;
|
|
|
111
|
+ display: flex;
|
|
|
112
|
+ justify-content: center;
|
|
|
113
|
+ margin-top: 20px;
|
|
|
114
|
+
|
|
|
115
|
+ .iconImg {
|
|
|
116
|
+ width: 100px;
|
|
|
117
|
+ height: 110px;
|
|
|
118
|
+ }
|
|
|
119
|
+
|
|
|
120
|
+ .imgTitle {
|
|
|
121
|
+ font-size: 15px;
|
|
|
122
|
+ font-weight: 900;
|
|
|
123
|
+ }
|
|
|
124
|
+ }
|
|
|
125
|
+ }
|
|
|
126
|
+ }
|
|
|
127
|
+}
|
|
26
|
128
|
</style>
|
|
27
|
129
|
|