|
|
@@ -127,7 +127,7 @@ function echarts1() {
|
|
|
formatter: function (val) {
|
|
|
var strs = val.split(''); //字符串数组
|
|
|
var str = '';
|
|
|
- for (var i = 0, s; (s = strs[i++]); ) {
|
|
|
+ for (var i = 0, s; (s = strs[i++]);) {
|
|
|
//遍历字符串数组
|
|
|
if (i > 5 && i < 17) {
|
|
|
str += s;
|
|
|
@@ -157,7 +157,7 @@ function echarts1() {
|
|
|
margin: 15,
|
|
|
},
|
|
|
formatter: function (value) {
|
|
|
- return value + '';
|
|
|
+ return value.toFixed(1);
|
|
|
},
|
|
|
// formatter: '{value} %'//y轴的每一个刻度值后面加上‘%’号
|
|
|
},
|
|
|
@@ -170,7 +170,7 @@ function echarts1() {
|
|
|
//单位的样式设置
|
|
|
nameTextStyle: {
|
|
|
color: 'rgba(255, 255, 255, 0.8)', //颜色
|
|
|
- padding: [15, 20, 15, -700],
|
|
|
+ padding: [15, 25, 15, -700],
|
|
|
},
|
|
|
scale: true,
|
|
|
},
|
|
|
@@ -211,7 +211,7 @@ function echarts2() {
|
|
|
风速(m/s):${params[0].data}
|
|
|
</div>
|
|
|
<div>
|
|
|
- 风向:${props.windDirection.data[params[0].dataIndex]?setWd(props.windDirection.data[params[0].dataIndex]):'-'}
|
|
|
+ 风向:${props.windDirection.data[params[0].dataIndex] ? setWd(props.windDirection.data[params[0].dataIndex]) : '-'}
|
|
|
</div>
|
|
|
</div>`;
|
|
|
},
|
|
|
@@ -256,7 +256,7 @@ function echarts2() {
|
|
|
formatter: function (val) {
|
|
|
var strs = val.split(''); //字符串数组
|
|
|
var str = '';
|
|
|
- for (var i = 0, s; (s = strs[i++]); ) {
|
|
|
+ for (var i = 0, s; (s = strs[i++]);) {
|
|
|
//遍历字符串数组
|
|
|
if (i > 5 && i < 17) {
|
|
|
str += s;
|
|
|
@@ -279,7 +279,7 @@ function echarts2() {
|
|
|
margin: 15,
|
|
|
},
|
|
|
formatter: function (value) {
|
|
|
- return value + '';
|
|
|
+ return value.toFixed(1);
|
|
|
},
|
|
|
// formatter: '{value} %'//y轴的每一个刻度值后面加上‘%’号
|
|
|
},
|
|
|
@@ -330,8 +330,8 @@ function echarts2() {
|
|
|
data: props.windSpeeCharts.data,
|
|
|
type: 'line',
|
|
|
smooth: true,
|
|
|
- symbol: 'image://' + imgangle,
|
|
|
- symbolSize: 30,
|
|
|
+ symbol: 'path://M0,0L20,0L20,3L3,3L3,8L20,8L20,11L3,11L3,16L20,16L20,19L3,19L3,40L0,40L0,0Z',
|
|
|
+ symbolSize: 18,
|
|
|
symbolRotate: (value, params) => {
|
|
|
return props.windDirection.data[params.dataIndex] * -1;
|
|
|
},
|
|
|
@@ -458,6 +458,7 @@ let activeKey = ref('1');
|
|
|
height: 40px;
|
|
|
width: 169px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.total222 .ant-tabs-nav > div > div:nth-child(2).ant-tabs-tab-active) {
|
|
|
// background: url('../../assets/images/sjx1.png') no-repeat 42px 9px;
|
|
|
// background: url('../../../assets/images/tab.png') no-repeat;
|
|
|
@@ -468,6 +469,7 @@ let activeKey = ref('1');
|
|
|
// line-height: 42px;
|
|
|
// margin-left: -6px;
|
|
|
}
|
|
|
+
|
|
|
// ::v-deep(.total222 .ant-tabs-nav > div > div:nth-child(2).ant-tabs-tab-active span) {
|
|
|
// position: relative;
|
|
|
// // top: 10px !important;
|
|
|
@@ -481,41 +483,47 @@ let activeKey = ref('1');
|
|
|
margin: 0;
|
|
|
width: 149px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.total222 .ant-tabs-nav .ant-tabs-tab span) {
|
|
|
position: relative;
|
|
|
top: -4px;
|
|
|
color: #377dff;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.total222 .ant-tabs-nav .ant-tabs-tab-active span) {
|
|
|
color: #c9d1d9 !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs-top-bar) {
|
|
|
margin-bottom: 0px !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs-ink-bar) {
|
|
|
visibility: hidden;
|
|
|
}
|
|
|
|
|
|
-::v-deep(
|
|
|
- .ant-tabs-top > .ant-tabs-nav::before,
|
|
|
- .ant-tabs-bottom > .ant-tabs-nav::before,
|
|
|
- .ant-tabs-top > div > .ant-tabs-nav::before,
|
|
|
- .ant-tabs-bottom > div > .ant-tabs-nav::before
|
|
|
- ) {
|
|
|
+::v-deep(.ant-tabs-top > .ant-tabs-nav::before,
|
|
|
+ .ant-tabs-bottom > .ant-tabs-nav::before,
|
|
|
+ .ant-tabs-top > div > .ant-tabs-nav::before,
|
|
|
+ .ant-tabs-bottom > div > .ant-tabs-nav::before) {
|
|
|
border-bottom: 0px;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs) {
|
|
|
color: #fff;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn) {
|
|
|
color: #ffe75c;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs-tab) {
|
|
|
// font-size: 18px;
|
|
|
// font-weight: bold;
|
|
|
font-size: 16px;
|
|
|
font-weight: normal !important;
|
|
|
}
|
|
|
+
|
|
|
::v-deep(.ant-tabs-bar) {
|
|
|
border-bottom: 0px solid #303030 !important;
|
|
|
}
|
|
|
@@ -528,6 +536,7 @@ let activeKey = ref('1');
|
|
|
padding-top: 3px;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
+
|
|
|
// 修改组件样式结束
|
|
|
.none-data {
|
|
|
width: 150px;
|