index.vue 44 KB

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