diff --git a/src/pages/Home.vue b/src/pages/Home.vue index 4d83484..8bb90ad 100644 --- a/src/pages/Home.vue +++ b/src/pages/Home.vue @@ -53,7 +53,7 @@ return { isCollapsed: false, mHeight: 600, - selectedItemName: 0, + selectedItemName: null, openName: [], selectedMenu: '', selectedSubMenu: '', @@ -244,6 +244,7 @@ }, //账户管理页面回调方法 callBack() { + debugger let that = this; this.selectedMenu = "设置管理"; this.selectedSubMenu = "账户管理"; diff --git a/src/pages/shop/IncreaseDataCompany.vue b/src/pages/shop/IncreaseDataCompany.vue index 8c83ac7..2ad6b6f 100644 --- a/src/pages/shop/IncreaseDataCompany.vue +++ b/src/pages/shop/IncreaseDataCompany.vue @@ -11,7 +11,7 @@ style="width: 200px"> - 零售公司选择 + 零售公司 @@ -18,7 +18,7 @@ - 店铺选择 + 店铺 @@ -146,7 +146,10 @@ return; } if (data.code === '0000') { - that.companyList = data.results; + that.companyList.push({id:'-1',name:"全部"}); + data.results.forEach(da => { + that.companyList.push(da); + }) } }) }, @@ -163,7 +166,13 @@ return; } if (data.code === '0000') { - that.storeList = data.results; + that.storeList.push({ + id:'-1', + name:"全部" + }) + data.results.forEach(da => { + that.storeList.push(da); + }) } }) }, @@ -180,15 +189,25 @@ return; } if (data.code === '0000') { - that.staffList = data.results; + that.staffList.push({ + id:'-1', + name:"全部" + }) + data.results.forEach(da => { + that.staffList.push(da); + }) } }) }, storeOfCompany(){ let that = this; this.selectedStore = ""; + let orgId = this.selectedCompany; + if(this.selectedCompany === "-1"){ + orgId = null; + } let request = { - orgId:this.selectedCompany + orgId:orgId }; this.storeList = []; IncreaseData.listOfStoreByCompany(request,function (data) { @@ -198,15 +217,25 @@ return; } if (data.code === '0000') { - that.storeList = data.results; + that.storeList.push({ + id:'-1', + name:"全部" + }) + data.results.forEach(da => { + that.storeList.push(da); + }) } }) }, sellerOfStore(){ let that = this; this.selectedStaff = ""; + let shopId = this.selectedStore; + if(this.selectedStore === '-1'){ + shopId = null; + } let request = { - shopId:this.selectedStore + shopId:shopId }; this.staffList = []; IncreaseData.listOfSellerByStore(request,function (data) { @@ -216,7 +245,13 @@ return; } if (data.code === '0000') { - that.staffList = data.results; + that.staffList.push({ + id:'-1', + name:"全部" + }) + data.results.forEach(da => { + that.staffList.push(da); + }) } }) }, diff --git a/src/pages/shop/IncreaseDataStore.vue b/src/pages/shop/IncreaseDataStore.vue index e92cdf1..3c07d4c 100644 --- a/src/pages/shop/IncreaseDataStore.vue +++ b/src/pages/shop/IncreaseDataStore.vue @@ -10,7 +10,7 @@ - 零售公司选择 + 零售公司 - 店铺选择 + 店铺 - 店铺选择 + 店铺