4e9c5efde89a7e862d87cc0d73b6faec6168ab10.svn-base 67 KB

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