zhengkaixin 11 months ago
parent
commit
4e89de2f56
1 changed files with 10 additions and 9 deletions
  1. 10 9
      pages/abnormal/abnormalContrastDetails.vue

+ 10 - 9
pages/abnormal/abnormalContrastDetails.vue

@@ -183,15 +183,16 @@
 				var value = this.orderByIndex.value
 				var childDcMap = []
 				var id = this.remoteMonitorMeter.id;
-				if (it1.meterId == id) {
-
-					return -1
-				}
-				if (it2.meterId == id) {
-
-					return 1
-				}
-				this.childDcMap.sort((it1, it2) => {
+				
+				this.childDcMap.sort((it1, it2) => {
+					if (it1.meterId == id) {
+					
+						return -1
+					}
+					if (it2.meterId == id) {
+					
+						return 1
+					}
 					if (value == '0') {
 						return it1.abDifference < it2.abDifference ? 1 : -1
 					} else if (value == '1') {