c3fa002786dffe86970252ca4c8cf1e6ddf54134.svn-base 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691
  1. <template>
  2. <div ref="dashboardEditor" class="dashboard-editor-container">
  3. <div class="dashboard">
  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>次
  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>次
  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%;top:36px;">
  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>饲料/栏舍:{{ item.fname }}</span>
  158. </el-tooltip>
  159. </div>
  160. <div class="list-t-t">
  161. <el-tooltip :content="item.remark" placement="top">
  162. <span>描述:{{ item.remark }}</span>
  163. </el-tooltip>
  164. </div>
  165. </div>
  166. <div class="list-b">
  167. <div class="list-b-l">
  168. <div class="left">
  169. <div class="num"><b>{{ row2.chart2.chartLine_data.data1 }}</b>Kg</div>
  170. <div class="weight">完成重量</div>
  171. </div>
  172. <div class="right" />
  173. </div>
  174. <div class="list-b-l">
  175. <div class="left">
  176. <div class="num"><b>{{ item.leftweight }}</b>Kg</div>
  177. <div class="weight">剩余重量</div>
  178. </div>
  179. <div class="right" />
  180. </div>
  181. <div class="list-b-l">
  182. <div class="left">
  183. <div class="num"><b>{{ item.nowweight }}</b>Kg</div>
  184. <div class="weight">车辆当前载重</div>
  185. </div>
  186. <div class="right" />
  187. </div>
  188. <div class="list-b-l">
  189. <div class="left">
  190. <div class="num"><b>{{ row2.chart2.chartLine_data.data2 }}</b>Kg</div>
  191. <div class="weight">计划重量</div>
  192. </div>
  193. <div class="right" />
  194. </div>
  195. <div class="list-b-l">
  196. <div class="left">
  197. <div class="num"><b>{{ item.donerate }}</b></div>
  198. <div class="weight">完成度</div>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. <div v-if="item.isChecked" ref="checked" class="img-checked" />
  204. </div>
  205. </div>
  206. <div ref="iconRight" class="iconRight" @click="handleRight">
  207. <img v-if="row2.chart3.isRightA" src="../../../assets/images/index/row-r5.png" class="img-title">
  208. <img v-if="row2.chart3.isRight" src="../../../assets/images/index/row-r4.png" class="img-title">
  209. </div>
  210. </div>
  211. </div>
  212. <div class="row2">
  213. <div class="row2-l" style="position: relative;">
  214. <div class="title">
  215. <div class="img-title" />
  216. <span class="content">计划统计</span>
  217. </div>
  218. <div v-if="row3.chart1.isChart" class="button">
  219. <div class="exportTable" @click="handleExport('row3chartLine1')">导出</div>
  220. <div class="exportTable" @click="handleTable('row3chartLine1')">切换表格</div>
  221. </div>
  222. <div v-if="row3.chart1.isChart" id="row3chartLine1" style="background: #fff;height:310px;" />
  223. <div v-if="row3.chart1.isTable" class="table" style="position: absolute;width:100%;top:36px;">
  224. <div class="button">
  225. <div class="exportTable" @click="handleExport('row3chartLine1')">导出</div>
  226. <div class="exportTable" @click="handleChart('row3chartLine1')">切换图表</div>
  227. </div>
  228. <el-table
  229. :key="row3.chart1.table.tableKey"
  230. v-loading="row3.chart1.table.listLoading"
  231. element-loading-text="给我一点时间"
  232. :data="row3.chart1.table.list"
  233. border
  234. fit
  235. highlight-current-row
  236. style="width: 100%;margin-top: 10px;"
  237. height="300"
  238. :row-style="rowStyle"
  239. :cell-style="cellStyle"
  240. class="elTable table-fixed"
  241. >
  242. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  243. <el-table-column label="计划执行重量(kg)" 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="计划准确率" sortable min-width="110px" align="center" prop="field1" />
  246. <el-table-column label="计划取消重量(kg)" sortable min-width="110px" align="center" prop="计划取消重量" />
  247. <el-table-column label="计划准确率(去除取消重量)" sortable min-width="110px" align="center" prop="field3" />
  248. <el-table-column label="计划正确数" sortable min-width="110px" align="center" prop="正确数" />
  249. <el-table-column label="计划数" sortable min-width="110px" align="center" prop="计划数" />
  250. <el-table-column label="计划正确率" sortable min-width="110px" align="center" prop="field2" />
  251. </el-table>
  252. </div>
  253. </div>
  254. <div class="row2-r" style="position: relative;">
  255. <div class="title">
  256. <div class="img-title" />
  257. <span class="content">泌乳牛干物质采食量</span>
  258. </div>
  259. <div v-if="row3.chart2.isChart" class="button">
  260. <div class="exportTable" @click="handleExport('row3chartLine2')">导出</div>
  261. <div class="exportTable" @click="handleTable('row3chartLine2')">切换表格</div>
  262. </div>
  263. <div v-if="row3.chart2.isChart" id="row3chartLine2" style="background: #fff;height:310px;" />
  264. <div v-if="row3.chart2.isTable" class="table" style="position: absolute;width:100%;top:36px;">
  265. <div class="button">
  266. <div class="exportTable" @click="handleExport('row3chartLine2')">导出</div>
  267. <div class="exportTable" @click="handleChart('row3chartLine2')">切换图表</div>
  268. </div>
  269. <el-table
  270. :key="row3.chart2.table.tableKey"
  271. v-loading="row3.chart2.table.listLoading"
  272. element-loading-text="给我一点时间"
  273. :data="row3.chart2.table.list"
  274. border
  275. fit
  276. highlight-current-row
  277. style="width: 100%;margin-top: 10px;"
  278. height="300"
  279. :row-style="rowStyle"
  280. :cell-style="cellStyle"
  281. class="elTable table-fixed"
  282. >
  283. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  284. <el-table-column label="泌乳牛采食量(kg)" sortable min-width="110px" align="center" prop="field1" />
  285. <el-table-column label="泌乳牛产奶量(kg)" sortable min-width="110px" align="center" prop="field2" />
  286. </el-table>
  287. </div>
  288. </div>
  289. </div>
  290. <div class="row3">
  291. <div class="row3-l" style="position: relative;">
  292. <div class="title">
  293. <div class="img-title" />
  294. <span class="content">混料实际重量统计</span>
  295. </div>
  296. <div v-if="row4.chart2.isChart" class="button">
  297. <div class="exportTable" @click="handleExport('row4chartLine2')">导出</div>
  298. <div class="exportTable" @click="handleTable('row4chartLine2')">切换表格</div>
  299. </div>
  300. <div v-if="row4.chart2.isChart" id="row4chartLine2" style="background: #fff;height:310px;" />
  301. <div v-if="row4.chart2.isTable" class="table" style="position: absolute;width:100%;top:36px;">
  302. <div class="button">
  303. <div class="exportTable" @click="handleExport('row4chartLine2')">导出</div>
  304. <div class="exportTable" @click="handleChart('row4chartLine2')">切换图表</div>
  305. </div>
  306. <el-table
  307. :key="row4.chart2.table.tableKey"
  308. v-loading="row4.chart2.table.listLoading"
  309. element-loading-text="给我一点时间"
  310. :data="row4.chart2.table.list"
  311. border
  312. fit
  313. highlight-current-row
  314. style="width: 100%;"
  315. height="400"
  316. :row-style="rowStyle"
  317. :cell-style="cellStyle"
  318. class="elTable table-fixed"
  319. >
  320. <el-table-column label="日期" sortable min-width="110px" align="center" prop="日期" />
  321. <el-table-column label="重量" sortable min-width="110px" align="center" prop="field1" />
  322. </el-table>
  323. </div>
  324. </div>
  325. <div class="row3-r">
  326. <div class="title">
  327. <div class="img-title" />
  328. <span class="content">库存预警</span>
  329. <a style="float: right;color: #009C69;font-size: 12px;margin-right: 10px;" @click="handleMore">查看更多 &nbsp;>></a>
  330. </div>
  331. <div id="table" style="height: 330px;background: #fff;">
  332. <el-table
  333. :key="row4.table.tableKey"
  334. v-loading="row4.table.listLoading"
  335. element-loading-text="给我一点时间"
  336. :data="row4.table.list"
  337. border
  338. fit
  339. highlight-current-row
  340. style="width: 98%;background: #fff;margin-top: 10px;"
  341. height="330"
  342. :row-style="rowStyle"
  343. :cell-style="cellStyle"
  344. class="elTable table-fixed"
  345. >
  346. <el-table-column label="序号" type="index" min-width="80px" align="center" />
  347. <el-table-column label="饲料名称" min-width="80px" align="center" prop="feedname" />
  348. <el-table-column label="库存量(kg)" min-width="70px" align="center" prop="stockweight" />
  349. <el-table-column label="剩余使用天数" min-width="80px" align="center" prop="ldays" />
  350. </el-table>
  351. <!-- <span style="line-height: 50px;color:#82CBB3;text-align: center;width: 100%;display: inline-block;cursor:pointer;" @click="handleMore">查看更多</span> -->
  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: 50 + 'px', height: 45 + '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. this.roadChartLine4(this.row3.chart1.chartLine_data)
  1046. } else {
  1047. this.row3.chart1.list = []
  1048. }
  1049. setTimeout(() => {
  1050. this.row3.chart1.listLoading = false
  1051. }, 100)
  1052. })
  1053. },
  1054. roadChartLine4(chartLine_data) {
  1055. if (this.row3.chart1.chartLine != null) {
  1056. this.row3.chart1.chartLine.dispose()
  1057. }
  1058. this.row3.chart1.chartLine = echarts.init(document.getElementById('row3chartLine1'))
  1059. var option = {
  1060. title: {
  1061. text: ''
  1062. },
  1063. tooltip: {
  1064. trigger: 'axis'
  1065. },
  1066. color: ['#1abd88', '#549be9', '#fd8d75'],
  1067. legend: {
  1068. data: ['计划准确率', '计划正确率', '计划准确率(去除取消重量)'],
  1069. top: 10, itemHeight: 7, itemWidth: 15, textStyle: { fontSize: 12 }
  1070. },
  1071. grid: {
  1072. top: '20%',
  1073. left: '0%',
  1074. right: '8%',
  1075. bottom: '10%',
  1076. containLabel: true
  1077. },
  1078. toolbox: {
  1079. show: true,
  1080. right: '2%',
  1081. feature: {}
  1082. },
  1083. xAxis: { type: 'category', boundaryGap: false, data: chartLine_data.data1, name: '日期' },
  1084. yAxis: {
  1085. type: 'value', name: '百分比', axisLabel: { formatter: '{value} %' }
  1086. },
  1087. series: [
  1088. { name: '计划准确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#1abd88' }}}, data: chartLine_data.data2 },
  1089. { name: '计划正确率', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#549be9' }}}, data: chartLine_data.data3 },
  1090. { name: '计划准确率(去除取消重量)', type: 'line', symbol: 'none', smooth: true, itemStyle: { normal: { lineStyle: { color: '#fd8d75' }}}, data: chartLine_data.data4 }
  1091. ]
  1092. }
  1093. this.row3.chart1.chartLine.setOption(option)
  1094. window.onresize = function() {
  1095. this.row3.chart1.chartLine.resize()
  1096. }
  1097. },
  1098. // 泌乳牛干物质采食量
  1099. getChart5() {
  1100. this.row3.chart2.listLoading = true
  1101. GetReportform(this.row3.chart2.getdataListParm).then(response => {
  1102. console.log('泌乳牛干物质采食量数据', response.data.list)
  1103. if (response.data.list !== null) {
  1104. this.row3.chart2.table.list = response.data.data
  1105. this.row3.chart2.chartLine_data = response.data.list
  1106. this.row3.chart2.total = response.data.total
  1107. this.roadChartLine5(this.row3.chart2.chartLine_data)
  1108. } else {
  1109. this.row3.chart2.list = []
  1110. }
  1111. setTimeout(() => {
  1112. this.row3.chart2.listLoading = false
  1113. }, 100)
  1114. })
  1115. },
  1116. roadChartLine5(chartLine_data) {
  1117. if (this.row3.chart2.chartLine != null) {
  1118. this.row3.chart2.chartLine.dispose()
  1119. }
  1120. this.row3.chart2.chartLine = echarts.init(document.getElementById('row3chartLine2'))
  1121. var option = {
  1122. tooltip: { trigger: 'axis' },
  1123. grid: { top: '20%', left: '8%', right: '8%', bottom: '10%', containLabel: true },
  1124. legend: { data: ['泌乳牛干物质采食量', '泌乳牛产奶量'], right: 10, itemHeight: 7, itemWidth: 15 },
  1125. xAxis: [{ type: 'category', data: chartLine_data.data1 }],
  1126. yAxis: [{
  1127. splitLine: { show: false }, type: 'value', name: '泌乳牛干\n物质采食量', axisLabel: { formatter: '{value} ' }
  1128. }, {
  1129. splitLine: { show: false }, type: 'value', name: '泌乳牛产奶量', axisLabel: { formatter: '{value} ' }
  1130. }],
  1131. series: [{
  1132. name: '泌乳牛干物质采食量', type: 'bar', barWidth: 5, itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#5199e5' }}, data: chartLine_data.data2
  1133. }, {
  1134. name: '泌乳牛产奶量', type: 'line', barWidth: 5,
  1135. itemStyle: { barBorderRadius: [18, 18, 0, 0], normal: { color: '#36c293' }}, yAxisIndex: 1, data: chartLine_data.data3
  1136. }]
  1137. }
  1138. this.row3.chart2.chartLine.setOption(option)
  1139. window.onresize = function() {
  1140. this.row3.chart2.chartLine.resize()
  1141. }
  1142. },
  1143. // 成本统计
  1144. getChart6() {
  1145. this.row4.chart1.listLoading = true
  1146. GetReportform(this.row4.chart1.getdataListParm).then(response => {
  1147. console.log('成本统计数据', response.data.data)
  1148. console.log('成本统计数据', response.data.list)
  1149. if (response.data.list !== null) {
  1150. this.row4.chart1.table.list = response.data.data
  1151. this.row4.chart1.chartLine_data = response.data.list
  1152. this.row4.chart1.total = response.data.total
  1153. this.roadChartLine6(this.row4.chart1.chartLine_data)
  1154. } else {
  1155. this.row4.chart1.list = []
  1156. }
  1157. setTimeout(() => {
  1158. this.row4.chart1.listLoading = false
  1159. }, 100)
  1160. })
  1161. },
  1162. roadChartLine6(chartLine_data) {
  1163. if (this.row4.chart1.chartLine != null) {
  1164. this.row4.chart1.chartLine.dispose()
  1165. }
  1166. console.log(chartLine_data)
  1167. this.row4.chart1.chartLine = echarts.init(document.getElementById('row4chartLine1'))
  1168. var option = {
  1169. title: { text: '' },
  1170. grid: { left: '8%', right: '8%', bottom: '3%', containLabel: true },
  1171. tooltip: { trigger: 'axis' },
  1172. legend: { data: ['公斤奶饲料成本', '单头牛饲料成本'], itemHeight: 7, itemWidth: 15 },
  1173. xAxis: [{ type: 'category', data: chartLine_data.data1, axisPointer: { type: 'shadow' }, name: '日期' }],
  1174. yAxis: [{
  1175. splitLine: { show: false }, type: 'value', name: '公斤奶\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1176. }, {
  1177. splitLine: { show: false }, type: 'value', name: '单头牛\n饲料成本(元)', axisLabel: { formatter: '{value}' }
  1178. }
  1179. ],
  1180. series: [{
  1181. name: '公斤奶饲料成本', type: 'bar', itemStyle: { normal: { color: '#1abd88' }}, data: chartLine_data.data2
  1182. }, {
  1183. name: '单头牛饲料成本', type: 'line', yAxisIndex: 1, itemStyle: { normal: { color: '#ff8d78' }}, data: chartLine_data.data3
  1184. }]
  1185. }
  1186. this.row4.chart1.chartLine.setOption(option)
  1187. window.onresize = function() {
  1188. this.row4.chart1.chartLine.resize()
  1189. }
  1190. },
  1191. getChart7() {
  1192. this.row4.chart2.listLoading = true
  1193. GetReportform(this.row4.chart2.getdataListParm).then(response => {
  1194. console.log('出库统计数据', response.data.list)
  1195. if (response.data.list !== null) {
  1196. this.row4.chart2.table.list = response.data.data
  1197. this.row4.chart2.chartLine_data = response.data.list
  1198. console.log(this.row4.chart2.chartLine_data)
  1199. this.row4.chart2.total = response.data.total
  1200. this.roadChartLine7(this.row4.chart2.chartLine_data)
  1201. } else {
  1202. this.row4.chart2.list = []
  1203. }
  1204. setTimeout(() => {
  1205. this.row4.chart2.listLoading = false
  1206. }, 100)
  1207. })
  1208. },
  1209. roadChartLine7(chartLine_data) {
  1210. if (this.row4.chart2.chartLine != null) {
  1211. this.row4.chart2.chartLine.dispose()
  1212. }
  1213. this.row4.chart2.chartLine = echarts.init(document.getElementById('row4chartLine2'))
  1214. var option = {
  1215. title: { text: '' },
  1216. grid: { left: '3%', right: '10%', bottom: '3%', containLabel: true },
  1217. tooltip: { trigger: 'axis' },
  1218. legend: { data: [''] },
  1219. xAxis: [{ type: 'category', data: chartLine_data.data1, name: '日期' }],
  1220. yAxis: [
  1221. { type: 'value', name: '重量(kg)', axisLabel: { formatter: '{value}' }}
  1222. ],
  1223. series: [{
  1224. name: '重量', type: 'bar', stack: '广告', itemStyle: { normal: { color: '#36C293' }}, data: chartLine_data.data2
  1225. }]
  1226. }
  1227. this.row4.chart2.chartLine.setOption(option)
  1228. window.onresize = function() {
  1229. this.row4.chart2.chartLine.resize()
  1230. }
  1231. },
  1232. getTable8() {
  1233. this.row4.table.listLoading = true
  1234. GetDataByName(this.row4.table.getdataListParm).then(response => {
  1235. console.log('库存预警table数据', response.data.list)
  1236. if (response.data.list !== null) {
  1237. this.row4.table.list = response.data.list
  1238. this.row4.table.total = response.data.total
  1239. } else {
  1240. this.row4.table.list = []
  1241. }
  1242. setTimeout(() => {
  1243. this.row4.table.listLoading = false
  1244. }, 100)
  1245. })
  1246. },
  1247. // 更多
  1248. handleMore() {
  1249. this.$router.push({ path: '/inventoryManagement/Warning' })
  1250. },
  1251. // 导出
  1252. handleExport(item) {
  1253. console.log(item)
  1254. // 计划统计
  1255. if (item == 'row3chartLine1') {
  1256. console.log(this.row3.chart1.table.list)
  1257. var excelDatasTabChart1 = [
  1258. {
  1259. tHeader: ['日期', '计划执行重量(kg)', '配方理论重量(kg)', '计划准确率', '计划取消重量(kg)', '计划准确率(去除取消重量)', '计划正确数', '计划数', '计划正确率'],
  1260. filterVal: ['日期', '实际量', '理论量', 'field1', '计划取消重量', 'field3', '正确数', '计划数', 'field2'],
  1261. tableDatas: this.row3.chart1.table.list,
  1262. sheetName: '计划统计'
  1263. }
  1264. ]
  1265. json2excel(excelDatasTabChart1, '计划统计', true, 'xlsx')
  1266. } else if (item == 'row3chartLine2') {
  1267. // 泌乳牛采食量
  1268. var excelDatasTabChart2 = [
  1269. {
  1270. tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1271. filterVal: ['日期', 'field1', 'field2'],
  1272. tableDatas: this.row3.chart2.table.list,
  1273. sheetName: '泌乳牛采食量'
  1274. }
  1275. ]
  1276. json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1277. } else if (item == 'row4chartLine1') {
  1278. // 成本统计
  1279. console.log('成本统计')
  1280. // var excelDatasTabChart2 = [
  1281. // {
  1282. // tHeader: ['日期', '泌乳牛采食量(kg)', '泌乳牛产奶量(kg)'],
  1283. // filterVal: ['日期', 'field1', 'field2'],
  1284. // tableDatas: this.row3.chart2.table.list,
  1285. // sheetName: '泌乳牛采食量'
  1286. // }
  1287. // ]
  1288. // json2excel(excelDatasTabChart2, '泌乳牛采食量', true, 'xlsx')
  1289. }
  1290. },
  1291. handleTable(item) {
  1292. console.log(item)
  1293. if (item == 'row3chartLine1') {
  1294. console.log('计划统计表格')
  1295. this.row3.chart1.isTable = true
  1296. this.row3.chart1.isChart = false
  1297. } else if (item == 'row3chartLine2') {
  1298. console.log('泌乳牛采食量表格')
  1299. this.row3.chart2.isTable = true
  1300. this.row3.chart2.isChart = false
  1301. } else if (item == 'row4chartLine1') {
  1302. console.log('成本统计表格')
  1303. this.row4.chart1.isTable = true
  1304. this.row4.chart1.isChart = false
  1305. } else if (item == 'row4chartLine2') {
  1306. console.log('混料实际重量统计表格')
  1307. this.row4.chart2.isTable = true
  1308. this.row4.chart2.isChart = false
  1309. }
  1310. },
  1311. handleChart(item) {
  1312. console.log(item)
  1313. // 显示切换图表
  1314. if (item == 'row3chartLine1') {
  1315. console.log('计划统计图表')
  1316. this.row3.chart1.isTable = false
  1317. this.row3.chart1.isChart = true
  1318. this.getChart4()
  1319. } else if (item == 'row3chartLine2') {
  1320. console.log('泌乳牛采食量图表')
  1321. this.row3.chart2.isTable = false
  1322. this.row3.chart2.isChart = true
  1323. this.getChart5()
  1324. } else if (item == 'row4chartLine1') {
  1325. console.log('成本统计图表')
  1326. this.row4.chart1.isTable = false
  1327. this.row4.chart1.isChart = true
  1328. this.getChart6()
  1329. } else if (item == 'row4chartLine2') {
  1330. console.log('混料实际重量统计图表')
  1331. this.row4.chart2.isTable = false
  1332. this.row4.chart2.isChart = true
  1333. }
  1334. }
  1335. }
  1336. }
  1337. </script>
  1338. <style lang="scss" scoped>
  1339. .Title{
  1340. 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;
  1341. }
  1342. .dashboard-editor-container {
  1343. background-color: #F4F4F4;
  1344. min-height: 100vh;
  1345. .news{
  1346. width: 70%;
  1347. height: 30px;
  1348. background: #fff;
  1349. margin: 0 auto;
  1350. border-radius: 10px;
  1351. text-align: center;
  1352. line-height: 30px;
  1353. color: red;
  1354. b{color: #000;}
  1355. }
  1356. .bottom{
  1357. padding:0 30px;
  1358. h4{text-align: right;}
  1359. .grid-content{
  1360. background: #fff;height: 90px;
  1361. border-radius: 10px;
  1362. }
  1363. .one{
  1364. border: 1px solid #82CBB3;height: 90px;
  1365. .Left{
  1366. float: left;
  1367. width: 65px;
  1368. text-align: center;
  1369. i{font-size: 36px;color:#82CBB3;line-height: 90px;}
  1370. }
  1371. .Right{
  1372. float: left;
  1373. margin-top:15px;
  1374. height: 60px;
  1375. font-weight: 600;
  1376. font-size: 14px;
  1377. line-height: 30px;
  1378. span{
  1379. display: inline-block;
  1380. width: 130px;
  1381. text-align: right;
  1382. }
  1383. }
  1384. }
  1385. .two{
  1386. border: 1px solid #FF9900;
  1387. .Left{
  1388. float: left;
  1389. width: 65px;
  1390. text-align: center;
  1391. i{font-size: 36px;color:#FF9900;line-height: 90px;}
  1392. }
  1393. .Right{
  1394. float: left;
  1395. margin-top:15px;
  1396. height: 60px;
  1397. font-weight: 600;
  1398. font-size: 14px;
  1399. line-height: 30px;
  1400. span{
  1401. display: inline-block;
  1402. width: 130px;
  1403. text-align: right;
  1404. }
  1405. }
  1406. }
  1407. .three{
  1408. border: 1px solid #0099FF;
  1409. .Left{
  1410. float: left;
  1411. width: 65px;
  1412. text-align: center;
  1413. i{font-size: 36px;color:#0099FF;line-height: 90px;}
  1414. }
  1415. .Right{
  1416. float: left;
  1417. height: 60px;
  1418. font-weight: 600;
  1419. font-size: 14px;
  1420. line-height: 30px;
  1421. margin-top:15px;
  1422. span{
  1423. display: inline-block;
  1424. width: 130px;
  1425. text-align: right;
  1426. }
  1427. }
  1428. }
  1429. .four{
  1430. border: 1px solid #FF5C5C;
  1431. .Left{
  1432. float: left;
  1433. width: 55px;
  1434. text-align: center;
  1435. i{font-size: 36px;color:#FF5C5C;line-height: 90px;}
  1436. }
  1437. .Right{
  1438. float: left;
  1439. flex: 1;
  1440. height: 60px;
  1441. font-weight: 600;
  1442. font-size: 14px;
  1443. line-height: 30px;
  1444. margin-top:15px;
  1445. span{
  1446. display: inline-block;
  1447. width: 150px;
  1448. text-align: right;
  1449. }
  1450. }
  1451. }
  1452. .car{
  1453. width:100%;height:150px;
  1454. display:flex;
  1455. display: -webkit-flex;
  1456. -webkit-flex-direction:row;
  1457. i{font-size: 50px;width:50px;display: block;line-height: 150px;}
  1458. .carList{
  1459. flex:1;height: 130px;
  1460. .list{
  1461. height: 130px;color: #fff;
  1462. // box-shadow: #000 0px 0px 10px;
  1463. // border-radius: 10px;
  1464. .list-l{
  1465. p{
  1466. padding-left:10px;font-size:13px;line-height: 16px; text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1467. }
  1468. }
  1469. .list-r{
  1470. p{
  1471. font-size:13px;line-height: 16px;text-overflow: ellipsis;white-space:nowrap; overflow:hidden;
  1472. }
  1473. }
  1474. }
  1475. }
  1476. }
  1477. }
  1478. }
  1479. </style>
  1480. <style>
  1481. .app-main{background:#f5f5f5;}
  1482. </style>
  1483. <style lang="scss" scoped>
  1484. .dashboard-editor-container{padding-left: 20px;background: #f5f5f5;}
  1485. // 公共
  1486. .img-t{position: absolute;left: 0;right: 0;margin: 20px auto;width: 31%;height: 31%;background-size: 100% 100%;}
  1487. .row1-c-l-b{
  1488. position: absolute;bottom: 30px;
  1489. div{
  1490. font-size: 12px;line-height: 16px;color: #323232;display:flex;
  1491. span{text-align: right;width:82%;}
  1492. b{}
  1493. }
  1494. }
  1495. .title{
  1496. height: 36px;padding-top: 7px;line-height: 36px;position: relative;
  1497. .img-title{
  1498. position: absolute;top: 10px; right:10px;bottom:0;left:20px;width: 30px;height: 30px;background: url(../../../assets/images/index/row-bg3.png) no-repeat;
  1499. }
  1500. .content{font-size: 18px;position: absolute;top: 7px;left: 55px;}
  1501. }
  1502. .button{
  1503. height: 30px;
  1504. .exportTable{
  1505. float: right;margin-right: 5px;height:30px;width:80px;border:1px solid #d4d4d4;line-height:30px;border-radius:3px;text-align:center;font-size:12px;color:#6b6b6b;
  1506. }
  1507. }
  1508. .dashboard{
  1509. display: flex;margin-top: 10px;
  1510. .dashboard-l{
  1511. // width: 540px;
  1512. width: 30%;
  1513. .row1{
  1514. height: 520px;
  1515. .row1-t{
  1516. background: #fff; height: 50px; color: #f28b46;
  1517. .row1-t-l{
  1518. .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;}
  1519. .content{float:left;width: 55%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;font-size: 16px;line-height: 50px;}
  1520. .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;}
  1521. }
  1522. .row1-t-r{padding-right: 20px;text-align: right;line-height: 50px;}
  1523. }
  1524. .row1-c{
  1525. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1526. .row1-c-l{
  1527. background: #fff;width:49%;height:225px;border-radius:3px;margin-right: 1%;position: relative;
  1528. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t1.png) no-repeat; background-size: 100% 100%;}
  1529. }
  1530. .row1-c-r{
  1531. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1532. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t2.png) no-repeat; background-size: 100% 100%;}
  1533. }
  1534. }
  1535. .row1-b{
  1536. display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between;margin-top: 10px;
  1537. .row1-b-l{
  1538. background: #fff;width:49%;height:225px;border-radius:3px;margin-right:1%;position: relative;
  1539. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t4.png) no-repeat; background-size: 100% 100%;}
  1540. }
  1541. .row1-b-r{
  1542. background: #fff;width:49%;height:225px;border-radius:3px;position: relative;
  1543. .img-t{width:49%;height:38%;background: url(../../../assets/images/index/t3.png) no-repeat; background-size: 100% 100%;}
  1544. }
  1545. }
  1546. }
  1547. .row2{
  1548. margin-top:10px;height: 375px;background: #fff;
  1549. .img-title{background-position: 0 0;}
  1550. .todayPlan{
  1551. display: flex; flex-direction: row;
  1552. div{
  1553. flex: 1;position: relative;
  1554. .bottom{
  1555. width: 99%;height: 70px;background: #f9f9f9;margin: 30px auto 5px;display: flex; flex-direction: row;
  1556. div{
  1557. flex: 1;height: 42px;color: #333333;
  1558. }
  1559. .bottom-l{
  1560. border-right: 1px solid #e0e0e0;margin-top: 15px;width: 100%;
  1561. .bottom-l-t{
  1562. font-size: 12px;height: 30px;
  1563. b{font-size: 18px;}
  1564. }
  1565. .bottom-l-b{font-size: 12px;}
  1566. }
  1567. .bottom-r{
  1568. margin-top: 15px;width: 100%;
  1569. .bottom-r-t{height: 30px;padding-left: 10px;}
  1570. .bottom-r-b{padding-left: 10px;font-size: 12px;}
  1571. }
  1572. }
  1573. }
  1574. }
  1575. }
  1576. .row3{
  1577. margin-top:10px;height: 375px;background: #fff;
  1578. .img-title{background-position: 0 -90px;}
  1579. }
  1580. }
  1581. .dashboard-r{
  1582. margin-left: 10px;flex:1;
  1583. .row1{
  1584. height: 520px;background: #fff;
  1585. .img-title{background-position: 0 -30px;}
  1586. #row2chartLine3{height: 270px;margin-top: 10px;}
  1587. .carsLength{
  1588. padding: 13px 0 0 22px;line-height: 38px;font-size: 18px;font-weight: 700;
  1589. }
  1590. .car{
  1591. height: 140px;position: relative;
  1592. .iconLeft{width:32px;height:32px;position:absolute;top:46px;left:15px; z-index:1;}
  1593. .iconRight{width:32px;height:32px;position:absolute;top:46px;right: 20px ;z-index:1;}
  1594. .carList{
  1595. padding:0 30px;height: 120px;overflow: hidden;display: flex;
  1596. .listW{
  1597. background: #f3f9f7;
  1598. float: left;
  1599. // flex: 1 1;
  1600. margin: 0 5px;position: relative;width: 50%;
  1601. .list{
  1602. width: 100%;height: 100%;border-radius: 5px;border:1px solid #000;
  1603. .list-t{
  1604. display: flex;
  1605. .list-t-t{
  1606. flex: 1 1;width: 0;font-size: 12px;line-height: 52px;
  1607. span{
  1608. display: block;
  1609. white-space: nowrap;
  1610. overflow: hidden;
  1611. text-overflow: ellipsis;
  1612. }
  1613. }
  1614. }
  1615. .list-b{
  1616. display: flex; text-align: center;margin-top: 24px;color: #323232;
  1617. .list-b-l{
  1618. flex: 1;width: 0; height: 40px; position: relative;
  1619. .left{
  1620. .num{
  1621. font-size: 12px;
  1622. b{font-size: 12px;}
  1623. }
  1624. .weight{font-size: 12px;}
  1625. }
  1626. .right{
  1627. height: 30px;width: 1px;background: #e0e0e0;position: absolute;right: 0;top: 0;bottom: 0;margin-top:auto;margin-bottom:auto
  1628. }
  1629. }
  1630. }
  1631. }
  1632. .img-checked{width: 30px;height: 28px;position: absolute;top: 0;right: 0;background: url(../../../assets/images/index/row-r6.png);}
  1633. }
  1634. }
  1635. }
  1636. }
  1637. .row2{
  1638. margin-top:10px;height: 375px;
  1639. display: flex; flex-direction: row;
  1640. .row2-l{
  1641. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1642. .img-title{background-position: 0 -30px;}
  1643. }
  1644. .row2-r{
  1645. background: #fff;height:375px;border-radius:3px;flex: 1;
  1646. .img-title{background-position: 0 -60px;}
  1647. }
  1648. }
  1649. .row3{
  1650. margin-top:10px;height: 375px;
  1651. display: flex; flex-direction: row;
  1652. .row3-l{
  1653. margin-right: 10px; background: #fff;height:375px;border-radius:3px;flex: 1;
  1654. .img-title{background-position: 0 -120px;}
  1655. }
  1656. .row3-r{
  1657. background: #fff;height:375px;border-radius:3px;flex: 1;
  1658. .img-title{background-position: 0 -150px;}
  1659. }
  1660. }
  1661. }
  1662. }
  1663. </style>