mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-24 05:46:03 +08:00
人员加入门禁卡
This commit is contained in:
parent
2d56707f78
commit
36b254dc45
@ -212,6 +212,7 @@
|
||||
let param = {
|
||||
params:{
|
||||
targetUrl: '/',
|
||||
communityId:vc.getCurrentCommunity().communityId
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
|
||||
@ -22,27 +22,27 @@
|
||||
},
|
||||
_initMethod: function () {
|
||||
$that._getColumns(function () {
|
||||
vc.component._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
_initEvent: function () {
|
||||
vc.on('parkingAreaManage', 'listParkingArea',
|
||||
function (_param) {
|
||||
vc.component._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination', 'page_event',
|
||||
function (_currentPage) {
|
||||
vc.component._listParkingAreas(_currentPage, DEFAULT_ROWS);
|
||||
$that._listParkingAreas(_currentPage, DEFAULT_ROWS);
|
||||
}
|
||||
);
|
||||
},
|
||||
methods: {
|
||||
_listParkingAreas: function (_page, _rows) {
|
||||
vc.component.parkingAreaManageInfo.conditions.page = _page;
|
||||
vc.component.parkingAreaManageInfo.conditions.row = _rows;
|
||||
vc.component.parkingAreaManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
var param = {
|
||||
params: vc.component.parkingAreaManageInfo.conditions
|
||||
$that.parkingAreaManageInfo.conditions.page = _page;
|
||||
$that.parkingAreaManageInfo.conditions.row = _rows;
|
||||
$that.parkingAreaManageInfo.conditions.communityId = vc.getCurrentCommunity().communityId;
|
||||
let param = {
|
||||
params: $that.parkingAreaManageInfo.conditions
|
||||
};
|
||||
param.params.num = param.params.num.trim();
|
||||
param.params.paId = param.params.paId.trim();
|
||||
@ -50,13 +50,13 @@
|
||||
vc.http.apiGet('/parkingArea.listParkingAreas', param,
|
||||
function (json, res) {
|
||||
var _parkingAreaManageInfo = JSON.parse(json);
|
||||
vc.component.parkingAreaManageInfo.total = _parkingAreaManageInfo.total;
|
||||
vc.component.parkingAreaManageInfo.records = _parkingAreaManageInfo.records;
|
||||
vc.component.parkingAreaManageInfo.parkingAreas = _parkingAreaManageInfo.parkingAreas;
|
||||
$that.parkingAreaManageInfo.total = _parkingAreaManageInfo.total;
|
||||
$that.parkingAreaManageInfo.records = _parkingAreaManageInfo.records;
|
||||
$that.parkingAreaManageInfo.parkingAreas = _parkingAreaManageInfo.parkingAreas;
|
||||
$that.dealParkingAreaAttr(_parkingAreaManageInfo.parkingAreas);
|
||||
vc.emit('pagination', 'init', {
|
||||
total: vc.component.parkingAreaManageInfo.records,
|
||||
dataCount: vc.component.parkingAreaManageInfo.total,
|
||||
total: $that.parkingAreaManageInfo.records,
|
||||
dataCount: $that.parkingAreaManageInfo.total,
|
||||
currentPage: _page
|
||||
});
|
||||
},
|
||||
@ -75,20 +75,20 @@
|
||||
},
|
||||
//查询
|
||||
_queryParkingAreaMethod: function () {
|
||||
vc.component._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
//删除
|
||||
_resetParkingAreaMethod: function () {
|
||||
vc.component.parkingAreaManageInfo.conditions.num = "";
|
||||
vc.component.parkingAreaManageInfo.conditions.typeCd = "";
|
||||
vc.component.parkingAreaManageInfo.conditions.paId = "";
|
||||
vc.component._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
$that.parkingAreaManageInfo.conditions.num = "";
|
||||
$that.parkingAreaManageInfo.conditions.typeCd = "";
|
||||
$that.parkingAreaManageInfo.conditions.paId = "";
|
||||
$that._listParkingAreas(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_moreCondition: function () {
|
||||
if (vc.component.parkingAreaManageInfo.moreCondition) {
|
||||
vc.component.parkingAreaManageInfo.moreCondition = false;
|
||||
if ($that.parkingAreaManageInfo.moreCondition) {
|
||||
$that.parkingAreaManageInfo.moreCondition = false;
|
||||
} else {
|
||||
vc.component.parkingAreaManageInfo.moreCondition = true;
|
||||
$that.parkingAreaManageInfo.moreCondition = true;
|
||||
}
|
||||
},
|
||||
dealParkingAreaAttr: function (parkingAreas) {
|
||||
@ -141,6 +141,7 @@
|
||||
let param = {
|
||||
params:{
|
||||
targetUrl: encodeURIComponent('/#/pages/car/parkingAreaTotalControl?paId=' + _parkingArea.paId),
|
||||
communityId:vc.getCurrentCommunity().communityId
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
|
||||
@ -97,6 +97,8 @@
|
||||
let param = {
|
||||
params:{
|
||||
targetUrl: encodeURIComponent('/#/pages/car/parkingAreaControl?boxId=' + _parkingBox.boxId + "&paId=" + _parkingBox.paId),
|
||||
communityId:vc.getCurrentCommunity().communityId
|
||||
|
||||
}
|
||||
};
|
||||
//发送get请求
|
||||
|
||||
Loading…
Reference in New Issue
Block a user