|
@@ -463,8 +463,22 @@
|
|
|
|
|
|
API.stationList().then((res) => {
|
|
|
|
|
|
- this.stationList = res.data.stationList
|
|
|
- this.stationListSon = res.data.deviceList
|
|
|
+ var list= res.data.stationList
|
|
|
+
|
|
|
+ var list2=list.sort(function(item1,item2){
|
|
|
+
|
|
|
+ if(item1.stationNo.indexOf("D")==0){
|
|
|
+ return 1
|
|
|
+ }
|
|
|
+ return (item1.stationNo>item2.stationNo)?1:-1
|
|
|
+ })
|
|
|
+ for(var i in list2){
|
|
|
+ console.log(list2[i].stationNo)
|
|
|
+ }
|
|
|
+
|
|
|
+ this.stationList =list2
|
|
|
+
|
|
|
+ this.stationListSon=res.data.deviceList
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|
|
|
|