Quellcode durchsuchen

'调解首页开发'

hhl123456789 vor 2 Jahren
Ursprung
Commit
504e8ef1d5
5 geänderte Dateien mit 1056 neuen und 680 gelöschten Zeilen
  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 Datei anzeigen

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 Datei anzeigen


+ 934
- 674
src/views/caseManagement/caseList.vue
Datei-Diff unterdrückt, da er zu groß ist
Datei anzeigen


+ 105
- 3
src/views/index.vue Datei anzeigen

1
 <template>
1
 <template>
2
   <div class="app-container home">
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
   </div>
18
   </div>
5
 </template>
19
 </template>
6
 
20
 
7
 <script>
21
 <script>
22
+import { todoCount } from "@/api/system/homepage.js";
8
 export default {
23
 export default {
9
   name: "Index",
24
   name: "Index",
10
   data() {
25
   data() {
11
     return {
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
   methods: {
35
   methods: {
17
     goTarget(href) {
36
     goTarget(href) {
18
       window.open(href, "_blank");
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
 </script>
52
 </script>
23
 
53
 
24
 <style scoped lang="scss">
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
 </style>
128
 </style>
27
 
129
 

+ 7
- 3
src/views/login.vue Datei anzeigen

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