优化修改编辑问题

This commit is contained in:
java110 2020-11-21 18:58:28 +08:00
parent 7758773cdb
commit 4e9ba4525d
11 changed files with 30 additions and 12 deletions

View File

@ -208,7 +208,7 @@
vc.emit('listRoomFee','notify', {});
vc.emit('listParkingSpaceFee', 'notify', {});
vc.emit('simplifyRoomFee', 'notify',{});
vc.emit('simplifyCarFee', 'notify',{});
return;
}

View File

@ -126,7 +126,7 @@
$('#carCreateFeeAddModel').modal('hide');
vc.component.clearAddFeeConfigInfo();
vc.emit('listParkingSpaceFee', 'notify',{});
vc.emit('simplifyCarFee', 'notify',{});
vc.toast("创建收费成功,总共["+_json.totalCar+"]车位,成功["+_json.successCar+"],失败["+_json.errorCar+"]",8000);
return;
}

View File

@ -35,6 +35,7 @@
vc.emit('listRoomFee','notify',{});
vc.emit('listParkingSpaceFee','notify',{});
vc.emit('simplifyRoomFee', 'notify',{});
vc.emit('simplifyCarFee', 'notify',{});
vc.toast("删除费用成功");
return ;
}

View File

@ -146,7 +146,7 @@
//关闭model
$('#editCarModal').modal('hide');
vc.emit('listOwnerCar', 'listOwnerCarData', {});
vc.emit('simplifyOwnerCar', 'listOwnerCarData', {});
for (let key in $that.editCarInfo) {
$that.editCarInfo[key] = '';
}

View File

@ -115,7 +115,7 @@
vc.emit('listRoomFee', 'notify', {});
vc.emit('listParkingSpaceFee', 'notify', {});
vc.emit('simplifyRoomFee', 'notify', {});
vc.emit('simplifyCarFee', 'notify',{});
return;
}
vc.toast(json);

View File

@ -123,6 +123,8 @@
//关闭model
$('#editMachineTranslateModel').modal('hide');
vc.emit('machineTranslateManage', 'listMachineTranslate', {});
vc.emit('simplifyOwnerAccessContol', 'listMachineTranslate', {});
vc.emit('simplifyOwnerTransactionCar', 'listMachineTranslate', {});
return;
}
vc.toast(json);

View File

@ -34,7 +34,10 @@
})
});
vc.on('simplifyCarFee','paginationPlus', 'page_event',
vc.on('simplifyCarFee', 'notify', function () {
$that._listSimplifyCarFee(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyCarFee', 'paginationPlus', 'page_event',
function (_currentPage) {
$that._listSimplifyCarFee(_currentPage, DEFAULT_ROWS);
});
@ -58,7 +61,7 @@
vc.component.simplifyCarFeeInfo.total = _feeConfigInfo.total;
vc.component.simplifyCarFeeInfo.records = _feeConfigInfo.records;
vc.component.simplifyCarFeeInfo.fees = _feeConfigInfo.fees;
vc.emit('simplifyCarFee','paginationPlus', 'init', {
vc.emit('simplifyCarFee', 'paginationPlus', 'init', {
total: _feeConfigInfo.records,
currentPage: _page
});

View File

@ -19,6 +19,9 @@
vc.copyObject(_param, $that.simplifyOwnerAccessContolInfo)
$that._listSimplifyOwnerAccessContol(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyOwnerAccessContol', 'listMachineTranslate', function () {
$that._listSimplifyOwnerAccessContol(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyOwnerAccessContol','paginationPlus', 'page_event',
function (_currentPage) {
$that._listSimplifyOwnerAccessContol(_currentPage, DEFAULT_ROWS);

View File

@ -18,6 +18,9 @@
vc.copyObject(_param, $that.simplifyOwnerCarInfo)
$that._listSimplifyOwnerCar(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyOwnerCar', 'listOwnerCarData', function (_param) {
$that._listSimplifyOwnerCar(DEFAULT_PAGE, DEFAULT_ROWS);
});
},
methods: {
_listSimplifyOwnerCar: function (_page, _row) {
@ -62,7 +65,7 @@
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if (res.status == 200) {
vc.toast('释放成功');
$that._listOwnerCar(DEFAULT_PAGE, DEFAULT_ROWS);
$that._listSimplifyOwnerCar(DEFAULT_PAGE, DEFAULT_ROWS);
return;
}
vc.toast(json);

View File

@ -18,7 +18,9 @@
vc.copyObject(_param, $that.simplifyOwnerMemberInfo)
$that._listSimplifyOwnerMember(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyOwnerMember', 'listOwnerData',function (_param){
$that._listSimplifyOwnerMember(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('pagination', 'page_event',
function (_currentPage) {

View File

@ -28,10 +28,14 @@
});
vc.on('simplifyOwnerTransactionCar','paginationPlus', 'page_event',
function (_currentPage) {
$that._listSimplifyOwnerTransactionCar(_currentPage, DEFAULT_ROWS);
vc.on('simplifyOwnerTransactionCar', 'listMachineTranslate', function (_param) {
$that._listSimplifyOwnerTransactionCar(DEFAULT_PAGE, DEFAULT_ROWS);
});
vc.on('simplifyOwnerTransactionCar', 'paginationPlus', 'page_event',
function (_currentPage) {
$that._listSimplifyOwnerTransactionCar(_currentPage, DEFAULT_ROWS);
});
},
methods: {
_listSimplifyOwnerTransactionCar: function (_page, _row) {
@ -55,7 +59,7 @@
vc.component.simplifyOwnerTransactionCarInfo.total = _machineTranslateManageInfo.total;
vc.component.simplifyOwnerTransactionCarInfo.records = _machineTranslateManageInfo.records;
vc.component.simplifyOwnerTransactionCarInfo.machineTranslates = _machineTranslateManageInfo.machineTranslates;
vc.emit('simplifyOwnerTransactionCar','paginationPlus', 'init', {
vc.emit('simplifyOwnerTransactionCar', 'paginationPlus', 'init', {
total: vc.component.simplifyOwnerTransactionCarInfo.records,
currentPage: _page
});