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