From 918e83d73f4475f9e2ed1ccea2de41cdd73ff3a1 Mon Sep 17 00:00:00 2001
From: cclu <1106109051@qq.com>
Date: Wed, 27 Dec 2023 18:43:41 +0800
Subject: [PATCH] update
---
pages.json | 7 +
pages/commercialBI/businessPortrait.vue | 78 ++-
pages/commercialBI/carPortrait.vue | 10 +-
.../components/bussiness/bestsellerShop.vue | 4 +-
pages/commercialBI/components/sliderPage.vue | 97 ++++
pages/commercialBI/formatPortraitBI.vue | 65 ++-
pages/commercialBI/guestPortrait.vue | 50 +-
pages/commercialBI/managePortrait.vue | 156 ++++--
pages/commercialBI/serviceMessage.vue | 500 ++++++++++++++++++
pages/examine/detail.vue | 82 ++-
pages/examine/sliderPage.vue | 54 ++
pages/index/index.vue | 18 +
pages/index/new_file.html | 0
pages/map/detail.vue | 22 +-
pages/map/index.vue | 55 +-
pages/map/sliderPage.vue | 50 ++
16 files changed, 1108 insertions(+), 140 deletions(-)
create mode 100644 pages/commercialBI/components/sliderPage.vue
create mode 100644 pages/commercialBI/serviceMessage.vue
create mode 100644 pages/examine/sliderPage.vue
create mode 100644 pages/index/new_file.html
create mode 100644 pages/map/sliderPage.vue
diff --git a/pages.json b/pages.json
index e2084ba..1aa627e 100644
--- a/pages.json
+++ b/pages.json
@@ -201,6 +201,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "serviceMessage",
+ "style": {
+ "navigationBarTitleText": "",
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "planMonth",
"style": {
diff --git a/pages/commercialBI/businessPortrait.vue b/pages/commercialBI/businessPortrait.vue
index 8deb502..cd76017 100644
--- a/pages/commercialBI/businessPortrait.vue
+++ b/pages/commercialBI/businessPortrait.vue
@@ -7,7 +7,7 @@
:serverpartName="serviceInfo.SERVERPART_NAME" :spregionTypeName="serviceInfo.SPREGIONTYPE_NAME" :serviceInfo="serviceInfo"
:topLeftBg="topLeftBg" :topLeftColor="topLeftColor" :iconObj="iconObj" :haveIconObj="haveIconObj" :detailBoxBg="detailBoxBg"
:haveFun="haveFun" :serviceTypeObj="serviceTypeObj" :serviceInfoObj="serviceInfoObj" :pageType="pageType"/>
-
+
{{month}}月消费转化对比图
-{{month}}月消费时段分析
-{{month}}月消费水平
{{month}}月品牌消费水平
{{month}}月业态交易值占比
-品牌指数
@@ -74,10 +74,13 @@ import BandNumber from "./components/format/bandNumber.vue"; import NoData from "./components/noData.vue"; import commercialType from "./commercialType.vue"; import {getFieldEnum} from "../../util/dateTime"; +import SliderPage from "./components/sliderPage.vue"; export default { name: "businessPortrait", - components: {NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop,commercialType}, + components: { + SliderPage, + NoData, BandNumber, ConsumptionLevel, BandLevel, FillingDegree, analyse, headerTop,commercialType}, data() { return { topBg:'linear-gradient(180deg, #C6C1F0 0%, #CECBF3 100%);',//顶部组件的悬浮背景色 @@ -262,12 +265,17 @@ export default { } const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req) this.serviceInfoObj = total.Result_Data - this.haveFun = { - car:total.Result_Data.HASPILOTLOUNGE, - charge:total.Result_Data.HASCHARGE , - bady:total.Result_Data.HASMOTHER , - gusetHome:total.Result_Data.HASGUESTROOM + if (total.Result_Data){ + this.haveFun = { + car:total.Result_Data.HASPILOTLOUNGE, + charge:total.Result_Data.HASCHARGE , + bady:total.Result_Data.HASMOTHER , + gusetHome:total.Result_Data.HASGUESTROOM + } + }else{ + this.haveFun = {} } + }, async changeLabel(item){ console.log('item',item) @@ -412,11 +420,20 @@ export default { uni.setStorageSync('currentService',res) }, async getFillDegreeList(){ - const req = { - ProvinceCode:'340000', - StatisticsDate:this.time, - serverpartId:this.serviceInfo.Serverpart_ID, - BusinessTradeIds:-1 + let req + if (this.serviceInfo.SERVERPART_NAME==='安徽驿达'){ + req = { + ProvinceCode:'340000', + StatisticsDate:this.time, + BusinessTradeIds:-1 + } + }else{ + req = { + ProvinceCode:'340000', + StatisticsDate:this.time, + serverpartId:this.serviceInfo.Serverpart_ID, + BusinessTradeIds:-1 + } } const data = await request.$webGet('CommercialApi/Revenue/GetBusinessTradeRevenue',req) let res = [] @@ -526,16 +543,24 @@ export default { this.consumLevelList = res }, async getBrandInfoList(){ - let req = { - ProvinceCode:'340000', - Serverpart_ID:this.serviceInfo.Serverpart_ID, - Statistics_Date:this.time + let req + if (this.serviceInfo.SERVERPART_NAME==='安徽驿达'){ + req = { + ProvinceCode:'340000', + Statistics_Date:this.time + } + }else{ + req = { + ProvinceCode:'340000', + Serverpart_ID:this.serviceInfo.Serverpart_ID, + Statistics_Date:this.time + } } let totalData = await request.$webGet('CommercialApi/BaseInfo/GetBrandAnalysis',req) - this.brandLabelList = totalData.Result_Data.BrandTag - this.brandLabelListNoChange = totalData.Result_Data.BrandTag - this.brandInfoList =totalData.Result_Data.ShopBrandList - this.brandInfoListNoChange = totalData.Result_Data.ShopBrandList + this.brandLabelList = totalData && totalData.Result_Data && totalData.Result_Data.BrandTag?totalData.Result_Data.BrandTag:'' + this.brandLabelListNoChange = totalData && totalData.Result_Data && totalData.Result_Data.BrandTag?totalData.Result_Data.BrandTag:'' + this.brandInfoList = totalData && totalData.Result_Data && totalData.Result_Data.ShopBrandList?totalData.Result_Data.ShopBrandList:'' + this.brandInfoListNoChange = totalData && totalData.Result_Data && totalData.Result_Data.ShopBrandList?totalData.Result_Data.ShopBrandList:'' console.log('this.brandInfoList',this.brandInfoList) // let res = [{icon:'',name:'老娘舅',company:'老娘舅餐饮股份有限公司',type:0,time:'2019.03-2022.03',label:["中式快餐","30-40岁男性"],info:[9,8,8]}, diff --git a/pages/commercialBI/guestPortrait.vue b/pages/commercialBI/guestPortrait.vue index c5d18d7..469bc1c 100644 --- a/pages/commercialBI/guestPortrait.vue +++ b/pages/commercialBI/guestPortrait.vue @@ -7,7 +7,7 @@ :serverpartName="serviceInfo.SERVERPART_NAME" :spregionTypeName="serviceInfo.SPREGIONTYPE_NAME" :serviceInfo="serviceInfo" :topLeftBg="topLeftBg" :topLeftColor="topLeftColor" :iconObj="iconObj" :haveIconObj="haveIconObj" :detailBoxBg="detailBoxBg" :haveFun="haveFun" :serviceTypeObj="serviceTypeObj" :serviceInfoObj="serviceInfoObj" :pageType="pageType"/> - +{{thisMonth?thisMonth:'-'}}月客群特征分析
-{{thisMonth?thisMonth:'-'}}月客群消费偏好
-{{thisMonth?thisMonth:'-'}}月客群消费水平
-{{thisMonth?thisMonth:'-'}}月业态客单偏好
-营收分析{{lastDay}}
@@ -141,7 +141,7 @@营收同比分析
{{serviceInfo.SPREGIONTYPE_NAME}}
+