Rightnav.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <template>
  2. <div class="right-nav">
  3. <div class="nav-cont">
  4. <div class="nav-tit">
  5. <div class="nav-circle">
  6. <img src="../assets/images/yj-tity1.png" />
  7. </div>
  8. <p>救援队伍</p>
  9. </div>
  10. <div class="jydw-zs">
  11. <span>救援队伍总数:</span>
  12. <b>300</b>
  13. <span>人</span>
  14. </div>
  15. <div id="Jydw"></div>
  16. <div class="jydw-list scroll h-50">
  17. <div class="jydw-li">
  18. <img src="../assets/images/yj-img1.png"/>
  19. <div class="jydw-txt">
  20. <h2>大王庄救援队伍</h2>
  21. <p>队长:周晔</p>
  22. <p>人数:30人</p>
  23. </div>
  24. </div>
  25. <div class="jydw-li">
  26. <img src="../assets/images/yj-img1.png"/>
  27. <div class="jydw-txt">
  28. <h2>大王庄救援队伍</h2>
  29. <p>队长:周晔</p>
  30. <p>人数:30人</p>
  31. </div>
  32. </div>
  33. <div class="jydw-li">
  34. <img src="../assets/images/yj-img1.png"/>
  35. <div class="jydw-txt">
  36. <h2>大王庄救援队伍</h2>
  37. <p>队长:周晔</p>
  38. <p>人数:30人</p>
  39. </div>
  40. </div>
  41. <div class="jydw-li">
  42. <img src="../assets/images/yj-img1.png"/>
  43. <div class="jydw-txt">
  44. <h2>大王庄救援队伍</h2>
  45. <p>队长:周晔</p>
  46. <p>人数:30人</p>
  47. </div>
  48. </div>
  49. <div class="jydw-li">
  50. <img src="../assets/images/yj-img1.png"/>
  51. <div class="jydw-txt">
  52. <h2>大王庄救援队伍</h2>
  53. <p>队长:周晔</p>
  54. <p>人数:30人</p>
  55. </div>
  56. </div>
  57. <div class="jydw-li">
  58. <img src="../assets/images/yj-img1.png"/>
  59. <div class="jydw-txt">
  60. <h2>大王庄救援队伍</h2>
  61. <p>队长:周晔</p>
  62. <p>人数:30人</p>
  63. </div>
  64. </div>
  65. <div class="jydw-li">
  66. <img src="../assets/images/yj-img1.png"/>
  67. <div class="jydw-txt">
  68. <h2>大王庄救援队伍</h2>
  69. <p>队长:周晔</p>
  70. <p>人数:30人</p>
  71. </div>
  72. </div>
  73. </div>
  74. </div>
  75. </div>
  76. </template>
  77. <script>
  78. import * as echarts from 'echarts';
  79. export default {
  80. name: 'Rightnav',
  81. props: {
  82. },
  83. methods:{
  84. initCharts (){
  85. let myChart = echarts.init(document.getElementById('Jydw'));
  86. myChart.setOption({
  87. tooltip: {
  88. show: true,
  89. trigger: 'axis',
  90. axisPointer: { // 坐标轴指示器,坐标轴触发有效
  91. type: 'line', // 默认为直线,可选为:'line' | 'shadow'
  92. //修改指识线的颜色
  93. lineStyle: {
  94. color: "transparent"
  95. }
  96. },
  97. formatter: function(params) {
  98. console.log(params)
  99. },
  100. },
  101. grid: {
  102. top: 20,
  103. bottom: 20,
  104. left: 30,
  105. right: 20
  106. },
  107. xAxis: [{
  108. type: 'category',
  109. axisTick: {
  110. show: false,
  111. alignWithLabel: true, //true 的时候有效,可以保证刻度线和标签对齐
  112. },
  113. axisLine: {
  114. lineStyle: {
  115. color: "#fff"
  116. }
  117. },
  118. data: ['大王庄', '兴安村', '太阳村', '实现村', '勤劳村']
  119. }, ],
  120. yAxis: [{
  121. type: 'value',
  122. splitLine: {
  123. show: true,
  124. lineStyle: {
  125. color: "rgba(136, 159, 204, .2)"
  126. }
  127. },
  128. axisLine: {
  129. show: false,
  130. lineStyle: {
  131. color: "#fff"
  132. }
  133. },
  134. axisTick: {
  135. show: false
  136. },
  137. }],
  138. //手势放大柱状图折线图
  139. dataZoom: {
  140. type: "inside"
  141. },
  142. series: [{
  143. //给折线图下方添加阴影
  144. areaStyle: {
  145. normal: {
  146. color: new echarts.graphic.LinearGradient(
  147. 0,
  148. 0,
  149. 0,
  150. 1,
  151. [{
  152. offset: 0,
  153. color: 'rgba(0, 102, 255,0.4)'
  154. },
  155. {
  156. offset: 1,
  157. color: 'rgba(0, 102, 255,0)'
  158. }
  159. ],
  160. false
  161. ),
  162. shadowColor: 'rgba(59, 34, 201,1)',
  163. shadowBlur: 10
  164. }
  165. },
  166. name: '',
  167. type: 'line',
  168. smooth: true,
  169. itemStyle: {
  170. normal: {
  171. show: false,
  172. color: "#00a0fc", //改变折线点的颜色
  173. lineStyle: {
  174. color: "#00a0fc" //改变折线颜色
  175. },
  176. label: {
  177. show: false, //开启显示
  178. position: 'top', //在上方显示
  179. textStyle: { //数值样式
  180. color: '#999999',
  181. fontSize: 10
  182. }
  183. },
  184. },
  185. emphasis: {
  186. show: true,
  187. color: "#00a0fc",
  188. borderColor: "#ffffff",
  189. label: {
  190. show: true, //开启显示
  191. position: 'top', //在上方显示
  192. textStyle: { //数值样式
  193. color: '#fff',
  194. fontSize: 10,
  195. padding: [10, 10, 10, 10],
  196. backgroundColor: "rgba(24, 71, 185, .6)",
  197. borderRadius: 4,
  198. }
  199. }
  200. }
  201. },
  202. data: [150, 110, 160, 155, 110]
  203. }]
  204. })
  205. }
  206. },
  207. mounted(){
  208. this.initCharts();
  209. }
  210. }
  211. </script>
  212. <!-- Add "scoped" attribute to limit CSS to this component only -->
  213. <style scoped>
  214. .right-nav{
  215. background: url("../assets/images/yj-rightnavbg.png") no-repeat center;
  216. background-size: cover;
  217. position: absolute;
  218. right: 0px;
  219. top:0px;
  220. height: 100vh;
  221. z-index: 3;
  222. width: 382px;
  223. }
  224. .nav-cont{
  225. width: 330px;
  226. height: calc(100vh - 17vh);
  227. margin-top: 10vh;
  228. margin: 8vh 19px 0px 0px;
  229. float: right;
  230. }
  231. .jydw-zs{
  232. display: flex;
  233. flex-direction: row;
  234. margin:15px 0px;
  235. padding-left: 15px;
  236. align-items: baseline;
  237. }
  238. .jydw-zs span{
  239. font-size: 14px;
  240. color: #fff;
  241. }
  242. .jydw-zs b{
  243. font-size: 28px;
  244. color: #23d6df;
  245. padding: 0px 5px;
  246. font-family: myfont2;
  247. }
  248. #Jydw{
  249. width: 98%;
  250. height: 200px;
  251. margin-left: 20px;
  252. }
  253. .jydw-list{
  254. display: flex;
  255. flex-direction: column;
  256. margin: 20px 20px;
  257. }
  258. .jydw-list .jydw-li{
  259. display: flex;
  260. flex-direction: row;
  261. margin-bottom: 5px;
  262. cursor: pointer;
  263. width: 100%;
  264. text-align: left;
  265. padding: 4px 0px;
  266. }
  267. .jydw-list .jydw-li:hover{
  268. background: rgb(13 69 155 / 43%);
  269. }
  270. .jydw-list .jydw-li img{
  271. width: 100px;
  272. height: 68px;
  273. margin-right: 15px;
  274. }
  275. .jydw-list .jydw-li h2{
  276. color: #23d6df;
  277. font-size: 16px;
  278. font-weight: 900;
  279. padding-bottom: 5px;
  280. }
  281. .jydw-list .jydw-li p{
  282. color: #fff;
  283. font-size: 14px;
  284. line-height: 20px;
  285. }
  286. </style>