Selaa lähdekoodia

'202206171221'

fanghuisheng 3 vuotta sitten
vanhempi
commit
3e4f549654

BIN
202206170942.zip


BIN
202206170952.zip


BIN
202206171043.zip


BIN
202206171110.zip → 202206171221.zip


+ 1 - 1
src/api/home/home.js

@@ -69,7 +69,7 @@ export default {
     // 地图撒点
     siteList_api(params) {
         return request({
-            url: `site/list2`,
+            url: `site/list`,
             method: 'GET',
             params: params
         })

+ 5 - 2
src/assets/css/index.css

@@ -412,6 +412,7 @@ header {
     from {
         transform: translate(-50%, -50%) rotate(0deg);
     }
+
     to {
         transform: translate(-50%, -50%) rotate(360deg);
     }
@@ -421,6 +422,7 @@ header {
     from {
         transform: translate(-50%, -50%) rotate(0deg);
     }
+
     to {
         transform: translate(-50%, -50%) rotate(-360deg);
     }
@@ -842,8 +844,9 @@ p {
     color: #37a5eb;
     display: inline-block;
     text-align: right;
-    width: 80px;
+    width: 30%;
     min-width: 80px;
+    white-space: nowrap
 }
 
 .siteModelBox .infoLine p {
@@ -910,7 +913,7 @@ p {
 
 .el-date-editor--datetimerange.el-input,
 .el-date-editor--datetimerange.el-input__inner {
-    width: 350px!important
+    width: 350px !important
 }
 
 .zwsj img {

+ 10 - 1
src/views/home/index.vue

@@ -435,7 +435,16 @@ export default {
         console.log(val);
         let marker = new AMap.Marker({
           position: new AMap.LngLat(val.longitude, val.latitude),
-          icon: val.deviceStatus==0?markIconNormal:val.deviceStatus==1?markIconOffLine:val.deviceStatus==77?markIconAlarming:val.deviceStatus==4?markIconError:'',
+          icon:
+            val.deviceStatus == 0
+              ? markIconNormal
+              : val.deviceStatus == 1
+              ? markIconOffLine
+              : val.deviceStatus == 77
+              ? markIconAlarming
+              : val.deviceStatus == 4
+              ? markIconError
+              : "",
 
           //   icon: '//a.amap.com/jsapi_demos/static/demo-center/icons/dir-via-marker.png',
           zIndex: 9,

+ 1 - 1
src/views/index.vue

@@ -141,7 +141,7 @@ export default {
       if (window.location.host.indexOf("localhost") != -1) {
         window.location.href = "http://localhost:10000";
       } else {
-        window.location.href = "http://101.133.214.75:13201/backStage";
+        window.location.href = "http://101.133.214.75:13201/";
       }
 
       // ElMessage.warning("开发中....");