Переглянути джерело

工程现场 大屏界面修改

zhanghao 1 місяць тому
батько
коміт
3e6068ee1c

Різницю між файлами не показано, бо вона завелика
+ 152 - 152
src/views/screen/building/cameraDataDialog.vue


+ 24 - 23
src/views/screen/logistics/assets/codeBillDialog.vue

@@ -8,7 +8,7 @@
     </div>
     <div class="dialog-cont">
       <div class="dialog-left">
-       
+
         <div class="dialog-list">
           <div class="dialog-item wid100">
             <div class="content-title">
@@ -74,7 +74,7 @@
                 <span class="title">资产存量
                   <span class="smallTitle">截止至{{timeString}}</span>
                 </span>
-               
+
               </div>
               <div class="rightList1">
                 <div class="left-list">
@@ -315,7 +315,7 @@
                 </div>
             </div>
 
-        
+
 
             <div class="content">
               <div class="total-cont">
@@ -355,7 +355,7 @@
             </div>
             </div>
 
-       
+
           </div>
         </div>
       </div>
@@ -450,7 +450,7 @@ export default {
                   fontWeight: 'normal',
                   align: 'center',
                 },
-                subtitle: { 
+                subtitle: {
                   fontSize: 14,
                   color: '#ffffff',
                   fontWeight: 'normal',
@@ -474,7 +474,7 @@ export default {
         },
 
       },
-      
+
       lyTitle: {},
       fwTitle: {},
       bgTitle: {},
@@ -625,7 +625,7 @@ export default {
     timeMonth(){
       const year = this.currentTime.getFullYear();
       return `${year}`;
-    } 
+    }
   },
   created() {
     //楼宇各类资产占比
@@ -654,7 +654,7 @@ export default {
     this.inspectionSchemeNumX()
     //直属单位巡检执行数量
     this.inspectionSchemeNumY()
-    
+
 
   },
   destroyed() {},
@@ -676,7 +676,7 @@ export default {
               }
             };
           });
- 
+
       this.lyTitle= {
         text: `{title|资产数量}\n{subtitle|${res.data.buildingAssetNum}}`,
         left: "22%",//对齐方式居中
@@ -699,7 +699,7 @@ export default {
               }
             }
       }
-          
+
         }
       });
     },
@@ -719,7 +719,7 @@ export default {
               }
             };
           });
- 
+
       this.fwTitle= {
         text: `{title|资产数量}\n{subtitle|${res.data.serviceAssetNum}}`,
         left: "22%",//对齐方式居中
@@ -742,7 +742,7 @@ export default {
               }
             }
       }
-          
+
         }
       });
     },
@@ -762,7 +762,7 @@ export default {
               }
             };
           });
- 
+
       this.bgTitle= {
         text: `{title|资产数量}\n{subtitle|${res.data.officeAssetNum}}`,
         left: "22%",//对齐方式居中
@@ -785,7 +785,7 @@ export default {
               }
             }
       }
-          
+
         }
       });
     },
@@ -799,7 +799,7 @@ export default {
         }
       });
     },
-     
+
     //资产新增数量
     scrap() {
       scrap(this.$props.appOrg).then((res) => {
@@ -809,7 +809,7 @@ export default {
       });
     },
 
-      
+
     //资产报废数量
     dump() {
       dump(this.$props.appOrg).then((res) => {
@@ -845,6 +845,7 @@ export default {
      sceneRate() {
       sceneRate(this.$props.appOrg).then((res) => {
         if (Number(res.code) === 200) {
+          console.log(res.data)
           this.nowBuildingAreaBarAxis = {
             type: "category",
             data: res.data.xList,
@@ -942,8 +943,8 @@ export default {
     },
 
 
-     
-     
+
+
       //楼宇设备运行情况
       operation() {
         operation(this.$props.appOrg).then((res) => {
@@ -952,7 +953,7 @@ export default {
         }
       });
     },
-   
+
 
     //地市巡检执行数量
     inspectionSchemeNumX() {
@@ -1053,10 +1054,10 @@ export default {
         }
       });
     },
-     
-     
-     
-     
+
+
+
+
         //切换菜单
         chooseTab(index) {
       this.curIndex = index;

+ 19 - 0
src/views/screen/map/map.vue

@@ -175,6 +175,25 @@ export default {
             coordinateSystem: "geo", // 使用 `geo` 作为坐标系
             symbol: "image://" + require("@/assets/zhang/myMap/projectPosition.png"), // 自定义标记(图片)
             symbolSize: [30, 20], // 标记大小(宽 30,高 20)
+            label: {
+              show: true, // 直接显示数值
+              position: 'top',
+              formatter: (params) => // 格式化提示框内容
+                params.seriesType === "scatter"
+                  ? `{myStyle|在建:${params.data.x}}\n{myStyle|施工:${params.data.y}}`
+                  : params.name,
+              rich:{
+                myStyle: {
+                  color: "#fff", // 文字颜色
+                  fontSize: 12, // 字体大小
+                  lineHeight: 18
+                }
+              },
+              borderColor: "rgba(56,236,250)", // 边框颜色
+              borderWidth: 1,
+              padding: [4, 5], // 文字内边距(可选)
+              borderRadius: 2, // 文字框圆角(可选)
+            },
             data: this.points.map(({ name, coordinate, appOrg, x, y }) => ({
               name, // 点名称
               value: coordinate, // 经纬度坐标

Деякі файли не було показано, через те що забагато файлів було змінено