Rightnav.vue 5.7 KB

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