| | |
| | | <div class="current"> |
| | | <div class="rightContainer" v-if="ChartDisplay"> |
| | | <div class="current1"> |
| | | <div class="aside-title">工程种类</div> |
| | | <div class="aside-title">项目统计</div> |
| | | <project-category></project-category> |
| | | </div> |
| | | <div class="" style="height: 60%"> |
| | | <div class="aside-title">文件格式</div> |
| | | <div class="content" style="height: calc(100% - 30px)"> |
| | | <div class="current1"> |
| | | <div class="aside-title">数据统计</div> |
| | | <!-- <div class="content" style="height:30px"> |
| | | <div class="header"> |
| | | <div>格式</div> |
| | | <div>数量</div> |
| | | </div> |
| | | <file-format></file-format> |
| | | </div> |
| | | </div> --> |
| | | <file-format></file-format> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">服务访问次数</div> |
| | | |
| | | <Service-Get></Service-Get> |
| | | </div> |
| | | </div> |
| | | <div |
| | | |
| | | <!-- <div |
| | | class="rightContainer2" |
| | | v-if="CourtyDisplay && currentProject =='全球项目'" |
| | | > |
| | |
| | | <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> |
| | |
| | | <div class="aside-title">项目数量饼状图</div> |
| | | <province-dimension-pie ref="pieRef"></province-dimension-pie> |
| | | </div> |
| | | </div> |
| | | </div> --> |
| | | <div class="rightarrow"> |
| | | <img :src="RightImg" @click="ChangeRight" /> |
| | | </div> |
| | |
| | | import CountryDimensionPie from "../chart/CountryDimensionPie.vue" |
| | | import ProvinceDimensionBar from "../chart/CountryProvinceBar.vue" |
| | | import ProvinceDimensionPie from "../chart/CountryProvincePie.vue" |
| | | import ServiceGet from "../chart/ServiceGet.vue" |
| | | import { countCountryDimension, countProvinceDimension } from "@/api/screen.js" |
| | | |
| | | export default { |
| | |
| | | CountryDimensionBar, |
| | | CountryDimensionPie, |
| | | ProvinceDimensionBar, |
| | | ProvinceDimensionPie |
| | | ProvinceDimensionPie, |
| | | ServiceGet, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | provinceData: [], |
| | | } |
| | | }, |
| | | created() { |
| | | // this.getCountryData() |
| | | // this.getProvinceData() |
| | | }, |
| | | mounted() { |
| | | // const countryData = this.countryData |
| | | // const provinceData = this.provinceData |
| | | |
| | | // this.$refs.barRef.initChart(countryData) |
| | | // this.$refs.pieRef.initChart(countryData) |
| | | mounted() { |
| | | this.$bus.$on("changeProject", name => { |
| | | this.currentProject = name |
| | | }) |
| | | }, |
| | | methods: { |
| | | async getCountryData() { |
| | | const res = await countCountryDimension() |
| | | if (res.code == 200) { |
| | | this.countryData = res.result |
| | | } |
| | | }, |
| | | async getProvinceData() { |
| | | const res = await countProvinceDimension() |
| | | if (res.code == 200) { |
| | | this.provinceData = res.result |
| | | } |
| | | }, |
| | | ChangeRight() { |
| | | if (this.leftMessage == "init") { |
| | | if (this.ChartDisplay) { |
| | |
| | | this.ChartDisplay = !this.ChartDisplay |
| | | } |
| | | |
| | | if (this.leftMessage == "projectree") { |
| | | if (this.ProjectreeDisplay) { |
| | | this.RightImg = require("../../assets/img/Screen/leftArrow.png") |
| | | } else { |
| | | this.RightImg = require("../../assets/img/Screen/rightArrow.png") |
| | | } |
| | | this.ProjectreeDisplay = !this.ProjectreeDisplay |
| | | } |
| | | // if (this.leftMessage == "projectree") { |
| | | // if (this.CourtyDisplay) { |
| | | // this.RightImg = require("../../assets/img/Screen/leftArrow.png") |
| | | // } else { |
| | | // this.RightImg = require("../../assets/img/Screen/rightArrow.png") |
| | | // } |
| | | // this.CourtyDisplay = !this.CourtyDisplay |
| | | // } |
| | | |
| | | this.ChartDisplay = !this.ChartDisplay |
| | | // this.ChartDisplay = !this.ChartDisplay |
| | | this.$parent.ChangeWidth("right") |
| | | }, |
| | | //打开大屏左侧界面 |
| | |
| | | this.CourtyDisplay = false |
| | | this.leftMessage = "init" |
| | | // this.OpenLeftInitChart(); |
| | | this.$parent.ChangeWidth("leftTree") |
| | | // this.$parent.ChangeWidth("leftTree") |
| | | }, |
| | | |
| | | //打开工程树 |
| | | OpenLeftProjectTree() { |
| | | this.ChartDisplay = false |
| | | this.CourtyDisplay = true |
| | | this.leftMessage = "projectree" |
| | | this.$parent.ChangeWidth("leftTree") |
| | | }, |
| | | // OpenLeftProjectTree() { |
| | | // this.ChartDisplay = false |
| | | // this.CourtyDisplay = true |
| | | // this.leftMessage = "projectree" |
| | | // this.$parent.ChangeWidth("leftTree") |
| | | // }, |
| | | }, |
| | | } |
| | | </script> |
| | | <style lang="less"> |
| | | <style lang="less" sc> |
| | | .current { |
| | | height: 100%; |
| | | width: 100%; |
| | |
| | | } |
| | | .rightContainer { |
| | | height: 100%; |
| | | width: calc(100% - 7px); |
| | | |
| | | width: calc(100% - 45px); |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | |
| | | background-repeat: no-repeat; |
| | | } |
| | | } |
| | | .rightContainer2 { |
| | | height: 100%; |
| | | width: calc(100% - 7px); |
| | | // .rightContainer2 { |
| | | // height: 100%; |
| | | // width: calc(100% - 45px); |
| | | |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | .current1 { |
| | | margin-top: 10px; |
| | | margin-bottom: 30px; |
| | | height: 32%; |
| | | 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); |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | .header { |
| | | margin: 0px auto; |
| | | padding: 10px 0; |
| | | width: 80%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | color: #fff; |
| | | font-size: 13px; |
| | | } |
| | | } |
| | | } |
| | | .content { |
| | | width: 377px; |
| | | background: url(../../assets/img/Screen/contentBg.png); |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | .header { |
| | | margin: 0px auto; |
| | | padding: 10px 0; |
| | | width: 80%; |
| | | display: flex; |
| | | justify-content: space-between; |
| | | color: #fff; |
| | | font-size: 13px; |
| | | } |
| | | } |
| | | </style> |