优化代码

This commit is contained in:
Your Name 2023-09-18 00:05:15 +08:00
parent 58bd01f1e4
commit 2e35dd7da5
3 changed files with 5 additions and 2 deletions

View File

@ -160,6 +160,9 @@
resCode: this.resCode, resCode: this.resCode,
isShow: true isShow: true
}; };
if(_data.shId){
_data.communityId = '';
}
queryResourceStoreList(this, _data) queryResourceStoreList(this, _data)
.then(function(res) { .then(function(res) {
_that.onoff = true; _that.onoff = true;

View File

@ -102,7 +102,7 @@
let _data = { let _data = {
page: 1, page: 1,
row: 100, row: 100,
communityId: getCurrentCommunity().communityId, //communityId: getCurrentCommunity().communityId,
isShow: true isShow: true
}; };
listStoreHouses(this, _data) listStoreHouses(this, _data)

View File

@ -175,7 +175,7 @@
let param = { let param = {
page: 1, page: 1,
row: 100, row: 100,
communityId: this.getCommunityId(), //communityId: this.getCommunityId(),
}; };
listStoreHouses(this, param).then(_data => { listStoreHouses(this, param).then(_data => {
_that.storehouses = _data.data; _that.storehouses = _data.data;