hhl123456789 преди 2 години
родител
ревизия
504e8ef1d5
променени са 5 файла, в които са добавени 1056 реда и са изтрити 680 реда
  1. 10
    0
      src/api/system/homepage.js
  2. BIN
      src/assets/images/daiban.png
  3. 934
    674
      src/views/caseManagement/caseList.vue
  4. 105
    3
      src/views/index.vue
  5. 7
    3
      src/views/login.vue

+ 10
- 0
src/api/system/homepage.js Целия файл

@@ -0,0 +1,10 @@
1
+import request from '@/utils/request'
2
+
3
+// 查询首页待办
4
+export function todoCount(data) {
5
+    return request({
6
+        url: '/caseApplication/todoCount',
7
+        method: 'get',
8
+        params: data
9
+    })
10
+}

BIN
src/assets/images/daiban.png Целия файл


+ 934
- 674
src/views/caseManagement/caseList.vue
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 105
- 3
src/views/index.vue Целия файл

@@ -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
 

+ 7
- 3
src/views/login.vue Целия файл

@@ -67,7 +67,8 @@
67 67
     </div>
68 68
     <!--  底部  -->
69 69
     <div class="el-login-footer">
70
-      <span>Copyright © 2023 乙巢(上海)企业管理服务有限公司.</span>
70
+      <div>Copyright © 2023 乙巢(上海)企业管理服务有限公司.</div>
71
+      <div>Version:1.0.1</div>
71 72
     </div>
72 73
   </div>
73 74
 </template>
@@ -247,8 +248,8 @@ export default {
247 248
 }
248 249
 .el-login-footer {
249 250
   background-color: rgb(126, 131, 135);
250
-  height: 40px;
251
-  line-height: 40px;
251
+  height: 55px;
252
+  line-height: 55px;
252 253
   position: fixed;
253 254
   bottom: 0;
254 255
   width: 100%;
@@ -257,6 +258,9 @@ export default {
257 258
   font-family: Arial;
258 259
   font-size: 12px;
259 260
   letter-spacing: 1px;
261
+  div {
262
+    height: 30%;
263
+  }
260 264
 }
261 265
 .login-code-img {
262 266
   height: 38px;