|
@@ -229,7 +229,7 @@
|
229
|
229
|
<p class="lsp">
|
230
|
230
|
<img src="../../assets/images/rightarrow.png" alt />
|
231
|
231
|
上月在线活跃度排名
|
232
|
|
- <span v-if="crumbs.length != 2" class="echartSpan" @click="yclq()">更多>></span>
|
|
232
|
+ <span v-if="crumbs.length != 2" class="echartSpan" @click="hyd()">更多>></span>
|
233
|
233
|
</p>
|
234
|
234
|
<div id="myChartrt" class="rtoprto"></div>
|
235
|
235
|
<!-- <img src="../../assets/images/huoyue.png" alt /> -->
|
|
@@ -270,7 +270,9 @@ import {
|
270
|
270
|
getpointll,
|
271
|
271
|
getzxt,
|
272
|
272
|
getmorejfqk,
|
273
|
|
- getjfqk
|
|
273
|
+ getjfqk,
|
|
274
|
+ // ,
|
|
275
|
+ gethyd
|
274
|
276
|
} from "@/api/branchoff/index.js"
|
275
|
277
|
import { getUser } from "@/utils/auth"
|
276
|
278
|
export default {
|
|
@@ -996,171 +998,208 @@ export default {
|
996
|
998
|
this.$router.push({ path: "/countQuality/warehouseInformation" })
|
997
|
999
|
},
|
998
|
1000
|
drawtrt() {
|
999
|
|
- var chartData = [6, 7, 8, 9, 10, 10, 9, 8, 7, 6] // 数据
|
1000
|
|
- var chartDataone = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10] // 数据
|
1001
|
|
- var chartName = [
|
1002
|
|
- "中央储备大同直属库有限公司",
|
1003
|
|
- "中央储备太原直属库有限公司",
|
1004
|
|
- "中央储备太原直属库有限公司",
|
1005
|
|
- "中央储备太原直属库有限公司",
|
1006
|
|
- "中央储备太原直属库有限公司",
|
1007
|
|
- "中央储备太原直属库有限公司",
|
1008
|
|
- "中央储备太原直属库有限公司",
|
1009
|
|
- "中央储备太原直属库有限公司",
|
1010
|
|
- "中央储备太原直属库有限公司",
|
1011
|
|
- "中央储备长治直属库有限公司"
|
1012
|
|
- ]
|
1013
|
|
- const myChartrt = this.$echarts.init(
|
1014
|
|
- document.getElementById("myChartrt")
|
1015
|
|
- )
|
1016
|
|
- // 绘制图表
|
1017
|
|
- myChartrt.setOption({
|
1018
|
|
- grid: {
|
1019
|
|
- top: "3%",
|
1020
|
|
- left: "3%",
|
1021
|
|
- bottom: "3%",
|
1022
|
|
- right: "3%",
|
1023
|
|
- containLabel: true
|
1024
|
|
- },
|
1025
|
|
- xAxis: {
|
1026
|
|
- type: "value",
|
1027
|
|
- axisLine: {
|
1028
|
|
- lineStyle: {
|
1029
|
|
- color: "#ccc"
|
1030
|
|
- }
|
|
1001
|
+ gethyd(this.midprovinceid, this.homeType).then(res => {
|
|
1002
|
+ var chartDataone = [
|
|
1003
|
+ 100,
|
|
1004
|
+ 100,
|
|
1005
|
+ 100,
|
|
1006
|
+ 100,
|
|
1007
|
+ 100,
|
|
1008
|
+ 100,
|
|
1009
|
+ 100,
|
|
1010
|
+ 100,
|
|
1011
|
+ 100,
|
|
1012
|
+ 100,
|
|
1013
|
+ 100,
|
|
1014
|
+ 100,
|
|
1015
|
+ 100,
|
|
1016
|
+ 100,
|
|
1017
|
+ 100,
|
|
1018
|
+ 100,
|
|
1019
|
+ 100,
|
|
1020
|
+ 100,
|
|
1021
|
+ 100,
|
|
1022
|
+ 100,
|
|
1023
|
+ 100,
|
|
1024
|
+ 100,
|
|
1025
|
+ 100,
|
|
1026
|
+ 100,
|
|
1027
|
+ 100,
|
|
1028
|
+ 100,
|
|
1029
|
+ 100,
|
|
1030
|
+ 100,
|
|
1031
|
+ 100,
|
|
1032
|
+ 100,
|
|
1033
|
+ 100,
|
|
1034
|
+ 100,
|
|
1035
|
+ 100,
|
|
1036
|
+ 100,
|
|
1037
|
+ 100,
|
|
1038
|
+ 100,
|
|
1039
|
+ 100,
|
|
1040
|
+ 100,
|
|
1041
|
+ 100,
|
|
1042
|
+ 100,
|
|
1043
|
+ 100,
|
|
1044
|
+ 100,
|
|
1045
|
+ 100,
|
|
1046
|
+ 100,
|
|
1047
|
+ 100,
|
|
1048
|
+ 100
|
|
1049
|
+ ] // 数据
|
|
1050
|
+ var chartName = res.data.depotName
|
|
1051
|
+ var chartData = res.data.series
|
|
1052
|
+ const myChartrt = this.$echarts.init(
|
|
1053
|
+ document.getElementById("myChartrt")
|
|
1054
|
+ )
|
|
1055
|
+ // 绘制图表
|
|
1056
|
+ myChartrt.setOption({
|
|
1057
|
+ grid: {
|
|
1058
|
+ top: "3%",
|
|
1059
|
+ left: "3%",
|
|
1060
|
+ bottom: "3%",
|
|
1061
|
+ right: "3%",
|
|
1062
|
+ containLabel: true
|
1031
|
1063
|
},
|
1032
|
|
- show: false,
|
1033
|
|
- splitLine: {
|
1034
|
|
- show: false
|
1035
|
|
- }
|
1036
|
|
- },
|
1037
|
|
- yAxis: [
|
1038
|
|
- {
|
1039
|
|
- type: "category",
|
1040
|
|
- data: chartName,
|
1041
|
|
- splitLine: {
|
1042
|
|
- show: false
|
1043
|
|
- },
|
1044
|
|
- show: false,
|
|
1064
|
+ xAxis: {
|
|
1065
|
+ type: "value",
|
1045
|
1066
|
axisLine: {
|
1046
|
1067
|
lineStyle: {
|
1047
|
1068
|
color: "#ccc"
|
1048
|
1069
|
}
|
1049
|
|
- }
|
1050
|
|
- },
|
1051
|
|
- {
|
1052
|
|
- // 第二个y轴 为了让数据在右侧末尾显示
|
1053
|
|
- show: true,
|
1054
|
|
- inverse: true,
|
1055
|
|
- data: chartData,
|
1056
|
|
- nameTextStyle: {}, // 坐标轴名称的文字样式。 官网上是这样的解释, 但是 我试了这个并不能改变坐标轴的文字样式
|
1057
|
|
- axisLabel: {
|
1058
|
|
- textStyle: {
|
1059
|
|
- fontSize: 12, // 坐标轴名称的大小
|
1060
|
|
- color: "#333", // 坐标轴名称的颜色
|
1061
|
|
- fontWeight: 700
|
1062
|
|
- }
|
1063
|
|
- },
|
1064
|
|
- axisLine: {
|
1065
|
|
- show: false,
|
1066
|
|
- lineStyle: {
|
1067
|
|
- color: "#8CC4A1"
|
1068
|
|
- }
|
1069
|
1070
|
},
|
|
1071
|
+ show: false,
|
1070
|
1072
|
splitLine: {
|
1071
|
|
- show: true
|
1072
|
|
- },
|
1073
|
|
- axisTick: {
|
1074
|
|
- show: true
|
1075
|
|
- },
|
1076
|
|
- data: chartData
|
1077
|
|
- }
|
1078
|
|
- ],
|
1079
|
|
- series: [
|
1080
|
|
- {
|
1081
|
|
- name: "我是打底",
|
1082
|
|
- type: "pictorialBar",
|
1083
|
|
- symbol: "rect", // 类型
|
1084
|
|
- yAxisIndex: 0,
|
1085
|
|
- barWidth: 10,
|
1086
|
|
- itemStyle: {
|
1087
|
|
- normal: {
|
1088
|
|
- // barBorderRadius: 5,
|
1089
|
|
- color: "#ccc"
|
1090
|
|
- }
|
1091
|
|
- },
|
1092
|
|
- label: {
|
1093
|
|
- normal: {
|
1094
|
|
- position: "right"
|
1095
|
|
- }
|
1096
|
|
- },
|
1097
|
|
- symbolRepeat: true,
|
1098
|
|
- // symbolRotate: '45',
|
1099
|
|
- symbolSize: [10, 16],
|
1100
|
|
- // symbolMargin: 2,
|
1101
|
|
- data: chartDataone
|
1102
|
|
- },
|
1103
|
|
- {
|
1104
|
|
- name: "我是上层方块",
|
1105
|
|
- type: "pictorialBar",
|
1106
|
|
- symbol: "rect",
|
1107
|
|
- itemStyle: {
|
1108
|
|
- normal: {
|
1109
|
|
- color: "green"
|
1110
|
|
- }
|
1111
|
|
- },
|
1112
|
|
- label: {
|
1113
|
|
- normal: {
|
1114
|
|
- // show: true, // 数据大小的显示, 100 200 300
|
1115
|
|
- textStyle: {
|
1116
|
|
- color: "#000000" // 颜色
|
1117
|
|
- },
|
1118
|
|
- position: "right"
|
1119
|
|
- }
|
1120
|
|
- },
|
1121
|
|
- barWidth: 10,
|
1122
|
|
- symbolRepeat: true,
|
1123
|
|
- // symbolRotate: '45',
|
1124
|
|
- symbolSize: [10, 16],
|
1125
|
|
- // symbolMargin: 2,
|
1126
|
|
- data: chartData
|
|
1073
|
+ show: false
|
|
1074
|
+ }
|
1127
|
1075
|
},
|
1128
|
|
- // 数据条--------------------我是分割线君------------------------------//
|
1129
|
|
- {
|
1130
|
|
- show: true,
|
1131
|
|
- type: "bar",
|
1132
|
|
- // xAxisIndex: 1, //代表使用第二个X轴刻度
|
1133
|
|
- barGap: "-150%",
|
1134
|
|
- barWidth: "25%",
|
1135
|
|
- itemStyle: {
|
1136
|
|
- normal: {
|
1137
|
|
- barBorderRadius: 50,
|
1138
|
|
- // color: 'yellow',
|
1139
|
|
- color: "transparent" // rgba(22,203,115,0.05) 数据条柱状图的填充颜色,, 一开始我的有一点点背景颜色
|
|
1076
|
+ yAxis: [
|
|
1077
|
+ {
|
|
1078
|
+ type: "category",
|
|
1079
|
+ data: chartName,
|
|
1080
|
+ splitLine: {
|
|
1081
|
+ show: false
|
|
1082
|
+ },
|
|
1083
|
+ show: false,
|
|
1084
|
+ axisLine: {
|
|
1085
|
+ lineStyle: {
|
|
1086
|
+ color: "#ccc"
|
|
1087
|
+ }
|
1140
|
1088
|
}
|
1141
|
1089
|
},
|
1142
|
|
- label: {
|
1143
|
|
- normal: {
|
1144
|
|
- show: true,
|
1145
|
|
- position: [-160, 0],
|
|
1090
|
+ {
|
|
1091
|
+ // 第二个y轴 为了让数据在右侧末尾显示
|
|
1092
|
+ show: true,
|
|
1093
|
+ inverse: true,
|
|
1094
|
+ data: chartData,
|
|
1095
|
+ nameTextStyle: {}, // 坐标轴名称的文字样式。 官网上是这样的解释, 但是 我试了这个并不能改变坐标轴的文字样式
|
|
1096
|
+ axisLabel: {
|
1146
|
1097
|
textStyle: {
|
1147
|
|
- fontSize: 12,
|
1148
|
|
- color: "#666",
|
|
1098
|
+ fontSize: 12, // 坐标轴名称的大小
|
|
1099
|
+ color: "#333", // 坐标轴名称的颜色
|
1149
|
1100
|
fontWeight: 700
|
1150
|
|
- },
|
1151
|
|
- formatter: function(data) {
|
1152
|
|
- return chartName[data.dataIndex]
|
1153
|
1101
|
}
|
1154
|
|
- }
|
|
1102
|
+ },
|
|
1103
|
+ axisLine: {
|
|
1104
|
+ show: false,
|
|
1105
|
+ lineStyle: {
|
|
1106
|
+ color: "#8CC4A1"
|
|
1107
|
+ }
|
|
1108
|
+ },
|
|
1109
|
+ splitLine: {
|
|
1110
|
+ show: true
|
|
1111
|
+ },
|
|
1112
|
+ axisTick: {
|
|
1113
|
+ show: true
|
|
1114
|
+ },
|
|
1115
|
+ data: chartData
|
|
1116
|
+ }
|
|
1117
|
+ ],
|
|
1118
|
+ series: [
|
|
1119
|
+ {
|
|
1120
|
+ name: "我是打底",
|
|
1121
|
+ type: "pictorialBar",
|
|
1122
|
+ symbol: "rect", // 类型
|
|
1123
|
+ yAxisIndex: 0,
|
|
1124
|
+ barWidth: 10,
|
|
1125
|
+ itemStyle: {
|
|
1126
|
+ normal: {
|
|
1127
|
+ // barBorderRadius: 5,
|
|
1128
|
+ color: "#ccc"
|
|
1129
|
+ }
|
|
1130
|
+ },
|
|
1131
|
+ label: {
|
|
1132
|
+ normal: {
|
|
1133
|
+ position: "right"
|
|
1134
|
+ }
|
|
1135
|
+ },
|
|
1136
|
+ symbolRepeat: true,
|
|
1137
|
+ // symbolRotate: '45',
|
|
1138
|
+ symbolSize: [10, 16],
|
|
1139
|
+ // symbolMargin: 2,
|
|
1140
|
+ data: chartDataone
|
1155
|
1141
|
},
|
1156
|
|
- data: chartDataone
|
1157
|
|
- }
|
1158
|
|
- ]
|
|
1142
|
+ {
|
|
1143
|
+ name: "我是上层方块",
|
|
1144
|
+ type: "pictorialBar",
|
|
1145
|
+ symbol: "rect",
|
|
1146
|
+ itemStyle: {
|
|
1147
|
+ normal: {
|
|
1148
|
+ color: "green"
|
|
1149
|
+ }
|
|
1150
|
+ },
|
|
1151
|
+ label: {
|
|
1152
|
+ normal: {
|
|
1153
|
+ // show: true, // 数据大小的显示, 100 200 300
|
|
1154
|
+ textStyle: {
|
|
1155
|
+ color: "#000000" // 颜色
|
|
1156
|
+ },
|
|
1157
|
+ position: "right"
|
|
1158
|
+ }
|
|
1159
|
+ },
|
|
1160
|
+ barWidth: 10,
|
|
1161
|
+ symbolRepeat: true,
|
|
1162
|
+ // symbolRotate: '45',
|
|
1163
|
+ symbolSize: [10, 16],
|
|
1164
|
+ // symbolMargin: 2,
|
|
1165
|
+ data: chartData
|
|
1166
|
+ },
|
|
1167
|
+ // 数据条--------------------我是分割线君------------------------------//
|
|
1168
|
+ {
|
|
1169
|
+ show: true,
|
|
1170
|
+ type: "bar",
|
|
1171
|
+ // xAxisIndex: 1, //代表使用第二个X轴刻度
|
|
1172
|
+ barGap: "-150%",
|
|
1173
|
+ barWidth: "25%",
|
|
1174
|
+ itemStyle: {
|
|
1175
|
+ normal: {
|
|
1176
|
+ barBorderRadius: 50,
|
|
1177
|
+ // color: 'yellow',
|
|
1178
|
+ color: "transparent" // rgba(22,203,115,0.05) 数据条柱状图的填充颜色,, 一开始我的有一点点背景颜色
|
|
1179
|
+ }
|
|
1180
|
+ },
|
|
1181
|
+ label: {
|
|
1182
|
+ normal: {
|
|
1183
|
+ show: true,
|
|
1184
|
+ position: [-240, 0],
|
|
1185
|
+ textStyle: {
|
|
1186
|
+ fontSize: 12,
|
|
1187
|
+ color: "#666",
|
|
1188
|
+ fontWeight: 700
|
|
1189
|
+ },
|
|
1190
|
+ formatter: function(data) {
|
|
1191
|
+ return chartName[data.dataIndex]
|
|
1192
|
+ }
|
|
1193
|
+ }
|
|
1194
|
+ },
|
|
1195
|
+ data: chartDataone
|
|
1196
|
+ }
|
|
1197
|
+ ]
|
|
1198
|
+ })
|
1159
|
1199
|
})
|
1160
|
1200
|
},
|
1161
|
1201
|
drawtrb() {
|
1162
|
|
- getjfqk(this.midprovinceid , this.homeType ).then(res => {
|
1163
|
|
- console.log( res.data , '777777777777777777777777777777777777777777777777777777777777777777777777' )
|
|
1202
|
+ getjfqk(this.midprovinceid, this.homeType).then(res => {
|
1164
|
1203
|
const myChartrb = this.$echarts.init(
|
1165
|
1204
|
document.getElementById("myChartrb")
|
1166
|
1205
|
)
|
|
@@ -1260,7 +1299,8 @@ export default {
|
1260
|
1299
|
name: "yclqTable",
|
1261
|
1300
|
query: {
|
1262
|
1301
|
depotId: this.midprovinceid,
|
1263
|
|
- midprovinceName: this.midprovinceName
|
|
1302
|
+ midprovinceName: this.midprovinceName,
|
|
1303
|
+ isshow: this.isxian
|
1264
|
1304
|
}
|
1265
|
1305
|
})
|
1266
|
1306
|
},
|
|
@@ -1273,6 +1313,15 @@ export default {
|
1273
|
1313
|
}
|
1274
|
1314
|
})
|
1275
|
1315
|
},
|
|
1316
|
+ hyd() {
|
|
1317
|
+ this.$router.push({
|
|
1318
|
+ name: "hydtable",
|
|
1319
|
+ query: {
|
|
1320
|
+ depotId: this.midprovinceid,
|
|
1321
|
+ midprovinceName: this.midprovinceName
|
|
1322
|
+ }
|
|
1323
|
+ })
|
|
1324
|
+ },
|
1276
|
1325
|
}
|
1277
|
1326
|
}
|
1278
|
1327
|
</script>
|