From 733823ffa701f749c7154cacf60a26951891f2ca Mon Sep 17 00:00:00 2001 From: whyczyk <525500596@qq.com> Date: 星期三, 02 三月 2022 16:33:41 +0800 Subject: [PATCH] 老平台对接接口防重放问题 --- public/mapJson/js/index.js | 102 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 99 insertions(+), 3 deletions(-) diff --git a/public/mapJson/js/index.js b/public/mapJson/js/index.js index df37dc6..64c3736 100644 --- a/public/mapJson/js/index.js +++ b/public/mapJson/js/index.js @@ -102,8 +102,16 @@ StationName1: '灞变笢鐪�', StationName2: '鐑熷彴甯�', StationName5: '', - adcode: 370000, + adcode: 370600, value: 'yantai' + }, + { + label: '灞变笢鐪�-涓存矀甯�', + StationName1: '灞变笢鐪�', + StationName2: '涓存矀甯�', + StationName5: '', + adcode: 371300, + value: 'linyishi' }, { label: '璐靛窞鐪�', @@ -162,6 +170,14 @@ value: 'suzhoushi' }, { + label: "姹熻嫃鐪�-鏃犻敗甯�", + StationName1: "姹熻嫃鐪�", + StationName2: '鏃犻敗甯�', + StationName5: '', + adcode: 320200, + value: 'wuxishi' + }, + { label: "姹熻嫃鐪�-鑻忓窞甯�-鍚翠腑鍖�", StationName1: "姹熻嫃鐪�", StationName2: '鑻忓窞甯�', @@ -176,14 +192,94 @@ StationName5: '', adcode: 220000, value: 'jilinsheng' + }, + { + label: "鍐呰挋鍙よ嚜娌诲尯", + StationName1: "鍐呰挋鍙よ嚜娌诲尯", + StationName2: '', + StationName5: '', + adcode: 150000, + value: 'neimengguzizhiqu' + }, + { + label: "鍐呰挋鍙よ嚜娌诲尯-閫氳窘甯�", + StationName1: "鍐呰挋鍙よ嚜娌诲尯", + StationName2: '閫氳窘甯�', + StationName5: '', + adcode: 150500, + value: 'tongliaoshi' + }, + { + label: "骞胯タ澹棌鑷不鍖�", + StationName1: "骞胯タ澹棌鑷不鍖�", + StationName2: "", + StationName5: "", + adcode: 450000, + value: "guangxizhuangzuzizhiqu" + }, + { + label: "骞胯タ澹棌鑷不鍖�-鐧捐壊甯�", + StationName1: "骞胯タ澹棌鑷不鍖�", + StationName2: "鐧捐壊甯�", + StationName5: "", + adcode: 451000, + value: "baiseshi" + }, + { + label: "杈藉畞鐪�", + StationName1: "杈藉畞鐪�", + StationName2: "", + StationName5: "", + adcode: 210000, + value: "liaoningsheng" + }, + { + label: "杈藉畞鐪�-鏈邯甯�", + StationName1: "杈藉畞鐪�", + StationName2: "鏈邯甯�", + StationName5: "", + adcode: 210500, + value: "benxishi" + }, + { + label: "杈藉畞鐪�-澶ц繛甯�", + StationName1: "杈藉畞鐪�", + StationName2: "澶ц繛甯�", + StationName5: "", + adcode: 210200, + value: "dalianshi" + }, + { + label: "绂忓缓鐪�", + StationName1: "绂忓缓鐪�", + StationName2: "", + StationName5: "", + adcode: 350000, + value: "fujiansheng" + }, + { + label: "绂忓缓鐪�-绂忓窞甯�", + StationName1: "绂忓缓鐪�", + StationName2: "绂忓窞甯�", + StationName5: "", + adcode: 350100, + value: "fuzhoushi" + }, + { + label: "鍥涘窛鐪�", + StationName1: "鍥涘窛鐪�", + StationName2: "", + StationName5: "", + adcode: 510000, + value: "sichuansheng" } ]; }, getItemByValue(value, list) { let result = false; - for(let i=0; i<list.length; i++) { + for (let i = 0; i < list.length; i++) { let item = list[i]; - if(item.value == value) { + if (item.value == value) { result = item; } } -- Gitblit v1.9.1