11cf05eecce0250679ae08c8eb40f30287210fa4.svn-base 72 KB

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