From 6f7aee49062d75a3074b8e2376ceed53f45aad37 Mon Sep 17 00:00:00 2001 From: cclu <1106109051@qq.com> Date: Tue, 20 Jun 2023 20:16:48 +0800 Subject: [PATCH] update --- pages/commercialBI/businessPortrait.vue | 14 +++--- pages/commercialBI/carPortrait.vue | 43 +++++++++++-------- .../commercialBI/components/car/entryZone.vue | 42 ++++++++++-------- pages/commercialBI/components/headerTop.vue | 2 +- .../components/manager/revenueAnalysis.vue | 7 ++- pages/commercialBI/guestPortrait.vue | 24 +++++------ pages/commercialBI/managePortrait.vue | 27 ++++++++---- pages/index/index.vue | 20 ++++++--- pages/map/index.vue | 39 ++++++++++++++--- 9 files changed, 140 insertions(+), 78 deletions(-) diff --git a/pages/commercialBI/businessPortrait.vue b/pages/commercialBI/businessPortrait.vue index 9966d7f..edff31b 100644 --- a/pages/commercialBI/businessPortrait.vue +++ b/pages/commercialBI/businessPortrait.vue @@ -276,7 +276,7 @@ export default { let req = { Province_Code:'340000', Statistics_Date:time, - Serverpart_ID:this.serviceInfo.Serverpart_ID, + Serverpart_ID:this.serviceInfo.Serverpart_ID|| '', ShowConsumptionLevel:true, ShowConvertRate:true } @@ -294,7 +294,7 @@ export default { let req = { Province_Code:'340000', Statistics_Date:this.time, - Serverpart_ID:this.serviceInfo.Serverpart_ID, + Serverpart_ID:this.serviceInfo.Serverpart_ID|| '', TimeSpan:1 } let totalData = await request.$webGet('CommercialApi/Revenue/GetTransactionTimeAnalysis',req) @@ -345,7 +345,7 @@ export default { let req = { ProvinceCode:'340000', StatisticsDate:this.time, - ServerpartId:this.serviceInfo.Serverpart_ID, + ServerpartId:this.serviceInfo.Serverpart_ID|| '', ShowWholeTrade:false } let res = { @@ -388,7 +388,7 @@ export default { let req = { ProvinceCode:'340000', StatisticsDate:this.time, - ServerpartId:this.serviceInfo.Serverpart_ID, + ServerpartId:this.serviceInfo.Serverpart_ID|| '', ShowWholeBrand:false } let res =[] @@ -422,7 +422,7 @@ export default { const req = { ProvinceCode:'340000', StatisticsDate:this.time, - serverpartId:this.serviceInfo.Serverpart_ID, + serverpartId:this.serviceInfo.Serverpart_ID|| '', BusinessTradeIds:-1 } const data = await request.$webGet('CommercialApi/Revenue/GetBusinessTradeRevenue',req) @@ -456,7 +456,7 @@ export default { const req = { Province_Code:'340000', Statistics_Date:this.time, - Serverpart_ID:this.serviceInfo.Serverpart_ID + Serverpart_ID:this.serviceInfo.Serverpart_ID|| '' } const data = await request.$webGet('CommercialApi/Revenue/GetTransactionConvert',req) let customerOrder = [] @@ -532,7 +532,7 @@ export default { let req = { statisticsDate:this.time, provinceCode:'340000', - Serverpart_ID:this.serviceInfo.Serverpart_ID, + Serverpart_ID:this.serviceInfo.Serverpart_ID || '', SPRegionType_ID:this.serviceInfo.SPRegionType_ID } const data = await request.$webGet('CommercialApi/Revenue/GetSalableCommodity',req) diff --git a/pages/commercialBI/carPortrait.vue b/pages/commercialBI/carPortrait.vue index bbccde4..5bf68f3 100644 --- a/pages/commercialBI/carPortrait.vue +++ b/pages/commercialBI/carPortrait.vue @@ -27,7 +27,7 @@ {{serviceInfo.SERVERPART_NAME}} -

{{serviceInfo.SPREGIONTYPE_NAME}}

+

{{serviceInfo.SPREGIONTYPE_NAME}}

@@ -51,7 +51,7 @@
- +
@@ -78,7 +78,8 @@ - + + {{item.name}} @@ -205,9 +206,9 @@ export default { this.backType = option.type }, onShow(){ - this.isFirst = true - // 总的来说商业bi的五个页面都是 往组件里面传值 就可以出现图表和要求的东西 - // 外面的一层页面主要用于处理数据 + this.isFirst = true + // 总的来说商业bi的五个页面都是 往组件里面传值 就可以出现图表和要求的东西 + // 外面的一层页面主要用于处理数据 let nowTime = new Date() let y = nowTime.getFullYear() let month = nowTime.getMonth() + 1 @@ -300,16 +301,18 @@ export default { }else{ id = currentService.Serverpart_ID } - let req = { + if (id){ + let req = { ServerpartId:id - } - const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req) - // 每次调用接口不能破坏tabList的数据格式 - let tabList = [{name:'全部',value:0}] - total.Result_Data.RegionInfo.forEach((item,index)=>{ + } + const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req) + // 每次调用接口不能破坏tabList的数据格式 + let tabList = [{name:'全部',value:0}] + total.Result_Data.RegionInfo.forEach((item,index)=>{ tabList.push({name:item.SERVERPART_REGIONNAME,value:index+1}) - }) - this.tabList = tabList + }) + this.tabList = tabList + } }, // 时间选择器改变的时间 bindDateChange(e){ @@ -538,10 +541,13 @@ export default { getCarData(){ request.$webGet('CommercialApi/Revenue/GetBayonetEntryList',{ StatisticsDate: this.time, - Serverpart_ID :this.serviceInfo.Serverpart_ID, + Serverpart_ID :this.serviceInfo.Serverpart_ID!==0?this.serviceInfo.Serverpart_ID:null, ShowAddUpCount:true }).then(res=>{ this.carData = res.Result_Data.List + res.Result_Data.List.forEach(item=>{ + item.Serverpart_ID = this.serviceInfo.Serverpart_ID + }) }) }, getHomeData(type){ @@ -616,7 +622,7 @@ export default { getCarTypeTime(){ request.$webGet('CommercialApi/Revenue/GetBayonetSTAList',{ StatisticsDate:this.endTime?this.endTime:this.time, - Serverpart_ID:this.serviceInfo.Serverpart_ID, + Serverpart_ID:this.serviceInfo.Serverpart_ID || '', ContainWhole:true }).then(res=>{ let result = res.Result_Data.List @@ -663,6 +669,7 @@ export default { this.carTypeTimeDataAll[2] ={categories:result[2].Vehicle_Type?result[2].Vehicle_Type:[], series:[series[5],series[4]]} } this.carTypeTimeData = this.carTypeTimeDataAll[this.selectTab]?this.carTypeTimeDataAll[this.selectTab]:[] + console.log('this.carTypeTimeData',this.carTypeTimeData) }else{ this.carTypeTimeDataAll = [] this.carTypeTimeData = [] @@ -682,7 +689,7 @@ export default { StartMonth:`${y}${m}`, EndMonth:`${y}${m}`, Province_Code:'340000', - Serverpart_ID:this.serviceInfo.Serverpart_ID, + Serverpart_ID:this.serviceInfo.Serverpart_ID || '', Serverpart_Region: data, TimeSpan: 2 }).then(res=>{ @@ -740,7 +747,7 @@ export default { req = { Statistics_Date: this.endTime?endTime:this.time, Province_Code:'340000', - Serverpart_ID :this.serviceInfo.Serverpart_ID, + Serverpart_ID :this.serviceInfo.Serverpart_ID?this.serviceInfo.Serverpart_ID:'', GroupType:2, ShowGrowthRate:true } diff --git a/pages/commercialBI/components/car/entryZone.vue b/pages/commercialBI/components/car/entryZone.vue index 1f62355..3ecf400 100644 --- a/pages/commercialBI/components/car/entryZone.vue +++ b/pages/commercialBI/components/car/entryZone.vue @@ -1,11 +1,11 @@