| | |
| | | }, |
| | | |
| | | methods: { |
| | | setFontSize(res){ |
| | | const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; |
| | | if (!clientWidth) return; |
| | | let fontSize = clientWidth / 1920; |
| | | return res*fontSize; |
| | | }, |
| | | initDrawLine() { |
| | | const that = this |
| | | let option = { |
| | |
| | | return str |
| | | }, |
| | | textStyle: { |
| | | fontSize: 16 |
| | | fontSize: this.setFontSize(16) |
| | | } |
| | | }, |
| | | |
| | |
| | | data: ['已处理工单数', '未处理工单数'], |
| | | textStyle: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14 |
| | | fontSize: this.setFontSize(14) |
| | | } |
| | | }, |
| | | |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14, |
| | | fontSize: this.setFontSize(14), |
| | | margin: 20, |
| | | rotate: 30 |
| | | }, |
| | |
| | | }, |
| | | axisLabel: { |
| | | color: '#A0AEC0', |
| | | fontSize: 14, |
| | | fontSize: this.setFontSize(14), |
| | | margin: 5 |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | methods: { |
| | | setFontSize(res){ |
| | | const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; |
| | | if (!clientWidth) return; |
| | | let fontSize = clientWidth / 1920; |
| | | return res*fontSize; |
| | | }, |
| | | initializeMap() { |
| | | this.updateMapData() |
| | | this.getChinData('自贡市', chinaJson) |
| | |
| | | left: '-5%', |
| | | top: '20%', |
| | | width: '100%', // 明确指定宽度 |
| | | height: '720px', // 明确指定高度 |
| | | height: '100%', // 明确指定高度 |
| | | // boxWidth: 100, |
| | | regionHeight: 0.8, |
| | | zlevel: 10, |
| | |
| | | left: '-5%', |
| | | top: '20%', |
| | | width: '100%', // 明确指定宽度 |
| | | height: '720px', // 明确指定高度 |
| | | height: '100%', // 明确指定高度 |
| | | zlevel: 5, |
| | | |
| | | // tooltip: { |
| | |
| | | position: 'top', |
| | | textStyle: { |
| | | color: '#c6f4ff', |
| | | fontSize: '16px', |
| | | fontSize: this.setFontSize(16), |
| | | backgroundColor: 'rgba(25,56,97,1)', |
| | | borderColor: '#a4ddee', |
| | | borderWidth: 0.5, |
| | |
| | | }, |
| | | rich: { |
| | | style: { |
| | | fontSize: 16, |
| | | lineHeight: 22 |
| | | fontSize: this.setFontSize(14), |
| | | lineHeight: this.setFontSize(20), |
| | | // 其他需要的样式 |
| | | } |
| | | }, |
| | |
| | | |
| | | .map-main-container { |
| | | width: 100%; |
| | | height: 100%; |
| | | height: 37vw; // 固定高度 |
| | | } |
| | | </style> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | setFontSize(res){ |
| | | const clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth; |
| | | if (!clientWidth) return; |
| | | let fontSize = clientWidth / 1920; |
| | | return res*fontSize; |
| | | }, |
| | | |
| | | initChart (val1, val2, color) { |
| | | const annularDom = this.$refs.echarts |
| | | const myAnnular = this.$echarts.init(annularDom) |
| | |
| | | show: true, // 单独显示该数据项 |
| | | formatter: val1 + '', |
| | | color: color, |
| | | fontSize: 14 |
| | | fontSize: this.setFontSize(14) |
| | | } |
| | | }, |
| | | |
| | |
| | | <template> |
| | | <div class="container" style="font-size: 14px" ref="contaner"> |
| | | <div class="container" style="font-size: 0.75vw" ref="contaner"> |
| | | <header> |
| | | <i @click="returnPath" class="el-icon-s-home" style="color: #00b4ff;position: absolute;font-size: 24px;left: 98%;top: 15%"></i> |
| | | <img src="@/assets/images/header-bg.png"/> |
| | |
| | | /> |
| | | <ul> |
| | | <li v-for="(item, index) in facilityData.video" :key="index"> |
| | | <div style="font-size: 14px" class="value"> |
| | | <div style="font-size: 0.75vw" class="value"> |
| | | <animate-number from="0" :to="item.value" :key="item.value"></animate-number> |
| | | </div> |
| | | <div style="font-size: 14px" class="title">{{ item.title }}</div> |
| | | <div style="font-size: 0.75vw" class="title">{{ item.title }}</div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | <ul> |
| | | <li v-for="(item, index) in facilityData.car" :key="index"> |
| | | <!-- <div class="value">{{ item.value ? item.value : "-" }}</div>--> |
| | | <div style="font-size: 14px" class="value"><animate-number from="0" :to="item.value" :key="item.value"></animate-number></div> |
| | | <div style="font-size: 14px" class="title">{{ item.title }}</div> |
| | | <div style="font-size: 0.75vw" class="value"><animate-number from="0" :to="item.value" :key="item.value"></animate-number></div> |
| | | <div style="font-size: 0.75vw" class="title">{{ item.title }}</div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | :key="index" |
| | | > |
| | | <!-- <div class="value">{{ item.value ? item.value : "-" }}</div>--> |
| | | <div style="font-size: 14px" class="value"><animate-number from="0" :to="item.value" :key="item.value"></animate-number></div> |
| | | <div style="font-size: 14px" class="title">{{ item.title }}</div> |
| | | <div style="font-size: 0.75vw" class="value"><animate-number from="0" :to="item.value" :key="item.value"></animate-number></div> |
| | | <div style="font-size: 0.75vw" class="title">{{ item.title }}</div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | |
| | | li { |
| | | width: 25%; |
| | | text-align: center; |
| | | font-size: 14px; |
| | | font-size: 0.75vw; |
| | | color: #00e6f4; |
| | | flex-shrink: 0; |
| | | flex-grow: 0; |
| | |
| | | background-image: url("../../assets/images/item-car-bg.png"); |
| | | background-size: 100% 100%; |
| | | color: #dcf8ff; |
| | | font-size: 12px; |
| | | //font-size: 12px; |
| | | line-height: 26px; |
| | | padding: 0 15px; |
| | | font-size: 0.625vw; |
| | |
| | | } |
| | | |
| | | .rotating-image { |
| | | width: 950px; |
| | | height: 950px; |
| | | width: 50vw; |
| | | height: 50vw; |
| | | position: absolute; |
| | | top: calc(50% - 450px); |
| | | left: calc(50% - 450px); |
| | | top: calc(50% - 24vw); |
| | | left: calc(50% - 24vw); |
| | | transform: skewX(-5deg) skewY(-10deg); |
| | | animation: rotateImage 36s linear infinite; |
| | | } |
| | | |
| | | .rotating-image-in { |
| | | width: 900px; |
| | | height: 900px; |
| | | width: 47.5vw; |
| | | height: 47.5vw; |
| | | position: absolute; |
| | | top: calc(50% - 425px); |
| | | left: calc(50% - 425px); |
| | | top: calc(50% - 22.5vw); |
| | | left: calc(50% - 22.5vw); |
| | | animation: rotateCounterClockwise 48s linear infinite; |
| | | } |
| | | |