mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
优化删除功能
This commit is contained in:
parent
91e16e65f1
commit
a64c6b79e3
@ -3,8 +3,7 @@
|
||||
data: {
|
||||
deleteStorehouseManageInfo: {}
|
||||
},
|
||||
_initMethod: function () {
|
||||
},
|
||||
_initMethod: function() {},
|
||||
_initEvent: function() {
|
||||
vc.on('deleteStorehouseManage', 'openDeleteStorehouseManageModal', function(_params) {
|
||||
vc.component.deleteStorehouseManageInfo = _params;
|
||||
@ -16,14 +15,13 @@
|
||||
vc.component.deleteStorehouseManageInfo.communityId = vc.getCurrentCommunity().communityId;
|
||||
//发送get请求
|
||||
vc.http.apiPost('resourceStore.deleteAllocationStorehouse',
|
||||
JSON.stringify(vc.component.deleteStorehouseManageInfo),
|
||||
{
|
||||
JSON.stringify(vc.component.deleteStorehouseManageInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
let _json = JSON.parse(json);
|
||||
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
|
||||
if (_json.status == 200) {
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#deleteStorehouseManageModel').modal('hide');
|
||||
vc.emit('allocationStorehouseManage', 'listAllocationStorehouse', {});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user