|
@@ -317,6 +317,23 @@
|
|
<div class="num_subject_box_new">
|
|
<div class="num_subject_box_new">
|
|
<div style="margin-bottom:20px;">
|
|
<div style="margin-bottom:20px;">
|
|
<div style="font-size:12px;">成绩统计</div>
|
|
<div style="font-size:12px;">成绩统计</div>
|
|
|
|
+ <div>
|
|
|
|
+ <el-row type="flex" justify="end" style="margin-top: -20px;margin-right: -20px;">
|
|
|
|
+ <el-pagination
|
|
|
|
+ small
|
|
|
|
+ :pager-count="4"
|
|
|
|
+ :total="this.danweiweidu.length"
|
|
|
|
+ :current-page="this.danweiweidu.currentPage"
|
|
|
|
+ :page-size="this.danweiweidu.pageSize"
|
|
|
|
+ :page-sizes="[5,10,15,20]"
|
|
|
|
+ layout="total, prev, pager, next, sizes"
|
|
|
|
+ @current-change="onCurrentPageChange_grade"
|
|
|
|
+ @size-change="onPageSizeChange_grade" >
|
|
|
|
+ <!-- @prev-click="previousPage"-->
|
|
|
|
+ <!-- @next-click="nextPage"-->
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </el-row>
|
|
|
|
+ </div>
|
|
<div
|
|
<div
|
|
id="subjectGradeStatistics"
|
|
id="subjectGradeStatistics"
|
|
style=" left:5px; width:430px; height:180px; "
|
|
style=" left:5px; width:430px; height:180px; "
|
|
@@ -474,14 +491,14 @@
|
|
</el-image>
|
|
</el-image>
|
|
单位分布
|
|
单位分布
|
|
</div>
|
|
</div>
|
|
- <el-image
|
|
|
|
- @click="showFull('chart-earth')"
|
|
|
|
- style="width: 20px; height: 20px; margin-right:6px; margin-top: -10px;"
|
|
|
|
- :src="require('../assets/img/iconMore.svg')"
|
|
|
|
- fit="contain"
|
|
|
|
- class="moreBtn_style"
|
|
|
|
- >
|
|
|
|
- </el-image>
|
|
|
|
|
|
+<!-- <el-image-->
|
|
|
|
+<!-- @click="showFull('chart-earth')"-->
|
|
|
|
+<!-- style="width: 20px; height: 20px; margin-right:6px; margin-top: -10px;"-->
|
|
|
|
+<!-- :src="require('../assets/img/iconMore.svg')"-->
|
|
|
|
+<!-- fit="contain"-->
|
|
|
|
+<!-- class="moreBtn_style"-->
|
|
|
|
+<!-- >-->
|
|
|
|
+<!-- </el-image>-->
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- <div v-if="!echartMapFlag" id="mapData" style="height:260px; width:100%; top:-20px;"></div>
|
|
<!-- <div v-if="!echartMapFlag" id="mapData" style="height:260px; width:100%; top:-20px;"></div>
|
|
@@ -630,7 +647,7 @@
|
|
:destroy-on-close="true"
|
|
:destroy-on-close="true"
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
:width=" dialogType ==1 ? '650px' : '650px'"
|
|
:width=" dialogType ==1 ? '650px' : '650px'"
|
|
- top="300px"
|
|
|
|
|
|
+ top="10%"
|
|
>
|
|
>
|
|
<div>
|
|
<div>
|
|
<div class="task_detail_dialog">
|
|
<div class="task_detail_dialog">
|
|
@@ -731,7 +748,7 @@ import myscrollBoard from '../components/myscroll-board/src/main'
|
|
import sacleBox from '../components/sacle-box/index'
|
|
import sacleBox from '../components/sacle-box/index'
|
|
import { request } from '../utils/request';
|
|
import { request } from '../utils/request';
|
|
var uploadedDataURL = require('../../public/json/taiyuan.json')
|
|
var uploadedDataURL = require('../../public/json/taiyuan.json')
|
|
-import './taskScreen.css'
|
|
|
|
|
|
+import './situationScreen.css'
|
|
import Videojs from "video.js"; // 引入Videojs
|
|
import Videojs from "video.js"; // 引入Videojs
|
|
import 'echarts-gl';
|
|
import 'echarts-gl';
|
|
export default {
|
|
export default {
|
|
@@ -743,6 +760,16 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ danweiweidu:{
|
|
|
|
+ data: [],
|
|
|
|
+ length:0,
|
|
|
|
+ danwei_name:[],
|
|
|
|
+ danwei_grade:[],
|
|
|
|
+ currentPage:1,
|
|
|
|
+ totalPage:0,
|
|
|
|
+ pageSize:15,
|
|
|
|
+ paged:true,
|
|
|
|
+ },
|
|
showOperationSpace: false,
|
|
showOperationSpace: false,
|
|
currentFlowInstance: undefined,
|
|
currentFlowInstance: undefined,
|
|
systemTaskId:'',
|
|
systemTaskId:'',
|
|
@@ -814,13 +841,11 @@ export default {
|
|
unitSubGradeValue:'',
|
|
unitSubGradeValue:'',
|
|
systemSubGradeValue:'',
|
|
systemSubGradeValue:'',
|
|
gridData:[],
|
|
gridData:[],
|
|
-
|
|
|
|
gridData2:{
|
|
gridData2:{
|
|
data: [],
|
|
data: [],
|
|
length:0,
|
|
length:0,
|
|
currentPage:1,
|
|
currentPage:1,
|
|
pageSize:10,
|
|
pageSize:10,
|
|
-
|
|
|
|
paged:true,
|
|
paged:true,
|
|
},
|
|
},
|
|
dataSrc:'https://cctvwbndbd.a.bdydns.com/cctvwbnd/cctv1_2/index.m3u8?BR=single',
|
|
dataSrc:'https://cctvwbndbd.a.bdydns.com/cctvwbnd/cctv1_2/index.m3u8?BR=single',
|
|
@@ -961,18 +986,16 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
jumpToCurrent() {
|
|
jumpToCurrent() {
|
|
- // window.location.href = "/taskScreen"
|
|
|
|
- // this.$router.push("/taskScreen")
|
|
|
|
this.$router.push("/mainScreen")
|
|
this.$router.push("/mainScreen")
|
|
},
|
|
},
|
|
getEarth(){
|
|
getEarth(){
|
|
- // 获取DOM容器
|
|
|
|
- const chartContainer = document.getElementById('chart-earth');
|
|
|
|
- // 初始化ECharts图表
|
|
|
|
- this.myChart = echarts.init(chartContainer);
|
|
|
|
- var datas = [];
|
|
|
|
- console.log('this.taiyuanMapDatas :>> ', this.taiyuanMapData);
|
|
|
|
- for (let item in this.taiYuanMapData){
|
|
|
|
|
|
+ // 获取DOM容器
|
|
|
|
+ const chartContainer = document.getElementById('chart-earth');
|
|
|
|
+ // 初始化ECharts图表
|
|
|
|
+ this.myChart = echarts.init(chartContainer);
|
|
|
|
+ var datas = [];
|
|
|
|
+ console.log('this.taiyuanMapDatas :>> ', this.taiyuanMapData);
|
|
|
|
+ for (let item in this.taiYuanMapData){
|
|
var array = this.taiYuanMapData[item]
|
|
var array = this.taiYuanMapData[item]
|
|
let data = {
|
|
let data = {
|
|
value:[array[0],array[1],0],
|
|
value:[array[0],array[1],0],
|
|
@@ -980,67 +1003,156 @@ export default {
|
|
}
|
|
}
|
|
console.log('data :>> ', data);
|
|
console.log('data :>> ', data);
|
|
datas.push(data)
|
|
datas.push(data)
|
|
-
|
|
|
|
- }
|
|
|
|
- console.log('datas :>> ', datas);
|
|
|
|
-
|
|
|
|
- // 设置图表的配置项和数据
|
|
|
|
- const option = {
|
|
|
|
- backgroundColor: '#000',
|
|
|
|
-
|
|
|
|
- globe: {
|
|
|
|
- baseTexture: require('../assets/img/earth.jpg'),
|
|
|
|
- heightTexture: require('../assets/img/bathymetry_bw_composite_4k.jpg'),
|
|
|
|
- displacementScale: 0.1,
|
|
|
|
- shading: 'lambert',
|
|
|
|
- environment: require('../assets/img/starfield.jpg'),
|
|
|
|
- viewControl: {
|
|
|
|
- distance: 1, // 地球与相机之间的距离
|
|
|
|
- targetCoord: [112.548879, 37.87059], // 设置地球的目标位置为太原市的经纬度
|
|
|
|
- autoRotate: false, // 自动旋转地球
|
|
|
|
|
|
|
|
- },
|
|
|
|
- light: {
|
|
|
|
- ambient: {
|
|
|
|
- intensity: 0.1
|
|
|
|
- },
|
|
|
|
- main: {
|
|
|
|
- intensity: 1.5
|
|
|
|
}
|
|
}
|
|
- },
|
|
|
|
- layers: [
|
|
|
|
- {
|
|
|
|
- type: 'blend',
|
|
|
|
- blendTo: 'emission',
|
|
|
|
- texture: require('../assets/img/night.jpg')
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- type: 'overlay',
|
|
|
|
- texture: require('../assets/img/clouds.png'),
|
|
|
|
- shading: 'lambert',
|
|
|
|
- distance: 5
|
|
|
|
- }
|
|
|
|
- ]
|
|
|
|
- },
|
|
|
|
|
|
+ console.log('datas :>> ', datas);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ // 设置图表的配置项和数据
|
|
|
|
+ const option = {
|
|
|
|
+ backgroundColor: '#000',
|
|
|
|
+
|
|
|
|
+ globe: {
|
|
|
|
+ // zoom3D: 1000000000, // 调整为合适的初始缩放级别
|
|
|
|
+ baseTexture: require('../assets/img/earth.jpg'),
|
|
|
|
+ heightTexture: require('../assets/img/bathymetry_bw_composite_4k.jpg'),
|
|
|
|
+ displacementScale: 0.1,
|
|
|
|
+ shading: 'lambert',
|
|
|
|
+ environment: require('../assets/img/starfield.jpg'),
|
|
|
|
+ viewControl: {
|
|
|
|
+ distance: 1, // 地球与相机之间的距离
|
|
|
|
+ targetCoord: [112.548879, 37.87059], // 设置地球的目标位置为太原市的经纬度
|
|
|
|
+ autoRotate: false, // 自动旋转地球
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ light: {
|
|
|
|
+ ambient: {
|
|
|
|
+ intensity: 0.1
|
|
|
|
+ },
|
|
|
|
+ main: {
|
|
|
|
+ intensity: 1.5
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ layers: [
|
|
|
|
+ {
|
|
|
|
+ type: 'blend',
|
|
|
|
+ blendTo: 'emission',
|
|
|
|
+ texture: require('../assets/img/night.jpg')
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ type: 'overlay',
|
|
|
|
+ texture: require('../assets/img/clouds.png'),
|
|
|
|
+ shading: 'lambert',
|
|
|
|
+ distance: 5
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ toolbox: {
|
|
|
|
+ feature: {
|
|
|
|
+ // dataZoom: { yAxisIndex: 'none' }, // 数据区域缩放
|
|
|
|
+ restore: { show: true }, // 重置
|
|
|
|
+ saveAsImage: { show: true }, // 导出图片
|
|
|
|
+ myFull: { // 全屏
|
|
|
|
+ show: true,
|
|
|
|
+ title: '全屏',
|
|
|
|
+ icon: 'path://M432.45,595.444c0,2.177-4.661,6.82-11.305,6.82c-6.475,0-11.306-4.567-11.306-6.82s4.852-6.812,11.306-6.812C427.841,588.632,432.452,593.191,432.45,595.444L432.45,595.444z M421.155,589.876c-3.009,0-5.448,2.495-5.448,5.572s2.439,5.572,5.448,5.572c3.01,0,5.449-2.495,5.449-5.572C426.604,592.371,424.165,589.876,421.155,589.876L421.155,589.876z M421.146,591.891c-1.916,0-3.47,1.589-3.47,3.549c0,1.959,1.554,3.548,3.47,3.548s3.469-1.589,3.469-3.548C424.614,593.479,423.062,591.891,421.146,591.891L421.146,591.891zM421.146,591.891',
|
|
|
|
+ onclick: (e) => {// 全屏查看
|
|
|
|
+ const element = document.getElementById('chart-earth');
|
|
|
|
+
|
|
|
|
+ if (element.requestFullScreen) {
|
|
|
|
+ // HTML W3C 提议
|
|
|
|
+ console.log(1)
|
|
|
|
+ element.requestFullScreen()
|
|
|
|
+ } else if (element.msRequestFullscreen) {
|
|
|
|
+ // IE11
|
|
|
|
+ console.log(2)
|
|
|
|
+ element.msRequestFullScreen()
|
|
|
|
+ } else if (element.webkitRequestFullScreen) {
|
|
|
|
+ // Webkit (works in Safari5.1 and Chrome 15)
|
|
|
|
+ console.log(3)
|
|
|
|
+ element.webkitRequestFullScreen()
|
|
|
|
+ } else if (element.mozRequestFullScreen) {
|
|
|
|
+ // Firefox (works in nightly)
|
|
|
|
+ console.log(4)
|
|
|
|
+ element.mozRequestFullScreen()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // 退出全屏
|
|
|
|
+ if (element.requestFullScreen) {
|
|
|
|
+ document.exitFullscreen()
|
|
|
|
+ } else if (element.msRequestFullScreen) {
|
|
|
|
+ document.msExitFullscreen()
|
|
|
|
+ } else if (element.webkitRequestFullScreen) {
|
|
|
|
+ document.webkitCancelFullScreen()
|
|
|
|
+ } else if (element.mozRequestFullScreen) {
|
|
|
|
+ document.mozCancelFullScreen()
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ // xAxis: {
|
|
|
|
+ // type: 'value',
|
|
|
|
+ // min: 'dataMin',
|
|
|
|
+ // max: 'dataMax',
|
|
|
|
+ // splitLine: {
|
|
|
|
+ // show: true
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // yAxis: {
|
|
|
|
+ // type: 'value',
|
|
|
|
+ // min: 'dataMin',
|
|
|
|
+ // max: 'dataMax',
|
|
|
|
+ // splitLine: {
|
|
|
|
+ // show: true
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // dataZoom: [
|
|
|
|
+ // {
|
|
|
|
+ // type: 'slider',
|
|
|
|
+ // show: true,
|
|
|
|
+ // xAxisIndex: [0],
|
|
|
|
+ // yAxisIndex: [0],
|
|
|
|
+ // start: 0,
|
|
|
|
+ // end: 100
|
|
|
|
+ // },
|
|
|
|
+ //
|
|
|
|
+ // {
|
|
|
|
+ // type: 'inside',
|
|
|
|
+ // show: true,
|
|
|
|
+ // xAxisIndex: [0],
|
|
|
|
+ // yAxisIndex: [0],
|
|
|
|
+ // start: 0,
|
|
|
|
+ // end: 100
|
|
|
|
+ // },
|
|
|
|
+ // ],
|
|
|
|
+ series: [ {
|
|
|
|
+ type: 'scatter3D',
|
|
|
|
+ symbolSize: 10,
|
|
|
|
+ coordinateSystem: 'globe',
|
|
|
|
+ data: datas,
|
|
|
|
+ itemStyle: {
|
|
|
|
+ color: 'red' // 设置标记点的颜色
|
|
|
|
+ },
|
|
|
|
+ label: {
|
|
|
|
+ show: true,
|
|
|
|
+ formatter: '{b}', // 设置标记点的文本显示为数据的名称
|
|
|
|
+ position: 'top'
|
|
|
|
+ }
|
|
|
|
+ }]
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ // echarts.chart.map._mapDataMap下能看到x,y以及基础basescale的设置信息,画的时候是适应你的节点的高宽,而不是去适应浏览器。适应浏览器是页面你定义的dom节点去做的。
|
|
|
|
+ // this.myChart.map._map;
|
|
|
|
+ // 使用配置项和数据显示图表
|
|
|
|
+ this.myChart.setOption(option);
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ window.onresize = this.myChart.resize;
|
|
|
|
|
|
- series: [ {
|
|
|
|
- type: 'scatter3D',
|
|
|
|
- symbolSize: 10,
|
|
|
|
- coordinateSystem: 'globe',
|
|
|
|
- data: datas,
|
|
|
|
- itemStyle: {
|
|
|
|
- color: 'red' // 设置标记点的颜色
|
|
|
|
- },
|
|
|
|
- label: {
|
|
|
|
- show: true,
|
|
|
|
- formatter: '{b}', // 设置标记点的文本显示为数据的名称
|
|
|
|
- position: 'top'
|
|
|
|
- }
|
|
|
|
- }]
|
|
|
|
- };
|
|
|
|
|
|
|
|
- // 使用配置项和数据显示图表
|
|
|
|
- this.myChart.setOption(option);
|
|
|
|
},
|
|
},
|
|
// 获取单位名称
|
|
// 获取单位名称
|
|
getName(list, id) {
|
|
getName(list, id) {
|
|
@@ -1078,7 +1190,9 @@ export default {
|
|
},
|
|
},
|
|
// 查看任务态势
|
|
// 查看任务态势
|
|
viewTaskSituation(item) {
|
|
viewTaskSituation(item) {
|
|
|
|
+ console.log("查看态势1",this.wholeOutTaskId)
|
|
this.wholeOutTaskId = item.taskId;
|
|
this.wholeOutTaskId = item.taskId;
|
|
|
|
+ console.log("查看态势2",this.wholeOutTaskId)
|
|
this.changeTask()
|
|
this.changeTask()
|
|
},
|
|
},
|
|
// 地图
|
|
// 地图
|
|
@@ -1087,6 +1201,7 @@ export default {
|
|
this.myChart1.dispose();
|
|
this.myChart1.dispose();
|
|
}
|
|
}
|
|
this.myChart1 = echarts.init(document.getElementById('mapData'),'dark');
|
|
this.myChart1 = echarts.init(document.getElementById('mapData'),'dark');
|
|
|
|
+ console.log("100",this)
|
|
echarts.registerMap('taiyuan', uploadedDataURL);
|
|
echarts.registerMap('taiyuan', uploadedDataURL);
|
|
var chinaGeoCoordMap = this.taiYuanMapData
|
|
var chinaGeoCoordMap = this.taiYuanMapData
|
|
var chinaDatas = this.taiYuanDatas
|
|
var chinaDatas = this.taiYuanDatas
|
|
@@ -1288,8 +1403,12 @@ export default {
|
|
},
|
|
},
|
|
series: series
|
|
series: series
|
|
};
|
|
};
|
|
-
|
|
|
|
- this.myChart1.setOption(option);
|
|
|
|
|
|
+ if(option){
|
|
|
|
+ console.log('111',option)
|
|
|
|
+ // console.log('222',this.myChart1.get())
|
|
|
|
+ console.log('112',this)
|
|
|
|
+ this.myChart1.setOption(option)
|
|
|
|
+ }
|
|
let that =this
|
|
let that =this
|
|
window.addEventListener('resize',function () {//执行
|
|
window.addEventListener('resize',function () {//执行
|
|
console.log('cuowu');
|
|
console.log('cuowu');
|
|
@@ -1466,7 +1585,9 @@ export default {
|
|
}
|
|
}
|
|
])
|
|
])
|
|
})
|
|
})
|
|
- this.initechartsMap()
|
|
|
|
|
|
+ console.log("666",echarts.version);
|
|
|
|
+ console.log("667",this);
|
|
|
|
+ // this.initechartsMap()
|
|
this.echartMapFlag=false
|
|
this.echartMapFlag=false
|
|
}else{
|
|
}else{
|
|
this.echartMapFlag=true
|
|
this.echartMapFlag=true
|
|
@@ -1784,6 +1905,10 @@ export default {
|
|
if (success) {
|
|
if (success) {
|
|
console.log('全部任务分数统计', data);
|
|
console.log('全部任务分数统计', data);
|
|
const { category, value } = data
|
|
const { category, value } = data
|
|
|
|
+
|
|
|
|
+ this.danweiweidu.danwei_name = category
|
|
|
|
+ this.danweiweidu.danwei_grade = value
|
|
|
|
+
|
|
value.forEach(item=>Number(item))
|
|
value.forEach(item=>Number(item))
|
|
if(category.length){
|
|
if(category.length){
|
|
this.participantScoreFlag=false
|
|
this.participantScoreFlag=false
|
|
@@ -1791,12 +1916,62 @@ export default {
|
|
this.participantScoreFlag=true
|
|
this.participantScoreFlag=true
|
|
}
|
|
}
|
|
this.updatekeyOther=new Date().getTime()
|
|
this.updatekeyOther=new Date().getTime()
|
|
- this.initEchartsSubjectGradeStatistics(category, value)
|
|
|
|
|
|
|
|
|
|
+ // console.log("name and grade: ", this.danweiweidu.danwei_name,this.danweiweidu.danwei_grade)
|
|
|
|
+ this.danweiweidu.length=value.length
|
|
|
|
+ this.danweiweidu.totalPage= (value.length)/(this.danweiweidu.pageSize)
|
|
|
|
+ this.danweiweidu.totalPage=Math.ceil(this.danweiweidu.totalPage);
|
|
|
|
+ console.log("数据量,页面数据量,当前页面,页面数",value.length,this.danweiweidu.pageSize,this.danweiweidu.currentPage,this.danweiweidu.totalPage)
|
|
|
|
+ // this.initEchartsSubjectGradeStatistics(category, value)
|
|
|
|
+ this.updateChart();
|
|
} else {
|
|
} else {
|
|
this.$message.error(errorMessage)
|
|
this.$message.error(errorMessage)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ previousPage() {
|
|
|
|
+ console.log("向前",this.danweiweidu.currentPage)
|
|
|
|
+ if (this.danweiweidu.currentPage > 1) {
|
|
|
|
+ this.danweiweidu.currentPage--;
|
|
|
|
+ this.updateChart();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ nextPage() {
|
|
|
|
+ console.log("向后",this.danweiweidu.currentPage)
|
|
|
|
+ if (this.danweiweidu.currentPage < this.danweiweidu.totalPage) {
|
|
|
|
+ this.danweiweidu.currentPage++;
|
|
|
|
+ this.updateChart();
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ updateChart() {
|
|
|
|
+ const start = (this.danweiweidu.currentPage - 1) * this.danweiweidu.pageSize;
|
|
|
|
+ const end = start + this.danweiweidu.pageSize;
|
|
|
|
+ // 获取当前页需要显示的数据
|
|
|
|
+ // const pageData = this.value.slice(start, end);
|
|
|
|
+ const pageData1 = this.danweiweidu.danwei_name.slice(start, end);
|
|
|
|
+ const pageData2 = this.danweiweidu.danwei_grade.slice(start, end);
|
|
|
|
+ // 更新echarts的data选项,设置为当前页的数据
|
|
|
|
+ console.log("数据",pageData1, pageData2)
|
|
|
|
+ this.initEchartsSubjectGradeStatistics(pageData1, pageData2)
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ onCurrentPageChange_grade (newCurrentPage) {
|
|
|
|
+ this.danweiweidu.currentPage=newCurrentPage
|
|
|
|
+ console.log("1: ",newCurrentPage )//当前页面
|
|
|
|
+ console.log("2: ",this.danweiweidu.pageSize )
|
|
|
|
+ console.log("3: ",this.oldPage)
|
|
|
|
+ this.updateChart()
|
|
|
|
+ },
|
|
|
|
+ /**
|
|
|
|
+ * 表格分页每页显示数量变化
|
|
|
|
+ * @param {Integer} newPageSize 变化后的每页显示数量
|
|
|
|
+ */
|
|
|
|
+ onPageSizeChange_grade (newPageSize) {
|
|
|
|
+ console.log("hhhh2: ",newPageSize )
|
|
|
|
+ this.danweiweidu.pageSize = newPageSize;
|
|
|
|
+ this.danweiweidu.currentPage = 1
|
|
|
|
+ this.updateChart()
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
|
|
// 获取全部任务分布
|
|
// 获取全部任务分布
|
|
async getAllTaskDistribution(){
|
|
async getAllTaskDistribution(){
|
|
@@ -2120,7 +2295,11 @@ export default {
|
|
if(this.myChart4 !=null && this.myChart4 != "" && this.myChart4 != undefined){
|
|
if(this.myChart4 !=null && this.myChart4 != "" && this.myChart4 != undefined){
|
|
this.myChart4.dispose();
|
|
this.myChart4.dispose();
|
|
}
|
|
}
|
|
- this.myChart4 = echarts.init(document.getElementById('taskPrecentSystem'));
|
|
|
|
|
|
+
|
|
|
|
+ if(document.getElementById('taskPrecentSystem')){
|
|
|
|
+ this.myChart4 = echarts.init(document.getElementById('taskPrecentSystem'));
|
|
|
|
+ }
|
|
|
|
+
|
|
var data1 = alldistributionData
|
|
var data1 = alldistributionData
|
|
var colorList = ['#296DE0','#47D2F4','#08B389'];
|
|
var colorList = ['#296DE0','#47D2F4','#08B389'];
|
|
var option = {
|
|
var option = {
|
|
@@ -2357,8 +2536,9 @@ export default {
|
|
series: [
|
|
series: [
|
|
{
|
|
{
|
|
symbolSize: (params) => {
|
|
symbolSize: (params) => {
|
|
- let markSize = Math.sqrt(params[1]) * 3;
|
|
|
|
- markSize = markSize < 12 ? 12 : markSize;
|
|
|
|
|
|
+ // let markSize = Math.sqrt(params[1]) * 3;
|
|
|
|
+ // markSize = markSize < 12 ? 12 : markSize;
|
|
|
|
+ let markSize = 12;
|
|
return markSize;
|
|
return markSize;
|
|
},
|
|
},
|
|
symbol: 'circle',
|
|
symbol: 'circle',
|
|
@@ -2373,7 +2553,21 @@ export default {
|
|
});
|
|
});
|
|
return arr;
|
|
return arr;
|
|
})(chartData),
|
|
})(chartData),
|
|
|
|
+
|
|
type: 'scatter',
|
|
type: 'scatter',
|
|
|
|
+ label: {
|
|
|
|
+ show: true, // 是否显示标签
|
|
|
|
+ formatter: function(params) { // 标签内容的格式化模板
|
|
|
|
+ return params.value[1]; // 数值显示格式示例
|
|
|
|
+ },
|
|
|
|
+ position: 'right', // 标签位置,可以设置为 'top'、'bottom'、'left'、'right' 或具体的像素值
|
|
|
|
+ fontSize: 10, // 标签字体大小
|
|
|
|
+ color: '#55d2c3', // 标签字体颜色
|
|
|
|
+ // backgroundColor: '#fff', // 标签背景色
|
|
|
|
+ // borderColor: '#999', // 标签边框颜色
|
|
|
|
+ // borderWidth: 1, // 标签边框宽度
|
|
|
|
+ // borderRadius: 4 // 标签边框圆角半径
|
|
|
|
+ },
|
|
itemStyle: {
|
|
itemStyle: {
|
|
normal: {
|
|
normal: {
|
|
color: '#FFF8A5',
|
|
color: '#FFF8A5',
|
|
@@ -2531,7 +2725,7 @@ export default {
|
|
show: true,
|
|
show: true,
|
|
textStyle: {
|
|
textStyle: {
|
|
color: "#AEE6FC",
|
|
color: "#AEE6FC",
|
|
- fontSize:12
|
|
|
|
|
|
+ fontSize:8
|
|
},
|
|
},
|
|
rotate:'25'
|
|
rotate:'25'
|
|
},
|
|
},
|
|
@@ -2586,6 +2780,19 @@ export default {
|
|
}
|
|
}
|
|
]
|
|
]
|
|
};
|
|
};
|
|
|
|
+ // console.log("11",value.length)
|
|
|
|
+ // console.log("22",option.series[0].barWidth)//14
|
|
|
|
+ // console.log("33",option.xAxis.axisLabel.textStyle.fontSize)//8
|
|
|
|
+
|
|
|
|
+ // 修改柱状图的宽度和字体大小
|
|
|
|
+ if(value.length>15){
|
|
|
|
+ option.series[0].barWidth = 12; // 修改柱状图的宽度为20像素
|
|
|
|
+ option.xAxis.axisLabel.textStyle.fontSize = 6; // 修改x轴标签的字体大小为12像素
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ // console.log("44",value.length)
|
|
|
|
+ // console.log("55",option.series[0].barWidth)//14
|
|
|
|
+ // console.log("66",option.xAxis.axisLabel.textStyle.fontSize)//8
|
|
this.myChart8.setOption(option);
|
|
this.myChart8.setOption(option);
|
|
let that =this
|
|
let that =this
|
|
window.addEventListener('resize',function () {//执行
|
|
window.addEventListener('resize',function () {//执行
|
|
@@ -2831,9 +3038,13 @@ export default {
|
|
if(type=='more'){
|
|
if(type=='more'){
|
|
this.$router.push('/situationScreen')
|
|
this.$router.push('/situationScreen')
|
|
}else {
|
|
}else {
|
|
- this.$router.push('/historicTaskScreen')
|
|
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path:"/historicTaskScreen",
|
|
|
|
+ query:{
|
|
|
|
+ key1:this.wholeOutTaskId,
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
-
|
|
|
|
},
|
|
},
|
|
|
|
|
|
// 初始化视频
|
|
// 初始化视频
|
|
@@ -2869,9 +3080,9 @@ export default {
|
|
// 建立任务的weksocket链接
|
|
// 建立任务的weksocket链接
|
|
this.initWebsoket()
|
|
this.initWebsoket()
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
- this.getEarth();
|
|
|
|
- }, 3000);
|
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.getEarth();
|
|
|
|
+ }, 3000);
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
if(this.playerList.length){
|
|
if(this.playerList.length){
|