ebbe26cb8d2cdd9098a051e91cf017935cf07a4e.svn-base 72 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762
  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. }
  624. },
  625. created() {
  626. // this.reload()
  627. this.getCarLength()
  628. this.getChart3List()
  629. this.getTimeFn()
  630. this.getList()
  631. this.getChart4()
  632. this.getChart5()
  633. this.getChart6()
  634. this.getChart7()
  635. this.getTable8()
  636. },
  637. mounted() {
  638. this.timer = null
  639. this.timer = setInterval(this.autoPlay, 15000)
  640. },
  641. destroyed() {
  642. clearInterval(this.timer)
  643. },
  644. methods: {
  645. getTimeFn() {
  646. // this.reload()
  647. const that = this
  648. // const end = new Date()
  649. // const start = new Date()
  650. // start.setTime(start.getTime() - 3600 * 1000 * 24 * 20)
  651. const end = '2021-07-07'
  652. const start = '2021-07-01'
  653. that.row3.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
  654. that.row3.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
  655. that.row3.chart1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  656. that.row3.chart1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  657. that.row3.chart1.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  658. that.row3.chart1.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  659. that.row3.chart2.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  660. that.row3.chart2.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  661. that.row3.chart2.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  662. that.row3.chart2.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  663. that.row4.chartDate[0] = parseTime(start, '{y}-{m}-{d}')
  664. that.row4.chartDate[1] = parseTime(end, '{y}-{m}-{d}')
  665. that.row4.chart1.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  666. that.row4.chart1.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  667. that.row4.chart1.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  668. that.row4.chart1.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  669. that.row4.chart2.getdataListParm.parammaps.inputDatetime[0] = parseTime(start, '{y}-{m}-{d}')
  670. that.row4.chart2.getdataListParm.parammaps.inputDatetime[1] = parseTime(end, '{y}-{m}-{d}')
  671. that.row4.chart2.getdataListParm.parammaps.startTime = parseTime(start, '{y}-{m}-{d}')
  672. that.row4.chart2.getdataListParm.parammaps.stopTime = parseTime(end, '{y}-{m}-{d}')
  673. },
  674. getList() {
  675. this.row1.listLoading = true
  676. GetDataByName(this.row1.getdataListParm).then(response => {
  677. console.log('row1数据', response.data.list)
  678. if (response.data.list !== null) {
  679. if (response.data.list[0].monRateHL == undefined) { response.data.list[0].monRateHL = '' }
  680. if (response.data.list[0].monRateSL == undefined) { response.data.list[0].monRateSL = '' }
  681. if (response.data.list[0].monRateSLR == undefined) { response.data.list[0].monRateSLR = '' }
  682. if (response.data.list[0].yesRateHL == undefined) { response.data.list[0].yesRateHL = '' }
  683. if (response.data.list[0].yesRateHL == undefined) { response.data.list[0].yesRateHL = '' }
  684. if (response.data.list[0].yesRateSL == undefined) { response.data.list[0].yesRateSL = '' }
  685. if (response.data.list[0].yesRateSLR == undefined) { response.data.list[0].yesRateSLR = '' }
  686. if (response.data.list[0].temtime == undefined) { response.data.list[0].temtime = '' }
  687. if (response.data.list[0].montime == undefined) { response.data.list[0].montime = '' }
  688. this.row1.list = response.data.list[0]
  689. this.row2.chart1.chartLine_data.data1 = parseFloat(response.data.list[0].doneTimes)
  690. this.row2.chart1.chartLine_data.data2 = parseFloat(response.data.list[0].planTimes)
  691. this.row2.chart2.chartLine_data.data1 = parseFloat(response.data.list[0].doneWeight)
  692. this.row2.chart2.chartLine_data.data2 = parseFloat(response.data.list[0].planWeight)
  693. this.roadChartLine1(this.row2.chart1.chartLine_data)
  694. this.roadChartLine2(this.row2.chart2.chartLine_data)
  695. } else {
  696. this.row1.list.data1.monRateHL = ''
  697. this.row1.list.data1.monRateSL = ''
  698. this.row1.list.data1.monRateSLR = ''
  699. this.row1.list.data1.yesRateHL = ''
  700. this.row1.list.data1.yesRateSL = ''
  701. this.row1.list.data1.yesRateSLR = ''
  702. this.row1.list.data1.temtime = ''
  703. this.row1.list.data1.montime = ''
  704. this.row2.chart1.chartLine_data.data1 = ''
  705. this.row2.chart1.chartLine_data.data2 = ''
  706. this.row2.chart2.chartLine_data.data1 = ''
  707. this.row2.chart2.chartLine_data.data2 = ''
  708. }
  709. setTimeout(() => {
  710. this.row1.listLoading = false
  711. }, 100)
  712. })
  713. },
  714. // 今日计划统计-完成车次
  715. roadChartLine1(chartLine_data) {
  716. console.log('chartLine_data', chartLine_data)
  717. if (this.row2.chart1.chartLine != null) {
  718. this.row2.chart1.chartLine.dispose()
  719. }
  720. this.row2.chart1.chartLine = echarts.init(document.getElementById('row2chartLine1'))
  721. if (chartLine_data.data2 == 0 || chartLine_data.data1 == 0) {
  722. chartLine_data.data1 = 0
  723. chartLine_data.data2 = 100
  724. }
  725. var option = {
  726. title: { show: true, x: 'center', textStyle: { fontSize: '15', color: 'green', fontWeight: 'bold' }},
  727. tooltip: { show: false, trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' },
  728. color: ['#1bbe89', '#e4e7ec'],
  729. series: [{
  730. name: '任务进度', type: 'pie', radius: ['80%', '70%'], avoidLabelOverlap: false, hoverAnimation: false, labelLine: { normal: { show: false }},
  731. data: [{
  732. value: chartLine_data.data1, name: '车次完成率', selected: false, // 单个扇区的标签配置
  733. label: { normal: { show: true, position: 'center', fontSize: 20, formatter: '{b}\n{d}%' }}
  734. }, {
  735. value: chartLine_data.data2 - chartLine_data.data1,
  736. label: { normal: { show: false }
  737. }
  738. }]
  739. }]
  740. }
  741. this.row2.chart1.chartLine.setOption(option)
  742. window.onresize = function() {
  743. this.row2.chart1.chartLine.resize()
  744. }
  745. var that = this
  746. that.row2.chart1.chartLine.on('mouseover', e => {
  747. const op = that.row2.chart1.chartLine.getOption()
  748. that.row2.chart1.chartLine.dispatchAction({
  749. type: 'downplay',
  750. seriesIndex: 0,
  751. dataIndex: e.dataIndex,
  752. color: e.color
  753. })
  754. that.row2.chart1.chartLine.setOption(op, true)
  755. })
  756. },
  757. // 今日计划统计-完成重量
  758. roadChartLine2(chartLine_data) {
  759. if (this.row2.chart2.chartLine != null) {
  760. this.row2.chart2.chartLine.dispose()
  761. }
  762. this.row2.chart2.chartLine = echarts.init(document.getElementById('row2chartLine2'))
  763. if (chartLine_data.data2 == 0 || chartLine_data.data1 == 0) {
  764. chartLine_data.data1 = 0
  765. chartLine_data.data2 = 100
  766. }
  767. var option = {
  768. title: { show: true, x: 'center', textStyle: { fontSize: '15', color: 'green', fontWeight: 'bold' }},
  769. tooltip: { show: false, trigger: 'item', formatter: '{a} <br/>{b}: {c} ({d}%)' },
  770. series: [{
  771. name: '任务进度', type: 'pie', radius: ['80%', '70%'], avoidLabelOverlap: false, hoverAnimation: false,
  772. labelLine: { normal: { show: false }},
  773. data: [{
  774. value: chartLine_data.data1, name: '重量完成率', selected: false, label: { normal: { show: true, position: 'center', fontSize: 20, formatter: '{b}\n{d}%' }}
  775. }, {
  776. value: chartLine_data.data2 - chartLine_data.data1, label: { normal: { show: false }}
  777. }]
  778. }],
  779. color: ['#529ae4', '#e4e7ec']
  780. }
  781. this.row2.chart2.chartLine.setOption(option)
  782. window.onresize = function() {
  783. this.row2.chart2.chartLine.resize()
  784. }
  785. var that = this
  786. that.row2.chart2.chartLine.on('mouseover', e => {
  787. const op = that.row2.chart2.chartLine.getOption()
  788. that.row2.chart2.chartLine.dispatchAction({
  789. type: 'downplay',
  790. seriesIndex: 0,
  791. dataIndex: e.dataIndex,
  792. color: e.color
  793. })
  794. that.row2.chart2.chartLine.setOption(op, true)
  795. })
  796. },
  797. // 实时监控
  798. getChart3() {
  799. this.row2.chart3.listLoading = true
  800. GetReportform(this.row2.chart3.getdataListParm).then(response => {
  801. console.log('实时监控数据', response.data.list)
  802. if (response.data !== null && response.data.list !== null) {
  803. var evenNumbers = []// 偶数
  804. var oddNumbers = []// 奇数
  805. for (let i = 0; i < response.data.list.data4.length; i++) {
  806. if (i == 0) {
  807. oddNumbers.push(response.data.list.data4[i])
  808. } else {
  809. if (i % 2 == 0) {
  810. evenNumbers.push(response.data.list.data4[i])
  811. } else {
  812. oddNumbers.push(response.data.list.data4[i])
  813. }
  814. }
  815. }
  816. response.data.list.data4 = oddNumbers
  817. response.data.list.data5 = evenNumbers
  818. this.row2.chart3.chartLine_data = response.data.list
  819. this.row2.chart3.total = response.data.total
  820. this.row2.chart3.pageNum = response.data.pageNum
  821. this.row2.chart3.pages = response.data.pages
  822. this.roadChartLine3(this.row2.chart3.chartLine_data)
  823. } else {
  824. this.row2.chart3.list = []
  825. this.row2.chart3.chartLine_data = []
  826. this.roadChartLine3(this.row2.chart3.chartLine_data)
  827. }
  828. setTimeout(() => {
  829. this.row2.chart3.listLoading = false
  830. }, 100)
  831. })
  832. },
  833. roadChartLine3(chartLine_data) {
  834. console.log(chartLine_data, 'chartLine_data666')
  835. if (this.row2.chart3.chartLine != null) {
  836. this.row2.chart3.chartLine.dispose()
  837. }
  838. this.row2.chart3.chartLine = echarts.init(document.getElementById('row2chartLine3'))
  839. var option = {
  840. title: {
  841. text: '',
  842. subtext: ''
  843. },
  844. color: ['#38c193', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
  845. grid: {
  846. bottom: '10%'
  847. },
  848. legend: [{
  849. itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
  850. data: [{ name: '设计重量' }, { name: '实际重量' }]
  851. }, {
  852. itemWidth: 15, itemHeight: 15, right: '0', textStyle: { fontSize: 12 },
  853. data: [{ name: '开始重量', icon: 'image://https://kptyun.cn:8081/file/pic/3.png' }, { name: '结束重量', icon: 'image://https://kptyun.cn:8081/file/pic/4.png' }]
  854. }],
  855. tooltip: {
  856. trigger: 'axis'
  857. },
  858. calculable: true,
  859. yAxis: [
  860. { type: 'value', name: '重量(kg)', splitLine: { show: false }, axisLabel: { show: true, textStyle: { color: '#666' }}}
  861. ],
  862. xAxis: [
  863. { type: 'category', splitLine: { show: false }, name: '时间', data: chartLine_data.data1, axisLabel: { show: true, textStyle: { color: '#666' }}}
  864. ],
  865. series: [
  866. { symbol: 'none', name: '实际重量', type: 'line', symbolSize: 4, data: chartLine_data.data3, smooth: true, barWidth: '37', itemStyle: { normal: { lineStyle: { color: '#38c193' }}}},
  867. { symbol: 'none', name: '设计重量', type: 'line', symbolSize: 4, barWidth: '37', data: chartLine_data.data2, itemStyle: { normal: { lineStyle: { color: '#5199e5' }}}},
  868. { name: '开始重量', symbol: 'image://https://kptyun.cn:8081/file/pic/3.png', symbolSize: 10, type: 'scatter', data: chartLine_data.data4 },
  869. { name: '结束重量', symbol: 'image://https://kptyun.cn:8081/file/pic/4.png', symbolSize: 10, type: 'scatter', data: chartLine_data.data5 }
  870. ]
  871. }
  872. this.row2.chart3.chartLine.setOption(option)
  873. window.onresize = function() {
  874. this.row2.chart3.chartLine.resize()
  875. }
  876. },
  877. getCarLength() {
  878. this.row2.chart3.listLoading2 = true
  879. this.row2.chart3.getdataListParmList.pagecount = 0
  880. GetDataByName(this.row2.chart3.getdataListParmList).then(response => {
  881. if (response.data.list !== null) {
  882. this.carLength = response.data.total
  883. } else {
  884. this.carLength = 0
  885. }
  886. setTimeout(() => {
  887. this.row2.chart3.listLoading2 = false
  888. }, 100)
  889. })
  890. },
  891. // 图三轮询列表
  892. getChart3List() {
  893. this.row2.chart3.listLoading2 = true
  894. this.row2.chart3.getdataListParmList.pagecount = 2
  895. GetDataByName(this.row2.chart3.getdataListParmList).then(response => {
  896. if (response.data.list !== null) {
  897. this.$set(response.data.list[0], 'background', '#f3f9f7')
  898. this.$set(response.data.list[0], 'borderColor', '#009d6a')
  899. this.$set(response.data.list[0], 'isChecked', true)
  900. if (response.data.list.length > 1) {
  901. this.$set(response.data.list[1], 'background', '#f9f9f9')
  902. this.$set(response.data.list[1], 'borderColor', '#f9f9f9')
  903. this.$set(response.data.list[1], 'isChecked', false)
  904. }
  905. this.list = response.data.list
  906. this.row2.chart3.getdataListParm.parammaps.pid = this.list[this.myKey].pid
  907. this.row2.chart3.getdataListParm.parammaps.id = this.list[this.myKey].id
  908. this.getChart3()
  909. this.row2.chart3.pageNum2 = response.data.pageNum
  910. this.row2.chart3.pages2 = response.data.pages
  911. } else {
  912. this.row2.chart3.list2 = []
  913. }
  914. if (response.data.pageNum == 1) {
  915. if (response.data.total > 2) {
  916. this.row2.chart3.isLeftA = false
  917. this.row2.chart3.isLeft = true
  918. this.row2.chart3.isRightA = true
  919. this.row2.chart3.isRight = false
  920. } else {
  921. this.row2.chart3.isLeftA = false
  922. this.row2.chart3.isLeft = true
  923. this.row2.chart3.isRightA = true
  924. this.row2.chart3.isRight = false
  925. }
  926. } else {
  927. if (response.data.pageNum * response.data.pageSize > response.data.total || response.data.pageNum * response.data.pageSize == response.data.total) {
  928. this.row2.chart3.isLeftA = true
  929. this.row2.chart3.isLeft = false
  930. this.row2.chart3.isRightA = false
  931. this.row2.chart3.isRight = true
  932. } else {
  933. this.row2.chart3.isLeftA = true
  934. this.row2.chart3.isLeft = false
  935. this.row2.chart3.isRightA = true
  936. this.row2.chart3.isRight = false
  937. }
  938. }
  939. setTimeout(() => {
  940. this.row2.chart3.listLoading2 = false
  941. }, 100)
  942. })
  943. },
  944. // 向左切换
  945. handleLeft() {
  946. console.log('左')
  947. if (this.row2.chart3.isLeftA == false) {
  948. console.log('前边没有啦')
  949. } else {
  950. console.log(this.row2.chart3.getdataListParmList.offset)
  951. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  952. this.getChart3List()
  953. }
  954. },
  955. // 向右切换
  956. handleRight() {
  957. if (this.row2.chart3.isRightA == false) {
  958. console.log('后边没有啦')
  959. } else {
  960. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset + 1
  961. console.log(this.row2.chart3.getdataListParmList.offset)
  962. this.getChart3List()
  963. }
  964. },
  965. handleList(key, item) {
  966. console.log(item, key)
  967. clearInterval(this.timer)
  968. for (let i = 0; i < this.list.length; i++) {
  969. if (key == i) {
  970. this.$set(this.list[i], 'background', '#f3f9f7')
  971. this.$set(this.list[i], 'borderColor', '#009d6a')
  972. this.$set(this.list[i], 'isChecked', true)
  973. } else {
  974. this.$set(this.list[i], 'background', '#f9f9f9')
  975. this.$set(this.list[i], 'borderColor', '#f9f9f9')
  976. this.$set(this.list[i], 'isChecked', false)
  977. }
  978. }
  979. this.row2.chart3.getdataListParm.parammaps.pid = this.list[key].pid
  980. this.row2.chart3.getdataListParm.parammaps.id = this.list[key].id
  981. this.getChart3()
  982. setTimeout(() => {
  983. this.timer = setInterval(this.autoPlay, 15000)
  984. }, 20000)
  985. },
  986. autoPlay() {
  987. if (this.list[0].isChecked == true) {
  988. if (this.list.length > 1) {
  989. this.$set(this.list[1], 'background', '#f3f9f7')
  990. this.$set(this.list[1], 'borderColor', '#009d6a')
  991. this.$set(this.list[1], 'isChecked', true)
  992. this.$set(this.list[0], 'background', '#f9f9f9')
  993. this.$set(this.list[0], 'borderColor', '#f9f9f9')
  994. this.$set(this.list[0], 'isChecked', false)
  995. this.row2.chart3.getdataListParm.parammaps.pid = this.list[1].pid
  996. this.row2.chart3.getdataListParm.parammaps.id = this.list[1].id
  997. this.getChart3()
  998. } else {
  999. if (this.row2.chart3.isRightA == false && this.row2.chart3.isLeftA == true) {
  1000. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  1001. this.getChart3List()
  1002. }
  1003. }
  1004. } else {
  1005. if (this.row2.chart3.isRightA == true) {
  1006. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset + 1
  1007. console.log(this.row2.chart3.getdataListParmList.offset)
  1008. this.getChart3List()
  1009. } else {
  1010. if (this.row2.chart3.isLeftA == true) {
  1011. this.row2.chart3.getdataListParmList.offset = this.row2.chart3.getdataListParmList.offset - 1
  1012. console.log(this.row2.chart3.getdataListParmList.offset)
  1013. this.getChart3List()
  1014. } else {
  1015. this.$set(this.list[0], 'background', '#f3f9f7')
  1016. this.$set(this.list[0], 'borderColor', '#009d6a')
  1017. this.$set(this.list[0], 'isChecked', true)
  1018. this.$set(this.list[1], 'background', '#f9f9f9')
  1019. this.$set(this.list[1], 'borderColor', '#f9f9f9')
  1020. this.$set(this.list[1], 'isChecked', false)
  1021. this.row2.chart3.getdataListParm.parammaps.pid = this.list[0].pid
  1022. this.row2.chart3.getdataListParm.parammaps.id = this.list[0].id
  1023. this.getChart3()
  1024. }
  1025. }
  1026. }
  1027. },
  1028. // 计划统计
  1029. getChart4() {
  1030. this.row3.chart1.listLoading = true
  1031. GetReportform(this.row3.chart1.getdataListParm).then(response => {
  1032. console.log('计划统计数据', response.data.list)
  1033. if (response.data.list !== null) {
  1034. for (let i = 0; i < response.data.data.length; i++) {
  1035. if (response.data.data[i].实际量 !== '' && response.data.data[i].实际量 !== undefined) {
  1036. response.data.data[i].实际量 = parseFloat(response.data.data[i].实际量)
  1037. }
  1038. if (response.data.data[i].理论量 !== '' && response.data.data[i].理论量 !== undefined) {
  1039. response.data.data[i].理论量 = parseFloat(response.data.data[i].理论量)
  1040. }
  1041. if (response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined) {
  1042. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1043. }
  1044. if (response.data.data[i].计划取消重量 !== '' && response.data.data[i].计划取消重量 !== undefined) {
  1045. response.data.data[i].计划取消重量 = parseFloat(response.data.data[i].计划取消重量)
  1046. }
  1047. if (response.data.data[i].field3 !== '' && response.data.data[i].field3 !== undefined) {
  1048. response.data.data[i].field3 = parseFloat(response.data.data[i].field3)
  1049. }
  1050. if (response.data.data[i].正确数 !== '' && response.data.data[i].正确数 !== undefined) {
  1051. response.data.data[i].正确数 = parseFloat(response.data.data[i].正确数)
  1052. }
  1053. if (response.data.data[i].计划数 !== '' && response.data.data[i].计划数 !== undefined) {
  1054. response.data.data[i].计划数 = parseFloat(response.data.data[i].计划数)
  1055. }
  1056. if (response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined) {
  1057. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1058. }
  1059. }
  1060. this.row3.chart1.table.list = response.data.data
  1061. console.log(this.row3.chart1.table.list, '123')
  1062. this.row3.chart1.chartLine_data = response.data.list
  1063. this.row3.chart1.total = response.data.total
  1064. if (this.row3.chart1.chartLine_data.data1.length == 0) {
  1065. this.row3.chart1.chartLine_data.title = '暂无数据'
  1066. } else {
  1067. this.row3.chart1.chartLine_data.title = ''
  1068. }
  1069. this.roadChartLine4(this.row3.chart1.chartLine_data)
  1070. } else {
  1071. this.row3.chart1.list = []
  1072. }
  1073. setTimeout(() => {
  1074. this.row3.chart1.listLoading = false
  1075. }, 100)
  1076. })
  1077. },
  1078. roadChartLine4(chartLine_data) {
  1079. if (this.row3.chart1.chartLine != null) {
  1080. this.row3.chart1.chartLine.dispose()
  1081. }
  1082. this.row3.chart1.chartLine = echarts.init(document.getElementById('row3chartLine1'))
  1083. var option = {
  1084. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1085. tooltip: { trigger: 'axis' },
  1086. color: ['#1abd88', '#549be9', '#fd8d75'],
  1087. legend: {
  1088. data: ['计划准确率', '计划正确率', '计划准确率(去除取消重量)'],
  1089. top: 10, itemHeight: 7, itemWidth: 15, textStyle: { fontSize: 12 }
  1090. },
  1091. grid: {
  1092. top: '20%',
  1093. left: '10%',
  1094. right: '10%',
  1095. bottom: '10%',
  1096. containLabel: true
  1097. },
  1098. toolbox: {
  1099. show: true,
  1100. right: '2%',
  1101. feature: {}
  1102. },
  1103. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data1, name: '日期' },
  1104. yAxis: {
  1105. type: 'value', name: '百分比', axisLabel: { formatter: '{value} %' }
  1106. },
  1107. series: [
  1108. { name: '计划准确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#1abd88' }}}, data: chartLine_data.data2 },
  1109. { name: '计划正确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#549be9' }}}, data: chartLine_data.data3 },
  1110. { name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
  1111. ]
  1112. }
  1113. this.row3.chart1.chartLine.setOption(option)
  1114. window.onresize = function() {
  1115. this.row3.chart1.chartLine.resize()
  1116. }
  1117. },
  1118. // 泌乳牛干物质采食量
  1119. getChart5() {
  1120. this.row3.chart2.listLoading = true
  1121. GetReportform(this.row3.chart2.getdataListParm).then(response => {
  1122. console.log('泌乳牛干物质采食量数据', response)
  1123. if (response.data.list !== null) {
  1124. for (let i = 0; i < response.data.data.length; i++) {
  1125. if (response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined) {
  1126. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1127. }
  1128. if (response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined) {
  1129. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1130. }
  1131. }
  1132. this.row3.chart2.table.list = response.data.data
  1133. this.row3.chart2.chartLine_data = response.data.list
  1134. this.row3.chart2.total = response.data.total
  1135. if (this.row3.chart2.chartLine_data.data1.length == 0) {
  1136. this.row3.chart2.chartLine_data.title = '暂无数据'
  1137. } else {
  1138. this.row3.chart2.chartLine_data.title = ''
  1139. }
  1140. this.roadChartLine5(this.row3.chart2.chartLine_data)
  1141. } else {
  1142. this.row3.chart2.list = []
  1143. }
  1144. setTimeout(() => {
  1145. this.row3.chart2.listLoading = false
  1146. }, 100)
  1147. })
  1148. },
  1149. roadChartLine5(chartLine_data) {
  1150. if (this.row3.chart2.chartLine != null) {
  1151. this.row3.chart2.chartLine.dispose()
  1152. }
  1153. this.row3.chart2.chartLine = echarts.init(document.getElementById('row3chartLine2'))
  1154. var option = {
  1155. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1156. tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' }}},
  1157. grid: { top: '20%', left: '8%', right: '10%', bottom: '10%', containLabel: true },
  1158. legend: { data: ['泌乳牛干物质采食量', '泌乳牛产奶量'], right: 10, itemHeight: 7, itemWidth: 15 },
  1159. xAxis: [{ type: 'category', data: chartLine_data.data1 }],
  1160. yAxis: [{
  1161. splitLine: { show: false }, type: 'value', name: '泌乳牛干\n物质采食量', axisLabel: { formatter: '{value} ' }
  1162. }, {
  1163. splitLine: { show: false }, type: 'value', name: '泌乳牛产奶量', axisLabel: { formatter: '{value} ' }
  1164. }],
  1165. series: [{
  1166. name: '泌乳牛干物质采食量', type: 'bar', barWidth: 5, itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#5199e5' }}, data: chartLine_data.data2
  1167. }, {
  1168. name: '泌乳牛产奶量', type: 'line', barWidth: 5,
  1169. itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
  1170. }]
  1171. }
  1172. this.row3.chart2.chartLine.setOption(option)
  1173. window.onresize = function() {
  1174. this.row3.chart2.chartLine.resize()
  1175. }
  1176. },
  1177. // 成本统计
  1178. getChart6() {
  1179. this.row4.chart1.table.listLoading = true
  1180. this.row4.chart1.listLoading = true
  1181. GetReportform(this.row4.chart1.getdataListParm).then(response => {
  1182. console.log('成本统计数据', response.data.data)
  1183. console.log('成本统计数据', response.data.list)
  1184. if (response.data.list !== null) {
  1185. for (let i = 0; i < response.data.data.length; i++) {
  1186. if (response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined) {
  1187. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1188. }
  1189. if (response.data.data[i].field2 !== '' && response.data.data[i].field2 !== undefined) {
  1190. response.data.data[i].field2 = parseFloat(response.data.data[i].field2)
  1191. }
  1192. }
  1193. this.row4.chart1.table.list = response.data.data
  1194. this.row4.chart1.chartLine_data = response.data.list
  1195. this.row4.chart1.total = response.data.total
  1196. if (this.row4.chart1.chartLine_data.data1.length == 0) {
  1197. this.row4.chart1.chartLine_data.title = '暂无数据'
  1198. } else {
  1199. this.row4.chart1.chartLine_data.title = ''
  1200. }
  1201. this.roadChartLine6(this.row4.chart1.chartLine_data)
  1202. } else {
  1203. this.row4.chart1.list = []
  1204. }
  1205. setTimeout(() => {
  1206. this.row4.chart1.listLoading = false
  1207. this.row4.chart1.table.listLoading = false
  1208. }, 100)
  1209. })
  1210. },
  1211. roadChartLine6(chartLine_data) {
  1212. if (this.row4.chart1.chartLine != null) {
  1213. this.row4.chart1.chartLine.dispose()
  1214. }
  1215. console.log(chartLine_data, '===666')
  1216. this.row4.chart1.chartLine = echarts.init(document.getElementById('row4chartLine1'))
  1217. var option = {
  1218. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1219. grid: { left: '10%', right: '12%', bottom: '3%', containLabel: true },
  1220. tooltip: { trigger: 'axis', axisPointer: { type: 'cross', crossStyle: { color: '#999' }}},
  1221. legend: { data: ['公斤奶饲料成本', '单头牛饲料成本'], itemHeight: 7, itemWidth: 15 },
  1222. xAxis: [{ type: 'category', data: chartLine_data.data1, axisPointer: { type: 'shadow' }, name: '日期' }],
  1223. yAxis: [{
  1224. splitLine: { show: false }, type: 'value', name: '公斤奶\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1225. }, {
  1226. splitLine: { show: false }, type: 'value', name: '单头牛\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1227. }
  1228. ],
  1229. series: [{
  1230. name: '公斤奶饲料成本', type: 'bar', itemStyle: { normal: { color: '#1abd88' }}, data: chartLine_data.data2
  1231. }, {
  1232. name: '单头牛饲料成本', type: 'line', yAxisIndex: 1, itemStyle: { normal: { color: '#ff8d78' }}, data: chartLine_data.data3
  1233. }]
  1234. }
  1235. this.row4.chart1.chartLine.setOption(option)
  1236. window.onresize = function() {
  1237. this.row4.chart1.chartLine.resize()
  1238. }
  1239. },
  1240. // 混料实际重量统计
  1241. getChart7() {
  1242. this.row4.chart2.listLoading = true
  1243. GetReportform(this.row4.chart2.getdataListParm).then(response => {
  1244. console.log('混料实际重量统计数据', response.data.list)
  1245. if (response.data.list !== null) {
  1246. for (let i = 0; i < response.data.data.length; i++) {
  1247. if (response.data.data[i].field1 !== '' && response.data.data[i].field1 !== undefined) {
  1248. response.data.data[i].field1 = parseFloat(response.data.data[i].field1)
  1249. }
  1250. }
  1251. this.row4.chart2.table.list = response.data.data
  1252. this.row4.chart2.chartLine_data = response.data.list
  1253. this.row4.chart2.total = response.data.total
  1254. if (this.row4.chart2.chartLine_data.data1.length == 0) {
  1255. this.row4.chart2.chartLine_data.title = '暂无数据'
  1256. } else {
  1257. this.row4.chart2.chartLine_data.title = ''
  1258. }
  1259. this.roadChartLine7(this.row4.chart2.chartLine_data)
  1260. } else {
  1261. this.row4.chart2.list = []
  1262. }
  1263. setTimeout(() => {
  1264. this.row4.chart2.listLoading = false
  1265. }, 100)
  1266. })
  1267. },
  1268. roadChartLine7(chartLine_data) {
  1269. if (this.row4.chart2.chartLine != null) {
  1270. this.row4.chart2.chartLine.dispose()
  1271. }
  1272. this.row4.chart2.chartLine = echarts.init(document.getElementById('row4chartLine2'))
  1273. var option = {
  1274. title: { text: chartLine_data.title, x: 'center', y: 'center', textStyle: { color: '#909399', fontWeight: 'normal', fontSize: 12 }},
  1275. grid: { left: '10%', right: '10%', bottom: '3%', containLabel: true },
  1276. tooltip: { trigger: 'axis' },
  1277. legend: { data: [''] },
  1278. xAxis: [{ type: 'category', data: chartLine_data.data1, name: '日期' }],
  1279. yAxis: [
  1280. { type: 'value', name: '重量(kg)', axisLabel: { formatter: '{value}' }}
  1281. ],
  1282. series: [{
  1283. name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
  1284. }]
  1285. }
  1286. this.row4.chart2.chartLine.setOption(option)
  1287. window.onresize = function() {
  1288. this.row4.chart2.chartLine.resize()
  1289. }
  1290. },
  1291. getTable8() {
  1292. this.row4.table.listLoading = true
  1293. GetDataByName(this.row4.table.getdataListParm).then(response => {
  1294. console.log('库存预警table数据', response.data.list)
  1295. if (response.data.list !== null) {
  1296. this.row4.table.list = response.data.list
  1297. this.row4.table.total = response.data.total
  1298. } else {
  1299. this.row4.table.list = []
  1300. }
  1301. setTimeout(() => {
  1302. this.row4.table.listLoading = false
  1303. }, 100)
  1304. })
  1305. },
  1306. // 更多
  1307. handleMore() {
  1308. // this.$router.push({ path: '/inventoryManagement/Warning' })
  1309. this.$router.push({ name: 'Warning', params: { jmp: 'jmp' }})
  1310. },
  1311. // 导出
  1312. handleExport(item) {
  1313. console.log(item)
  1314. // 计划统计
  1315. if (item == 'row3chartLine1') {
  1316. console.log(this.row3.chart1.table.list)
  1317. var excelDatasTabChart1 = [
  1318. {
  1319. tHeader: ['日期', '计划执行重量(kg)', '配方理论重量(kg)', '计划准确率', '计划取消重量(kg)', '计划准确率(去除取消重量)', '计划正确数', '计划数', '计划正确率'],
  1320. filterVal: ['日期', '实际量', '理论量', 'field1', '计划取消重量', 'field3', '正确数', '计划数', 'field2'],
  1321. tableDatas: this.row3.chart1.table.list,
  1322. sheetName: '计划统计'
  1323. }
  1324. ]
  1325. json2excel(excelDatasTabChart1, '计划统计', true, 'xlsx')
  1326. } else if (item == 'row3chartLine2') {
  1327. // 泌乳牛采食量
  1328. var excelDatasTabChart2 = [
  1329. {
  1330. tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1331. filterVal: ['日期', 'field1', 'field2'],
  1332. tableDatas: this.row3.chart2.table.list,
  1333. sheetName: '泌乳牛采食量'
  1334. }
  1335. ]
  1336. json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1337. } else if (item == 'row4chartLine1') {
  1338. // 成本统计
  1339. console.log('成本统计')
  1340. // var excelDatasTabChart2 = [
  1341. // {
  1342. // tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1343. // filterVal: ['日期', 'field1', 'field2'],
  1344. // tableDatas: this.row3.chart2.table.list,
  1345. // sheetName: '泌乳牛采食量'
  1346. // }
  1347. // ]
  1348. // json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1349. }
  1350. },
  1351. handleTable(item) {
  1352. console.log(item)
  1353. if (item == 'row3chartLine1') {
  1354. console.log('计划统计表格')
  1355. this.row3.chart1.isTable = true
  1356. this.row3.chart1.isChart = false
  1357. } else if (item == 'row3chartLine2') {
  1358. console.log('泌乳牛采食量表格')
  1359. this.row3.chart2.isTable = true
  1360. this.row3.chart2.isChart = false
  1361. } else if (item == 'row4chartLine1') {
  1362. console.log('成本统计表格')
  1363. this.row4.chart1.isTable = true
  1364. this.row4.chart1.isChart = false
  1365. } else if (item == 'row4chartLine2') {
  1366. console.log('混料实际重量统计表格')
  1367. this.row4.chart2.isTable = true
  1368. this.row4.chart2.isChart = false
  1369. }
  1370. },
  1371. handleChart(item) {
  1372. console.log(item)
  1373. // 显示切换图表
  1374. if (item == 'row3chartLine1') {
  1375. console.log('计划统计图表')
  1376. this.row3.chart1.isTable = false
  1377. this.row3.chart1.isChart = true
  1378. this.getChart4()
  1379. } else if (item == 'row3chartLine2') {
  1380. console.log('泌乳牛采食量图表')
  1381. this.row3.chart2.isTable = false
  1382. this.row3.chart2.isChart = true
  1383. this.getChart5()
  1384. } else if (item == 'row4chartLine1') {
  1385. console.log('成本统计图表')
  1386. this.row4.chart1.isTable = false
  1387. this.row4.chart1.isChart = true
  1388. this.getChart6()
  1389. } else if (item == 'row4chartLine2') {
  1390. console.log('混料实际重量统计图表')
  1391. this.row4.chart2.isTable = false
  1392. this.row4.chart2.isChart = true
  1393. this.getChart7()
  1394. }
  1395. }
  1396. }
  1397. }
  1398. </script>
  1399. <style lang="scss" scoped>
  1400. .Title{
  1401. 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;
  1402. }
  1403. .dashboard-editor-container {
  1404. background-color: #F4F4F4;
  1405. min-height: 100vh;
  1406. .news{
  1407. width: 70%;
  1408. height: 30px;
  1409. background: #fff;
  1410. margin: 0 auto;
  1411. border-radius: 10px;
  1412. text-align: center;
  1413. line-height: 30px;
  1414. color: red;
  1415. b{color: #000;}
  1416. }
  1417. .bottom{
  1418. padding:0 30px;
  1419. h4{text-align: right;}
  1420. .grid-content{
  1421. background: #fff;height: 90px;
  1422. border-radius: 10px;
  1423. }
  1424. .one{
  1425. border: 1px solid #82CBB3;height: 90px;
  1426. .Left{
  1427. float: left;
  1428. width: 65px;
  1429. text-align: center;
  1430. i{font-size: 36px;color:#82CBB3;line-height: 90px;}
  1431. }
  1432. .Right{
  1433. float: left;
  1434. margin-top:15px;
  1435. height: 60px;
  1436. font-weight: 600;
  1437. font-size: 14px;
  1438. line-height: 30px;
  1439. span{
  1440. display: inline-block;
  1441. width: 130px;
  1442. text-align: right;
  1443. }
  1444. }
  1445. }
  1446. .two{
  1447. border: 1px solid #FF9900;
  1448. .Left{
  1449. float: left;
  1450. width: 65px;
  1451. text-align: center;
  1452. i{font-size: 36px;color:#FF9900;line-height: 90px;}
  1453. }
  1454. .Right{
  1455. float: left;
  1456. margin-top:15px;
  1457. height: 60px;
  1458. font-weight: 600;
  1459. font-size: 14px;
  1460. line-height: 30px;
  1461. span{
  1462. display: inline-block;
  1463. width: 130px;
  1464. text-align: right;
  1465. }
  1466. }
  1467. }
  1468. .three{
  1469. border: 1px solid #0099FF;
  1470. .Left{
  1471. float: left;
  1472. width: 65px;
  1473. text-align: center;
  1474. i{font-size: 36px;color:#0099FF;line-height: 90px;}
  1475. }
  1476. .Right{
  1477. float: left;
  1478. height: 60px;
  1479. font-weight: 600;
  1480. font-size: 14px;
  1481. line-height: 30px;
  1482. margin-top:15px;
  1483. span{
  1484. display: inline-block;
  1485. width: 130px;
  1486. text-align: right;
  1487. }
  1488. }
  1489. }
  1490. .four{
  1491. border: 1px solid #FF5C5C;
  1492. .Left{
  1493. float: left;
  1494. width: 55px;
  1495. text-align: center;
  1496. i{font-size: 36px;color:#FF5C5C;line-height: 90px;}
  1497. }
  1498. .Right{
  1499. float: left;
  1500. flex: 1;
  1501. height: 60px;
  1502. font-weight: 600;
  1503. font-size: 14px;
  1504. line-height: 30px;
  1505. margin-top:15px;
  1506. span{
  1507. display: inline-block;
  1508. width: 150px;
  1509. text-align: right;
  1510. }
  1511. }
  1512. }
  1513. .car{
  1514. width:100%;height:150px;
  1515. display:flex;
  1516. display: -webkit-flex;
  1517. -webkit-flex-direction:row;
  1518. i{font-size: 50px;width:50px;display: block;line-height: 150px;}
  1519. .carList{
  1520. flex:1;height: 130px;
  1521. .list{
  1522. height: 130px;color: #fff;
  1523. // box-shadow: #000 0px 0px 10px;
  1524. // border-radius: 10px;
  1525. .list-l{
  1526. p{
  1527. padding-left:10px;font-size:13px;line-height: 16px; text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1528. }
  1529. }
  1530. .list-r{
  1531. p{
  1532. font-size:13px;line-height: 16px;text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1533. }
  1534. }
  1535. }
  1536. }
  1537. }
  1538. }
  1539. }
  1540. </style>
  1541. <style>
  1542. .app-main{background:#f5f5f5;}
  1543. </style>
  1544. <style lang="scss" scoped>
  1545. .dashboard-editor-container{padding-left: 10px;background: #f5f5f5;padding-bottom: 10px;}
  1546. // 公共
  1547. .img-t{position: absolute;left: 0;right: 0;margin: 30px auto;width: 31%;height: 31%;background-size: 100% 100%;}
  1548. .row1-c-l-c{
  1549. margin: 30px auto;border: 1px solid #eee;height: 40%;width: 50%;border-radius: 50%;text-align: center;display:table;
  1550. span{
  1551. height:100%;display:table-cell;vertical-align: middle;font-size:14px;color: #009C69;
  1552. b{padding-bottom: 10px;font-size: 16px;}
  1553. }
  1554. }
  1555. .row1-c-l-b{
  1556. width: 100%;text-align: center;display:table;font-size: 12px;
  1557. // div{
  1558. // font-size: 12px;height:100%;display:table-cell;vertical-align: middle;color: #323232;padding: 0 10px;width: 100%;
  1559. // span{text-align: right;width: 75%;display: block;float: left;}
  1560. // b{float: left;display: block;width: 25%;}
  1561. // }
  1562. }
  1563. .title{
  1564. height: 36px;padding-top: 7px;line-height: 36px;position: relative;
  1565. .img-title{
  1566. position: absolute;top: 10px; right:10px;bottom:0;left:20px;width: 30px;height: 30px;background: url(../../../assets/images/index/row-bg3.png) no-repeat;
  1567. }
  1568. .content{font-size: 18px;position: absolute;top: 7px;left: 55px;}
  1569. }
  1570. .title1{
  1571. height: 36px;padding-top: 7px;line-height: 36px;position: relative;
  1572. .img-title{
  1573. position: absolute;top: 10px; right:10px;bottom:0;left:10px;
  1574. width: 25px;height: 25px;
  1575. img{width: 25px;height: 25px;}
  1576. }
  1577. .content{font-size: 16px;position: absolute;top: 7px;left: 40px;}
  1578. }
  1579. .button{
  1580. height: 30px;
  1581. .exportTable{float: right;margin-right: 5px;}
  1582. }
  1583. .dashboard{
  1584. display: flex;margin-top: 10px;
  1585. .dashboard-l{
  1586. // width: 540px;
  1587. width: 30%;
  1588. .row1{
  1589. height: 520px;
  1590. .row1-t{
  1591. background: #fff; height: 50px; color: #f28b46;
  1592. .row1-t-l{
  1593. .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;}
  1594. .content{float:left;width: 54%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 14px;line-height: 50px;padding-left: 3px;}
  1595. .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;}
  1596. }
  1597. .row1-t-r{padding-right: 20px;text-align: right;line-height: 50px;}
  1598. }
  1599. .row1-c{
  1600. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1601. .row1-c-l{
  1602. background: #fff;width:49%;height:225px;border-radius:3px;margin-right: 1%;position: relative;
  1603. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t1.png) no-repeat; background-size: 100% 100%;}
  1604. }
  1605. .row1-c-r{
  1606. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1607. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t2.png) no-repeat; background-size: 100% 100%;}
  1608. }
  1609. }
  1610. .row1-b{
  1611. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1612. .row1-b-l{
  1613. background: #fff;width:49%;height:225px;border-radius:3px;margin-right:1%;position: relative;
  1614. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t4.png) no-repeat; background-size: 100% 100%;}
  1615. }
  1616. .row1-b-r{
  1617. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1618. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t3.png) no-repeat; background-size: 100% 100%;}
  1619. }
  1620. }
  1621. }
  1622. .row2{
  1623. margin-top:10px;height: 375px;background: #fff;
  1624. .img-title{background-position: 0 0;}
  1625. .todayPlan{
  1626. display: flex; flex-direction: row;margin-top: 10px;
  1627. div{
  1628. flex: 1;position: relative;
  1629. .bottom{
  1630. width: 99%;height: 70px;background: #f9f9f9;margin: 30px auto 5px;display: flex; flex-direction: row;text-align: center;
  1631. div{
  1632. flex: 1;height: 42px;color: #333333;
  1633. }
  1634. .bottom-l{
  1635. border-right: 1px solid #e0e0e0;margin-top: 15px;width: 100%;
  1636. .bottom-l-t{
  1637. height: 30px;
  1638. b{font-size: 18px;}
  1639. }
  1640. .bottom-l-b{font-size: 12px;}
  1641. }
  1642. .bottom-r{
  1643. margin-top: 15px;width: 100%;
  1644. .bottom-r-t{height: 30px;padding-left: 10px;}
  1645. .bottom-r-b{padding-left: 10px;font-size: 12px;}
  1646. }
  1647. }
  1648. }
  1649. }
  1650. }
  1651. .row3{
  1652. margin-top:10px;height: 375px;background: #fff;
  1653. .img-title{background-position: 0 -90px;}
  1654. }
  1655. }
  1656. .dashboard-r{
  1657. margin-left: 10px;flex:1;
  1658. .row1{
  1659. height: 520px;background: #fff;
  1660. .img-title{background-position: 0 -240px;}
  1661. #row2chartLine3{height: 270px;margin-top: 10px;}
  1662. .carsLength{
  1663. padding: 13px 0 0 22px;line-height: 38px;font-size: 18px;font-weight: 700;
  1664. }
  1665. .car{
  1666. height: 140px;position: relative;
  1667. .iconLeft{width:32px;height:32px;position:absolute;top:46px;left:15px; z-index:1;}
  1668. .iconRight{width:32px;height:32px;position:absolute;top:46px;right: 20px ;z-index:1;}
  1669. .carList{
  1670. padding:0 30px;height: 120px;overflow: hidden;display: flex;
  1671. .listW{
  1672. background: #f3f9f7;
  1673. float: left;
  1674. // flex: 1 1;
  1675. margin: 0 5px;position: relative;width: 50%;
  1676. .list{
  1677. width: 100%;height: 100%;border-radius: 5px;border:1px solid #000;
  1678. .list-t{
  1679. display: flex;border-bottom: 1px solid #f1f1f1;
  1680. .list-t-t{
  1681. flex: 1 1;width: 0;font-size: 12px;line-height: 22px;padding: 25px 5px 15px;text-align: center;
  1682. span{ display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  1683. }
  1684. }
  1685. .list-b{
  1686. display: flex; text-align: center;margin-top: 14px;color: #323232;
  1687. .list-b-l{
  1688. flex: 1;width: 0; height: 40px; position: relative;
  1689. .left{
  1690. .num{
  1691. font-size: 12px;
  1692. b{font-size: 12px;}
  1693. }
  1694. .weight{font-size: 12px;}
  1695. }
  1696. .right{
  1697. height: 30px;width: 1px;background: #e0e0e0;position: absolute;right: 0;top: 0;bottom: 0;margin-top:auto;margin-bottom:auto
  1698. }
  1699. }
  1700. }
  1701. }
  1702. .img-checked{width: 30px;height: 28px;position: absolute;top: 0;right: 0;background: url(../../../assets/images/index/row-r6.png);}
  1703. }
  1704. }
  1705. }
  1706. }
  1707. .row2{
  1708. margin-top:10px;height: 375px;
  1709. display: flex; flex-direction: row;
  1710. .row2-l{
  1711. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1712. .img-title{background-position: 0 -30px;}
  1713. }
  1714. .row2-r{
  1715. background: #fff;height:375px;border-radius:3px;flex: 1;
  1716. .img-title{background-position: 0 -60px;}
  1717. }
  1718. }
  1719. .row3{
  1720. margin-top:10px;height: 375px;
  1721. display: flex; flex-direction: row;
  1722. .row3-l{
  1723. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1724. .img-title{background-position: 0 -120px;}
  1725. }
  1726. .row3-r{
  1727. background: #fff;height:375px;border-radius:3px;flex: 1;
  1728. .img-title{background-position: 0 -150px;}
  1729. }
  1730. }
  1731. }
  1732. }
  1733. </style>