优化代码

This commit is contained in:
Your Name 2023-09-17 23:50:37 +08:00
parent 86d46e5604
commit b76061257e
2 changed files with 7 additions and 3 deletions

View File

@ -57,7 +57,7 @@
},
methods: {
_loadAllResourceStoreInfo: function(_page, _row, _name) {
var param = {
let param = {
params: {
page: _page,
row: _row,
@ -71,6 +71,9 @@
shId: $that.chooseResourceStoreInfo.shId
}
};
if($that.chooseResourceStoreInfo.shId){
param.params.communityId = '';
}
//发送get请求
vc.http.apiGet('/resourceStore.listResourceStores',
param,

View File

@ -113,15 +113,16 @@
_openAllocationStorehouseModel: function() {
vc.emit('chooseResourceStore', 'openChooseResourceStoreModel', {
resOrderType: '20000',
shId: $that.allocationStorehouseApplyInfo.shId
shId: $that.allocationStorehouseApplyInfo.shId,
});
},
_listAllocationStorehouse: function(_page, _rows) {
//communityId: vc.getCurrentCommunity().communityId
let param = {
params: {
page: 1,
row: 100,
communityId: vc.getCurrentCommunity().communityId
}
};
//发送get请求