Browse Source

Merge branch 'mw' of http://124.70.43.205:3000/yangxiao/sis_zhfx into wangbo

Administrator 3 years ago
parent
commit
b78b796ba4

+ 13 - 0
src/assets/styles/theme/light/jsc.less

@@ -182,6 +182,7 @@
 		  background-color: @gray-l;
 		  color: @black;
 	}
+
     .el-table td.light, .df-table .el-table td.light, .main-body .custom-table.el-table td.light, 
     .df-table .custom-table.el-table td.light, .main-body .el-table td.always-light, 
     .df-table .el-table td.always-light, .main-body .custom-table.el-table td.always-light, 
@@ -189,4 +190,16 @@
         color: @deepblue !important;
         font-weight: bold;
     }
+	
+	// 升压站,总貌图svg
+	.svg{
+		#footer text{
+			fill: @black;
+		}
+		#data{
+			text{
+				fill: @white;
+			}
+		}
+	}
 }

+ 17 - 2
src/views/WindSite/components/boosterstation/mhs.vue

@@ -4610,7 +4610,7 @@
                   width="79.533"
                   height="23.402"
                 ></rect>
-                <g>
+                <g id="footer">
                   <g>
                     <text
                       transform="matrix(1 0 0 1 18.8752 1030.8413)"
@@ -9082,6 +9082,7 @@
 <script>
 import previewPicture from "../previewPicture.vue";
 import { BoosterStation } from "./BoosterStation";
+import $ from "jquery";
 export default {
   components: {
     previewPicture,
@@ -9096,10 +9097,24 @@ export default {
   },
   created() {
     this.boosterStation = new BoosterStation();
-
     this.refreshTPData();
     this.interval = setInterval(this.refreshTPData, 1000);
   },
+  mounted() {
+  	this.$nextTick(()=>{
+		if(this.$store.state.themeName === "light"){
+			for(let i=0;i<$('#other text').length;i++){
+				let that = $('#other text').eq(i);
+				let fill = that.attr('fill');
+				let txt = parseInt(that.text());
+				let zn = /.*[\u4e00-\u9fa5]+.*$/.test(that.text());//判断是否包含中文
+				if(fill === '#FFFFFF' && !isNaN(txt) && !zn){
+					that.attr('fill','#000');
+				}
+			}
+		}
+	})
+  },
   methods: {
     closed() {
       clearInterval(this.interval);