diff --git a/public/components/property/floorSelect2/floorSelect2.js b/public/components/property/floorSelect2/floorSelect2.js index d6f01f987..871f5b51f 100644 --- a/public/components/property/floorSelect2/floorSelect2.js +++ b/public/components/property/floorSelect2/floorSelect2.js @@ -58,9 +58,10 @@ }, methods: { _initFloorSelect2: function() { - console.log("调用_initFloorSelect2 方法"); $.fn.modal.Constructor.prototype.enforceFocus = function() {}; $.fn.select2.defaults.set('width', '100%'); + let _accessToken = vcFramework.getData('hc_accessToken'); + this.floorSelect2Info.floorSelector = $('#floorSelector').select2({ placeholder: '必填,请选择楼栋', allowClear: true, //允许清空 @@ -75,7 +76,8 @@ 'APP-ID': '8000418004', 'TRANSACTION-ID': vc.uuid(), 'REQ-TIME': vc.getDateYYYYMMDDHHMISS(), - 'SIGN': '' + 'SIGN': '', + 'Authorization':'Bearer '+_accessToken.token }, data: function(params) { console.log("param", params); diff --git a/public/components/property/roomSelect2/roomSelect2.js b/public/components/property/roomSelect2/roomSelect2.js index 08397bdf1..7960a4212 100644 --- a/public/components/property/roomSelect2/roomSelect2.js +++ b/public/components/property/roomSelect2/roomSelect2.js @@ -81,6 +81,7 @@ _initRoomSelect2: function() { $.fn.modal.Constructor.prototype.enforceFocus = function() {}; $.fn.select2.defaults.set('width', '100%'); + let _accessToken = vcFramework.getData('hc_accessToken'); this.roomSelect2Info.roomSelector = $('#roomSelector').select2({ placeholder: '必填,请选择房屋', allowClear: true, //允许清空 @@ -95,7 +96,8 @@ 'APP-ID': '8000418004', 'TRANSACTION-ID': vc.uuid(), 'REQ-TIME': vc.getDateYYYYMMDDHHMISS(), - 'SIGN': '' + 'SIGN': '', + 'Authorization':'Bearer '+_accessToken.token }, data: function(params) { let _term = ""; diff --git a/public/components/property/unitSelect2/unitSelect2.js b/public/components/property/unitSelect2/unitSelect2.js index f3c82bd9d..5d70e2f58 100644 --- a/public/components/property/unitSelect2/unitSelect2.js +++ b/public/components/property/unitSelect2/unitSelect2.js @@ -65,6 +65,7 @@ console.log("调用_initUnitSelect2 方法"); $.fn.modal.Constructor.prototype.enforceFocus = function() {}; $.fn.select2.defaults.set('width', '100%'); + let _accessToken = vcFramework.getData('hc_accessToken'); this.unitSelect2Info.unitSelector = $('#unitSelector').select2({ placeholder: '必填,请选择单元', allowClear: true, //允许清空 @@ -79,7 +80,8 @@ 'APP-ID': '8000418004', 'TRANSACTION-ID': vc.uuid(), 'REQ-TIME': vc.getDateYYYYMMDDHHMISS(), - 'SIGN': '' + 'SIGN': '', + 'Authorization':'Bearer '+_accessToken.token }, data: function(params) { console.log("param", params); diff --git a/public/pages/property/reportCollectFees/unitSelect2.js b/public/pages/property/reportCollectFees/unitSelect2.js index f3c82bd9d..5d70e2f58 100644 --- a/public/pages/property/reportCollectFees/unitSelect2.js +++ b/public/pages/property/reportCollectFees/unitSelect2.js @@ -65,6 +65,7 @@ console.log("调用_initUnitSelect2 方法"); $.fn.modal.Constructor.prototype.enforceFocus = function() {}; $.fn.select2.defaults.set('width', '100%'); + let _accessToken = vcFramework.getData('hc_accessToken'); this.unitSelect2Info.unitSelector = $('#unitSelector').select2({ placeholder: '必填,请选择单元', allowClear: true, //允许清空 @@ -79,7 +80,8 @@ 'APP-ID': '8000418004', 'TRANSACTION-ID': vc.uuid(), 'REQ-TIME': vc.getDateYYYYMMDDHHMISS(), - 'SIGN': '' + 'SIGN': '', + 'Authorization':'Bearer '+_accessToken.token }, data: function(params) { console.log("param", params);