mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化代码
This commit is contained in:
parent
c71ec2bcc2
commit
3a7eb296b6
@ -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);
|
||||
|
||||
@ -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 = "";
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user