Browse Source

学校首页

gzb
wangzhonglu 9 months ago
parent
commit
787acc5d7f
2 changed files with 28 additions and 2 deletions
  1. 12
    0
      src/api/ra.js
  2. 16
    2
      src/views/schoolSection/home/index.vue

+ 12
- 0
src/api/ra.js View File

@@ -28,3 +28,15 @@ export const ra_list_ad = (data) => setRequest("ra/list_ad", data);
28 28
  * 12.1.6 平台/区域--设备活跃度
29 29
  */
30 30
 export const ra_list_da = (data) => setRequest("ra/list_da", data);
31
+/**
32
+ * 13.3.1 学校--设备用户
33
+ */
34
+export const ra_get_du = (data) => setRequest("ra/get_du", data);
35
+/**
36
+ * 13.3.2 学校--在线设备
37
+ */
38
+export const ra_list_dn = (data) => setRequest("ra/list_dn", data);
39
+/**
40
+ * 13.3.3 学校--增长趋势
41
+ */
42
+export const ra_list_dut = (data) => setRequest("ra/list_dut", data);

+ 16
- 2
src/views/schoolSection/home/index.vue View File

@@ -43,10 +43,24 @@ export default {
43 43
       border: 1px solid #e9f0f9;
44 44
       background-color: #fff;
45 45
       &.left_w {
46
-        width: 41.667%;
46
+        width: 40%;
47 47
       }
48 48
       &.right_w {
49
-        width: calc(58.333% - 10px);
49
+        width: calc(60% - 10px);
50
+      }
51
+      .cell_header {
52
+        position: relative;
53
+        display: flex;
54
+        justify-content: space-between;
55
+        align-items: center;
56
+        margin: 16px;
57
+        font-size: 16px;
58
+        line-height: 1;
59
+        font-weight: bold;
60
+      }
61
+      .content_main {
62
+        width: 100%;
63
+        height: calc(100% - 48px);
50 64
       }
51 65
     }
52 66
   }

Loading…
Cancel
Save