index.vue 74 KB

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