51b26aaa004e844d442b67eaf6bd6e7b0a3b7323.svn-base 70 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751
  1. <template>
  2. <div ref="dashboardEditor" class="dashboard-editor-container">
  3. <div class="dashboard" style="margin-bottom: 10px;">
  4. <div class="dashboard-l">
  5. <div class="row1">
  6. <div class="row1-t">
  7. <div class="row1-t-l">
  8. <div class="img-l" />
  9. <span class="content">112311111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111</span>
  10. <div class="img-r" />
  11. </div>
  12. <div class="row1-t-r">2012-04-10</div>
  13. </div>
  14. <div class="row1-c">
  15. <div class="row1-c-l">
  16. <div class="img-t" />
  17. <div class="row1-c-l-b">
  18. <div><span>昨日混料准确率:</span><b>{{ row1.list.yesRateHL }}</b></div>
  19. <div><span>近30天混料准确率:</span><b>{{ row1.list.monRateHL }}</b></div>
  20. </div>
  21. </div>
  22. <div class="row1-c-r">
  23. <div class="img-t" />
  24. <div class="row1-c-l-b">
  25. <div><span>昨日撒料准确率:</span><b>{{ row1.list.yesRateSL }}</b></div>
  26. <div><span>近30天撒料准确率:</span><b>{{ row1.list.monRateSL }}</b></div>
  27. </div>
  28. </div>
  29. </div>
  30. <div class="row1-b">
  31. <div class="row1-b-l">
  32. <div class="img-t" />
  33. <div class="row1-c-l-b">
  34. <div><span>昨日撒料正确率:</span><b>{{ row1.list.yesRateSLR }}</b></div>
  35. <div><span>近30天撒料正确率:</span><b>{{ row1.list.monRateSLR }}</b></div>
  36. </div>
  37. </div>
  38. <div class="row1-b-r">
  39. <div class="img-t" />
  40. <div class="row1-c-l-b">
  41. <div><span>昨日撒料偏差:</span><b>{{ row1.list.temtime }}</b></div>
  42. <div><span>近30天撒料偏差:</span><b>{{ row1.list.montime }}</b></div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="row2">
  48. <div class="title">
  49. <div class="img-title" />
  50. <span class="content">今日计划统计</span>
  51. </div>
  52. <div class="todayPlan">
  53. <div>
  54. <div id="row2chartLine1" style="height: 185px;" />
  55. <div class="bottom">
  56. <div class="bottom-l">
  57. <div class="bottom-l-t">
  58. <b>{{ row2.chart1.chartLine_data.data1 }}</b>次
  59. </div>
  60. <div class="bottom-l-b">
  61. 完成车次
  62. </div>
  63. </div>
  64. <div class="bottom-r">
  65. <div class="bottom-r-t">
  66. <b>{{ row2.chart1.chartLine_data.data2 }}</b>次
  67. </div>
  68. <div class="bottom-r-b">
  69. 计划车次
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div>
  75. <div id="row2chartLine2" style="height: 185px;" />
  76. <div class="bottom">
  77. <div class="bottom-l">
  78. <div class="bottom-l-t">
  79. <b>{{ row2.chart2.chartLine_data.data1 }}</b>kg
  80. </div>
  81. <div class="bottom-l-b">
  82. 完成重量
  83. </div>
  84. </div>
  85. <div class="bottom-r">
  86. <div class="bottom-r-t">
  87. <b>{{ row2.chart2.chartLine_data.data2 }}</b>kg
  88. </div>
  89. <div class="bottom-r-b">
  90. 计划重量
  91. </div>
  92. </div>
  93. </div>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="row3" style="position: relative;">
  98. <div class="title">
  99. <div class="img-title" />
  100. <span class="content">成本统计</span>
  101. </div>
  102. <div v-if="row4.chart1.isChart" class="button">
  103. <div class="exportTable" @click="handleExport('row4chartLine1')">导出</div>
  104. <div class="exportTable" @click="handleTable('row4chartLine1')">切换表格</div>
  105. </div>
  106. <div v-if="row4.chart1.isChart" id="row4chartLine1" style="background: #fff;height:310px;" />
  107. <div v-if="row4.chart1.isTable" class="table" style="position: absolute;width: 100%;">
  108. <div class="button">
  109. <div class="exportTable" @click="handleExport('row4chartLine1')">导出</div>
  110. <div class="exportTable" @click="handleChart('row4chartLine1')">切换图表</div>
  111. </div>
  112. <el-table
  113. :key="row4.chart1.table.tableKey"
  114. v-loading="row4.chart1.table.listLoading"
  115. element-loading-text="给我一点时间"
  116. :data="row4.chart1.table.list"
  117. border
  118. fit
  119. highlight-current-row
  120. style="width: 100%;margin-top: 10px;"
  121. height="300"
  122. :row-style="rowStyle"
  123. :cell-style="cellStyle"
  124. class="elTable table-fixed"
  125. >
  126. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  127. <el-table-column label="单头牛饲料成本" sortable min-width="110px" align="center" prop="field2" />
  128. <el-table-column label="公斤奶饲料成本(元)" sortable min-width="120px" align="center" prop="field1" />
  129. </el-table>
  130. </div>
  131. </div>
  132. </div>
  133. <div class="dashboard-r">
  134. <div class="row1">
  135. <div class="title">
  136. <div class="img-title" />
  137. <span class="content">实时监控</span>
  138. </div>
  139. <div id="row2chartLine3" ref="row2chartLine3" style="height: 260px;" />
  140. <div class="carsLength">当前车辆:<span>{{ carLength }}</span></div>
  141. <div id="car" ref="car" v-loading="row2.chart3.listLoading2" class="car">
  142. <div ref="iconLeft" class="iconLeft" @click="handleLeft">
  143. <img v-if="row2.chart3.isLeft" src="../../../assets/images/index/row-r3.png" class="img-title">
  144. <img v-if="row2.chart3.isLeftA" src="../../../assets/images/index/row-r2.png" class="img-title">
  145. </div>
  146. <div id="carList" ref="carList" class="carList">
  147. <div v-for="(item,index) in list" ref="listW" :key="index" class="listW">
  148. <div ref="list" class="list" :style="{'background': item.background,'color':item.color,'borderColor':item.borderColor}" @click="handleList(index,item)">
  149. <div class="list-t">
  150. <div class="list-t-t">
  151. <el-tooltip :content="item.tname" placement="top">
  152. <span>车辆:{{ item.tname }}</span>
  153. </el-tooltip>
  154. </div>
  155. <div class="list-t-t">
  156. <el-tooltip :content="item.fname" placement="top">
  157. <span v-if="item.inorout == 0">饲料:{{ item.fname }}</span>
  158. <span v-if="item.inorout == 1">栏舍:{{ item.fname }}</span>
  159. </el-tooltip>
  160. </div>
  161. <div class="list-t-t">
  162. <el-tooltip :content="item.remark" placement="top">
  163. <span>描述:{{ item.remark }}</span>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div class="list-b">
  168. <div class="list-b-l">
  169. <div class="left">
  170. <div class="num"><b>{{ row2.chart2.chartLine_data.data1 }}</b>Kg</div>
  171. <div class="weight">完成重量</div>
  172. </div>
  173. <div class="right" />
  174. </div>
  175. <div class="list-b-l">
  176. <div class="left">
  177. <div class="num"><b>{{ item.leftweight }}</b>Kg</div>
  178. <div class="weight">剩余重量</div>
  179. </div>
  180. <div class="right" />
  181. </div>
  182. <div class="list-b-l">
  183. <div class="left">
  184. <div class="num"><b>{{ item.nowweight }}</b>Kg</div>
  185. <div class="weight">车辆当前载重</div>
  186. </div>
  187. <div class="right" />
  188. </div>
  189. <div class="list-b-l">
  190. <div class="left">
  191. <div class="num"><b>{{ row2.chart2.chartLine_data.data2 }}</b>Kg</div>
  192. <div class="weight">计划重量</div>
  193. </div>
  194. <div class="right" />
  195. </div>
  196. <div class="list-b-l">
  197. <div class="left">
  198. <div class="num"><b>{{ item.donerate }}</b></div>
  199. <div class="weight">完成度</div>
  200. </div>
  201. </div>
  202. </div>
  203. </div>
  204. <div v-if="item.isChecked" ref="checked" class="img-checked" />
  205. </div>
  206. </div>
  207. <div ref="iconRight" class="iconRight" @click="handleRight">
  208. <img v-if="row2.chart3.isRightA" src="../../../assets/images/index/row-r5.png" class="img-title">
  209. <img v-if="row2.chart3.isRight" src="../../../assets/images/index/row-r4.png" class="img-title">
  210. </div>
  211. </div>
  212. </div>
  213. <div class="row2">
  214. <div class="row2-l" style="position: relative;">
  215. <div class="title">
  216. <div class="img-title" />
  217. <span class="content">计划统计</span>
  218. </div>
  219. <div v-if="row3.chart1.isChart" class="button">
  220. <div class="exportTable" @click="handleExport('row3chartLine1')">导出</div>
  221. <div class="exportTable" @click="handleTable('row3chartLine1')">切换表格</div>
  222. </div>
  223. <div v-if="row3.chart1.isChart" id="row3chartLine1" style="background: #fff;height:310px;" />
  224. <div v-if="row3.chart1.isTable" class="table" style="position: absolute;width: 100%;">
  225. <div class="button">
  226. <div class="exportTable" @click="handleExport('row3chartLine1')">导出</div>
  227. <div class="exportTable" @click="handleChart('row3chartLine1')">切换图表</div>
  228. </div>
  229. <el-table
  230. :key="row3.chart1.table.tableKey"
  231. v-loading="row3.chart1.table.listLoading"
  232. element-loading-text="给我一点时间"
  233. :data="row3.chart1.table.list"
  234. border
  235. fit
  236. highlight-current-row
  237. style="width: 100%;margin-top: 10px;"
  238. height="300"
  239. :row-style="rowStyle"
  240. :cell-style="cellStyle"
  241. class="elTable table-fixed"
  242. >
  243. <el-table-column label="日期" sortable min-width="85px" align="center" prop="日期" />
  244. <el-table-column label="计划执行重量(kg)" sortable min-width="90px" align="center" prop="实际量" />
  245. <el-table-column label="配方理论重量(kg)" sortable min-width="90px" align="center" prop="理论量" />
  246. <el-table-column label="计划准确率" sortable min-width="85px" align="center" prop="field1" />
  247. <el-table-column label="计划取消重量(kg)" sortable min-width="90px" align="center" prop="计划取消重量" />
  248. <el-table-column label="计划准确率(去除取消重量)" sortable min-width="100px" align="center" prop="field3" />
  249. <el-table-column label="计划正确数" sortable min-width="85px" align="center" prop="正确数" />
  250. <el-table-column label="计划数" sortable min-width="85px" align="center" prop="计划数" />
  251. <el-table-column label="计划正确率" sortable min-width="75px" align="center" prop="field2" />
  252. </el-table>
  253. </div>
  254. </div>
  255. <div class="row2-r" style="position: relative;">
  256. <div class="title">
  257. <div class="img-title" />
  258. <span class="content">泌乳牛干物质采食量</span>
  259. </div>
  260. <div v-if="row3.chart2.isChart" class="button">
  261. <div class="exportTable" @click="handleExport('row3chartLine2')">导出</div>
  262. <div class="exportTable" @click="handleTable('row3chartLine2')">切换表格</div>
  263. </div>
  264. <div v-if="row3.chart2.isChart" id="row3chartLine2" style="background: #fff;height:310px;" />
  265. <div v-if="row3.chart2.isTable" class="table" style="position: absolute;width: 100%;">
  266. <div class="button">
  267. <div class="exportTable" @click="handleExport('row3chartLine2')">导出</div>
  268. <div class="exportTable" @click="handleChart('row3chartLine2')">切换图表</div>
  269. </div>
  270. <el-table
  271. :key="row3.chart2.table.tableKey"
  272. v-loading="row3.chart2.table.listLoading"
  273. element-loading-text="给我一点时间"
  274. :data="row3.chart2.table.list"
  275. border
  276. fit
  277. highlight-current-row
  278. style="width: 100%;margin-top: 10px;"
  279. height="300"
  280. :row-style="rowStyle"
  281. :cell-style="cellStyle"
  282. class="elTable table-fixed"
  283. >
  284. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  285. <el-table-column label="泌乳牛采食量(kg)" sortable min-width="110px" align="center" prop="field1" />
  286. <el-table-column label="泌乳牛产奶量(kg)" sortable min-width="110px" align="center" prop="field2" />
  287. </el-table>
  288. </div>
  289. </div>
  290. </div>
  291. <div class="row3">
  292. <div class="row3-l" style="position: relative;">
  293. <div class="title">
  294. <div class="img-title" />
  295. <span class="content">混料实际重量统计</span>
  296. </div>
  297. <div v-if="row4.chart2.isChart" class="button">
  298. <div class="exportTable" @click="handleExport('row4chartLine2')">导出</div>
  299. <div class="exportTable" @click="handleTable('row4chartLine2')">切换表格</div>
  300. </div>
  301. <div v-if="row4.chart2.isChart" id="row4chartLine2" style="background: #fff;height:310px;" />
  302. <div v-if="row4.chart2.isTable" class="table" style="position: absolute;width:100%;">
  303. <div class="button">
  304. <div class="exportTable" @click="handleExport('row4chartLine2')">导出</div>
  305. <div class="exportTable" @click="handleChart('row4chartLine2')">切换图表</div>
  306. </div>
  307. <el-table
  308. :key="row4.chart2.table.tableKey"
  309. v-loading="row4.chart2.table.listLoading"
  310. element-loading-text="给我一点时间"
  311. :data="row4.chart2.table.list"
  312. border
  313. fit
  314. highlight-current-row
  315. style="width: 100%;margin-top: 10px;"
  316. height="300"
  317. :row-style="rowStyle"
  318. :cell-style="cellStyle"
  319. class="elTable table-fixed"
  320. >
  321. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  322. <el-table-column label="重量" sortable min-width="110px" align="center" prop="field1" />
  323. </el-table>
  324. </div>
  325. </div>
  326. <div class="row3-r">
  327. <div class="title">
  328. <div class="img-title" />
  329. <span class="content">库存预警</span>
  330. <a style="float: right;color: #009C69;font-size: 12px;margin-right: 10px;" @click="handleMore">查看更多 &nbsp;>></a>
  331. </div>
  332. <div id="table" style="height: 330px;background: #fff;">
  333. <el-table
  334. :key="row4.table.tableKey"
  335. v-loading="row4.table.listLoading"
  336. element-loading-text="给我一点时间"
  337. :data="row4.table.list"
  338. border
  339. fit
  340. highlight-current-row
  341. style="width: 98%;background: #fff;margin-top: 10px;"
  342. height="320"
  343. :row-style="rowStyle"
  344. :cell-style="cellStyle"
  345. class="elTable table-fixed"
  346. >
  347. <el-table-column label="序号" type="index" min-width="80px" align="center" />
  348. <el-table-column label="饲料名称" min-width="80px" align="center" prop="feedname" />
  349. <el-table-column label="库存量(kg)" min-width="70px" align="center" prop="stockweight" />
  350. <el-table-column label="剩余使用天数" min-width="80px" align="center" prop="ldays" />
  351. </el-table>
  352. </div>
  353. </div>
  354. </div>
  355. </div>
  356. </div>
  357. </div>
  358. </template>
  359. <script>
  360. import { GetDataByName, GetReportform } from '@/api/common'
  361. import Cookies from 'js-cookie'
  362. import { parseTime } from '@/utils/index.js'
  363. import echarts from 'echarts'
  364. import { json2excel } from '@/utils/index.js'
  365. require('echarts/theme/macarons')
  366. // var myKey = 0
  367. var that = this
  368. var carIndex = 0 // 判断是否大于当前车辆数
  369. var index = 0 // 判断当前跳到第几个车辆
  370. var timer = null
  371. export default {
  372. name: 'PastureDashboard',
  373. inject: ['reload'],
  374. data() {
  375. return {
  376. val: '这是值1',
  377. date: parseTime(new Date(), '{y}-{m}-{d}'),
  378. list: [],
  379. news: 1,
  380. carLength: 0, // 车辆
  381. myKey: 0, // 轮播Key值
  382. row1: {
  383. getdataListParm: {
  384. name: 'getHomepageStr',
  385. page: 1,
  386. offset: 1,
  387. pagecount: 10,
  388. returntype: 'Map',
  389. parammaps: {
  390. pastureid: Cookies.get('pastureid')
  391. }
  392. },
  393. listLoading: true,
  394. list: ''
  395. },
  396. row2: {
  397. chart1: {
  398. chartLine: null,
  399. chartLine_data: {}
  400. },
  401. chart2: {
  402. chartLine: null,
  403. chartLine_data: {}
  404. },
  405. chart3: {
  406. isLeft: true,
  407. isRight: true,
  408. chartLine: null,
  409. chartLine_data: {},
  410. getdataListParm: {
  411. name: 'getHomeprocessAnalysis',
  412. page: 1,
  413. offset: 1,
  414. pagecount: 2,
  415. returntype: 'Map',
  416. parammaps: {
  417. pastureid: Cookies.get('pastureid'),
  418. id: '',
  419. pid: ''
  420. }
  421. },
  422. list: [],
  423. total: 0,
  424. listLoading: true,
  425. pageNum: '',
  426. pages: '',
  427. getdataListParmList: {
  428. name: 'getHomepageLBList',
  429. page: 1,
  430. offset: 1,
  431. pagecount: 2,
  432. returntype: 'Map',
  433. parammaps: {
  434. pastureid: Cookies.get('pastureid')
  435. }
  436. },
  437. list2: [],
  438. total2: 0,
  439. listLoading2: true,
  440. pageNum2: '',
  441. pages2: ''
  442. }
  443. },
  444. row3: {
  445. chartDate: [],
  446. chart1: {
  447. chartLine: null,
  448. chartLine_data: {},
  449. getdataListParm: {
  450. name: 'getAccuracyAllJH',
  451. page: 1,
  452. offset: 1,
  453. pagecount: 10,
  454. returntype: 'Map',
  455. parammaps: {
  456. pastureid: Cookies.get('pastureid'),
  457. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  458. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  459. inputDatetime: [new Date(), new Date()]
  460. }
  461. },
  462. list: [],
  463. total: 0,
  464. listLoading: true,
  465. isChart: true,
  466. isTable: false,
  467. table: {
  468. tableKey: 1,
  469. list: [],
  470. total: 0,
  471. listLoading: false
  472. }
  473. },
  474. chart2: {
  475. chartLine: null,
  476. chartLine_data: {},
  477. getdataListParm: {
  478. name: 'getFeedEffMR',
  479. page: 1,
  480. offset: 1,
  481. pagecount: 10,
  482. returntype: 'Map',
  483. parammaps: {
  484. pastureid: Cookies.get('pastureid'),
  485. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  486. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  487. inputDatetime: [new Date(), new Date()]
  488. }
  489. },
  490. list: [],
  491. total: 0,
  492. listLoading: true,
  493. isChart: true,
  494. isTable: false,
  495. table: {
  496. tableKey: 1,
  497. list: [],
  498. total: 0,
  499. listLoading: false
  500. }
  501. }
  502. },
  503. row4: {
  504. chartDate: [],
  505. chart1: {
  506. chartLine: null,
  507. chartLine_data: {},
  508. getdataListParm: {
  509. name: 'getHomepageCB',
  510. page: 1,
  511. offset: 1,
  512. pagecount: 10,
  513. returntype: 'Map',
  514. parammaps: {
  515. pastureid: Cookies.get('pastureid'),
  516. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  517. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  518. inputDatetime: [new Date(), new Date()]
  519. }
  520. },
  521. list: [],
  522. total: 0,
  523. listLoading: true,
  524. isChart: true,
  525. isTable: false,
  526. table: {
  527. tableKey: 1,
  528. list: [],
  529. total: 0,
  530. listLoading: false
  531. }
  532. },
  533. chart2: {
  534. chartLine: null,
  535. chartLine_data: {},
  536. getdataListParm: {
  537. name: 'getAccuraaActHL',
  538. page: 1,
  539. offset: 1,
  540. pagecount: 10,
  541. returntype: 'Map',
  542. parammaps: {
  543. pastureid: Cookies.get('pastureid'),
  544. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  545. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  546. inputDatetime: [new Date(), new Date()]
  547. }
  548. },
  549. list: [],
  550. total: 0,
  551. listLoading: true,
  552. isChart: true,
  553. isTable: false,
  554. table: {
  555. tableKey: 1,
  556. list: [],
  557. total: 0,
  558. listLoading: false
  559. }
  560. },
  561. table: {
  562. getdataListParm: {
  563. name: 'getFsWarnList',
  564. page: 1,
  565. offset: 1,
  566. pagecount: 5,
  567. returntype: 'Map',
  568. parammaps: {
  569. pastureid: Cookies.get('pastureid')
  570. }
  571. },
  572. tableKey: 1,
  573. list: [],
  574. total: 0,
  575. listLoading: true,
  576. temp: {}
  577. }
  578. },
  579. rowStyle: { maxHeight: 30 + 'px', height: 30 + 'px' },
  580. cellStyle: { padding: 0 + 'px' },
  581. timer: null
  582. }
  583. },
  584. created() {
  585. // this.reload()
  586. this.getCarLength()
  587. this.getChart3List()
  588. this.getTimeFn()
  589. this.getList()
  590. this.getChart4()
  591. this.getChart5()
  592. this.getChart6()
  593. this.getChart7()
  594. this.getTable8()
  595. },
  596. mounted() {
  597. this.timer = null
  598. this.timer = setInterval(this.autoPlay, 15000)
  599. },
  600. destroyed() {
  601. clearInterval(this.timer)
  602. },
  603. methods: {
  604. getTimeFn() {
  605. // this.reload()
  606. const that = this
  607. const end = new Date()
  608. const start = new Date()
  609. start.setTime(start.getTime() - 3600 * 1000 * 24 * 20)
  610. that.row3.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
  611. that.row3.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
  612. that.row3.chart1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  613. that.row3.chart1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  614. that.row3.chart1.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  615. that.row3.chart1.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  616. that.row3.chart2.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  617. that.row3.chart2.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  618. that.row3.chart2.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  619. that.row3.chart2.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  620. that.row4.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
  621. that.row4.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
  622. that.row4.chart1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  623. that.row4.chart1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  624. that.row4.chart1.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  625. that.row4.chart1.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  626. that.row4.chart2.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  627. that.row4.chart2.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  628. that.row4.chart2.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  629. that.row4.chart2.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  630. },
  631. getList() {
  632. this.row1.listLoading = true
  633. GetDataByName(this.row1.getdataListParm).then(response => {
  634. console.log('row1数据', response.data.list)
  635. if (response.data.list !== null) {
  636. if (response.data.list[0].monRateHL == undefined) { response.data.list[0].monRateHL = '' }
  637. if (response.data.list[0].monRateSL == undefined) { response.data.list[0].monRateSL = '' }
  638. if (response.data.list[0].monRateSLR == undefined) { response.data.list[0].monRateSLR = '' }
  639. if (response.data.list[0].yesRateHL == undefined) { response.data.list[0].yesRateHL = '' }
  640. if (response.data.list[0].yesRateHL == undefined) { response.data.list[0].yesRateHL = '' }
  641. if (response.data.list[0].yesRateSL == undefined) { response.data.list[0].yesRateSL = '' }
  642. if (response.data.list[0].yesRateSLR == undefined) { response.data.list[0].yesRateSLR = '' }
  643. if (response.data.list[0].temtime == undefined) { response.data.list[0].temtime = '' }
  644. if (response.data.list[0].montime == undefined) { response.data.list[0].montime = '' }
  645. this.row1.list = response.data.list[0]
  646. this.row2.chart1.chartLine_data.data1 = parseFloat(response.data.list[0].doneTimes)
  647. this.row2.chart1.chartLine_data.data2 = parseFloat(response.data.list[0].planTimes)
  648. this.row2.chart2.chartLine_data.data1 = parseFloat(response.data.list[0].doneWeight)
  649. this.row2.chart2.chartLine_data.data2 = parseFloat(response.data.list[0].planWeight)
  650. this.roadChartLine1(this.row2.chart1.chartLine_data)
  651. this.roadChartLine2(this.row2.chart2.chartLine_data)
  652. } else {
  653. this.row1.list.data1.monRateHL = ''
  654. this.row1.list.data1.monRateSL = ''
  655. this.row1.list.data1.monRateSLR = ''
  656. this.row1.list.data1.yesRateHL = ''
  657. this.row1.list.data1.yesRateSL = ''
  658. this.row1.list.data1.yesRateSLR = ''
  659. this.row1.list.data1.temtime = ''
  660. this.row1.list.data1.montime = ''
  661. this.row2.chart1.chartLine_data.data1 = ''
  662. this.row2.chart1.chartLine_data.data2 = ''
  663. this.row2.chart2.chartLine_data.data1 = ''
  664. this.row2.chart2.chartLine_data.data2 = ''
  665. }
  666. setTimeout(() => {
  667. this.row1.listLoading = false
  668. }, 100)
  669. })
  670. },
  671. // 今日计划统计-完成车次
  672. roadChartLine1(chartLine_data) {
  673. console.log('chartLine_data', chartLine_data)
  674. if (this.row2.chart1.chartLine != null) {
  675. this.row2.chart1.chartLine.dispose()
  676. }
  677. this.row2.chart1.chartLine = echarts.init(document.getElementById('row2chartLine1'))
  678. if (chartLine_data.data2 == 0 || chartLine_data.data1 == 0) {
  679. chartLine_data.data1 = 0
  680. chartLine_data.data2 = 100
  681. }
  682. var option = {
  683. title: { show: true, x: 'center', textStyle: { fontSize: '15', color: 'green', fontWeight: 'bold' }},
  684. tooltip: { show: false, trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' },
  685. color: ['#1bbe89', '#e4e7ec'],
  686. series: [{
  687. name: '任务进度', type: 'pie', radius: ['80%', '70%'], avoidLabelOverlap: false, hoverAnimation: false, labelLine: { normal: { show: false }},
  688. data: [{
  689. value: chartLine_data.data1, name: '车次完成率', selected: false, // 单个扇区的标签配置
  690. label: { normal: { show: true, position: 'center', fontSize: 20, formatter: '{b}\n{d}%' }}
  691. }, {
  692. value: chartLine_data.data2 - chartLine_data.data1,
  693. label: { normal: { show: false }
  694. }
  695. }]
  696. }]
  697. }
  698. this.row2.chart1.chartLine.setOption(option)
  699. window.onresize = function() {
  700. this.row2.chart1.chartLine.resize()
  701. }
  702. var that = this
  703. that.row2.chart1.chartLine.on('mouseover', e => {
  704. const op = that.row2.chart1.chartLine.getOption()
  705. that.row2.chart1.chartLine.dispatchAction({
  706. type: 'downplay',
  707. seriesIndex: 0,
  708. dataIndex: e.dataIndex,
  709. color: e.color
  710. })
  711. that.row2.chart1.chartLine.setOption(op, true)
  712. })
  713. },
  714. // 今日计划统计-完成重量
  715. roadChartLine2(chartLine_data) {
  716. if (this.row2.chart2.chartLine != null) {
  717. this.row2.chart2.chartLine.dispose()
  718. }
  719. this.row2.chart2.chartLine = echarts.init(document.getElementById('row2chartLine2'))
  720. if (chartLine_data.data2 == 0 || chartLine_data.data1 == 0) {
  721. chartLine_data.data1 = 0
  722. chartLine_data.data2 = 100
  723. }
  724. var option = {
  725. title: { show: true, x: 'center', textStyle: { fontSize: '15', color: 'green', fontWeight: 'bold' }},
  726. tooltip: { show: false, trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' },
  727. series: [{
  728. name: '任务进度', type: 'pie', radius: ['80%', '70%'], avoidLabelOverlap: false, hoverAnimation: false,
  729. labelLine: { normal: { show: false }},
  730. data: [{
  731. value: chartLine_data.data1, name: '重量完成率', selected: false, label: { normal: { show: true, position: 'center', fontSize: 20, formatter: '{b}\n{d}%' }}
  732. }, {
  733. value: chartLine_data.data2 - chartLine_data.data1, label: { normal: { show: false }}
  734. }]
  735. }],
  736. color: ['#529ae4', '#e4e7ec']
  737. }
  738. this.row2.chart2.chartLine.setOption(option)
  739. window.onresize = function() {
  740. this.row2.chart2.chartLine.resize()
  741. }
  742. var that = this
  743. that.row2.chart2.chartLine.on('mouseover', e => {
  744. const op = that.row2.chart2.chartLine.getOption()
  745. that.row2.chart2.chartLine.dispatchAction({
  746. type: 'downplay',
  747. seriesIndex: 0,
  748. dataIndex: e.dataIndex,
  749. color: e.color
  750. })
  751. that.row2.chart2.chartLine.setOption(op, true)
  752. })
  753. },
  754. // 实时监控
  755. getChart3() {
  756. this.row2.chart3.listLoading = true
  757. GetReportform(this.row2.chart3.getdataListParm).then(response => {
  758. console.log('实时监控数据', response.data.list)
  759. if (response.data.list !== null) {
  760. var evenNumbers = []// 偶数
  761. var oddNumbers = []// 奇数
  762. for (let i = 0; i < response.data.list.data4.length; i++) {
  763. if (i == 0) {
  764. oddNumbers.push(response.data.list.data4[i])
  765. } else {
  766. if (i % 2 == 0) {
  767. evenNumbers.push(response.data.list.data4[i])
  768. } else {
  769. oddNumbers.push(response.data.list.data4[i])
  770. }
  771. }
  772. }
  773. response.data.list.data4 = oddNumbers
  774. response.data.list.data5 = evenNumbers
  775. this.row2.chart3.chartLine_data = response.data.list
  776. this.row2.chart3.total = response.data.total
  777. this.row2.chart3.pageNum = response.data.pageNum
  778. this.row2.chart3.pages = response.data.pages
  779. this.roadChartLine3(this.row2.chart3.chartLine_data)
  780. } else {
  781. this.row2.chart3.list = []
  782. }
  783. setTimeout(() => {
  784. this.row2.chart3.listLoading = false
  785. }, 100)
  786. })
  787. },
  788. roadChartLine3(chartLine_data) {
  789. if (this.row2.chart3.chartLine != null) {
  790. this.row2.chart3.chartLine.dispose()
  791. }
  792. this.row2.chart3.chartLine = echarts.init(document.getElementById('row2chartLine3'))
  793. var option = {
  794. title: {
  795. text: '',
  796. subtext: ''
  797. },
  798. color: ['#38c193', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
  799. grid: {
  800. bottom: '10%'
  801. },
  802. legend: [{
  803. itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
  804. data: [{ name: '设计重量' }, { name: '实际重量' }]
  805. }, {
  806. itemWidth: 15, itemHeight: 15, right: '0', textStyle: { fontSize: 12 },
  807. data: [{ name: '开始重量', icon: 'image://https://kptyun.cn:8081/file/pic/3.png' }, { name: '结束重量', icon: 'image://https://kptyun.cn:8081/file/pic/4.png' }]
  808. }],
  809. tooltip: {
  810. trigger: 'axis'
  811. },
  812. calculable: true,
  813. yAxis: [
  814. {
  815. type: 'value',
  816. name: '重量(kg)',
  817. splitLine: { show: false }, // 去除网格线
  818. axisLabel: {
  819. show: true,
  820. textStyle: {
  821. color: '#666' // 这里用参数代替了
  822. }
  823. }
  824. }
  825. ],
  826. xAxis: [
  827. {
  828. type: 'category',
  829. splitLine: { show: false }, // 去除网格线
  830. name: '时间',
  831. data: chartLine_data.data1,
  832. axisLabel: {
  833. show: true,
  834. textStyle: {
  835. color: '#666' // 这里用参数代替了
  836. }
  837. }
  838. }
  839. ],
  840. series: [{
  841. // symbol: 'none',
  842. name: '实际重量',
  843. type: 'line',
  844. symbolSize: 4,
  845. // step: 'end',
  846. data: chartLine_data.data3,
  847. smooth: true,
  848. barWidth: '37',
  849. itemStyle: {
  850. normal: {
  851. lineStyle: { color: '#38c193' }
  852. }
  853. }
  854. }, {
  855. // symbol: 'none',
  856. name: '设计重量',
  857. type: 'line',
  858. symbolSize: 4,
  859. barWidth: '37',
  860. data: chartLine_data.data2,
  861. itemStyle: {
  862. normal: {
  863. lineStyle: { color: '#5199e5' }
  864. }
  865. }
  866. }, {
  867. name: '开始重量',
  868. symbol: 'image://https://kptyun.cn:8081/file/pic/3.png',
  869. symbolSize: 10,
  870. type: 'scatter',
  871. data: chartLine_data.data4
  872. }, {
  873. name: '结束重量',
  874. symbol: 'image://https://kptyun.cn:8081/file/pic/4.png',
  875. symbolSize: 10,
  876. type: 'scatter',
  877. data: chartLine_data.data5
  878. }]
  879. }
  880. this.row2.chart3.chartLine.setOption(option)
  881. window.onresize = function() {
  882. this.row2.chart3.chartLine.resize()
  883. }
  884. },
  885. getCarLength() {
  886. this.row2.chart3.listLoading2 = true
  887. this.row2.chart3.getdataListParmList.pagecount = 0
  888. GetDataByName(this.row2.chart3.getdataListParmList).then(response => {
  889. if (response.data.list !== null) {
  890. this.carLength = response.data.total
  891. } else {
  892. this.carLength = 0
  893. }
  894. setTimeout(() => {
  895. this.row2.chart3.listLoading2 = false
  896. }, 100)
  897. })
  898. },
  899. // 图三轮询列表
  900. getChart3List() {
  901. this.row2.chart3.listLoading2 = true
  902. this.row2.chart3.getdataListParmList.pagecount = 2
  903. GetDataByName(this.row2.chart3.getdataListParmList).then(response => {
  904. if (response.data.list !== null) {
  905. this.$set(response.data.list[0], 'background', '#f3f9f7')
  906. this.$set(response.data.list[0], 'borderColor', '#009d6a')
  907. this.$set(response.data.list[0], 'isChecked', true)
  908. if (response.data.list.length > 1) {
  909. this.$set(response.data.list[1], 'background', '#f9f9f9')
  910. this.$set(response.data.list[1], 'borderColor', '#f9f9f9')
  911. this.$set(response.data.list[1], 'isChecked', false)
  912. }
  913. this.list = response.data.list
  914. this.row2.chart3.getdataListParm.parammaps.pid = this.list[this.myKey].pid
  915. this.row2.chart3.getdataListParm.parammaps.id = this.list[this.myKey].id
  916. this.getChart3()
  917. this.row2.chart3.pageNum2 = response.data.pageNum
  918. this.row2.chart3.pages2 = response.data.pages
  919. } else {
  920. this.row2.chart3.list2 = []
  921. }
  922. if (response.data.pageNum == 1) {
  923. if (response.data.total > 2) {
  924. this.row2.chart3.isLeftA = false
  925. this.row2.chart3.isLeft = true
  926. this.row2.chart3.isRightA = true
  927. this.row2.chart3.isRight = false
  928. } else {
  929. this.row2.chart3.isLeftA = false
  930. this.row2.chart3.isLeft = true
  931. this.row2.chart3.isRightA = true
  932. this.row2.chart3.isRight = false
  933. }
  934. } else {
  935. if (response.data.pageNum * response.data.pageSize > response.data.total || response.data.pageNum * response.data.pageSize == response.data.total) {
  936. this.row2.chart3.isLeftA = true
  937. this.row2.chart3.isLeft = false
  938. this.row2.chart3.isRightA = false
  939. this.row2.chart3.isRight = true
  940. } else {
  941. this.row2.chart3.isLeftA = true
  942. this.row2.chart3.isLeft = false
  943. this.row2.chart3.isRightA = true
  944. this.row2.chart3.isRight = false
  945. }
  946. }
  947. setTimeout(() => {
  948. this.row2.chart3.listLoading2 = false
  949. }, 100)
  950. })
  951. },
  952. // 向左切换
  953. handleLeft() {
  954. console.log('左')
  955. if (this.row2.chart3.isLeftA == false) {
  956. console.log('前边没有啦')
  957. } else {
  958. console.log(this.row2.chart3.getdataListParmList.offset)
  959. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  960. this.getChart3List()
  961. }
  962. },
  963. // 向右切换
  964. handleRight() {
  965. if (this.row2.chart3.isRightA == false) {
  966. console.log('后边没有啦')
  967. } else {
  968. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset + 1
  969. console.log(this.row2.chart3.getdataListParmList.offset)
  970. this.getChart3List()
  971. }
  972. },
  973. handleList(key, item) {
  974. console.log(item, key)
  975. clearInterval(this.timer)
  976. for (let i = 0; i < this.list.length; i++) {
  977. if (key == i) {
  978. this.$set(this.list[i], 'background', '#f3f9f7')
  979. this.$set(this.list[i], 'borderColor', '#009d6a')
  980. this.$set(this.list[i], 'isChecked', true)
  981. } else {
  982. this.$set(this.list[i], 'background', '#f9f9f9')
  983. this.$set(this.list[i], 'borderColor', '#f9f9f9')
  984. this.$set(this.list[i], 'isChecked', false)
  985. }
  986. }
  987. this.row2.chart3.getdataListParm.parammaps.pid = this.list[key].pid
  988. this.row2.chart3.getdataListParm.parammaps.id = this.list[key].id
  989. this.getChart3()
  990. setTimeout(() => {
  991. this.timer = setInterval(this.autoPlay, 15000)
  992. }, 20000)
  993. },
  994. autoPlay() {
  995. if (this.list[0].isChecked == true) {
  996. if (this.list.length > 1) {
  997. this.$set(this.list[1], 'background', '#f3f9f7')
  998. this.$set(this.list[1], 'borderColor', '#009d6a')
  999. this.$set(this.list[1], 'isChecked', true)
  1000. this.$set(this.list[0], 'background', '#f9f9f9')
  1001. this.$set(this.list[0], 'borderColor', '#f9f9f9')
  1002. this.$set(this.list[0], 'isChecked', false)
  1003. this.row2.chart3.getdataListParm.parammaps.pid = this.list[1].pid
  1004. this.row2.chart3.getdataListParm.parammaps.id = this.list[1].id
  1005. this.getChart3()
  1006. } else {
  1007. if (this.row2.chart3.isRightA == false && this.row2.chart3.isLeftA == true) {
  1008. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  1009. this.getChart3List()
  1010. }
  1011. }
  1012. } else {
  1013. if (this.row2.chart3.isRightA == true) {
  1014. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset + 1
  1015. console.log(this.row2.chart3.getdataListParmList.offset)
  1016. this.getChart3List()
  1017. } else {
  1018. if (this.row2.chart3.isLeftA == true) {
  1019. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  1020. console.log(this.row2.chart3.getdataListParmList.offset)
  1021. this.getChart3List()
  1022. } else {
  1023. this.$set(this.list[0], 'background', '#f3f9f7')
  1024. this.$set(this.list[0], 'borderColor', '#009d6a')
  1025. this.$set(this.list[0], 'isChecked', true)
  1026. this.$set(this.list[1], 'background', '#f9f9f9')
  1027. this.$set(this.list[1], 'borderColor', '#f9f9f9')
  1028. this.$set(this.list[1], 'isChecked', false)
  1029. this.row2.chart3.getdataListParm.parammaps.pid = this.list[0].pid
  1030. this.row2.chart3.getdataListParm.parammaps.id = this.list[0].id
  1031. this.getChart3()
  1032. }
  1033. }
  1034. }
  1035. },
  1036. // 计划统计
  1037. getChart4() {
  1038. this.row3.chart1.listLoading = true
  1039. GetReportform(this.row3.chart1.getdataListParm).then(response => {
  1040. console.log('计划统计数据', response.data.list)
  1041. if (response.data.list !== null) {
  1042. for(let i=0;i<response.data.data.length;i++){
  1043. if(response.data.data[i].实际量 !== '' && response.data.data[i].实际量 !== undefined){
  1044. response.data.data[i].实际量 = parseFloat(response.data.data[i].实际量)
  1045. }
  1046. if(response.data.data[i].理论量 !== '' && response.data.data[i].理论量 !== undefined){
  1047. response.data.data[i].理论量 = parseFloat(response.data.data[i].理论量)
  1048. }
  1049. if(response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined){
  1050. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1051. }
  1052. if(response.data.data[i].计划取消重量 !== '' && response.data.data[i].计划取消重量 !== undefined){
  1053. response.data.data[i].计划取消重量 = parseFloat(response.data.data[i].计划取消重量)
  1054. }
  1055. if(response.data.data[i].field3 !== '' && response.data.data[i].field3 !== undefined){
  1056. response.data.data[i].field3 = parseFloat(response.data.data[i].field3)
  1057. }
  1058. if(response.data.data[i].正确数 !== '' && response.data.data[i].正确数 !== undefined){
  1059. response.data.data[i].正确数 = parseFloat(response.data.data[i].正确数)
  1060. }
  1061. if(response.data.data[i].计划数 !== '' && response.data.data[i].计划数 !== undefined){
  1062. response.data.data[i].计划数 = parseFloat(response.data.data[i].计划数)
  1063. }
  1064. if(response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined){
  1065. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1066. }
  1067. }
  1068. this.row3.chart1.table.list = response.data.data
  1069. console.log(this.row3.chart1.table.list,'123')
  1070. this.row3.chart1.chartLine_data = response.data.list
  1071. this.row3.chart1.total = response.data.total
  1072. if (this.row3.chart1.chartLine_data.data1.length == 0) {
  1073. this.row3.chart1.chartLine_data.title = '暂无数据'
  1074. } else {
  1075. this.row3.chart1.chartLine_data.title = ''
  1076. }
  1077. this.roadChartLine4(this.row3.chart1.chartLine_data)
  1078. } else {
  1079. this.row3.chart1.list = []
  1080. }
  1081. setTimeout(() => {
  1082. this.row3.chart1.listLoading = false
  1083. }, 100)
  1084. })
  1085. },
  1086. roadChartLine4(chartLine_data) {
  1087. if (this.row3.chart1.chartLine != null) {
  1088. this.row3.chart1.chartLine.dispose()
  1089. }
  1090. this.row3.chart1.chartLine = echarts.init(document.getElementById('row3chartLine1'))
  1091. var option = {
  1092. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1093. tooltip: { trigger: 'axis' },
  1094. color: ['#1abd88', '#549be9', '#fd8d75'],
  1095. legend: {
  1096. data: ['计划准确率', '计划正确率', '计划准确率(去除取消重量)'],
  1097. top: 10, itemHeight: 7, itemWidth: 15, textStyle: { fontSize: 12 }
  1098. },
  1099. grid: {
  1100. top: '20%',
  1101. left: '10%',
  1102. right: '10%',
  1103. bottom: '10%',
  1104. containLabel: true
  1105. },
  1106. toolbox: {
  1107. show: true,
  1108. right: '2%',
  1109. feature: {}
  1110. },
  1111. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data1, name: '日期' },
  1112. yAxis: {
  1113. type: 'value', name: '百分比', axisLabel: { formatter: '{value} %' }
  1114. },
  1115. series: [
  1116. { name: '计划准确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#1abd88' }}}, data: chartLine_data.data2 },
  1117. { name: '计划正确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#549be9' }}}, data: chartLine_data.data3 },
  1118. { name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
  1119. ]
  1120. }
  1121. this.row3.chart1.chartLine.setOption(option)
  1122. window.onresize = function() {
  1123. this.row3.chart1.chartLine.resize()
  1124. }
  1125. },
  1126. // 泌乳牛干物质采食量
  1127. getChart5() {
  1128. this.row3.chart2.listLoading = true
  1129. GetReportform(this.row3.chart2.getdataListParm).then(response => {
  1130. console.log('泌乳牛干物质采食量数据', response)
  1131. if (response.data.list !== null) {
  1132. for(let i=0;i<response.data.data.length;i++){
  1133. if(response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined){
  1134. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1135. }
  1136. if(response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined){
  1137. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1138. }
  1139. }
  1140. this.row3.chart2.table.list = response.data.data
  1141. this.row3.chart2.chartLine_data = response.data.list
  1142. this.row3.chart2.total = response.data.total
  1143. if (this.row3.chart2.chartLine_data.data1.length == 0) {
  1144. this.row3.chart2.chartLine_data.title = '暂无数据'
  1145. } else {
  1146. this.row3.chart2.chartLine_data.title = ''
  1147. }
  1148. this.roadChartLine5(this.row3.chart2.chartLine_data)
  1149. } else {
  1150. this.row3.chart2.list = []
  1151. }
  1152. setTimeout(() => {
  1153. this.row3.chart2.listLoading = false
  1154. }, 100)
  1155. })
  1156. },
  1157. roadChartLine5(chartLine_data) {
  1158. if (this.row3.chart2.chartLine != null) {
  1159. this.row3.chart2.chartLine.dispose()
  1160. }
  1161. this.row3.chart2.chartLine = echarts.init(document.getElementById('row3chartLine2'))
  1162. var option = {
  1163. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1164. tooltip: { trigger: 'axis' },
  1165. grid: { top: '20%', left: '8%', right: '10%', bottom: '10%', containLabel: true },
  1166. legend: { data: ['泌乳牛干物质采食量', '泌乳牛产奶量'], right: 10, itemHeight: 7, itemWidth: 15 },
  1167. xAxis: [{ type: 'category', data: chartLine_data.data1 }],
  1168. yAxis: [{
  1169. splitLine: { show: false }, type: 'value', name: '泌乳牛干\n物质采食量', axisLabel: { formatter: '{value} ' }
  1170. }, {
  1171. splitLine: { show: false }, type: 'value', name: '泌乳牛产奶量', axisLabel: { formatter: '{value} ' }
  1172. }],
  1173. series: [{
  1174. name: '泌乳牛干物质采食量', type: 'bar', barWidth: 5, itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#5199e5' }}, data: chartLine_data.data2
  1175. }, {
  1176. name: '泌乳牛产奶量', type: 'line', barWidth: 5,
  1177. itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
  1178. }]
  1179. }
  1180. this.row3.chart2.chartLine.setOption(option)
  1181. window.onresize = function() {
  1182. this.row3.chart2.chartLine.resize()
  1183. }
  1184. },
  1185. // 成本统计
  1186. getChart6() {
  1187. this.row4.chart1.listLoading = true
  1188. GetReportform(this.row4.chart1.getdataListParm).then(response => {
  1189. console.log('成本统计数据', response.data.data)
  1190. console.log('成本统计数据', response.data.list)
  1191. if (response.data.list !== null) {
  1192. for(let i=0;i<response.data.data.length;i++){
  1193. if(response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined){
  1194. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1195. }
  1196. if(response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined){
  1197. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1198. }
  1199. }
  1200. this.row4.chart1.table.list = response.data.data
  1201. this.row4.chart1.chartLine_data = response.data.list
  1202. this.row4.chart1.total = response.data.total
  1203. if (this.row4.chart1.chartLine_data.data1.length == 0) {
  1204. this.row4.chart1.chartLine_data.title = '暂无数据'
  1205. } else {
  1206. this.row4.chart1.chartLine_data.title = ''
  1207. }
  1208. this.roadChartLine6(this.row4.chart1.chartLine_data)
  1209. } else {
  1210. this.row4.chart1.list = []
  1211. }
  1212. setTimeout(() => {
  1213. this.row4.chart1.listLoading = false
  1214. }, 100)
  1215. })
  1216. },
  1217. roadChartLine6(chartLine_data) {
  1218. if (this.row4.chart1.chartLine != null) {
  1219. this.row4.chart1.chartLine.dispose()
  1220. }
  1221. console.log(chartLine_data)
  1222. this.row4.chart1.chartLine = echarts.init(document.getElementById('row4chartLine1'))
  1223. var option = {
  1224. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1225. grid: { left: '10%', right: '12%', bottom: '3%', containLabel: true },
  1226. tooltip: { trigger: 'axis' },
  1227. legend: { data: ['公斤奶饲料成本', '单头牛饲料成本'], itemHeight: 7, itemWidth: 15 },
  1228. xAxis: [{ type: 'category', data: chartLine_data.data1, axisPointer: { type: 'shadow' }, name: '日期' }],
  1229. yAxis: [{
  1230. splitLine: { show: false }, type: 'value', name: '公斤奶\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1231. }, {
  1232. splitLine: { show: false }, type: 'value', name: '单头牛\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1233. }
  1234. ],
  1235. series: [{
  1236. name: '公斤奶饲料成本', type: 'bar', itemStyle: { normal: { color: '#1abd88' }}, data: chartLine_data.data2
  1237. }, {
  1238. name: '单头牛饲料成本', type: 'line', yAxisIndex: 1, itemStyle: { normal: { color: '#ff8d78' }}, data: chartLine_data.data3
  1239. }]
  1240. }
  1241. this.row4.chart1.chartLine.setOption(option)
  1242. window.onresize = function() {
  1243. this.row4.chart1.chartLine.resize()
  1244. }
  1245. },
  1246. // 混料实际重量统计
  1247. getChart7() {
  1248. this.row4.chart2.listLoading = true
  1249. GetReportform(this.row4.chart2.getdataListParm).then(response => {
  1250. console.log('混料实际重量统计数据', response.data.list)
  1251. if (response.data.list !== null) {
  1252. for(let i=0;i<response.data.data.length;i++){
  1253. if(response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined){
  1254. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1255. }
  1256. }
  1257. this.row4.chart2.table.list = response.data.data
  1258. this.row4.chart2.chartLine_data = response.data.list
  1259. this.row4.chart2.total = response.data.total
  1260. if (this.row4.chart2.chartLine_data.data1.length == 0) {
  1261. this.row4.chart2.chartLine_data.title = '暂无数据'
  1262. } else {
  1263. this.row4.chart2.chartLine_data.title = ''
  1264. }
  1265. this.roadChartLine7(this.row4.chart2.chartLine_data)
  1266. } else {
  1267. this.row4.chart2.list = []
  1268. }
  1269. setTimeout(() => {
  1270. this.row4.chart2.listLoading = false
  1271. }, 100)
  1272. })
  1273. },
  1274. roadChartLine7(chartLine_data) {
  1275. if (this.row4.chart2.chartLine != null) {
  1276. this.row4.chart2.chartLine.dispose()
  1277. }
  1278. this.row4.chart2.chartLine = echarts.init(document.getElementById('row4chartLine2'))
  1279. var option = {
  1280. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1281. grid: { left: '10%', right: '10%', bottom: '3%', containLabel: true },
  1282. tooltip: { trigger: 'axis' },
  1283. legend: { data: [''] },
  1284. xAxis: [{ type: 'category', data: chartLine_data.data1, name: '日期' }],
  1285. yAxis: [
  1286. { type: 'value', name: '重量(kg)', axisLabel: { formatter: '{value}' }}
  1287. ],
  1288. series: [{
  1289. name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
  1290. }]
  1291. }
  1292. this.row4.chart2.chartLine.setOption(option)
  1293. window.onresize = function() {
  1294. this.row4.chart2.chartLine.resize()
  1295. }
  1296. },
  1297. getTable8() {
  1298. this.row4.table.listLoading = true
  1299. GetDataByName(this.row4.table.getdataListParm).then(response => {
  1300. console.log('库存预警table数据', response.data.list)
  1301. if (response.data.list !== null) {
  1302. this.row4.table.list = response.data.list
  1303. this.row4.table.total = response.data.total
  1304. } else {
  1305. this.row4.table.list = []
  1306. }
  1307. setTimeout(() => {
  1308. this.row4.table.listLoading = false
  1309. }, 100)
  1310. })
  1311. },
  1312. // 更多
  1313. handleMore() {
  1314. // this.$router.push({ path: '/inventoryManagement/Warning' })
  1315. this.$router.push({ name: 'Warning', params: { jmp: 'jmp' }})
  1316. },
  1317. // 导出
  1318. handleExport(item) {
  1319. console.log(item)
  1320. // 计划统计
  1321. if (item == 'row3chartLine1') {
  1322. console.log(this.row3.chart1.table.list)
  1323. var excelDatasTabChart1 = [
  1324. {
  1325. tHeader: ['日期', '计划执行重量(kg)', '配方理论重量(kg)', '计划准确率', '计划取消重量(kg)', '计划准确率(去除取消重量)', '计划正确数', '计划数', '计划正确率'],
  1326. filterVal: ['日期', '实际量', '理论量', 'field1', '计划取消重量', 'field3', '正确数', '计划数', 'field2'],
  1327. tableDatas: this.row3.chart1.table.list,
  1328. sheetName: '计划统计'
  1329. }
  1330. ]
  1331. json2excel(excelDatasTabChart1, '计划统计', true, 'xlsx')
  1332. } else if (item == 'row3chartLine2') {
  1333. // 泌乳牛采食量
  1334. var excelDatasTabChart2 = [
  1335. {
  1336. tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1337. filterVal: ['日期', 'field1', 'field2'],
  1338. tableDatas: this.row3.chart2.table.list,
  1339. sheetName: '泌乳牛采食量'
  1340. }
  1341. ]
  1342. json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1343. } else if (item == 'row4chartLine1') {
  1344. // 成本统计
  1345. console.log('成本统计')
  1346. // var excelDatasTabChart2 = [
  1347. // {
  1348. // tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1349. // filterVal: ['日期', 'field1', 'field2'],
  1350. // tableDatas: this.row3.chart2.table.list,
  1351. // sheetName: '泌乳牛采食量'
  1352. // }
  1353. // ]
  1354. // json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1355. }
  1356. },
  1357. handleTable(item) {
  1358. console.log(item)
  1359. if (item == 'row3chartLine1') {
  1360. console.log('计划统计表格')
  1361. this.row3.chart1.isTable = true
  1362. this.row3.chart1.isChart = false
  1363. } else if (item == 'row3chartLine2') {
  1364. console.log('泌乳牛采食量表格')
  1365. this.row3.chart2.isTable = true
  1366. this.row3.chart2.isChart = false
  1367. } else if (item == 'row4chartLine1') {
  1368. console.log('成本统计表格')
  1369. this.row4.chart1.isTable = true
  1370. this.row4.chart1.isChart = false
  1371. } else if (item == 'row4chartLine2') {
  1372. console.log('混料实际重量统计表格')
  1373. this.row4.chart2.isTable = true
  1374. this.row4.chart2.isChart = false
  1375. }
  1376. },
  1377. handleChart(item) {
  1378. console.log(item)
  1379. // 显示切换图表
  1380. if (item == 'row3chartLine1') {
  1381. console.log('计划统计图表')
  1382. this.row3.chart1.isTable = false
  1383. this.row3.chart1.isChart = true
  1384. this.getChart4()
  1385. } else if (item == 'row3chartLine2') {
  1386. console.log('泌乳牛采食量图表')
  1387. this.row3.chart2.isTable = false
  1388. this.row3.chart2.isChart = true
  1389. this.getChart5()
  1390. } else if (item == 'row4chartLine1') {
  1391. console.log('成本统计图表')
  1392. this.row4.chart1.isTable = false
  1393. this.row4.chart1.isChart = true
  1394. this.getChart6()
  1395. } else if (item == 'row4chartLine2') {
  1396. console.log('混料实际重量统计图表')
  1397. this.row4.chart2.isTable = false
  1398. this.row4.chart2.isChart = true
  1399. this.getChart7()
  1400. }
  1401. }
  1402. }
  1403. }
  1404. </script>
  1405. <style lang="scss" scoped>
  1406. .Title{
  1407. padding-left: 10px;border-radius: 10px;margin-top: 20px;background: #fff;height:40px;font-size:20px;line-height:40px;text-align: left;font-weight: 600;color:#333333;
  1408. }
  1409. .dashboard-editor-container {
  1410. background-color: #F4F4F4;
  1411. min-height: 100vh;
  1412. .news{
  1413. width: 70%;
  1414. height: 30px;
  1415. background: #fff;
  1416. margin: 0 auto;
  1417. border-radius: 10px;
  1418. text-align: center;
  1419. line-height: 30px;
  1420. color: red;
  1421. b{color: #000;}
  1422. }
  1423. .bottom{
  1424. padding:0 30px;
  1425. h4{text-align: right;}
  1426. .grid-content{
  1427. background: #fff;height: 90px;
  1428. border-radius: 10px;
  1429. }
  1430. .one{
  1431. border: 1px solid #82CBB3;height: 90px;
  1432. .Left{
  1433. float: left;
  1434. width: 65px;
  1435. text-align: center;
  1436. i{font-size: 36px;color:#82CBB3;line-height: 90px;}
  1437. }
  1438. .Right{
  1439. float: left;
  1440. margin-top:15px;
  1441. height: 60px;
  1442. font-weight: 600;
  1443. font-size: 14px;
  1444. line-height: 30px;
  1445. span{
  1446. display: inline-block;
  1447. width: 130px;
  1448. text-align: right;
  1449. }
  1450. }
  1451. }
  1452. .two{
  1453. border: 1px solid #FF9900;
  1454. .Left{
  1455. float: left;
  1456. width: 65px;
  1457. text-align: center;
  1458. i{font-size: 36px;color:#FF9900;line-height: 90px;}
  1459. }
  1460. .Right{
  1461. float: left;
  1462. margin-top:15px;
  1463. height: 60px;
  1464. font-weight: 600;
  1465. font-size: 14px;
  1466. line-height: 30px;
  1467. span{
  1468. display: inline-block;
  1469. width: 130px;
  1470. text-align: right;
  1471. }
  1472. }
  1473. }
  1474. .three{
  1475. border: 1px solid #0099FF;
  1476. .Left{
  1477. float: left;
  1478. width: 65px;
  1479. text-align: center;
  1480. i{font-size: 36px;color:#0099FF;line-height: 90px;}
  1481. }
  1482. .Right{
  1483. float: left;
  1484. height: 60px;
  1485. font-weight: 600;
  1486. font-size: 14px;
  1487. line-height: 30px;
  1488. margin-top:15px;
  1489. span{
  1490. display: inline-block;
  1491. width: 130px;
  1492. text-align: right;
  1493. }
  1494. }
  1495. }
  1496. .four{
  1497. border: 1px solid #FF5C5C;
  1498. .Left{
  1499. float: left;
  1500. width: 55px;
  1501. text-align: center;
  1502. i{font-size: 36px;color:#FF5C5C;line-height: 90px;}
  1503. }
  1504. .Right{
  1505. float: left;
  1506. flex: 1;
  1507. height: 60px;
  1508. font-weight: 600;
  1509. font-size: 14px;
  1510. line-height: 30px;
  1511. margin-top:15px;
  1512. span{
  1513. display: inline-block;
  1514. width: 150px;
  1515. text-align: right;
  1516. }
  1517. }
  1518. }
  1519. .car{
  1520. width:100%;height:150px;
  1521. display:flex;
  1522. display: -webkit-flex;
  1523. -webkit-flex-direction:row;
  1524. i{font-size: 50px;width:50px;display: block;line-height: 150px;}
  1525. .carList{
  1526. flex:1;height: 130px;
  1527. .list{
  1528. height: 130px;color: #fff;
  1529. // box-shadow: #000 0px 0px 10px;
  1530. // border-radius: 10px;
  1531. .list-l{
  1532. p{
  1533. padding-left:10px;font-size:13px;line-height: 16px; text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1534. }
  1535. }
  1536. .list-r{
  1537. p{
  1538. font-size:13px;line-height: 16px;text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1539. }
  1540. }
  1541. }
  1542. }
  1543. }
  1544. }
  1545. }
  1546. </style>
  1547. <style>
  1548. .app-main{background:#f5f5f5;}
  1549. </style>
  1550. <style lang="scss" scoped>
  1551. .dashboard-editor-container{padding-left: 10px;background: #f5f5f5;padding-bottom: 10px;}
  1552. // 公共
  1553. .img-t{position: absolute;left: 0;right: 0;margin: 30px auto;width: 31%;height: 31%;background-size: 100% 100%;}
  1554. .row1-c-l-b{
  1555. position: absolute;bottom: 40px;width: 100%;
  1556. div{
  1557. font-size: 12px;line-height: 16px;color: #323232;padding: 0 10px;width: 100%;
  1558. span{text-align: right;width: 75%;display: block;float: left;}
  1559. b{float: left;display: block;width: 25%;}
  1560. }
  1561. }
  1562. .title{
  1563. height: 36px;padding-top: 7px;line-height: 36px;position: relative;
  1564. .img-title{
  1565. position: absolute;top: 10px; right:10px;bottom:0;left:20px;width: 30px;height: 30px;background: url(../../../assets/images/index/row-bg3.png) no-repeat;
  1566. }
  1567. .content{font-size: 18px;position: absolute;top: 7px;left: 55px;}
  1568. }
  1569. .button{
  1570. height: 30px;
  1571. .exportTable{float: right;margin-right: 5px;}
  1572. }
  1573. .dashboard{
  1574. display: flex;margin-top: 10px;
  1575. .dashboard-l{
  1576. // width: 540px;
  1577. width: 30%;
  1578. .row1{
  1579. height: 520px;
  1580. .row1-t{
  1581. background: #fff; height: 50px; color: #f28b46;
  1582. .row1-t-l{
  1583. .img-l{float:left;padding: 16px 10px 16px 20px;width: 18px;height: 18px;background: url(../../../assets/images/index/row-bg2.png) no-repeat;background-position: 0 8px;}
  1584. .content{float:left;width: 54%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 16px;line-height: 50px;}
  1585. .img-r{float:left;padding: 16px 0 16px 17px;width: 30px;height: 15px;background: url(../../../assets/images/index/row-bg2.png) no-repeat;background-position: 0 -24px;}
  1586. }
  1587. .row1-t-r{padding-right: 20px;text-align: right;line-height: 50px;}
  1588. }
  1589. .row1-c{
  1590. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1591. .row1-c-l{
  1592. background: #fff;width:49%;height:225px;border-radius:3px;margin-right: 1%;position: relative;
  1593. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t1.png) no-repeat; background-size: 100% 100%;}
  1594. }
  1595. .row1-c-r{
  1596. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1597. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t2.png) no-repeat; background-size: 100% 100%;}
  1598. }
  1599. }
  1600. .row1-b{
  1601. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1602. .row1-b-l{
  1603. background: #fff;width:49%;height:225px;border-radius:3px;margin-right:1%;position: relative;
  1604. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t4.png) no-repeat; background-size: 100% 100%;}
  1605. }
  1606. .row1-b-r{
  1607. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1608. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t3.png) no-repeat; background-size: 100% 100%;}
  1609. }
  1610. }
  1611. }
  1612. .row2{
  1613. margin-top:10px;height: 375px;background: #fff;
  1614. .img-title{background-position: 0 0;}
  1615. .todayPlan{
  1616. display: flex; flex-direction: row;
  1617. div{
  1618. flex: 1;position: relative;
  1619. .bottom{
  1620. width: 99%;height: 70px;background: #f9f9f9;margin: 30px auto 5px;display: flex; flex-direction: row;
  1621. div{
  1622. flex: 1;height: 42px;color: #333333;
  1623. }
  1624. .bottom-l{
  1625. border-right: 1px solid #e0e0e0;margin-top: 15px;width: 100%;
  1626. .bottom-l-t{
  1627. height: 30px;
  1628. b{font-size: 18px;}
  1629. }
  1630. .bottom-l-b{font-size: 12px;}
  1631. }
  1632. .bottom-r{
  1633. margin-top: 15px;width: 100%;
  1634. .bottom-r-t{height: 30px;padding-left: 10px;}
  1635. .bottom-r-b{padding-left: 10px;font-size: 12px;}
  1636. }
  1637. }
  1638. }
  1639. }
  1640. }
  1641. .row3{
  1642. margin-top:10px;height: 375px;background: #fff;
  1643. .img-title{background-position: 0 -90px;}
  1644. }
  1645. }
  1646. .dashboard-r{
  1647. margin-left: 10px;flex:1;
  1648. .row1{
  1649. height: 520px;background: #fff;
  1650. .img-title{background-position: 0 -240px;}
  1651. #row2chartLine3{height: 270px;margin-top: 10px;}
  1652. .carsLength{
  1653. padding: 13px 0 0 22px;line-height: 38px;font-size: 18px;font-weight: 700;
  1654. }
  1655. .car{
  1656. height: 140px;position: relative;
  1657. .iconLeft{width:32px;height:32px;position:absolute;top:46px;left:15px; z-index:1;}
  1658. .iconRight{width:32px;height:32px;position:absolute;top:46px;right: 20px ;z-index:1;}
  1659. .carList{
  1660. padding:0 30px;height: 120px;overflow: hidden;display: flex;
  1661. .listW{
  1662. background: #f3f9f7;
  1663. float: left;
  1664. // flex: 1 1;
  1665. margin: 0 5px;position: relative;width: 50%;
  1666. .list{
  1667. width: 100%;height: 100%;border-radius: 5px;border:1px solid #000;
  1668. .list-t{
  1669. display: flex;border-bottom: 1px solid #f1f1f1;
  1670. .list-t-t{
  1671. flex: 1 1;width: 0;font-size: 12px;line-height: 22px;padding: 25px 5px 15px;text-align: center;
  1672. span{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  1673. }
  1674. }
  1675. .list-b{
  1676. display: flex; text-align: center;margin-top: 14px;color: #323232;
  1677. .list-b-l{
  1678. flex: 1;width: 0; height: 40px; position: relative;
  1679. .left{
  1680. .num{
  1681. font-size: 12px;
  1682. b{font-size: 12px;}
  1683. }
  1684. .weight{font-size: 12px;}
  1685. }
  1686. .right{
  1687. height: 30px;width: 1px;background: #e0e0e0;position: absolute;right: 0;top: 0;bottom: 0;margin-top:auto;margin-bottom:auto
  1688. }
  1689. }
  1690. }
  1691. }
  1692. .img-checked{width: 30px;height: 28px;position: absolute;top: 0;right: 0;background: url(../../../assets/images/index/row-r6.png);}
  1693. }
  1694. }
  1695. }
  1696. }
  1697. .row2{
  1698. margin-top:10px;height: 375px;
  1699. display: flex; flex-direction: row;
  1700. .row2-l{
  1701. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1702. .img-title{background-position: 0 -30px;}
  1703. }
  1704. .row2-r{
  1705. background: #fff;height:375px;border-radius:3px;flex: 1;
  1706. .img-title{background-position: 0 -60px;}
  1707. }
  1708. }
  1709. .row3{
  1710. margin-top:10px;height: 375px;
  1711. display: flex; flex-direction: row;
  1712. .row3-l{
  1713. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1714. .img-title{background-position: 0 -120px;}
  1715. }
  1716. .row3-r{
  1717. background: #fff;height:375px;border-radius:3px;flex: 1;
  1718. .img-title{background-position: 0 -150px;}
  1719. }
  1720. }
  1721. }
  1722. }
  1723. </style>