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

1,海子井总貌完成;2.操作记录和状态转换记录完成;3.健康报告改;

mw_666 3 роки тому
батько
коміт
bd81ef4f85

+ 10 - 2
src/components/other/healthReport/index.vue

@@ -997,12 +997,18 @@ export default {
         {
           title: "曲线偏差率",
           yAxisIndex: 0,
-          value: [],
+          value: [{
+              text: "1",
+              value: 0,
+            }],
         },
         {
           title: "基准值",
           yAxisIndex: 0,
-          value: [],
+          value: [{
+              text: "1",
+              value: 0,
+            },],
         },
       ],
       // 隐患部件频次统计
@@ -1758,6 +1764,7 @@ export default {
                 value: [],
               },
             ];
+			console.log(11111,res.data.healthreport.qxpcls)
 			if(res.data.healthreport.qxpcls){
 				let qxpcl = res.data.healthreport.qxpcls.sort(that.compare("date"));
 				if (qxpcl != null && qxpcl != undefined) {
@@ -1772,6 +1779,7 @@ export default {
 				    });
 				  }
 				  that.qxpcls = qxpcls;
+				  console.log(11111,that.qxpcls)
 				}
 			}
  

+ 10 - 14
src/views/WindSite/components/generalappearance/hzj.vue

@@ -11,7 +11,6 @@
 								<rect x="1008.969" y="29.538" fill="#B21F63" width="1.537" height="50.888"/>
 								<rect x="500.114" y="80.427" fill="#B21F63" width="595.531" height="1.537"/>
 								<text transform="matrix(1 0 0 1 1032.9893 52.8999)" fill="#FFFFFF" font-family="'MicrosoftYaHei'" font-size="14.0484">105</text>
-								<rect x="1004.063" y="35.898" fill="#ED2024" width="9.836" height="18.318"/>
 							</g>
 							<g>
 								<rect x="71.679" y="130.277" fill="#B6065C" width="862.731" height="1.537"/>
@@ -27,7 +26,6 @@
 								<rect x="213.391" y="131.412" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="791.16" y="130.294" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="502.733" y="131.412" fill="#B6065C" width="1.537" height="14.906"/>
-								<rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
 								<rect x="70.142" y="131.564" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="934.41" y="132.152" fill="#B6065C" width="1.537" height="14.905"/>
 							</g>
@@ -1979,7 +1977,6 @@
 								<rect x="213.078" y="365.332" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="790.85" y="364.215" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="502.421" y="365.332" fill="#B6065C" width="1.537" height="14.906"/>
-								<rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/>
 								<rect x="69.828" y="365.484" fill="#B6065C" width="1.537" height="14.906"/>
 								<rect x="934.098" y="366.072" fill="#B6065C" width="1.537" height="14.905"/>
 								<rect x="1048.693" y="81.964" fill="#B6065C" width="1.537" height="233.92"/>
@@ -5126,6 +5123,11 @@
 								</g>
 							</g>
 						</g>
+						<g id="sc">
+							<rect x="1004.063" y="35.898" fill="#ED2024" width="9.836" height="18.318"/>
+							<rect x="495.033" y="89.119" fill="#02A434" width="16.937" height="30.677"/>
+							<rect x="494.721" y="323.04" fill="#02A434" width="16.937" height="30.677"/>
+						</g>
 						</svg>
 					</template>
 				</previewPicture>
@@ -5159,25 +5161,19 @@
 			// 渲染每个机箱的表格参数
 			renderData(data) {
 				// 取出开关的 DOM
-				const switchDom = $("#data").find("rect");
+				const switchDom = $("#sc").find("rect");
 				// 遍历数据,首先取出开关单独写逻辑渲染颜色,除了开关以外的就是每个机箱的数据
 				for (let key in data) {
 					// 渲染开关
 					const item = data[key];
-					if (key === "dwkdqmx310") {
+					if (key === "hzj105") {
 						switchDom.eq(0).attr("fill", item ? this.green : this.red);
-					} else if (key === "dwkdqmx314") {
+					} else if (key === "hzj361") {
 						switchDom.eq(1).attr("fill", item ? this.green : this.red);
-					} else if (key === "dwkdqmx315") {
+					} else if (key === "hzj362") {
 						switchDom.eq(2).attr("fill", item ? this.green : this.red);
 					} else {
-						// var str = 'hzj0101gl';
-						// $('#alldata').find('#data'+str.slice(3,5)).find('g').eq(parseInt(str.slice(5,7)) - 1).find('text').eq(0).html('564654')
-						// 渲染电柜参数数据
-						const spKey = key.replace(/[^0-9]/gi, "");
-						// const dgDom = $("#_x23_" + spKey).find("text");
-						const dgDom = $("#_x23_" + spKey).find("text");
-
+						const dgDom = $('#alldata').find('#data'+key.slice(3,5)).find('g').eq(parseInt(key.slice(5,7)) - 1).find('text');
 						if (dgDom && key.indexOf("dl") !== -1) {
 							dgDom.eq(0).html(item);
 						} else if (dgDom && key.indexOf("dy") !== -1) {

+ 3 - 2
src/views/warn/czjl.vue

@@ -147,7 +147,7 @@
 				if (that.wpId) {
 					that.API.requestData({
 						method: "GET",
-						baseURL: "http://10.155.32.4:9001",
+						baseURL: "http://10.155.32.4:9001/",
 						subUrl: "benchmarking/wtList",
 						data: {
 							wpid
@@ -180,7 +180,8 @@
 				};
 				that.API.requestData({
 					showLoading:true,
-					subUrl: "/operationrecord/czlb",
+					baseURL: "http://10.155.32.4:9001/",
+					subUrl: "operationrecord/czlb",
 					data,
 					success(res) {
 						if (res.code == 200) {

+ 2 - 1
src/views/warn/ztzhjl.vue

@@ -191,7 +191,8 @@
 				};
 				that.API.requestData({
 					showLoading:true,
-					subUrl: "/operationrecord/zhlb",
+					baseURL: "http://10.155.32.4:9001/",
+					subUrl: "operationrecord/zhlb",
 					data,
 					success(res) {
 						if (res.code == 200) {