|
@@ -1,33 +1,34 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
- <el-form ref="queryForm" size="small" :inline="true">
|
|
|
|
- <el-form-item label="时间">
|
|
|
|
- <el-date-picker
|
|
|
|
- :clearable="false"
|
|
|
|
- v-model="dateTime"
|
|
|
|
- type="datetimerange"
|
|
|
|
- range-separator="至"
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
- :default-time="['00:00:00', '23:45:00']"
|
|
|
|
- />
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item label="场站名称">
|
|
|
|
- <el-select v-model="stationCode" placeholder="请选择">
|
|
|
|
- <el-option
|
|
|
|
- v-for="item in stationList"
|
|
|
|
- :key="item.value"
|
|
|
|
- :label="item.label"
|
|
|
|
- :value="item.value">
|
|
|
|
- </el-option>
|
|
|
|
- </el-select>
|
|
|
|
- </el-form-item>
|
|
|
|
- <el-form-item>
|
|
|
|
- <el-button type="primary" style="margin-left: 5px" icon="el-icon-search" @click="dataQuery">查询
|
|
|
|
- </el-button>
|
|
|
|
- </el-form-item>
|
|
|
|
- </el-form>
|
|
|
|
-
|
|
|
|
|
|
+ <div class="dark-el-input dark-el-button">
|
|
|
|
+ <el-form ref="queryForm" size="small" :inline="true">
|
|
|
|
+ <el-form-item label="时间">
|
|
|
|
+ <el-date-picker
|
|
|
|
+ :clearable="false"
|
|
|
|
+ v-model="dateTime"
|
|
|
|
+ type="datetimerange"
|
|
|
|
+ range-separator="至"
|
|
|
|
+ start-placeholder="开始日期"
|
|
|
|
+ end-placeholder="结束日期"
|
|
|
|
+ :default-time="['00:00:00', '23:45:00']" popper-class="cpp-popper"
|
|
|
|
+ />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item label="场站名称">
|
|
|
|
+ <el-select v-model="stationCode" placeholder="请选择" popper-class="cpp-popper">
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in stationList"
|
|
|
|
+ :key="item.value"
|
|
|
|
+ :label="item.label"
|
|
|
|
+ :value="item.value">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ <el-form-item>
|
|
|
|
+ <el-button type="primary" style="margin-left: 5px" icon="el-icon-search" @click="dataQuery">查询
|
|
|
|
+ </el-button>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-form>
|
|
|
|
+ </div>
|
|
<div style="padding-top: 10px">
|
|
<div style="padding-top: 10px">
|
|
<el-tabs type="card" v-model="activeName" @tab-click="tabClick">
|
|
<el-tabs type="card" v-model="activeName" @tab-click="tabClick">
|
|
<el-tab-pane label="列表" name="first">
|
|
<el-tab-pane label="列表" name="first">
|
|
@@ -42,8 +43,7 @@
|
|
border
|
|
border
|
|
resizable
|
|
resizable
|
|
show-overflow
|
|
show-overflow
|
|
- :data="tableData.slice((currentPage-1) * pageSize,currentPage * pageSize)"
|
|
|
|
- height="535">
|
|
|
|
|
|
+ :data="tableData.slice((currentPage-1) * pageSize,currentPage * pageSize)">
|
|
<vxe-table-column field="stationCode" title="场站名称" :formatter="stationCodeFormat" width="200px" fixed="left"></vxe-table-column>
|
|
<vxe-table-column field="stationCode" title="场站名称" :formatter="stationCodeFormat" width="200px" fixed="left"></vxe-table-column>
|
|
<vxe-table-column field="time" title="时间" width="180px" fixed="left"></vxe-table-column>
|
|
<vxe-table-column field="time" title="时间" width="180px" fixed="left"></vxe-table-column>
|
|
<vxe-table-column field="t" title="温度(℃)" width="180px"></vxe-table-column>
|
|
<vxe-table-column field="t" title="温度(℃)" width="180px"></vxe-table-column>
|
|
@@ -762,7 +762,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
wsDraw(wsTime,wsMap) {
|
|
wsDraw(wsTime,wsMap) {
|
|
- this.wsChart = echarts.init(document.getElementById('wscharts'))
|
|
|
|
|
|
+ this.wsChart = echarts.init(document.getElementById('wscharts'),'dark')
|
|
let option = {
|
|
let option = {
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
title: {
|
|
title: {
|
|
@@ -771,7 +771,7 @@ export default {
|
|
textStyle: {
|
|
textStyle: {
|
|
fontWeight: 'normal',
|
|
fontWeight: 'normal',
|
|
fontSize: 16,
|
|
fontSize: 16,
|
|
- color: this.lineColor
|
|
|
|
|
|
+ // color: this.lineColor
|
|
},
|
|
},
|
|
left: '1%'
|
|
left: '1%'
|
|
},
|
|
},
|
|
@@ -794,7 +794,7 @@ export default {
|
|
right: '4%',
|
|
right: '4%',
|
|
textStyle: {
|
|
textStyle: {
|
|
fontSize: 12,
|
|
fontSize: 12,
|
|
- color: this.lineColor
|
|
|
|
|
|
+ // color: this.lineColor
|
|
},
|
|
},
|
|
selected: {}
|
|
selected: {}
|
|
},
|
|
},
|
|
@@ -805,9 +805,9 @@ export default {
|
|
end: 100,
|
|
end: 100,
|
|
left: "15%",
|
|
left: "15%",
|
|
right: "15%",
|
|
right: "15%",
|
|
- textStyle: {
|
|
|
|
- color: this.lineColor
|
|
|
|
- }
|
|
|
|
|
|
+ // textStyle: {
|
|
|
|
+ // color: this.lineColor
|
|
|
|
+ // }
|
|
}, {
|
|
}, {
|
|
type: 'inside'
|
|
type: 'inside'
|
|
}],
|
|
}],
|
|
@@ -821,11 +821,11 @@ export default {
|
|
xAxis: [{
|
|
xAxis: [{
|
|
type: 'category',
|
|
type: 'category',
|
|
boundaryGap: false,
|
|
boundaryGap: false,
|
|
- axisLine: {
|
|
|
|
- lineStyle: {
|
|
|
|
- color: this.lineColor
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // axisLine: {
|
|
|
|
+ // lineStyle: {
|
|
|
|
+ // color: this.lineColor
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
data: []
|
|
data: []
|
|
}],
|
|
}],
|
|
yAxis: [{
|
|
yAxis: [{
|
|
@@ -834,17 +834,17 @@ export default {
|
|
axisTick: {
|
|
axisTick: {
|
|
show: false
|
|
show: false
|
|
},
|
|
},
|
|
- axisLine: {
|
|
|
|
- lineStyle: {
|
|
|
|
- color: this.lineColor
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
|
|
+ // axisLine: {
|
|
|
|
+ // lineStyle: {
|
|
|
|
+ // color: this.lineColor
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
|
|
axisLabel: {
|
|
axisLabel: {
|
|
margin: 10,
|
|
margin: 10,
|
|
textStyle: {
|
|
textStyle: {
|
|
fontSize: 14,
|
|
fontSize: 14,
|
|
- color: this.lineColor
|
|
|
|
|
|
+ // color: this.lineColor
|
|
},
|
|
},
|
|
formatter: '{value}',
|
|
formatter: '{value}',
|
|
},
|
|
},
|
|
@@ -898,7 +898,7 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
wdDraw(wdMap) {
|
|
wdDraw(wdMap) {
|
|
- this.wdChart = echarts.init(document.getElementById('wdcharts'))
|
|
|
|
|
|
+ this.wdChart = echarts.init(document.getElementById('wdcharts'),'dark')
|
|
const option = {
|
|
const option = {
|
|
backgroundColor: 'transparent',
|
|
backgroundColor: 'transparent',
|
|
color: ['#4A99FF', '#4BFFFC', '#ff654a', '#edff4a', '#65ff4a', '#4affea', '#894aff', '#d84aff', '#ff4aae'],
|
|
color: ['#4A99FF', '#4BFFFC', '#ff654a', '#edff4a', '#65ff4a', '#4affea', '#894aff', '#d84aff', '#ff4aae'],
|
|
@@ -922,7 +922,7 @@ export default {
|
|
trigger: 'axis',
|
|
trigger: 'axis',
|
|
axisPointer: {
|
|
axisPointer: {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
- color: '#57617B'
|
|
|
|
|
|
+ color: '#FFFFFF'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -930,7 +930,7 @@ export default {
|
|
{
|
|
{
|
|
name: {
|
|
name: {
|
|
textStyle: {
|
|
textStyle: {
|
|
- color: '#000',
|
|
|
|
|
|
+ color: '#FFFFFF',
|
|
fontSize: 16
|
|
fontSize: 16
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -942,12 +942,12 @@ export default {
|
|
},
|
|
},
|
|
axisLine: { //指向外圈文本的分隔线样式
|
|
axisLine: { //指向外圈文本的分隔线样式
|
|
lineStyle: {
|
|
lineStyle: {
|
|
- color: '#000'
|
|
|
|
|
|
+ color: '#FFFFFF'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
splitLine: {
|
|
splitLine: {
|
|
lineStyle: {
|
|
lineStyle: {
|
|
- color: '#000', // 分隔线颜色
|
|
|
|
|
|
+ color: '#FFFFFF', // 分隔线颜色
|
|
width: 1, // 分隔线线宽
|
|
width: 1, // 分隔线线宽
|
|
}
|
|
}
|
|
},
|
|
},
|