mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-12 10:00:56 +08:00
优化代码
This commit is contained in:
parent
7627d8f200
commit
ff05af3f6f
@ -15,8 +15,7 @@
|
|||||||
dpId: ''
|
dpId: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
_initMethod: function () {
|
_initMethod: function() {},
|
||||||
},
|
|
||||||
_initEvent: function() {
|
_initEvent: function() {
|
||||||
vc.on('dataPrivilegeUnitInfo', 'openDataPrivilegeUnit', function(_param) {
|
vc.on('dataPrivilegeUnitInfo', 'openDataPrivilegeUnit', function(_param) {
|
||||||
vc.copyObject(_param, vc.component.dataPrivilegeUnitInfo);
|
vc.copyObject(_param, vc.component.dataPrivilegeUnitInfo);
|
||||||
@ -36,7 +35,7 @@
|
|||||||
params: {
|
params: {
|
||||||
page: _page,
|
page: _page,
|
||||||
row: _rows,
|
row: _rows,
|
||||||
roleId: vc.component.dataPrivilegeUnitInfo.pgId
|
dpId: vc.component.dataPrivilegeUnitInfo.dpId
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//发送get请求
|
//发送get请求
|
||||||
@ -52,7 +51,8 @@
|
|||||||
dataCount: vc.component.dataPrivilegeUnitInfo.total,
|
dataCount: vc.component.dataPrivilegeUnitInfo.total,
|
||||||
currentPage: _page
|
currentPage: _page
|
||||||
});
|
});
|
||||||
}, function (errInfo, error) {
|
},
|
||||||
|
function(errInfo, error) {
|
||||||
console.log('请求失败处理');
|
console.log('请求失败处理');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@ -65,8 +65,7 @@
|
|||||||
_openDeleteDataPrivilegeUnitModel: function(_dataPrivilegeUnit) {
|
_openDeleteDataPrivilegeUnitModel: function(_dataPrivilegeUnit) {
|
||||||
vc.emit('deleteDataPrivilegeUnit', 'openDeleteDataPrivilegeUnitModal', _dataPrivilegeUnit);
|
vc.emit('deleteDataPrivilegeUnit', 'openDeleteDataPrivilegeUnitModal', _dataPrivilegeUnit);
|
||||||
},
|
},
|
||||||
_openBeyondDataPrivilegeUnit: function (_dataPrivilegeUnit) {
|
_openBeyondDataPrivilegeUnit: function(_dataPrivilegeUnit) {},
|
||||||
},
|
|
||||||
_queryDataPrivilegeUnitMethod: function() {
|
_queryDataPrivilegeUnitMethod: function() {
|
||||||
vc.component._listDataPrivilegeUnits(DEFAULT_PAGE, DEFAULT_ROWS);
|
vc.component._listDataPrivilegeUnits(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user