对bmaps.js重新编译

This commit is contained in:
cloud 2020-12-30 20:40:01 +08:00
parent 6309a9f4da
commit 0e088ce932
1 changed files with 26 additions and 1 deletions

View File

@ -371,6 +371,18 @@ var APPMAP;
}; };
_this.villageFilterList = {}; _this.villageFilterList = {};
_this.villageList = {}; _this.villageList = {};
$(document).on('change', 'select[name="vtype"]', function () {
_this.filter();
});
_this.watch(_this, 'selectProv', function () {
_this.filter();
});
_this.watch(_this, 'selectCity', function () {
_this.filter();
});
_this.watch(_this, 'selectDist', function () {
_this.filter();
});
$('#selectMapId').on('shown.bs.modal', function () { $('#selectMapId').on('shown.bs.modal', function () {
if (_this.selectMapInitType) if (_this.selectMapInitType)
return false; return false;
@ -631,6 +643,20 @@ var APPMAP;
inputVid.val(keysStr); inputVid.val(keysStr);
inputVid.trigger('change'); inputVid.trigger('change');
}; };
selectMap.prototype.filter = function () {
var vtype = $('select[name="vtype"]').val();
vtype = vtype ? vtype.join(',') : '';
$('#selectMapId .mapreset').trigger('click');
this.selectMap.clearOverlays();
this.ajaxlnglatList(this.selectMap, {
id: '',
province: this.selectProv,
city: this.selectCity,
district: this.selectDist,
vtype: vtype,
allinfo: 'all'
}, true);
};
return selectMap; return selectMap;
}(initialMap)); }(initialMap));
function bmaps() { function bmaps() {
@ -643,7 +669,6 @@ var APPMAP;
new showMap(); new showMap();
} }
else if ($('#selectMap').length) { else if ($('#selectMap').length) {
console.log('-------------');
new selectMap(); new selectMap();
} }
} }