| | |
| | | <div class="bottom1"> |
| | | <div class="bottom11"></div> |
| | | <div class="bottom12"> |
| | | <div |
| | | :class="currMenu == item.menuName ? 'active' : ''" |
| | | v-for="item in menuList" |
| | | :key="item.menuName" |
| | | class="bottombtn" |
| | | @click="handleMenuClick(item)" |
| | | > |
| | | <el-popover |
| | | popper-class="popover" |
| | | placement="top" |
| | | width="100" |
| | | trigger="click" |
| | | > |
| | | <div :class="currMenu == item.menuName ? 'active' : ''" v-for="item in menuList" :key="item.menuName" |
| | | class="bottombtn" @click="handleMenuClick(item)"> |
| | | <el-popover popper-class="popover" placement="top" width="100" trigger="click"> |
| | | <!-- å
容 --> |
| | | <span slot="reference">{{ item.menuName }}</span> |
| | | <div class="popover-content"> |
| | | <div class="popover-content__header">项ç®ä¿¡æ¯</div> |
| | | |
| | | <div class="popover-content__search"> |
| | | <el-input |
| | | size="mini" |
| | | placeholder="请è¾å
¥å
容" |
| | | v-model="searchName" |
| | | @change="handleSearchChange(item)" |
| | | > |
| | | <el-input size="mini" placeholder="请è¾å
¥å
容" v-model="searchName" @change="handleSearchChange(item)"> |
| | | <el-button slot="append" icon="el-icon-search"></el-button> |
| | | </el-input> |
| | | </div> |
| | | <div class="popover-content__list"> |
| | | <div |
| | | class="popover-content__list__item" |
| | | v-for="(child, i) in currMenuList" |
| | | :key="child.id + i" |
| | | :class="currProject == child.name ? 'active' : ''" |
| | | @click="handlePopoverClick(child)" |
| | | :title="child.name" |
| | | > |
| | | <div class="popover-content__list__item" v-for="(child, i) in currMenuList" :key="child.id + i" |
| | | :class="currProject == child.name ? 'active' : ''" @click="handlePopoverClick(child)" |
| | | :title="child.name"> |
| | | {{ child.name.slice(0, 8) }} |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="bottom13"> |
| | | <img :src="yxImg" @click="ChangeBaseLayer" /> |
| | | <img :src="yxImg" @click="ChangeBaseLayer('yx')" title="å½±åå¾" /> |
| | | <img :src="xrImg" @click="ChangeBaseLayer('xr')" title="ææ¸²å¾"/> |
| | | </div> |
| | | </div> |
| | | <div class="bottom2"> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | let yunxuanLayer = null |
| | | import PipeLine from "@/assets/json/pipeline.json" |
| | | import { |
| | | countProjectTour, |
| | |
| | | data() { |
| | | return { |
| | | YXState: true, |
| | | XRState: true, |
| | | yunxuanLayer: null,//å
¨çç©æå¾ |
| | | yxImg: require("../../assets/img/Screen/yximg.png"), |
| | | xrImg: require("../../assets/img/Screen/bdimg.png"), |
| | | currMenu: "ä¸é¢å±ç¤º", |
| | | currProject: "", |
| | | searchName: "", |
| | |
| | | this.getCountProjectTour() |
| | | }, |
| | | methods: { |
| | | ChangeBaseLayer() { |
| | | if (this.YXState) { |
| | | this.yxImg = require("../../assets/img/Screen/bdimg.png") |
| | | //å è½½ç¾åº¦å½±å |
| | | Viewer.imageryLayers._layers[1].show = true |
| | | Viewer.imageryLayers._layers[2].show = false |
| | | Viewer.imageryLayers._layers[3].show = false |
| | | } else { |
| | | this.yxImg = require("../../assets/img/Screen/yximg.png") |
| | | Viewer.imageryLayers._layers[1].show = false |
| | | Viewer.imageryLayers._layers[2].show = true |
| | | Viewer.imageryLayers._layers[3].show = true |
| | | ChangeBaseLayer(parm) { |
| | | if (parm == 'yx') { |
| | | if (this.YXState) { |
| | | //this.yxImg = require("../../assets/img/Screen/bdimg.png") |
| | | //å è½½ç¾åº¦å½±å |
| | | Viewer.imageryLayers._layers[1].show = true |
| | | Viewer.imageryLayers._layers[2].show = false |
| | | Viewer.imageryLayers._layers[3].show = false |
| | | } else { |
| | | //this.yxImg = require("../../assets/img/Screen/yximg.png") |
| | | Viewer.imageryLayers._layers[1].show = false |
| | | Viewer.imageryLayers._layers[2].show = true |
| | | Viewer.imageryLayers._layers[3].show = true |
| | | } |
| | | this.YXState = !this.YXState |
| | | } |
| | | this.YXState = !this.YXState |
| | | |
| | | if (parm == 'xr') { |
| | | if (yunxuanLayer == null) { |
| | | var urls = "https://tiles3.geovisearth.com/base/v1/ter" |
| | | // æå¾å°çå°å½¢ææ¸² |
| | | yunxuanLayer = sgworld.Creator.createUrlTemplateImageryProvider( |
| | | "æå¾å°çå°å½¢ææ¸²", |
| | | { |
| | | url: |
| | | urls + |
| | | "/{z}/{x}/{y}?format=webp&token=486dac3bec56d7d7c2a581c150be2bd937462f1e8f3bc9c78b5658b396122405", |
| | | }, |
| | | "0", |
| | | undefined, |
| | | true, |
| | | "" |
| | | ) |
| | | } |
| | | if (this.XRState) { |
| | | yunxuanLayer.item.show = true; |
| | | } else { |
| | | yunxuanLayer.item.show = false; |
| | | } |
| | | this.XRState = !this.XRState; |
| | | } |
| | | |
| | | |
| | | |
| | | }, |
| | | handleMenuClick(menu) { |
| | | this.currMenu = menu.menuName |
| | |
| | | |
| | | //项ç®å±ç¤º |
| | | DisplayCurrentProject(params) { |
| | | console.log(params) |
| | | |
| | | |
| | | //æå¼æè
å è½½å¾å± |
| | | |
| | |
| | | return menu.children |
| | | // return menu.children.filter(item => item.name.indexOf(searchName) > -1) |
| | | }, |
| | | handleSearchChange(currMenu) {}, |
| | | handleSearchChange(currMenu) { }, |
| | | async getCountProjectDisplay() { |
| | | const res = await countProjectLocation() |
| | | if (res.code === 200) { |
| | |
| | | wkt: item.wkt, |
| | | } |
| | | }) |
| | | |
| | | |
| | | } |
| | | }, |
| | | async getCountProjectTour() { |
| | |
| | | wkt: item.wkt, |
| | | } |
| | | }) |
| | | |
| | | |
| | | } |
| | | }, |
| | | //ä¸é¢å±ç¤º |
| | |
| | | color: #fff; |
| | | font-weight: 600; |
| | | cursor: pointer; |
| | | |
| | | &.active { |
| | | background: url(~@/assets/img/Screen/centerbtnc.png); |
| | | background-size: 100% 100%; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | .popover { |
| | | display: flex; |
| | | justify-content: center; |
| | |
| | | background: url(~@/assets/img/Screen/centerTooltipBg.png); |
| | | background-size: 100% 100%; |
| | | border: none; |
| | | |
| | | .popper__arrow { |
| | | display: none; |
| | | } |
| | | |
| | | .popover-content { |
| | | &__header { |
| | | display: flex; |
| | |
| | | height: 30px; |
| | | font-size: 18px; |
| | | color: #fff; |
| | | |
| | | &::before, |
| | | &::after { |
| | | margin: 0 5px; |
| | |
| | | height: 8px; |
| | | } |
| | | } |
| | | |
| | | &__search { |
| | | margin-top: 8px; |
| | | width: 145px; |
| | | text-align: center; |
| | | |
| | | .el-input { |
| | | width: 125px; |
| | | height: 21px; |
| | | background: rgba(0, 48, 111, 0.2); |
| | | border: 0.25px solid #2a80a9; |
| | | |
| | | &__inner { |
| | | background: rgba(0, 48, 111, 0.2); |
| | | border-radius: inherit; |
| | |
| | | padding: 0 5px; |
| | | color: #fff; |
| | | } |
| | | |
| | | .el-input-group__append { |
| | | width: 32px; |
| | | border: none; |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | ::-webkit-scrollbar { |
| | | width: 2px; |
| | | height: 2px; |
| | |
| | | <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> |
| | |
| | | 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" |
| | | |
| | | |
| | | |
| | | export default { |
| | | components: { |
| | | ProjectTree, |
| | |
| | | DataStorage, |
| | | BaseBarChart, |
| | | BaseLineChart, |
| | | BasePieChart |
| | | BasePieChart, |
| | | // projectintroduction, |
| | | // projectState, |
| | | // projectTime |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | mounted() { |
| | | this.init3DMap() |
| | | this.$bus.$on("changeProject", name => { |
| | | if (!yunxuanLayer) { |
| | | var urls = "https://tiles3.geovisearth.com/base/v1/ter" |
| | | // æå¾å°çå°å½¢ææ¸² |
| | | yunxuanLayer = sgworld.Creator.createUrlTemplateImageryProvider( |
| | | "æå¾å°çå°å½¢ææ¸²", |
| | | { |
| | | url: |
| | | urls + |
| | | "/{z}/{x}/{y}?format=webp&token=486dac3bec56d7d7c2a581c150be2bd937462f1e8f3bc9c78b5658b396122405", |
| | | }, |
| | | "0", |
| | | undefined, |
| | | true, |
| | | "" |
| | | ) |
| | | } |
| | | if (name == 'å
¨ç项ç®') { |
| | | yunxuanLayer.item.show = true |
| | | } else { |
| | | yunxuanLayer.item.show = false |
| | | } |
| | | }) |
| | | // this.$bus.$on("changeProject", name => { |
| | | // if (!yunxuanLayer) { |
| | | // var urls = "https://tiles3.geovisearth.com/base/v1/ter" |
| | | // // æå¾å°çå°å½¢ææ¸² |
| | | // yunxuanLayer = sgworld.Creator.createUrlTemplateImageryProvider( |
| | | // "æå¾å°çå°å½¢ææ¸²", |
| | | // { |
| | | // url: |
| | | // urls + |
| | | // "/{z}/{x}/{y}?format=webp&token=486dac3bec56d7d7c2a581c150be2bd937462f1e8f3bc9c78b5658b396122405", |
| | | // }, |
| | | // "0", |
| | | // undefined, |
| | | // true, |
| | | // "" |
| | | // ) |
| | | // } |
| | | // if (name == 'å
¨ç项ç®') { |
| | | // yunxuanLayer.item.show = true |
| | | // } else { |
| | | // yunxuanLayer.item.show = false |
| | | // } |
| | | // }) |
| | | }, |
| | | methods: { |
| | | init3DMap() { |
| | |
| | | SmartEarthRootUrl + "Workers/image/earth.jpg", |
| | | function () {} |
| | | ) |
| | | |
| | | window.viewer = window.Viewer = window.sgworld._Viewer; |
| | | |
| | | |
| | | |
| | | Viewer.imageryLayers._layers[0].show = false |
| | | |
| | | Viewer.imageryLayers._layers[0].show = false |
| | | sgworld.Navigate.jumpTo({ //跳转è§è§ |
| | | destination: new Cesium.Cartesian3.fromDegrees(110, 32, 50000000) |
| | | }); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="projectState" ref="chart"></div> |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from "echarts" |
| | | import { GetServicesVisitsCount } from "@/api/screen.js" |
| | | export default { |
| | | data() { |
| | | return { |
| | | option: {}, |
| | | } |
| | | }, |
| | | mounted() { |
| | | // const option = this.initData() |
| | | this.initChart() |
| | | }, |
| | | methods: { |
| | | initChart() { |
| | | // const res = await GetServicesVisitsCount() |
| | | |
| | | // console.log(res.result); |
| | | |
| | | // if (res.code == 200) { |
| | | // } |
| | | // let xAxis = [] |
| | | // let yAxis = [] |
| | | |
| | | // res.result.forEach(item => { |
| | | // xAxis.push(item.type) |
| | | // yAxis.push(item.count) |
| | | // }) |
| | | |
| | | // let data = [220, 182, 191, 234, 290, 330, 310] |
| | | // const sideData = data.map(item => { |
| | | // return { |
| | | // name: item.name, |
| | | // value: item.number, |
| | | // } |
| | | // }) |
| | | |
| | | var XName = ["ç«é¡¹", "å¯å¨", "建设", "宿"] |
| | | var data1 = [ |
| | | [100, 100, 100, 100], |
| | | [100, 100, { |
| | | value: 100, symbol: |
| | | 'image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADoAAAA6CAMAAADWZboaAAAAZlBMVEUAAABe3uVe3+Vf3uVf3+Zf3uVg3+Zg3+Zf3+Vi4OZh4OZg3+Z86/Bh3+Zi4Odj4Odi4OZ86/B76/B86/Bj4ed56+9x5+xn4umB7/N87PB36e+A7/N+7fF/7vJ/7vJ+7fGA7/OB7/PReX+lAAAAIXRSTlMABQkVDREmIhk3MR10LEFFPHh7cUprXE35h2XnqMLAp+mHAG9cAAAB5ElEQVRIx83WjU7CMBQFYIoiKMqU/XUboHv/l/Tce7t2XamDNSacETEmX86tlK2rx4py150o+MstMBLwWRfHKo6JCVxLnvmFGBjFQ58oF1//sUZhGy/ClSTWObgnL4O+bkeN4nY2okfNMbkRt9/vtxz8InoTsWplJSCzFxPmO8+GpSIByX3YQAuGDWtRKhKjCnxDXhF6Z4yxnZ20Wgko7BMRDmxtSGVaI4kdTIgb+zTYoJQlIMlDlmUFgrcDWWC201qSayqlTkiCddWWeV62VU0YlnpRi9VOKaSUsiyq/N0krwq2Ugt7lVpZl5BfHNiytjagMi+XYp0kCR45hMlivVQrE/uU5pXSrCB5bM6d1t2lOZItMqmliT3q5uVxqxzyW/ccfYLNKx7ZTeykMvNyac2yt2Fbc61MHLSC0rwoxbiNdlQ3GBm1NLHQsHUrtEXppR/ljNpW6DbSCoqlFiVoN6YdaFlgsSFVPs1BdT8OaB5QyQzVcaqWDows/zepxR8ObLglTrdtCRVuRNj4Rrxh+//0ke2f8KVL+Kon3GCSbmsJN9OUW3j6g0Ns+LgCij2u0h+Sghc8mlMPBMgdx5DFh59VmOVHrvmDnoNxCz3J7MFWsMuaLyR089xz/xhlfijvwutR8gv3zk6BLUUeCgAAAABJRU5ErkJggg==', |
| | | symbolSize: [50, 50], |
| | | }] |
| | | ] |
| | | var Line = ["线1", "线2"]; |
| | | var color = ['#256589', '#3F88E9']; |
| | | |
| | | //æ°æ®å¤ç |
| | | var datas = []; |
| | | Line.map((item, index) => { |
| | | if (index == 0) { |
| | | datas.push( |
| | | { |
| | | symbolSize: 10, |
| | | symbol: 'circle', |
| | | hoverAnimation: false, |
| | | name: item, |
| | | type: "line", |
| | | data: data1[index], |
| | | itemStyle: { |
| | | normal: { |
| | | borderWidth: 5, |
| | | color: color[index], |
| | | } |
| | | } |
| | | } |
| | | ) |
| | | |
| | | } else { |
| | | datas.push( |
| | | { |
| | | symbolSize: 10, |
| | | symbol: 'circle', |
| | | hoverAnimation: false, |
| | | name: item, |
| | | type: "line", |
| | | data: data1[index], |
| | | itemStyle: { |
| | | normal: { |
| | | borderWidth: 5, |
| | | color: color[index], |
| | | } |
| | | } |
| | | } |
| | | ) |
| | | |
| | | } |
| | | |
| | | }) |
| | | |
| | | let option = { |
| | | grid: { |
| | | left: '5%', |
| | | top: '30%', |
| | | bottom: '30%', |
| | | right: '5%', |
| | | }, |
| | | yAxis: [ |
| | | { |
| | | type: 'value', |
| | | position: 'right', |
| | | max: 100, |
| | | splitLine: { |
| | | show: false |
| | | } |
| | | , |
| | | axisLine: { |
| | | show: false |
| | | }, |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | axisLabel: { |
| | | show: false |
| | | } |
| | | } |
| | | ], |
| | | xAxis: [ |
| | | { |
| | | type: 'category', |
| | | axisTick: { |
| | | show: false |
| | | }, |
| | | axisLine: { |
| | | show: false, |
| | | lineStyle: { |
| | | color: '#6A989E', |
| | | } |
| | | }, |
| | | axisLabel: { |
| | | inside: true, |
| | | show: true, |
| | | textStyle: { |
| | | color: '#90deff',// xè½´é¢è² |
| | | fontWeight: 'normal', |
| | | fontSize: '12', |
| | | lineHeight: 20 |
| | | } |
| | | |
| | | }, |
| | | data: XName, |
| | | } |
| | | ], |
| | | series: datas, |
| | | }; |
| | | const chart = echarts.init(this.$refs.chart) |
| | | |
| | | chart.setOption(option) |
| | | window.addEventListener("resize", function () { |
| | | chart.resize() |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .projectState { |
| | | width: 100%; |
| | | height: calc(100% - 30px); |
| | | } |
| | | </style> |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="projectTime" ref="chart"> |
| | | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import * as echarts from "echarts" |
| | | export default { |
| | | data() { |
| | | return { |
| | | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.initChart(); |
| | | }, |
| | | methods: { |
| | | initChart() { |
| | | var dataArr = 60; |
| | | var colorSet = '#45CAED'; |
| | | |
| | | var color = new echarts.graphic.LinearGradient(0, 0, 1, 0, [ |
| | | { |
| | | offset: 0, |
| | | color: '#8D00FF', |
| | | }, |
| | | { |
| | | offset: 0.4, |
| | | color: '#0EBAFC', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: '#0EBAFC', |
| | | }, |
| | | ]); |
| | | var option = { |
| | | title: { |
| | | text: '项ç®è¿åº¦', |
| | | textStyle: { |
| | | color: '#7DAEEF', |
| | | fontSize: 12, |
| | | }, |
| | | padding: 0, |
| | | top: '80%', |
| | | left: 'center', |
| | | }, |
| | | xAxis: { |
| | | splitLine: { |
| | | show: false, |
| | | }, |
| | | axisLabel: { |
| | | show: false, |
| | | }, |
| | | axisLine: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | yAxis: { |
| | | splitLine: { |
| | | show: false, |
| | | }, |
| | | axisLabel: { |
| | | show: false, |
| | | }, |
| | | axisLine: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | series: [ |
| | | // å»åº¦ |
| | | { |
| | | type: 'gauge', |
| | | radius: '82%', |
| | | startAngle: 220, |
| | | endAngle: -40, |
| | | axisTick: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#6B9DD7', |
| | | width: 1, |
| | | }, |
| | | length: -8, |
| | | }, //å»åº¦æ ·å¼ |
| | | splitLine: { |
| | | show: true, |
| | | lineStyle: { |
| | | color: '#6B9DD7', |
| | | width: 1, |
| | | }, |
| | | length: -8, |
| | | }, //åéçº¿æ ·å¼ |
| | | axisLabel: { |
| | | color: 'rgba(255,255,255,0)', |
| | | fontSize: 12, |
| | | }, //å»åº¦èç¹æåé¢è² |
| | | pointer: { |
| | | show: false, |
| | | }, |
| | | axisLine: { |
| | | show: false, |
| | | }, |
| | | label: { |
| | | show: false, |
| | | }, |
| | | // //仪表ç详æ
ï¼ç¨äºæ¾ç¤ºæ°æ®ã |
| | | // detail: { |
| | | // show: true, |
| | | // offsetCenter: [0, '50%'], |
| | | // color: '#ACCFFF', |
| | | // formatter: function (params) { |
| | | // return 'å½åé度'; |
| | | // }, |
| | | // textStyle: { |
| | | // fontSize: 16, |
| | | // }, |
| | | // }, |
| | | }, |
| | | { |
| | | name: 'å
é¨è¿åº¦æ¡', |
| | | type: 'gauge', |
| | | center: ['50%', '50%'], |
| | | radius: '78%', |
| | | splitNumber: 10, |
| | | axisLine: { |
| | | lineStyle: { |
| | | color: [ |
| | | [dataArr / 100, color], |
| | | [1, 'rgba(107,157,215,.25)'], |
| | | ], |
| | | width: 8, |
| | | }, |
| | | }, |
| | | z: 4, |
| | | axisLabel: { |
| | | show: false, |
| | | }, |
| | | axisTick: { |
| | | show: false, |
| | | }, |
| | | splitLine: { |
| | | show: false, |
| | | }, |
| | | itemStyle: { |
| | | color: colorSet, |
| | | }, |
| | | detail: { |
| | | show: false, |
| | | }, |
| | | label: { |
| | | show: false, |
| | | }, |
| | | |
| | | title: { |
| | | //æ é¢ |
| | | show: true, |
| | | offsetCenter: [0, '35%'], // x, yï¼åä½px |
| | | textStyle: { |
| | | color: '#ACCFFF', |
| | | fontSize: 16, //表çä¸çæ 颿åå¤§å° |
| | | fontWeight: 400, |
| | | fontFamily: 'PingFangSC', |
| | | }, |
| | | }, |
| | | data: [ |
| | | { |
| | | name: dataArr + '%', |
| | | value: dataArr, |
| | | }, |
| | | ], |
| | | pointer: { |
| | | show: true, |
| | | length: '40%', |
| | | radius: '20%', |
| | | width: 4, //æéç²ç» |
| | | }, |
| | | }, |
| | | { |
| | | //æéä¸çå |
| | | type: 'pie', |
| | | tooltip: { |
| | | show: false, |
| | | }, |
| | | z: 5, |
| | | hoverAnimation: false, |
| | | legendHoverLink: false, |
| | | radius: ['0%', '6%'], |
| | | center: ['50%', '50%'], |
| | | label: { |
| | | normal: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | labelLine: { |
| | | normal: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | data: [ |
| | | { |
| | | value: 10, |
| | | itemStyle: { |
| | | normal: { |
| | | color: colorSet, |
| | | }, |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | // å¤ä¸å±å |
| | | { |
| | | type: 'pie', |
| | | radius: '60%', |
| | | startAngle: 220, |
| | | endAngle: -40, |
| | | hoverAnimation: false, |
| | | center: ['50%', '50%'], |
| | | avoidLabelOverlap: false, |
| | | label: { |
| | | show: false, |
| | | }, |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | data: [ |
| | | { |
| | | value: 1, |
| | | }, |
| | | ], |
| | | itemStyle: { |
| | | normal: { |
| | | color: { |
| | | type: 'linear', |
| | | x: 0, |
| | | y: 0, |
| | | x2: 0, |
| | | y2: 1, |
| | | colorStops: [ |
| | | { |
| | | offset: 0, |
| | | color: '#17A1FF', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: 'rgba(17, 90, 233, 0.16)', |
| | | }, |
| | | ], |
| | | }, |
| | | opacity: 0.12, |
| | | }, |
| | | }, |
| | | }, |
| | | // å
å |
| | | { |
| | | type: 'pie', |
| | | radius: ['0', '50%'], |
| | | center: ['50%', '50%'], |
| | | hoverAnimation: false, |
| | | z: 3, |
| | | data: [ |
| | | { |
| | | value: dataArr, |
| | | itemStyle: { |
| | | normal: { |
| | | color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ |
| | | { |
| | | offset: 0, |
| | | color: '#23A6FF', |
| | | }, |
| | | { |
| | | offset: 1, |
| | | color: 'rgba(17, 90, 233, 0.21) ', |
| | | }, |
| | | ]), |
| | | opacity: 0.59, |
| | | }, |
| | | }, |
| | | label: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | ], |
| | | labelLine: { |
| | | show: false, |
| | | }, |
| | | }, |
| | | ], |
| | | }; |
| | | |
| | | |
| | | const chart = echarts.init(this.$refs.chart) |
| | | |
| | | chart.setOption(option) |
| | | window.addEventListener("resize", function () { |
| | | chart.resize() |
| | | }) |
| | | }, |
| | | }, |
| | | } |
| | | |
| | | </script> |
| | | <style lang="scss"> |
| | | .projectTime { |
| | | height: calc(100% - 30px); |
| | | width: 100%; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div class="projectintroduction"> |
| | | <div class="item"> |
| | | <div class="itemName">项ç®åç§°:</div> |
| | | <div class="itemValue" :title="result.projname">{{ result.projname.length>15?result.projname.substring(0,15):result.projname }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemName">项ç®ç¶æ:</div> |
| | | <div class="itemValue">{{ result.projstate }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemName">项ç®ç§ç±»:</div> |
| | | <div class="itemValue">{{ result.projtype }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemName">æå±é¨é¨:</div> |
| | | <div class="itemValue">{{ result.corpname }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemName">å¯å¨æ¶é´:</div> |
| | | <div class="itemValue">{{ parseTime(result.createtime) }}</div> |
| | | </div> |
| | | <div class="item"> |
| | | <div class="itemName">å·¥ç¨å
容:</div> |
| | | <div class="itemValue">{{ result.contents.length>15? result.contents.substring(0,15): result.contents }}</div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | <script> |
| | | export default { |
| | | data() { |
| | | return { |
| | | result: |
| | | { |
| | | "eventid": "4dfd814a-a262-4a93-880b-5ef488883a35", |
| | | "country": "ä¸å½", |
| | | "projstate": "æ½å·¥ä¸", |
| | | "createtime": 1675071993161, |
| | | "gid": 38, |
| | | "conperiod": "24", |
| | | "datastatus": null, |
| | | "geom": "01010000208A110000925A28999C225C40F1811DFF05364040", |
| | | "createuser": 1, |
| | | "parentid": null, |
| | | "verid": 0, |
| | | "province": "æ¹åç", |
| | | "projname": "西æ°ä¸è¾ä¸çº¿ï¼ä¸å«-æ£é³ï¼", |
| | | "contents": "管é线路æ½å·¥", |
| | | "projtype": "管线æ½å·¥", |
| | | "location": "æ¦æ±", |
| | | "dirid": "03", |
| | | "depid": null, |
| | | "corpname": "管é设计é¢", |
| | | "department": "åå¯é¨é¨", |
| | | "updatetime": 1675072198376, |
| | | "belongsid": null, |
| | | "remarks": "æµè¯ç¨ï¼å
容èæ", |
| | | "updateuser": 1 |
| | | }, |
| | | } |
| | | }, |
| | | methods: { |
| | | //è·åæ¶é´ |
| | | parseTime(timestamp){ |
| | | var date = new Date(timestamp);//æ¶é´æ³ä¸º10ä½é*1000ï¼æ¶é´æ³ä¸º13ä½çè¯ä¸éä¹1000 |
| | | var Y = date.getFullYear() + '-'; |
| | | var M = (date.getMonth()+1 < 10 ? '0'+(date.getMonth()+1) : date.getMonth()+1) + '-'; |
| | | var D = (date.getDate() < 10 ? '0'+date.getDate() : date.getDate()) + ' '; |
| | | let strDate = Y+M+D; |
| | | return strDate; |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | | </script> |
| | | <style lang="scss"> |
| | | .projectintroduction { |
| | | height: calc(100% - 30px); |
| | | width: 100%; |
| | | .item{ |
| | | margin: 5px; |
| | | height: 30px; |
| | | display: flex; |
| | | flex-direction: row; |
| | | border-bottom: dotted 1px rgba(48,135,214,.2); |
| | | .itemName{ |
| | | width: 40%; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | color: #fff; |
| | | } |
| | | .itemValue{ |
| | | width: 60%; |
| | | height: 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: flex-start; |
| | | color: #9ED2F5; |
| | | } |
| | | } |
| | | } |
| | | </style> |