| | |
| | | <template> |
| | | <div class="current"> |
| | | <div class="rightContainer" v-if="ChartDisplay"> |
| | | <div class="rightContainer" v-if="currentDisplay == '大屏' && ChartDisplay"> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目统计</div> |
| | | <project-category></project-category> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">数据统计</div> |
| | | <!-- <div class="content" style="height:30px"> |
| | | <visit-count></visit-count> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">服务访问次数</div> |
| | | <Service-Get></Service-Get> |
| | | </div> |
| | | </div> |
| | | <!-- 全球、全国项目 --> |
| | | <div class="rightContainer" v-if="currentDisplay == '项目'"> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目柱状图</div> |
| | | <!-- <country-dimension-bar ref="barRef"></country-dimension-bar> --> |
| | | <base-bar-chart :project="currentProject"></base-bar-chart> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目饼状图</div> |
| | | <!-- <base-pie-chart :project="currentProject"></base-pie-chart> --> |
| | | <country-dimension-pie |
| | | v-if="currentProject == '全球项目'" |
| | | ref="pieRef" |
| | | ></country-dimension-pie> |
| | | <province-dimension-pie v-else ref="pieRef"></province-dimension-pie> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目数据使用情况</div> |
| | | <dv-capsule-chart :config="config" style="width: 360px; height: 85%" /> |
| | | </div> |
| | | </div> |
| | | <!-- 全国、全球管网 --> |
| | | <div class="rightContainer" v-if="currentDisplay == '管网'"> |
| | | <div class="current1"> |
| | | <div class="aside-title">站场座数</div> |
| | | <!-- <country-dimension-bar ref="barRef"></country-dimension-bar> --> |
| | | <base-bar-chart :project="currentProject"></base-bar-chart> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">阀室座数</div> |
| | | <dv-active-ring-chart |
| | | :config="pieconfig" |
| | | style="width: 377px; height: 85%" |
| | | /> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">不同输送介质管道条数</div> |
| | | <dv-conical-column-chart |
| | | :config="config" |
| | | style="width: 377px; height: 85%" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <!-- 单个工程 --> |
| | | <div class="rightContainer" v-if="currentDisplay == '工程'"> |
| | | <div class="current1"> |
| | | <div class="aside-title">数据存储量</div> |
| | | <base-line-chart :project="currentProject"></base-line-chart> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">数据下载次数</div> |
| | | <base-pie-chart height="90%" :project="currentProject"></base-pie-chart> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">统计不同输送介质管道条数</div> |
| | | <div class="content" style="height: 30px"> |
| | | <div class="header"> |
| | | <div>格式</div> |
| | | <div>数量</div> |
| | | </div> |
| | | </div> --> |
| | | </div> |
| | | <file-format></file-format> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">服务访问次数</div> |
| | | |
| | | <Service-Get></Service-Get> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- <div |
| | | class="rightContainer2" |
| | | v-if="CourtyDisplay && currentProject =='全球项目'" |
| | | > |
| | | <div class="current1"> |
| | | <div class="aside-title">项目数量柱状图</div> |
| | | <country-dimension-bar ref="barRef"></country-dimension-bar> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目数量饼状图</div> |
| | | <country-dimension-pie ref="pieRef"></country-dimension-pie> |
| | | </div> |
| | | </div> |
| | | |
| | | |
| | | <div class="rightContainer2" v-if="CourtyDisplay && currentProject =='全国项目'"> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目数量柱状图</div> |
| | | <province-dimension-bar ref="barRef"></province-dimension-bar> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">项目数量饼状图</div> |
| | | <province-dimension-pie ref="pieRef"></province-dimension-pie> |
| | | </div> |
| | | </div> --> |
| | | <div class="rightarrow"> |
| | | <img :src="RightImg" @click="ChangeRight" /> |
| | | </div> |
| | |
| | | import ProvinceDimensionBar from "../chart/CountryProvinceBar.vue" |
| | | import ProvinceDimensionPie from "../chart/CountryProvincePie.vue" |
| | | import ServiceGet from "../chart/ServiceGet.vue" |
| | | import BaseBarChart from "../chart/BaseBarChart.vue" |
| | | import BaseLineChart from "../chart/BaseLineChart.vue" |
| | | import BasePieChart from "../chart/BasePieChart .vue" |
| | | import VisitCount from "../chart/VisitCount.vue" |
| | | |
| | | import { countCountryDimension, countProvinceDimension } from "@/api/screen.js" |
| | | |
| | | export default { |
| | |
| | | ProvinceDimensionBar, |
| | | ProvinceDimensionPie, |
| | | ServiceGet, |
| | | BaseBarChart, |
| | | BaseLineChart, |
| | | BasePieChart, |
| | | VisitCount, |
| | | }, |
| | | data() { |
| | | return { |
| | | ChartDisplay: true, |
| | | CourtyDisplay: false, |
| | | PipeDisPlay: false, |
| | | RightImg: require("../../assets/img/Screen/leftArrow.png"), |
| | | leftMessage: "init", |
| | | currentProject: "全球项目", |
| | | currentDisplay: "大屏", |
| | | countryData: [], |
| | | provinceData: [], |
| | | config: { |
| | | data: [ |
| | | { |
| | | name: "南阳", |
| | | value: 167, |
| | | }, |
| | | { |
| | | name: "周口", |
| | | value: 123, |
| | | }, |
| | | { |
| | | name: "漯河", |
| | | value: 98, |
| | | }, |
| | | { |
| | | name: "郑州", |
| | | value: 75, |
| | | }, |
| | | { |
| | | name: "西峡", |
| | | value: 66, |
| | | }, |
| | | ], |
| | | showValue: true, |
| | | }, |
| | | pieconfig: { |
| | | data: [ |
| | | { |
| | | name: "周口", |
| | | value: 55, |
| | | }, |
| | | { |
| | | name: "南阳", |
| | | value: 120, |
| | | }, |
| | | { |
| | | name: "西峡", |
| | | value: 78, |
| | | }, |
| | | { |
| | | name: "驻马店", |
| | | value: 66, |
| | | }, |
| | | { |
| | | name: "新乡", |
| | | value: 80, |
| | | }, |
| | | ], |
| | | lineWidth: 10, |
| | | }, |
| | | } |
| | | }, |
| | | |
| | | mounted() { |
| | | this.OpenLeftInit() |
| | | this.$bus.$on("changeProject", name => { |
| | | if (name.includes("全球管网") || name.includes("全国管网")) { |
| | | this.currentDisplay = "管网" |
| | | } else if (name.includes("全球项目") || name.includes("全国项目")) { |
| | | this.currentDisplay = "项目" |
| | | } else { |
| | | this.currentDisplay = "工程" |
| | | } |
| | | this.currentProject = name |
| | | }) |
| | | }, |
| | |
| | | }, |
| | | //打开大屏左侧界面 |
| | | OpenLeftInit() { |
| | | this.currentDisplay = "大屏" |
| | | this.ChartDisplay = true |
| | | this.CourtyDisplay = false |
| | | this.leftMessage = "init" |
| | |
| | | }, |
| | | } |
| | | </script> |
| | | <style lang="less" sc> |
| | | <style lang="less"> |
| | | .current { |
| | | height: 100%; |
| | | width: 100%; |
| | |
| | | flex-direction: row; |
| | | align-items: center; |
| | | justify-content: center; |
| | | |
| | | .rightarrow { |
| | | width: 36px; |
| | | height: 100%; |
| | |
| | | background-repeat: no-repeat; |
| | | } |
| | | } |
| | | // .rightContainer2 { |
| | | // height: 100%; |
| | | // width: calc(100% - 45px); |
| | | .rightContainer2 { |
| | | height: 100%; |
| | | width: calc(100% - 45px); |
| | | |
| | | // display: flex; |
| | | // flex-direction: column; |
| | | // align-items: center; |
| | | // .current1 { |
| | | // margin-top: 10px; |
| | | // margin-bottom: 30px; |
| | | // height: 30%; |
| | | // width: 100%; |
| | | // background: url(../../assets/img/Screen/chartbg.png); |
| | | // background-size: 100% 100%; |
| | | // background-repeat: no-repeat; |
| | | // } |
| | | // } |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | .current1 { |
| | | margin-top: 10px; |
| | | margin-bottom: 30px; |
| | | height: 30%; |
| | | width: 100%; |
| | | background: url(../../assets/img/Screen/chartbg.png); |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | } |
| | | } |
| | | .content { |
| | | width: 100%; |
| | | background: url(../../assets/img/Screen/contentBg.png); |