index.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214
  1. <template>
  2. <div class="app-container">
  3. <el-row>
  4. <el-col :span="12">
  5. <div class="generalTitle"> 现代牧业设备管理系统 </div>
  6. </el-col>
  7. <el-col :span="12">
  8. <div class="date"> {{ row1.date }} </div>
  9. </el-col>
  10. </el-row>
  11. <el-row :gutter="5" class="row2">
  12. <el-col :span="10">
  13. <dv-border-box-8 :dur="3" :reverse="true" style="height:500px;">
  14. <!-- <div class="Title">费用统计</div> -->
  15. <div id="row2Chart1" style="width: 100%;height:450px;" />
  16. <el-row :gutter="5" class="groupNews">
  17. <el-col :span="6">
  18. <dv-border-box-8 :dur="-1" class="news">
  19. <b>设备指标预算</b><br>
  20. <span>{{ row2.chart1.list.monthBudgets }}万元</span>
  21. </dv-border-box-8>
  22. </el-col>
  23. <el-col :span="6">
  24. <dv-border-box-8 :dur="-1" class="news">
  25. <b>迄今预算</b><br>
  26. <span>{{ row2.chart1.list.budget }}万元</span>
  27. </dv-border-box-8>
  28. </el-col>
  29. <el-col :span="6">
  30. <dv-border-box-8 :dur="-1" class="news">
  31. <b>设备指标实际</b><br>
  32. <span>{{ row2.chart1.list.sumPrice }}万元</span>
  33. </dv-border-box-8>
  34. </el-col>
  35. <el-col :span="6">
  36. <dv-border-box-8 :dur="-1" class="news">
  37. <b>迄今达成率</b><br>
  38. <span>{{ row2.chart1.list.donerate }}</span>
  39. </dv-border-box-8>
  40. </el-col>
  41. </el-row>
  42. <div v-if="row2.chart1.isPastureList" class="pastureNews">
  43. <dv-border-box-8 :dur="-1" class="newsTitle"><b>{{ row2.chart1.pasture.pastureName }}</b></dv-border-box-8>
  44. <dv-border-box-8 :dur="-1" class="news2">
  45. <div>
  46. <b>设备指标预算:</b><span>{{ row2.chart1.pasture.list.monthBudgets }}万元</span><br>
  47. <b>设备指标实际:</b><span>{{ row2.chart1.pasture.list.sumPrice }}万元</span><br>
  48. <b>迄今达成率:</b><span>{{ row2.chart1.pasture.list.donerate }}</span>
  49. </div>
  50. </dv-border-box-8>
  51. </div>
  52. </dv-border-box-8>
  53. </el-col>
  54. <el-col :span="14">
  55. <el-row>
  56. <el-col :span="12">
  57. <dv-border-box-8 :dur="-1" style="height:500px;">
  58. <div class="Title">集团分项总指标</div>
  59. <div id="row2Chart2" style="width: 100%;height:480px;" />
  60. <!-- <div class="Indexbutton">
  61. <a @click="form_seeDetails('row2Chart2')">查看详情</a>
  62. </div> -->
  63. </dv-border-box-8>
  64. </el-col>
  65. <el-col :span="12">
  66. <dv-border-box-8 :dur="-1" style="height:500px;">
  67. <div class="Title">各中心总指标</div>
  68. <div id="row2Chart3" style="width: 100%;height:480px;" />
  69. <div class="Indexbutton">
  70. <a @click="form_seeDetails('row2Chart3')">查看详情</a>
  71. </div>
  72. </dv-border-box-8>
  73. </el-col>
  74. <el-col :span="24" style="display:none">
  75. <dv-border-box-8 :dur="-1" style="height:250px;">
  76. <div class="Title">资产运转率</div>
  77. <div id="row2Chart4" style="width: 100%;height:190px;" />
  78. <div class="Indexbutton">
  79. <a @click="form_seeDetails('row2Chart4')">查看详情</a>
  80. </div>
  81. </dv-border-box-8>
  82. </el-col>
  83. </el-row>
  84. </el-col>
  85. </el-row>
  86. <el-row :gutter="5" style="height:300px;color: #fff;">
  87. <el-col :span="24">
  88. <dv-border-box-8 :dur="-1" style="height:300px;">
  89. <div class="Title">费用统计</div>
  90. <div class="costStatistics">
  91. <div class="content">
  92. <dv-border-box-8 :dur="-1" style="height:260px;">
  93. <div class="title">
  94. <svg-icon icon-class="维修成本分析" />
  95. 维修费
  96. </div>
  97. <div class="small-title">
  98. 单头牛实际: {{row3.chart1.list}}
  99. </div>
  100. <el-row :gutter="5" style="height:260px;color: #fff;">
  101. <el-col :span="24" style="padding:0 10px 0 10px ;">
  102. <dv-border-box-12 :dur="-1" :reverse="true" style="height:200px;">
  103. <div id="row3Chart1" style="width: 98%;height:200px;" />
  104. </dv-border-box-12>
  105. <div class="Indexbutton">
  106. <a @click="form_seeDetails('row3Chart1')">查看详情</a>
  107. </div>
  108. </el-col>
  109. </el-row>
  110. </dv-border-box-8>
  111. </div>
  112. <div class="content">
  113. <dv-border-box-8 :dur="-1" style="height:260px;">
  114. <div class="title">
  115. <svg-icon icon-class="水量分析" />
  116. 水费
  117. </div>
  118. <div class="small-title">
  119. 单头牛实际: {{ row3.chart2.list}}
  120. </div>
  121. <el-row :gutter="5" style="height:260px;color: #fff;">
  122. <el-col :span="24" style="padding:0 10px 0 10px ;">
  123. <dv-border-box-12 :dur="-1" :reverse="true" style="height:200px;">
  124. <div id="row3Chart2" style="width: 98%;height:200px;" />
  125. </dv-border-box-12>
  126. <div class="Indexbutton">
  127. <a @click="form_seeDetails('row3Chart2')">查看详情</a>
  128. </div>
  129. </el-col>
  130. </el-row>
  131. </dv-border-box-8>
  132. </div>
  133. <div class="content">
  134. <dv-border-box-8 :dur="-1" style="height:260px;">
  135. <div class="title">
  136. <svg-icon icon-class="电量分析" />
  137. 电费
  138. </div>
  139. <div class="small-title">
  140. 单头牛实际: {{ row3.chart3.list}}
  141. </div>
  142. <el-row :gutter="5" style="height:260px;color: #fff;">
  143. <el-col :span="24" style="padding:0 10px 0 10px ;">
  144. <dv-border-box-12 :dur="-1" :reverse="true" style="height:200px;">
  145. <div id="row3Chart3" style="width: 98%;height:200px;" />
  146. </dv-border-box-12>
  147. <div class="Indexbutton">
  148. <a @click="form_seeDetails('row3Chart3')">查看详情</a>
  149. </div>
  150. </el-col>
  151. </el-row>
  152. </dv-border-box-8>
  153. </div>
  154. <div class="content">
  155. <dv-border-box-8 :dur="-1" style="height:260px;">
  156. <div class="title">
  157. <svg-icon icon-class="燃动分析" />
  158. 燃动费
  159. </div>
  160. <div class="small-title">
  161. 单头牛实际: {{ row3.chart4.list}}
  162. </div>
  163. <el-row :gutter="5" style="height:260px;color: #fff;">
  164. <el-col :span="24" style="padding:0 10px 0 10px;">
  165. <dv-border-box-12 :dur="-1" style="height:200px;" :reverse="true">
  166. <div id="row3Chart4" style="width: 98%;height:200px;" />
  167. </dv-border-box-12>
  168. <div class="Indexbutton">
  169. <a @click="form_seeDetails('row3Chart4')">查看详情</a>
  170. </div>
  171. </el-col>
  172. </el-row>
  173. </dv-border-box-8>
  174. </div>
  175. </div>
  176. </dv-border-box-8>
  177. </el-col>
  178. </el-row>
  179. </div>
  180. </template>
  181. <script>
  182. import { GetReportform, GetDataByName,getJson } from '@/api/common'
  183. import Cookies from 'js-cookie'
  184. import { parseTime } from '@/utils/index.js'
  185. import echarts from 'echarts'
  186. import 'echarts/map/js/china'
  187. import $ from 'jquery'
  188. require('echarts/theme/macarons')
  189. export default {
  190. name: 'DashboardEditor',
  191. data() {
  192. return {
  193. row1: {
  194. date: parseTime(new Date(), '{y}-{m}-{d}')
  195. },
  196. row2: {
  197. chart1: {
  198. // 地图
  199. getdataListParm: {
  200. name: 'homepagePastureInfor',
  201. parammaps: {}
  202. },
  203. data: [],
  204. Chart: null,
  205. // 预算、实际、达成率
  206. get_table_dataParm: {
  207. name: 'homepageRate',
  208. parammaps: {
  209. pastureName: '现代牧业'
  210. }
  211. },
  212. list: {},
  213. isPastureList: false,
  214. pasture: {
  215. getdataListParm: {
  216. name: 'homepageRate',
  217. page: 1,
  218. offset: 1,
  219. pagecount: 10,
  220. returntype: 'Map',
  221. parammaps: {
  222. pastureName: ''
  223. }
  224. },
  225. pastureName: '',
  226. listLoading: true,
  227. total: 0,
  228. list: []
  229. }
  230. },
  231. chart2: {
  232. getdataListParm: {
  233. name: 'homepageEqstatus',
  234. parammaps: {
  235. pastureName: '现代牧业'
  236. }
  237. },
  238. data: [],
  239. Chart: null
  240. },
  241. chart3: {
  242. getdataListParm: {
  243. name: 'homepageUkdoneRatePasture',
  244. page: 1,
  245. offset: 1,
  246. pagecount: 0,
  247. returntype: 'Map',
  248. parammaps: {}
  249. },
  250. tableKey: 0,
  251. listLoading: true,
  252. total: 0,
  253. list: [],
  254. isType: false,
  255. isPasture: true
  256. },
  257. chart4: {
  258. getdataListParm: {
  259. name: 'homepageEqRunstatueListPasture',
  260. parammaps: {
  261. type: '牧场'
  262. }
  263. },
  264. data: [],
  265. Chart: null
  266. }
  267. },
  268. row3: {
  269. chart1: {
  270. getdataListParm: {
  271. name: 'homepageFeeWX',
  272. parammaps: {
  273. type: '至今',
  274. pastureName: '现代牧业'
  275. }
  276. },
  277. data: [],
  278. Chart: null,
  279. list: {}
  280. },
  281. chart2: {
  282. getdataListParm: {
  283. name: 'homepageFeeWater',
  284. parammaps: {
  285. type: '至今',
  286. pastureName: '现代牧业'
  287. }
  288. },
  289. data: [],
  290. Chart: null,
  291. list: {}
  292. },
  293. chart3: {
  294. getdataListParm: {
  295. name: 'homepageFeeElec',
  296. parammaps: {
  297. type: '至今',
  298. pastureName: '现代牧业'
  299. }
  300. },
  301. data: [],
  302. Chart: null,
  303. list: {}
  304. },
  305. chart4: {
  306. getdataListParm: {
  307. name: 'homepageFeeDiesel',
  308. parammaps: {
  309. type: '至今',
  310. pastureName: '现代牧业'
  311. }
  312. },
  313. data: [],
  314. Chart: null,
  315. list: {}
  316. }
  317. },
  318. rowStyle: { maxHeight: 20 + 'px', height: 20 + 'px', background: '#003366', color: '#fff', fontSize: '8px' },
  319. cellStyle: { padding: 0 + 'px', background: '#003366', color: '#fff', fontSize: '8px' }
  320. }
  321. },
  322. created() {
  323. this.getRow2List1()
  324. this.getRow2Chart1()
  325. },
  326. methods: {
  327. form_seeDetails(item) {
  328. if (item == 'row2Chart2') {
  329. console.log('设备状态统计')
  330. this.$router.push('/report/EquipmentOverview')
  331. } else if (item == 'row2Chart3') {
  332. console.log('​各中心总指标')
  333. this.$router.push('/report/EquipmentIndex')
  334. } else if (item == 'row2Chart4') {
  335. console.log('资产运转率')
  336. this.$router.push('/report/EquipmentOperation')
  337. } else if (item == 'row3Chart1') {
  338. console.log('维修费')
  339. this.$router.push('/report/QueryRepair')
  340. } else if (item == 'row3Chart2') {
  341. console.log('水费')
  342. this.$router.push('/report/QueryWater')
  343. } else if (item == 'row3Chart3') {
  344. console.log('电费')
  345. this.$router.push('/report/QueryElec')
  346. } else if (item == 'row3Chart4') {
  347. console.log('燃动费')
  348. this.$router.push('/report/QueryCombustion')
  349. }
  350. },
  351. getRow2List1() {
  352. GetDataByName(this.row2.chart1.get_table_dataParm).then(response => {
  353. if (response.data.list !== null) {
  354. this.row2.chart1.list = response.data.list[0]
  355. } else {
  356. this.row2.chart1.list.donerate = ''
  357. this.row2.chart1.list.monthBudgets = ''
  358. this.row2.chart1.list.sumPrice = ''
  359. }
  360. })
  361. },
  362. getRow2Chart1() {
  363. GetReportform(this.row2.chart1.getdataListParm).then(response => {
  364. console.log('row2图2', response)
  365. if (response.data !== null) {
  366. this.row2.chart1.data = response.data
  367. } else {
  368. this.row2.chart1.data = []
  369. }
  370. this.getRow2Chart2()
  371. this.roadRow2Chart1(this.row2.chart1.data)
  372. })
  373. },
  374. roadRow2Chart1(chart_data1) {
  375. if (this.row2.chart1.Chart != null) {
  376. this.row2.chart1.Chart.dispose()
  377. }
  378. this.row2.chart1.Chart = echarts.init(document.getElementById('row2Chart1'))
  379. var uploadedDataURL = '/datas/myMap.json'
  380. var that = this
  381. $.getJSON(uploadedDataURL, function(geoJson) {
  382. echarts.registerMap('china', geoJson)
  383. var geoCoordMap = chart_data1.data1[0]
  384. var data = chart_data1.data2
  385. // console.log('geoCoordMap', JSON.stringify(geoCoordMap) )
  386. // console.log('data', JSON.stringify(data))
  387. var max = 480; var min = 9
  388. var maxSize4Pin = 100; var minSize4Pin = 20
  389. var convertData = function(data) {
  390. var res = []
  391. for (var i = 0; i < data.length; i++) {
  392. var geoCoord = geoCoordMap[data[i].name]
  393. if (geoCoord) {
  394. res.push({ name: data[i].name, value: geoCoord.concat(data[i].value) })
  395. }
  396. }
  397. return res
  398. }
  399. // console.log('convertData', JSON.stringify(convertData))
  400. var conDatatest1 = convertData(data)
  401. // console.log('convertData Data', JSON.stringify(conDatatest1))
  402. var symbolImg = 'image://' + require('@/assets/images/1.png') // 或者import引入在拼接也行
  403. var option = {
  404. title: '',
  405. legend: {
  406. orient: 'vertical',
  407. y: 'bottom',
  408. x: 'right',
  409. data: ['pm2.5'],
  410. textStyle: {
  411. color: '#fff'
  412. }
  413. },
  414. visualMap: {
  415. show: false,
  416. min: 0,
  417. max: 600,
  418. left: 'left',
  419. top: 'bottom',
  420. text: ['高', '低'], // 文本,默认为数值文本
  421. calculable: true,
  422. seriesIndex: [1],
  423. inRange: {}
  424. },
  425. geo: {
  426. map: 'china',
  427. show: true,
  428. roam: true, // 鼠标滚动放大缩小
  429. label: {
  430. normal: {
  431. show: false
  432. },
  433. emphasis: {
  434. show: false
  435. }
  436. },
  437. itemStyle: {
  438. normal: {
  439. areaColor: '#3a7fd5',
  440. borderColor: '#0a53e9', // 线
  441. shadowColor: '#092f8f', // 外发光
  442. shadowBlur: 20
  443. },
  444. emphasis: {
  445. areaColor: '#0a2dae' // 悬浮区背景
  446. }
  447. }
  448. },
  449. series: [{
  450. symbolSize: 5,
  451. label: {
  452. normal: {
  453. formatter: '{b}',
  454. position: 'bottom',
  455. lineHeight: 30,
  456. show: true
  457. },
  458. emphasis: {
  459. show: true
  460. }
  461. },
  462. itemStyle: {
  463. normal: {
  464. color: '#fff'
  465. }
  466. },
  467. name: 'light',
  468. type: 'scatter',
  469. coordinateSystem: 'geo',
  470. data: convertData(data)
  471. }, {
  472. type: 'map',
  473. map: 'china',
  474. geoIndex: 0,
  475. aspectScale: 0.75, // 长宽比
  476. showLegendSymbol: false, // 存在legend时显示
  477. label: {
  478. normal: {
  479. show: false
  480. },
  481. emphasis: {
  482. show: false,
  483. textStyle: {
  484. color: '#fff'
  485. }
  486. }
  487. },
  488. roam: true,
  489. itemStyle: {
  490. normal: {
  491. areaColor: '#031525',
  492. borderColor: '#FFFFFF'
  493. },
  494. emphasis: {
  495. areaColor: '#2B91B7'
  496. }
  497. },
  498. animation: false,
  499. data: data
  500. }, {
  501. name: 'Top 5',
  502. type: 'scatter',
  503. coordinateSystem: 'geo',
  504. // symbol: 'pin',
  505. symbol: symbolImg,
  506. symbolSize: [20, 20],
  507. right: 100,
  508. label: {
  509. normal: {
  510. show: false,
  511. textStyle: { color: '#fff', fontSize: 9 },
  512. formatter(value) {
  513. return value.data.value[2]
  514. }
  515. }
  516. },
  517. itemStyle: {
  518. normal: {
  519. color: '#D8BC37',
  520. marginRight: 100
  521. }
  522. },
  523. data: convertData(data),
  524. showEffectOn: 'render',
  525. rippleEffect: {
  526. brushType: 'stroke'
  527. },
  528. hoverAnimation: true,
  529. zlevel: 1
  530. }]
  531. }
  532. that.row2.chart1.Chart.setOption(option)
  533. that.row2.chart1.Chart.on('click', function(param, i) {
  534. if (param.value.length !== undefined) {
  535. console.log(param)
  536. that.row2.chart2.getdataListParm.parammaps.pastureName = param.name
  537. that.row2.chart3.getdataListParm.name = 'homepageUkdoneRateEqclass'
  538. that.row2.chart3.getdataListParm.parammaps.pastureName = param.name
  539. that.row2.chart3.isType = true
  540. that.row2.chart3.isPasture = false
  541. that.row2.chart4.getdataListParm.name = 'homepageEqRunstatueListEqclass'
  542. that.row2.chart4.getdataListParm.parammaps.pastureName = param.name
  543. that.row2.chart4.getdataListParm.parammaps.type = '设备类别'
  544. that.row2.chart1.pasture.getdataListParm.parammaps.pastureName = param.name
  545. that.row3.chart1.getdataListParm.parammaps.pastureName = param.name
  546. that.row3.chart2.getdataListParm.parammaps.pastureName = param.name
  547. that.row3.chart3.getdataListParm.parammaps.pastureName = param.name
  548. that.row3.chart4.getdataListParm.parammaps.pastureName = param.name
  549. that.row2.chart1.pasture.pastureName = param.name
  550. that.getRow2PastureList()
  551. that.getRow2Chart2()
  552. } else {
  553. that.row2.chart2.getdataListParm.parammaps.pastureName = '现代牧业'
  554. that.row2.chart3.isType = false
  555. that.row2.chart3.isPasture = true
  556. that.row2.chart3.getdataListParm.name = 'homepageUkdoneRatePasture'
  557. that.row2.chart3.getdataListParm.parammaps.pastureName = '现代牧业'
  558. that.row2.chart4.getdataListParm.name = 'homepageEqRunstatueListPasture'
  559. that.row2.chart4.getdataListParm.parammaps.type = '牧场'
  560. that.row2.chart4.getdataListParm.parammaps.pastureName = '现代牧业'
  561. that.row3.chart1.getdataListParm.parammaps.pastureName = '现代牧业'
  562. that.row3.chart2.getdataListParm.parammaps.pastureName = '现代牧业'
  563. that.row3.chart3.getdataListParm.parammaps.pastureName = '现代牧业'
  564. that.row3.chart4.getdataListParm.parammaps.pastureName = '现代牧业'
  565. that.getRow2Chart1()
  566. that.row2.chart1.isPastureList = false
  567. }
  568. })
  569. window.onresize = function() {
  570. that.row2.chart1.Chart.resize()
  571. }
  572. })
  573. },
  574. // 牧场
  575. getRow2PastureList() {
  576. this.row2.chart1.pasture.listLoading = true
  577. let url = "authdata/pasture/index"
  578. let data = {
  579. pastureName:this.row3.chart4.getdataListParm.parammaps.pastureName
  580. }
  581. getJson(url,data).then(response => {
  582. if (response.data.list !== null) {
  583. this.row2.chart1.pasture.list.monthBudgets = response.data.budget
  584. this.row2.chart1.pasture.list.sumPrice = response.data.actual
  585. this.row2.chart1.pasture.list.donerate = response.data.complete
  586. console.log('牧场数据', this.row2.chart1.pasture.list)
  587. this.row2.chart1.isPastureList = true
  588. } else {
  589. this.row2.chart1.pasture.list.donerate = ''
  590. this.row2.chart1.pasture.list.monthBudgets = ''
  591. this.row2.chart1.pasture.list.sumPrice = ''
  592. }
  593. setTimeout(() => {
  594. this.row2.chart1.pasture.listLoading = false
  595. }, 100)
  596. })
  597. },
  598. // 集团分项总指标
  599. getRow2Chart2() {
  600. let url = 'authdata/overall/index'
  601. let data = ''
  602. getJson(url,data).then(response => {
  603. // GetReportform(this.row2.chart2.getdataListParm).then(response => {
  604. console.log('row2图2', response)
  605. if (response.data !== null) {
  606. this.row2.chart2.data = response.data
  607. var data1 = ['维修','水','电','燃动']
  608. var data2 = [
  609. response.data.repair.budget,
  610. response.data.repair.actual,
  611. response.data.repair.lastActual,
  612. response.data.repair.singleCow,
  613. ]
  614. var data3 = [
  615. response.data.water.budget,
  616. response.data.water.actual,
  617. response.data.water.lastActual,
  618. response.data.water.singleCow,
  619. ]
  620. var data4 = [
  621. response.data.electricity.budget,
  622. response.data.electricity.actual,
  623. response.data.electricity.lastActual,
  624. response.data.electricity.singleCow,
  625. ]
  626. var data5 = [
  627. response.data.ignition.budget,
  628. response.data.ignition.actual,
  629. response.data.ignition.lastActual,
  630. response.data.ignition.singleCow,
  631. ]
  632. this.row2.chart2.data = {
  633. data1:data1,
  634. data2:data2,
  635. data3:data3,
  636. data4:data4,
  637. data5:data5
  638. }
  639. } else {
  640. this.row2.chart2.data = []
  641. }
  642. this.getRow2Chart3()
  643. this.roadRow2Chart2(this.row2.chart2.data)
  644. })
  645. },
  646. roadRow2Chart2(chart_data1) {
  647. if (this.row2.chart2.Chart != null) {
  648. this.row2.chart2.Chart.dispose()
  649. }
  650. this.row2.chart2.Chart = echarts.init(document.getElementById('row2Chart2'))
  651. var option = {
  652. title: { text: '', textStyle: { color: '#769cfc' }},
  653. tooltip: { trigger: 'axis' },
  654. color: ['#769cfc','#19FA60','#FF9733',' #FFFF00'],
  655. grid: { left: '3%', right: '13%', top: '15%', bottom: '4%', containLabel: true },
  656. legend: {
  657. data: ['迄今预算', '今年实际', '去年同期实际', '单头牛实际'], textStyle: { color: '#fff' }
  658. },
  659. xAxis: [{ type: 'category', name: '设备类别', data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  660. yAxis: [{ type: 'value', name: '费用/百万', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff' }}}],
  661. series: [
  662. { type: 'bar', barWidth: 20, data: chart_data1.data2, name:'迄今预算', emphasis: { label: { show: true, position: 'inside' }} },
  663. { type: 'bar', barWidth: 20, data: chart_data1.data3, name:'今年实际', emphasis: { label: { show: true, position: 'inside' }} },
  664. { type: 'bar', barWidth: 20, data: chart_data1.data4, name:'去年同期实际', emphasis: { label: { show: true, position: 'inside' }} },
  665. { type: 'line', data: chart_data1.data5, name:'单头牛实际', emphasis: { label: { show: true, position: 'inside' }} }
  666. ]
  667. }
  668. this.row2.chart2.Chart.setOption(option)
  669. window.onresize = function() {
  670. this.row2.chart2.Chart.resize()
  671. }
  672. },
  673. // 各中心总指标
  674. getRow2Chart3() {
  675. this.row2.chart3.listLoading = true
  676. let url = 'authdata/centra/index'
  677. let data = ''
  678. getJson(url,data).then(response => {
  679. // GetReportform(this.row2.chart2.getdataListParm).then(response => {
  680. console.log('row2图2', response)
  681. if (response.data !== null) {
  682. this.row2.chart3.data = response.data
  683. var data1 = []
  684. var data2 = []
  685. var data3 = []
  686. var data4 = []
  687. response.data.central.forEach((i,j)=>{
  688. data1.push(i.central)
  689. data2.push(i.budget)
  690. data3.push(i.actual)
  691. data4.push(i.complete)
  692. })
  693. this.row2.chart3.data = {
  694. data1:data1,
  695. data2:data2,
  696. data3:data3,
  697. data4:data4
  698. }
  699. } else {
  700. this.row2.chart3.data = []
  701. }
  702. this.getRow2Chart4()
  703. this.roadRow2Chart3(this.row2.chart3.data)
  704. setTimeout(() => {
  705. this.row2.chart3.listLoading = false
  706. }, 100)
  707. })
  708. },
  709. roadRow2Chart3(chart_data1) {
  710. if (this.row2.chart3.Chart != null) {
  711. this.row2.chart3.Chart.dispose()
  712. }
  713. this.row2.chart3.Chart = echarts.init(document.getElementById('row2Chart3'))
  714. var option = {
  715. title: { text: '', textStyle: { color: '#769cfc' }},
  716. tooltip: { trigger: 'axis' },
  717. color: ['#769cfc','#19FA60',' #FFFF00'],
  718. grid: { left: '3%', right: '13%', top: '15%', bottom: '4%', containLabel: true },
  719. legend: {
  720. data: ['设备指标迄今预算', '设备指标迄今实际', '完成率'], textStyle: { color: '#fff'}
  721. },
  722. xAxis: [{ type: 'category', name: '', data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  723. yAxis: [
  724. { type: 'value', name: '费用/百万', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff' }}},
  725. { type: 'value', name: '', min: 0, max: 100, interval: 20, axisLabel: { formatter: '{value} %' },axisLine: { lineStyle: { color: '#fff' }} }
  726. ],
  727. series: [
  728. { type: 'bar', barWidth: 20, data: chart_data1.data2, name:'设备指标迄今预算', emphasis: { label: { show: true, position: 'inside' }} },
  729. { type: 'bar', barWidth: 20, data: chart_data1.data3, name:'设备指标迄今实际', emphasis: { label: { show: true, position: 'inside' }} },
  730. { type: 'line', data: chart_data1.data4, name:'完成率', emphasis: { label: { show: true, position: 'inside' }} }
  731. ]
  732. }
  733. this.row2.chart3.Chart.setOption(option)
  734. window.onresize = function() {
  735. this.row2.chart3.Chart.resize()
  736. }
  737. },
  738. // 资产运转率
  739. getRow2Chart4() {
  740. GetReportform(this.row2.chart4.getdataListParm).then(response => {
  741. console.log('row2图4', response)
  742. if (response.data !== null) {
  743. this.row2.chart4.data = response.data
  744. } else {
  745. this.row2.chart4.data = []
  746. }
  747. this.getRow3Chart1()
  748. this.roadRow2Chart4(this.row2.chart4.data)
  749. })
  750. },
  751. roadRow2Chart4(chart_data1) {
  752. if (this.row2.chart4.Chart != null) {
  753. this.row2.chart4.Chart.dispose()
  754. }
  755. this.row2.chart4.Chart = echarts.init(document.getElementById('row2Chart4'))
  756. var option = {
  757. title: { text: '', textStyle: { color: '#769cfc' }},
  758. tooltip: { trigger: 'axis' },
  759. color: ['#769cfc'],
  760. grid: { left: '3%', right: '8%', top: '15%', bottom: '4%', containLabel: true },
  761. xAxis: [{ type: 'category', name: chart_data1.data3[0],
  762. axisLabel: {
  763. interval: 0,
  764. rotate: 40
  765. },
  766. data: chart_data1.data1, axisLine: { lineStyle: { color: '#fff' }}}],
  767. yAxis: [{ type: 'value', name: '%', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff' }}}],
  768. series: [
  769. {
  770. type: 'bar',
  771. data: chart_data1.data2,
  772. emphasis: { label: { show: true, position: 'inside' }}
  773. }
  774. ]
  775. }
  776. this.row2.chart4.Chart.setOption(option)
  777. window.onresize = function() {
  778. this.row2.chart4.Chart.resize()
  779. }
  780. },
  781. // 维修费
  782. getRow3Chart1() {
  783. let url = 'authdata/expense'
  784. let data = ''
  785. getJson(url,data).then(response => {
  786. // GetReportform(this.row3.chart1.getdataListParm).then(response => {
  787. console.log('row3', response)
  788. if (response.data !== null) {
  789. var repair_data1 = []
  790. var repair_data2 = []
  791. var repair_data3 = []
  792. var repair_data4 = []
  793. var repair_str1 = ''
  794. response.data.repair.forEach((i,j)=>{
  795. repair_data1.push(i.Center)
  796. repair_data2.push(i.budget)
  797. repair_data3.push(i.actual)
  798. repair_data4.push(i.lastActual)
  799. repair_str1 += i.Center + ':'+ i.singleCow
  800. })
  801. this.row3.chart1.list = repair_str1
  802. this.row3.chart1.data = {
  803. data1:repair_data1,
  804. data2:repair_data2,
  805. data3:repair_data3,
  806. data4:repair_data4
  807. }
  808. var water_data1 = []
  809. var water_data2 = []
  810. var water_data3 = []
  811. var water_data4 = []
  812. var water_str1 = ''
  813. response.data.water.forEach((i,j)=>{
  814. water_data1.push(i.Center)
  815. water_data2.push(i.budget)
  816. water_data3.push(i.actual)
  817. water_data4.push(i.lastActual)
  818. water_str1 += i.Center + ':'+ i.singleCow
  819. })
  820. this.row3.chart2.list = water_str1
  821. this.row3.chart2.data = {
  822. data1:water_data1,
  823. data2:water_data2,
  824. data3:water_data3,
  825. data4:water_data4
  826. }
  827. var electricity_data1 = []
  828. var electricity_data2 = []
  829. var electricity_data3 = []
  830. var electricity_data4 = []
  831. var electricity_str1 = ''
  832. response.data.electricity.forEach((i,j)=>{
  833. electricity_data1.push(i.Center)
  834. electricity_data2.push(i.budget)
  835. electricity_data3.push(i.actual)
  836. electricity_data4.push(i.lastActual)
  837. electricity_str1 += i.Center + ':'+ i.singleCow
  838. })
  839. this.row3.chart3.list = electricity_str1
  840. this.row3.chart3.data = {
  841. data1:electricity_data1,
  842. data2:electricity_data2,
  843. data3:electricity_data3,
  844. data4:electricity_data4
  845. }
  846. var ignition_data1 = []
  847. var ignition_data2 = []
  848. var ignition_data3 = []
  849. var ignition_data4 = []
  850. var ignition_str1 = ''
  851. response.data.ignition.forEach((i,j)=>{
  852. ignition_data1.push(i.Center)
  853. ignition_data2.push(i.budget)
  854. ignition_data3.push(i.actual)
  855. ignition_data4.push(i.lastActual)
  856. ignition_str1 += i.Center + ':'+ i.singleCow
  857. })
  858. this.row3.chart4.list = ignition_str1
  859. this.row3.chart4.data = {
  860. data1:ignition_data1,
  861. data2:ignition_data2,
  862. data3:ignition_data3,
  863. data4:ignition_data4
  864. }
  865. this.$forceUpdate()
  866. } else {
  867. this.row3.chart1.data = {}
  868. this.row3.chart1.list = {}
  869. }
  870. this.getRow3Chart2()
  871. this.roadRow3Chart1(this.row3.chart1.data)
  872. this.roadRow3Chart2(this.row3.chart2.data)
  873. this.roadRow3Chart3(this.row3.chart3.data)
  874. this.roadRow3Chart4(this.row3.chart4.data)
  875. })
  876. },
  877. roadRow3Chart1(chart_data1) {
  878. if (this.row3.chart1.Chart != null) {
  879. this.row3.chart1.Chart.dispose()
  880. }
  881. this.row3.chart1.Chart = echarts.init(document.getElementById('row3Chart1'))
  882. var option = {
  883. title: { text: '', textStyle: { color: '#769cfc' }},
  884. tooltip: { trigger: 'axis' },
  885. legend: {
  886. data: [
  887. { name: '迄今预算', icon: 'circle' },
  888. { name: '今年实际', icon: 'circle' },
  889. { name: '去年同期实际', icon: 'circle' }
  890. ],
  891. itemWidth: 5,
  892. itemHeight: 5,
  893. itemGap: 5,
  894. y: 10,
  895. textStyle: { color: '#fff', fontSize: '10' }
  896. },
  897. color: ['#769cfc','#19FA60','#FF9733'],
  898. grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
  899. xAxis: [{ type: 'category', name: '时间', nameTextStyle: { padding: [0, 0, -20, -30] }, data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  900. yAxis: [{ type: 'value', name: '', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff', width: 1 }}}],
  901. series: [
  902. {
  903. name: '迄今预算',
  904. textStyle: {
  905. fontSize: 12,
  906. fontWeight: 'bolder',
  907. color: '#fff'
  908. },
  909. type: 'bar',
  910. barWidth: 10,
  911. data: chart_data1.data2,
  912. emphasis: { label: { show: true, position: 'inside' }}
  913. }, {
  914. name: '今年实际',
  915. type: 'bar',
  916. barWidth: 10,
  917. data: chart_data1.data3,
  918. emphasis: { label: { show: true, position: 'inside' }}
  919. }, {
  920. name: '去年同期实际',
  921. type: 'bar',
  922. barWidth: 10,
  923. data: chart_data1.data5,
  924. emphasis: { label: { show: true, position: 'inside' }}
  925. }
  926. ]
  927. }
  928. this.row3.chart1.Chart.setOption(option)
  929. window.onresize = function() {
  930. this.row3.chart1.Chart.resize()
  931. }
  932. },
  933. roadRow3Chart2(chart_data1) {
  934. if (this.row3.chart2.Chart != null) {
  935. this.row3.chart2.Chart.dispose()
  936. }
  937. this.row3.chart2.Chart = echarts.init(document.getElementById('row3Chart2'))
  938. var option = {
  939. title: { text: '', textStyle: { color: '#769cfc' }},
  940. tooltip: { trigger: 'axis' },
  941. legend: {
  942. data: [
  943. { name: '迄今预算', icon: 'circle' },
  944. { name: '今年实际', icon: 'circle' },
  945. { name: '去年同期实际', icon: 'circle' }
  946. ],
  947. itemWidth: 5,
  948. itemHeight: 5,
  949. itemGap: 5,
  950. y: 10,
  951. textStyle: { color: '#fff', fontSize: '10' }
  952. },
  953. color: ['#769cfc','#19FA60','#FF9733'],
  954. grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
  955. xAxis: [{ type: 'category', name: '时间', nameTextStyle: { padding: [0, 0, -20, -30] }, data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  956. yAxis: [{ type: 'value', name: '', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff', width: 1 }}}],
  957. series: [
  958. {
  959. name: '迄今预算',
  960. textStyle: {
  961. fontSize: 12,
  962. fontWeight: 'bolder',
  963. color: '#fff'
  964. },
  965. type: 'bar',
  966. barWidth: 10,
  967. data: chart_data1.data2,
  968. emphasis: { label: { show: true, position: 'inside' }}
  969. }, {
  970. name: '今年实际',
  971. type: 'bar',
  972. barWidth: 10,
  973. data: chart_data1.data3,
  974. emphasis: { label: { show: true, position: 'inside' }}
  975. },{
  976. name: '去年同期实际',
  977. type: 'bar',
  978. barWidth: 10,
  979. data: chart_data1.data5,
  980. emphasis: { label: { show: true, position: 'inside' }}
  981. }
  982. ]
  983. }
  984. this.row3.chart2.Chart.setOption(option)
  985. window.onresize = function() {
  986. this.row3.chart2.Chart.resize()
  987. }
  988. },
  989. roadRow3Chart3(chart_data1) {
  990. if (this.row3.chart3.Chart != null) {
  991. this.row3.chart3.Chart.dispose()
  992. }
  993. this.row3.chart3.Chart = echarts.init(document.getElementById('row3Chart3'))
  994. var option = {
  995. title: { text: '', textStyle: { color: '#769cfc' }},
  996. tooltip: { trigger: 'axis' },
  997. legend: {
  998. data: [
  999. { name: '迄今预算', icon: 'circle' },
  1000. { name: '今年实际', icon: 'circle' },
  1001. { name: '去年同期实际', icon: 'circle' }
  1002. ],
  1003. itemWidth: 5,
  1004. itemHeight: 5,
  1005. itemGap: 5,
  1006. y: 10,
  1007. textStyle: { color: '#fff', fontSize: '10' }
  1008. },
  1009. color: ['#769cfc','#19FA60','#FF9733'],
  1010. grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
  1011. xAxis: [{ type: 'category', name: '时间', nameTextStyle: { padding: [0, 0, -20, -30] }, data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  1012. yAxis: [{ type: 'value', name: '', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff', width: 1 }}}],
  1013. series: [
  1014. {
  1015. name: '今年预算',
  1016. textStyle: {
  1017. fontSize: 12,
  1018. fontWeight: 'bolder',
  1019. color: '#fff'
  1020. },
  1021. type: 'bar',
  1022. barWidth: 10,
  1023. data: chart_data1.data2,
  1024. emphasis: { label: { show: true, position: 'inside' }}
  1025. }, {
  1026. name: '今年实际',
  1027. type: 'bar',
  1028. barWidth: 10,
  1029. data: chart_data1.data3,
  1030. emphasis: { label: { show: true, position: 'inside' }}
  1031. }, {
  1032. name: '去年同期实际',
  1033. type: 'bar',
  1034. barWidth: 10,
  1035. data: chart_data1.data5,
  1036. emphasis: { label: { show: true, position: 'inside' }}
  1037. }
  1038. ]
  1039. }
  1040. this.row3.chart3.Chart.setOption(option)
  1041. window.onresize = function() {
  1042. this.row3.chart3.Chart.resize()
  1043. }
  1044. },
  1045. roadRow3Chart4(chart_data1) {
  1046. if (this.row3.chart4.Chart != null) {
  1047. this.row3.chart4.Chart.dispose()
  1048. }
  1049. this.row3.chart4.Chart = echarts.init(document.getElementById('row3Chart4'))
  1050. var option = {
  1051. title: { text: '', textStyle: { color: '#769cfc' }},
  1052. tooltip: { trigger: 'axis' },
  1053. legend: {
  1054. data: [
  1055. { name: '迄今预算', icon: 'circle' },
  1056. { name: '今年实际', icon: 'circle' },
  1057. { name: '去年同期实际', icon: 'circle' }
  1058. ],
  1059. itemWidth: 5,
  1060. itemHeight: 5,
  1061. itemGap: 5,
  1062. y: 10,
  1063. textStyle: { color: '#fff', fontSize: '10' }
  1064. },
  1065. color: ['#769cfc','#19FA60','#FF9733'],
  1066. grid: { left: '3%', right: '10%', bottom: '4%', containLabel: true },
  1067. xAxis: [{ type: 'category', name: '时间', nameTextStyle: { padding: [0, 0, -20, -30] }, data: chart_data1.data1, axisLabel: { interval: 0 }, axisLine: { lineStyle: { color: '#fff' }}}],
  1068. yAxis: [{ type: 'value', name: '', axisLabel: { formatter: '{value}' }, axisLine: { lineStyle: { color: '#fff', width: 1 }}}],
  1069. series: [
  1070. {
  1071. name: '今年预算',
  1072. textStyle: {
  1073. fontSize: 12,
  1074. fontWeight: 'bolder',
  1075. color: '#fff'
  1076. },
  1077. type: 'bar',
  1078. barWidth: 10,
  1079. data: chart_data1.data2,
  1080. emphasis: { label: { show: true, position: 'inside' }}
  1081. }, {
  1082. name: '今年实际',
  1083. type: 'bar',
  1084. barWidth: 10,
  1085. data: chart_data1.data3,
  1086. emphasis: { label: { show: true, position: 'inside' }}
  1087. }, {
  1088. name: '去年同期实际',
  1089. type: 'bar',
  1090. barWidth: 10,
  1091. data: chart_data1.data5,
  1092. emphasis: { label: { show: true, position: 'inside' }}
  1093. }
  1094. ]
  1095. }
  1096. this.row3.chart4.Chart.setOption(option)
  1097. window.onresize = function() {
  1098. this.row3.chart4.Chart.resize()
  1099. }
  1100. }
  1101. }
  1102. }
  1103. </script>
  1104. <style lang="scss" scoped>
  1105. .app-container {
  1106. background-color: #003366; color: #fff;min-height: 100vh;
  1107. .Title{height: 30px;line-height: 30px;text-align: left;padding-left: 10px;}
  1108. .title{height: 30px;line-height: 30px;text-align: center;}
  1109. .generalTitle{width: 100%;margin-left:150px;text-align: right;font-size: 30px;line-height: 60px;font-weight: 600;}
  1110. .date{width: 100%;text-align: right;font-size: 14px;line-height: 60px;padding-right: 20px;}
  1111. .Indexbutton{
  1112. height: 20px;position: relative;width: 100%;
  1113. a{display: inline-block;height: 20px;line-height: 20px;font-size:10px;text-align: center;background: #769cfc;color: #fff;border-radius: 2px;width: 55px;position: absolute;left: 0;right: 0;top: 5px;bottom: 0;margin: 0 auto;}
  1114. }
  1115. .IndexTable{
  1116. padding: 0 10px;
  1117. .Indextable{background: #003366;}
  1118. }
  1119. .row2{
  1120. height:500px;position: relative;
  1121. .groupNews{
  1122. height:60px;width:70%;z-index: 1;position:absolute;top: 5px;left: 10px;
  1123. .news{
  1124. height:60px;text-align: center;
  1125. b{line-height: 30px;font-size: 14px;}
  1126. span{line-height: 20px;font-size: 12px;}
  1127. }
  1128. }
  1129. .pastureNews{
  1130. height:150px;width:40%;z-index: 1;position:absolute;bottom: 20px;left: 10px;background: #055597;
  1131. .newsTitle{height: 30px;line-height: 30px;padding-left: 10px;}
  1132. .news2{
  1133. height: 120px;padding-left: 10px;font-size: 12px;
  1134. div{
  1135. padding-top: 10px;line-height: 30px;
  1136. b{font-weight: 400;}
  1137. }
  1138. }
  1139. }
  1140. }
  1141. // row3
  1142. .costStatistics{
  1143. display: flex;justify-content: space-between;margin: 0 5px;
  1144. .content{
  1145. flex: 1 1 1 1 auto;
  1146. width: 100%;
  1147. .contentLeft{
  1148. height: 200px;position:relative;
  1149. div{
  1150. font-size: 10px;width: 100%;text-align: center;height: 130px;
  1151. position: absolute; top: 0; bottom:0; left: 0; right: 0; margin: auto;
  1152. b{display: block;line-height: 22px;height: 22px;margin-top: 10px;}
  1153. span{display: block;line-height: 22px;height: 22px;}
  1154. }
  1155. b:nth-child(1){
  1156. margin-top: -10px;
  1157. }
  1158. }
  1159. }
  1160. }
  1161. }
  1162. /deep/ .el-table__body-wrapper::-webkit-scrollbar {
  1163. display:block;
  1164. width: 8px;
  1165. height: 8px;
  1166. background-color: rgba(245, 245, 245, 0.47);
  1167. }
  1168. /*定义滚动条的轨道,内阴影及圆角*/
  1169. /deep/ .el-table__body-wrapper::-webkit-scrollbar-track {
  1170. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  1171. border-radius: 10px;
  1172. background-color: #f5f5f5;
  1173. }
  1174. /*定义滑块,内阴影及圆角*/
  1175. /deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
  1176. /*width: 10px;*/
  1177. height: 20px;
  1178. border-radius: 10px;
  1179. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  1180. background-color: rgba(85, 85, 85, 0.25);
  1181. }
  1182. .small-title{
  1183. font-size: 12px;padding-left: 10px;
  1184. span{
  1185. margin: 0 5px;
  1186. }
  1187. }
  1188. </style>