| | |
| | | <div class="current1" id="leftCurrent1"> |
| | | <div class="aside-title">数据申请次数</div> |
| | | <count-data-apply></count-data-apply> |
| | | <!-- <projectintroduction></projectintroduction> --> |
| | | <!-- <projectState></projectState> --> |
| | | <!-- <projectTime></projectTime> --> |
| | | </div> |
| | | <div class="current1" id="leftCurrent2"> |
| | | <div class="aside-title">用户访问量</div> |
| | |
| | | <!-- 全球、全国统计次数 --> |
| | | <div class="leftContainer" v-if="currentDisplay == '项目'"> |
| | | <div class="current1" id="leftCurrent1"> |
| | | <div class="aside-title">国内、国外</div> |
| | | <div class="aside-title">数据总览</div> |
| | | <div class="wrapper"> |
| | | <div class="title">{{ currentProject }}</div> |
| | | <dv-digital-flop style="height: 40px" :config="xmCountConfig" /> |
| | | </div> |
| | | </div> |
| | | <div class="current1" id="leftCurrent2"> |
| | | <div class="aside-title">统计地灾、洞库等专业数据存储量</div> |
| | | <base-line-chart :project="currProject"></base-line-chart> |
| | | <div class="aside-title">存储信息</div> |
| | | <base-line-chart |
| | | :requsetFn="requsetFn" |
| | | :project="currentProject" |
| | | title="数据存储量" |
| | | ></base-line-chart> |
| | | </div> |
| | | <div class="current1" id="leftCurrent3"> |
| | | <div class="aside-title">数据存储量</div> |
| | | <data-storage></data-storage> |
| | | <data-storage-type></data-storage-type> |
| | | </div> |
| | | </div> |
| | | <!-- 全球、全国管网图 --> |
| | | <div class="leftContainer" v-if="currentDisplay == '管网'"> |
| | | <div class="current1" id="leftCurrent1"> |
| | | <div class="aside-title">管网国内、国外</div> |
| | | <!-- <base-bar-chart :project="currProject"></base-bar-chart> --> |
| | | <!-- <count-data-apply></count-data-apply> --> |
| | | <div class="aside-title">数据总览</div> |
| | | <div class="wrapper"> |
| | | <div class="title">{{ currentProject }}</div> |
| | | <dv-digital-flop style="height: 40px" :config="xmCountConfig" /> |
| | | </div> |
| | | </div> |
| | | <div class="current1" id="leftCurrent2"> |
| | | <div class="aside-title">输送介质类别统计长度</div> |
| | | <base-line-chart :project="currProject"></base-line-chart> |
| | | <!-- <base-pie-chart :project="currProject"></base-pie-chart> --> |
| | | <div class="aside-title">管网长度</div> |
| | | <base-line-chart |
| | | :requsetFn="requsetFn" |
| | | :project="currentProject" |
| | | title="管网长度" |
| | | ></base-line-chart> |
| | | <!-- <base-pie-chart :project="currentProject"></base-pie-chart> --> |
| | | <!-- <service-type></service-type> --> |
| | | </div> |
| | | <div class="current1" id="leftCurrent3"> |
| | | <div class="aside-title">数据存储量</div> |
| | | <data-storage></data-storage> |
| | | <data-storage-type></data-storage-type> |
| | | </div> |
| | | </div> |
| | | <!-- 单个工程展示 --> |
| | | <div class="leftContainer" v-if="currentDisplay == '工程'"> |
| | | <div class="current1" > |
| | | <div class="current1"> |
| | | <div class="aside-title">工程简介</div> |
| | | |
| | | <projectintroduction></projectintroduction> |
| | | </div> |
| | | <div class="current1" > |
| | | <div class="current1"> |
| | | <div class="aside-title">项目状态</div> |
| | | |
| | | <projectState></projectState> |
| | | </div> |
| | | <div class="current1"> |
| | | <div class="aside-title">建设工期</div> |
| | | |
| | | <projectTime></projectTime> |
| | | </div> |
| | | </div> |
| | | <!-- <div class="leftContainer" v-if="ProjectreeDisplay"> |
| | | <project-tree></project-tree> |
| | | </div> --> |
| | | </div> |
| | | </template> |
| | | <script> |
| | |
| | | import countDataApply from "@/components/chart/CountDataApply.vue" |
| | | import ServiceType from "../chart/ServiceType.vue" |
| | | import DataStorage from "../chart/DataStorage.vue" |
| | | import DataStorageType from "../chart/DataStorageType.vue" |
| | | |
| | | import BaseBarChart from "../chart/BaseBarChart.vue" |
| | | import BaseLineChart from "../chart/BaseLineChart.vue" |
| | | import BasePieChart from "../chart/BasePieChart .vue" |
| | | // import projectintroduction from "../chart/projectintroduction.vue" |
| | | // import projectState from "../chart/projectState.vue" |
| | | // import projectTime from "../chart/projectTime.vue" |
| | | import projectintroduction from "../chart/projectintroduction.vue" |
| | | import projectState from "../chart/projectState.vue" |
| | | import projectTime from "../chart/projectTime.vue" |
| | | import { |
| | | countCountryDimension, |
| | | countProvinceDimension, |
| | | countZhPipeStations, |
| | | countZhPipeMapLength, |
| | | } from "@/api/screen.js" |
| | | function formatter(number) { |
| | | const numbers = number.toString().split("").reverse() |
| | | const segs = [] |
| | | |
| | | while (numbers.length) segs.push(numbers.splice(0, 3).join("")) |
| | | |
| | | |
| | | return segs.join(",").split("").reverse().join("") |
| | | } |
| | | export default { |
| | | components: { |
| | | ProjectTree, |
| | |
| | | BaseBarChart, |
| | | BaseLineChart, |
| | | BasePieChart, |
| | | projectintroduction, |
| | | projectState, |
| | | projectTime, |
| | | DataStorageType |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | GlobleChartDisplay: false, |
| | | CountryChartDisplay: false, |
| | | leftImg: require("../../assets/img/Screen/rightArrow.png"), |
| | | currProject: "全球项目", |
| | | currentProject: "全球项目", |
| | | currentDisplay: "大屏", |
| | | requsetFn: countZhPipeMapLength, |
| | | xmCountConfig: { |
| | | number: [0], |
| | | content: "{nt}", |
| | | formatter, |
| | | }, |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | } else if (name.includes("全球项目") || name.includes("全国项目")) { |
| | | this.currentDisplay = "项目" |
| | | } else { |
| | | this.currentDisplay = '工程' |
| | | this.currentDisplay = "工程" |
| | | } |
| | | |
| | | this.currentProject = name |
| | | }) |
| | | this.$bus.$on("changeCount", count => { |
| | | if (typeof count == "number") { |
| | | this.xmCountConfig.number = [count] |
| | | this.xmCountConfig = { |
| | | ...this.xmCountConfig, |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | methods: { |
| | |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | } |
| | | .wrapper { |
| | | display: flex; |
| | | flex-direction: column; |
| | | justify-content: center; |
| | | margin: 15px auto; |
| | | width: 180px; |
| | | height: 180px; |
| | | background: url(../../assets/img/Screen/all.png); |
| | | background-size: 100% 100%; |
| | | background-repeat: no-repeat; |
| | | .title { |
| | | color: #fff; |
| | | font-size: 20px; |
| | | width: 100%; |
| | | text-align: center; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </style> |