xiao547607 5 lat temu
rodzic
commit
3c5291433d
3 zmienionych plików z 20 dodań i 10 usunięć
  1. 2 1
      .env.development
  2. BIN
      src/assets/home_logo.png
  3. 18 9
      src/views/Home.vue

+ 2 - 1
.env.development

@@ -1 +1,2 @@
-VUE_APP_BACKEND_URL=http://127.0.0.1:8080/smart-community-server
+#VUE_APP_BACKEND_URL=http://127.0.0.1:8080/smart-community-server
+VUE_APP_BACKEND_URL=http://zldb.xiaoxinda.com:8088/smart-community-server

BIN
src/assets/home_logo.png


+ 18 - 9
src/views/Home.vue

@@ -11,7 +11,10 @@
       <div slot="header" class="header">
         <span>系统使用情况</span>
       </div>
-      <div class="ax_default">
+      <div id="template">
+        <img id="homeLog" src="../assets/home_logo.png"/>
+      </div>
+      <!-- <div class="ax_default">
         <span style="margin-left:-100px">系统启用时间</span>
         <span style="margin-left:100px">业主总数</span>
       </div>
@@ -34,7 +37,7 @@
       <div class="ax_default" style="margin-top:20px">
         <span style="margin-left:-110px;font-size:28px"><b>12</b></span>起
         <span style="margin-left:130px;font-size:28px"><b>31</b></span>起
-      </div>
+      </div> -->
     </el-card>
 
     <el-card class="diagram_top">
@@ -127,9 +130,9 @@ export default {
               }
             },
             data: [
-              { value: 1500, name: "车位费" },
-              { value: 1300, name: "临时停车费" },
-              { value: 5000, name: "物业费" }
+              { value: 160000, name: "车位费" },
+              { value: 120000, name: "临时停车费" },
+              { value: 1100000, name: "物业费" }
             ],
             itemStyle: {
               emphasis: {
@@ -160,7 +163,7 @@ export default {
         },
         series: [
           {
-            name: "本月收费",
+            name: "车位",
             type: "pie",
             radius: "50%",
             center: ["35%", "30%"],
@@ -173,9 +176,9 @@ export default {
               }
             },
             data: [
-              { value: 4, name: "剩余车位" },
-              { value: 6, name: "已租车位" },
-              { value: 20, name: "已售车位" }
+              { value: 60, name: "剩余车位" },
+              { value: 120, name: "已租车位" },
+              { value: 400, name: "已售车位" }
             ],
             itemStyle: {
               emphasis: {
@@ -418,5 +421,11 @@ export default {
   float: right;
   width: 200px;
 }
+#template{
+  width: 400px;
+  height: 350px;
+  margin-left: -10px;
+  margin-top: -10px;
+}
 </style>