5ee23e632f03d7f39d7d0c1209aa58812f47c941.svn-base 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106
  1. <template>
  2. <div class="app-container">
  3. <!-- <h1>牧场</h1> -->
  4. <div class="search">
  5. <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" :clearable="false" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" :picker-options="pickerOptions" />
  6. <el-select v-model="table.getdataListParm.parammaps.lpplantype" placeholder="计划类型" class="filter-item" style="width: 120px;" clearable>
  7. <el-option v-for="item in planTypeList" :key="item.value" :label="item.lable" :value="item.value" />
  8. </el-select>
  9. <el-input v-model="table.getdataListParm.parammaps.tmrtname" placeholder="TMR名称" style="width: 180px;" class="filter-item" clearable />
  10. <el-select v-model="table.getdataListParm.parammaps.iscompleted" placeholder="工作状态" class="filter-item" style="width: 120px;" clearable>
  11. <el-option v-for="item in workingConditionList" :key="item.id" :label="item.name" :value="item.id" />
  12. </el-select>
  13. <el-button class="successBorder" @click="handleSearch">查询</el-button>
  14. <el-button class="successBorder" @click="handleRefresh">重置</el-button>
  15. </div>
  16. <el-row :gutter="20">
  17. <el-col :span="8">
  18. <h4>TMR设备列表</h4>
  19. <div class="table">
  20. <el-table
  21. :key="table.tableKey"
  22. v-loading="table.listLoading"
  23. element-loading-text="给我一点时间"
  24. :data="table.list"
  25. border
  26. fit
  27. highlight-current-row
  28. style="width: 100%;"
  29. :row-style="rowStyle"
  30. :cell-style="cellStyle"
  31. class="elTable table-fixed"
  32. height="970px"
  33. @row-click="rowClick"
  34. >
  35. <el-table-column label="开始时间" min-width="100px" align="center" prop="intime" />
  36. <el-table-column label="计划类型" min-width="80px" align="center" prop="lpplantype" />
  37. <el-table-column label="描述" min-width="90px" align="center" prop="remark" />
  38. <el-table-column label="TMR名称" min-width="80px" align="center" prop="tmrtname" />
  39. </el-table>
  40. </div>
  41. </el-col>
  42. <!-- 预混计划 -->
  43. <el-col v-if="isPremixedPlan" :span="16">
  44. <h4>{{ title }}</h4>
  45. <div class="detail">
  46. <div class="detail-t">
  47. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  48. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  49. </div>
  50. <div class="detail-b">
  51. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  52. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  53. </div>
  54. </div>
  55. <div class="Mixture">
  56. <h4>混料详情</h4>
  57. <el-table
  58. :key="table3.tableKey"
  59. v-loading="table3.listLoading"
  60. element-loading-text="给我一点时间"
  61. :data="table3.list"
  62. border
  63. fit
  64. highlight-current-row
  65. style="width: 100%;"
  66. :row-style="rowStyle"
  67. :cell-style="cellStyle"
  68. class="elTable table-fixed"
  69. >
  70. <el-table-column label="操作编号" min-width="60px" align="center" prop="sort" />
  71. <el-table-column label="饲料名称" min-width="60px" align="center" prop="fname" />
  72. <el-table-column label="计划重量" min-width="60px" align="center" prop="lweight" />
  73. <el-table-column label="实际重量" min-width="60px" align="center" prop="actualweightminus" />
  74. <el-table-column label="误差值" min-width="60px" align="center" prop="diff" />
  75. <el-table-column label="准确率" min-width="60px" align="center" prop="diffRate" />
  76. <el-table-column label="完成时间" min-width="60px" align="center" prop="intime" />
  77. <el-table-column label="过程时间" min-width="60px" align="center" prop="proesstime" />
  78. <el-table-column label="跳转方式" min-width="60px" align="center" prop="buttontype" />
  79. <el-table-column label="开始重量" min-width="60px" align="center" prop="lastactualweight" />
  80. <el-table-column label="结束重量" min-width="60px" align="center" prop="actualweight" />
  81. </el-table>
  82. </div>
  83. </el-col>
  84. <!-- 撒料计划 -->
  85. <el-col v-if="isSpreadingPlan" :span="16">
  86. <h4>{{ title }}</h4>
  87. <div class="detail">
  88. <div class="detail-t">
  89. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  90. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  91. </div>
  92. <div class="detail-b">
  93. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  94. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  95. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  96. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  97. </div>
  98. </div>
  99. <div class="Mixture">
  100. <h4>混料详情</h4>
  101. <el-table
  102. :key="table3.tableKey"
  103. v-loading="table3.listLoading"
  104. element-loading-text="给我一点时间"
  105. :data="table3.list"
  106. border
  107. fit
  108. highlight-current-row
  109. style="width: 100%;"
  110. :row-style="rowStyle"
  111. :cell-style="cellStyle"
  112. class="elTable table-fixed"
  113. >
  114. <el-table-column label="操作编号" min-width="70px" align="center" prop="sort" />
  115. <el-table-column label="饲料名称" min-width="70px" align="center" prop="fname" />
  116. <el-table-column label="计划重量" min-width="50px" align="center" prop="lweight" />
  117. <el-table-column label="实际重量" min-width="70px" align="center" prop="actualweightminus" />
  118. <el-table-column label="误差值" min-width="70px" align="center" prop="diff" />
  119. <el-table-column label="准确率" min-width="70px" align="center" prop="diffRate" />
  120. <el-table-column label="完成时间" min-width="70px" align="center" prop="intime" />
  121. <el-table-column label="过程时间" min-width="70px" align="center" prop="proesstime" />
  122. <el-table-column label="跳转方式" min-width="70px" align="center" prop="buttontype" />
  123. <el-table-column label="开始重量" min-width="70px" align="center" prop="lastactualweight" />
  124. <el-table-column label="结束重量" min-width="70px" align="center" prop="actualweight" />
  125. </el-table>
  126. </div>
  127. <div class="SpreadingMaterials">
  128. <h4>撒料详情</h4>
  129. <el-table
  130. :key="table4.tableKey"
  131. v-loading="table4.listLoading"
  132. element-loading-text="给我一点时间"
  133. :data="table4.list"
  134. border
  135. fit
  136. highlight-current-row
  137. style="width: 100%;"
  138. :row-style="rowStyle"
  139. :cell-style="cellStyle"
  140. class="elTable table-fixed"
  141. height="200px"
  142. >
  143. <el-table-column label="操作编号" min-width="70px" align="center" prop="sort" />
  144. <el-table-column label="栏舍名称" min-width="70px" align="center" prop="fname" />
  145. <el-table-column label="计划重量" min-width="70px" align="center" prop="lweight" />
  146. <el-table-column label="实际重量" min-width="70px" align="center" prop="actualweightminus" />
  147. <el-table-column label="误差值" min-width="70px" align="center" prop="diff" />
  148. <el-table-column label="准确率" min-width="70px" align="center" prop="diffRate" />
  149. <el-table-column label="完成时间" min-width="70px" align="center" prop="intime" />
  150. <el-table-column label="过程时间" min-width="70px" align="center" prop="proesstime" />
  151. <el-table-column label="跳转方式" min-width="70px" align="center" prop="buttontype" />
  152. <el-table-column label="开始重量" min-width="70px" align="center" prop="lastactualweight" />
  153. <el-table-column label="结束重量" min-width="70px" align="center" prop="actualweight" />
  154. </el-table>
  155. </div>
  156. <div class="ControlChart">
  157. <h4>监控图</h4>
  158. <div id="chartLine" style="width: 100%;height:300px;" />
  159. </div>
  160. </el-col>
  161. <!-- 剩料计划 -->
  162. <el-col v-if="isResidualMaterialPlan" :span="16">
  163. <h4>{{ title }}</h4>
  164. <div class="detail">
  165. <div class="detail-t">
  166. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  167. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  168. </div>
  169. <div class="detail-b" />
  170. </div>
  171. <div class="Mixture">
  172. <h4>剩料收集详情</h4>
  173. <el-table
  174. :key="table3.tableKey"
  175. v-loading="table3.listLoading"
  176. element-loading-text="给我一点时间"
  177. :data="table3.list"
  178. border
  179. fit
  180. highlight-current-row
  181. style="width: 100%;"
  182. :row-style="rowStyle"
  183. :cell-style="cellStyle"
  184. class="elTable table-fixed"
  185. height="200px"
  186. >
  187. <el-table-column label="操作编号" min-width="110px" align="center">
  188. <template slot-scope="scope">
  189. <span>{{ scope.row.sort }}</span>
  190. </template>
  191. </el-table-column>
  192. <el-table-column label="栏舍名称" min-width="90px" align="center">
  193. <template slot-scope="scope">
  194. <span>{{ scope.row.fname }}</span>
  195. </template>
  196. </el-table-column>
  197. <el-table-column label="剩料采集重量(kg)" min-width="110px" align="center">
  198. <template slot-scope="scope">
  199. <span>{{ scope.row.sweight }}</span>
  200. </template>
  201. </el-table-column>
  202. </el-table>
  203. </div>
  204. <div class="SpreadingMaterials">
  205. <h4>撒料详情</h4>
  206. <el-table
  207. :key="table4.tableKey"
  208. v-loading="table4.listLoading"
  209. :span-method="objectSpanMethod"
  210. element-loading-text="给我一点时间"
  211. :data="table4.list"
  212. border
  213. fit
  214. highlight-current-row
  215. style="width: 100%;"
  216. :row-style="rowStyle"
  217. :cell-style="cellStyle"
  218. class="elTable table-fixed"
  219. height="200px"
  220. >
  221. <el-table-column label="操作编号" min-width="110px" align="center">
  222. <template slot-scope="scope">
  223. <span>{{ scope.row.sort }}</span>
  224. </template>
  225. </el-table-column>
  226. <el-table-column label="转投栏舍" min-width="90px" align="center">
  227. <template slot-scope="scope">
  228. <span>{{ scope.row.fname }}</span>
  229. </template>
  230. </el-table-column>
  231. <el-table-column label="允许分配剩料量" min-width="110px" align="center">
  232. <template slot-scope="scope">
  233. <span>{{ scope.row.lweight }}</span>
  234. </template>
  235. </el-table-column>
  236. <el-table-column label="实际分配重量(kg)" min-width="110px" align="center">
  237. <template slot-scope="scope">
  238. <span>{{ scope.row.actualweightminus }}</span>
  239. </template>
  240. </el-table-column>
  241. <el-table-column label="废弃剩料重量" min-width="110px" align="center" prop="aweight">
  242. <template slot-scope="scope">
  243. <span>{{ scope.row.aweight }}</span>
  244. </template>
  245. </el-table-column>
  246. </el-table>
  247. </div>
  248. </el-col>
  249. <!-- 撒料计划-混料 -->
  250. <el-col v-if="isSpreadingPlanSH" :span="16">
  251. <h4>{{ title }}</h4>
  252. <div class="detail">
  253. <div class="detail-t">
  254. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  255. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  256. </div>
  257. <div class="detail-b">
  258. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  259. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  260. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  261. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  262. </div>
  263. </div>
  264. <div class="Mixture">
  265. <h4>混料详情</h4>
  266. <el-table
  267. :key="table3.tableKey"
  268. v-loading="table3.listLoading"
  269. element-loading-text="给我一点时间"
  270. :data="table3.list"
  271. border
  272. fit
  273. highlight-current-row
  274. style="width: 100%;"
  275. :row-style="rowStyle"
  276. :cell-style="cellStyle"
  277. class="elTable table-fixed"
  278. >
  279. <el-table-column label="操作编号" min-width="60px" align="center" prop="sort" />
  280. <el-table-column label="饲料名称" min-width="60px" align="center" prop="fname" />
  281. <el-table-column label="计划重量" min-width="60px" align="center" prop="lweight" />
  282. <el-table-column label="实际重量" min-width="60px" align="center" prop="actualweightminus" />
  283. <el-table-column label="误差值" min-width="60px" align="center" prop="diff" />
  284. <el-table-column label="准确率" min-width="60px" align="center" prop="diffRate" />
  285. <el-table-column label="完成时间" min-width="60px" align="center" prop="intime" />
  286. <el-table-column label="过程时间" min-width="60px" align="center" prop="proesstime" />
  287. <el-table-column label="跳转方式" min-width="60px" align="center" prop="buttontype" />
  288. <el-table-column label="开始重量" min-width="60px" align="center" prop="lastactualweight" />
  289. <el-table-column label="结束重量" min-width="60px" align="center" prop="actualweight" />
  290. </el-table>
  291. </div>
  292. <div class="SpreadingMaterials">
  293. <h4>撒料详情</h4>
  294. <el-table
  295. :key="table4.tableKey"
  296. v-loading="table4.listLoading"
  297. element-loading-text="给我一点时间"
  298. :data="table4.list"
  299. border
  300. fit
  301. highlight-current-row
  302. style="width: 100%;"
  303. :row-style="rowStyle"
  304. :cell-style="cellStyle"
  305. class="elTable table-fixed"
  306. height="200px"
  307. >
  308. <el-table-column label="操作编号" min-width="60px" align="center" prop="sort" />
  309. <el-table-column label="撒料车辆" min-width="60px" align="center" prop="fname" />
  310. <el-table-column label="计划重量" min-width="60px" align="center" prop="lweight" />
  311. <el-table-column label="实际重量" min-width="60px" align="center" prop="actualweightminus" />
  312. <el-table-column label="误差值" min-width="60px" align="center" prop="diff" />
  313. <el-table-column label="准确率" min-width="60px" align="center" prop="diffRate" />
  314. <el-table-column label="完成时间" min-width="60px" align="center" prop="intime" />
  315. <el-table-column label="过程时间" min-width="60px" align="center" prop="proesstime" />
  316. <el-table-column label="跳转方式" min-width="60px" align="center" prop="buttontype" />
  317. <el-table-column label="开始重量" min-width="60px" align="center" prop="lastactualweight" />
  318. <el-table-column label="结束重量" min-width="60px" align="center" prop="actualweight" />
  319. </el-table>
  320. </div>
  321. <div class="ControlChart">
  322. <h4>监控图</h4>
  323. <div id="chartLine" style="width: 100%;height:300px;" />
  324. </div>
  325. </el-col>
  326. <!-- 撒料计划-撒料 -->
  327. <el-col v-if="isSpreadingPlanSS" :span="16">
  328. <h4>{{ title }}</h4>
  329. <div class="detail">
  330. <div class="detail-t">
  331. 过程时间:<span v-if="table2.list.length !== 0">{{ table2.list[0].proesstime }}</span>;
  332. 工作状态:<span v-if="table2.list.length !== 0">{{ table2.list[0].iscompleted }}</span>
  333. </div>
  334. <div class="detail-b">
  335. <span>混料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Hdif }}kg</span>;</span>
  336. <span>混料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].HdifRate }}</span>;</span>
  337. <span>撒料误差值:<span v-if="table2.list.length !== 0">{{ table2.list[0].Sdif }}kg</span>;</span>
  338. <span>撒料准确率:<span v-if="table2.list.length !== 0">{{ table2.list[0].SdifRate }}</span></span>
  339. </div>
  340. </div>
  341. <div class="Mixture">
  342. <h4>混料详情</h4>
  343. <el-table
  344. :key="table3.tableKey"
  345. v-loading="table3.listLoading"
  346. element-loading-text="给我一点时间"
  347. :data="table3.list"
  348. border
  349. fit
  350. highlight-current-row
  351. style="width: 100%;"
  352. :row-style="rowStyle"
  353. :cell-style="cellStyle"
  354. class="elTable table-fixed"
  355. >
  356. <el-table-column label="操作编号" min-width="110px" align="center">
  357. <template slot-scope="scope">
  358. <span>{{ scope.row.sort }}</span>
  359. </template>
  360. </el-table-column>
  361. <el-table-column label="撒料车辆" min-width="90px" align="center">
  362. <template slot-scope="scope">
  363. <span>{{ scope.row.fname }}</span>
  364. </template>
  365. </el-table-column>
  366. <el-table-column label="计划重量" min-width="110px" align="center">
  367. <template slot-scope="scope">
  368. <span>{{ scope.row.lweight }}</span>
  369. </template>
  370. </el-table-column>
  371. <el-table-column label="实际重量" min-width="110px" align="center">
  372. <template slot-scope="scope">
  373. <span>{{ scope.row.actualweightminus }}</span>
  374. </template>
  375. </el-table-column>
  376. <el-table-column label="误差值" min-width="110px" align="center">
  377. <template slot-scope="scope">
  378. <span>{{ scope.row.diff }}</span>
  379. </template>
  380. </el-table-column>
  381. <el-table-column label="准确率" min-width="90px" align="center">
  382. <template slot-scope="scope">
  383. <span>{{ scope.row.diffRate }}</span>
  384. </template>
  385. </el-table-column>
  386. <el-table-column label="完成时间" min-width="110px" align="center">
  387. <template slot-scope="scope">
  388. <span>{{ scope.row.intime }}</span>
  389. </template>
  390. </el-table-column>
  391. <el-table-column label="过程时间" min-width="110px" align="center">
  392. <template slot-scope="scope">
  393. <span>{{ scope.row.proesstime }}</span>
  394. </template>
  395. </el-table-column>
  396. <el-table-column label="跳转方式" min-width="110px" align="center">
  397. <template slot-scope="scope">
  398. <span>{{ scope.row.buttontype }}</span>
  399. </template>
  400. </el-table-column>
  401. <el-table-column label="开始重量" min-width="110px" align="center">
  402. <template slot-scope="scope">
  403. <span>{{ scope.row.lastactualweight }}</span>
  404. </template>
  405. </el-table-column>
  406. <el-table-column label="结束重量" min-width="110px" align="center">
  407. <template slot-scope="scope">
  408. <span>{{ scope.row.actualweight }}</span>
  409. </template>
  410. </el-table-column>
  411. </el-table>
  412. </div>
  413. <div class="SpreadingMaterials">
  414. <h4>撒料详情</h4>
  415. <el-table
  416. :key="table4.tableKey"
  417. v-loading="table4.listLoading"
  418. element-loading-text="给我一点时间"
  419. :data="table4.list"
  420. border
  421. fit
  422. highlight-current-row
  423. style="width: 100%;"
  424. :row-style="rowStyle"
  425. :cell-style="cellStyle"
  426. class="elTable table-fixed"
  427. height="200px"
  428. >
  429. <el-table-column label="操作编号" min-width="110px" align="center">
  430. <template slot-scope="scope">
  431. <span>{{ scope.row.sort }}</span>
  432. </template>
  433. </el-table-column>
  434. <el-table-column label="撒料车辆" min-width="90px" align="center">
  435. <template slot-scope="scope">
  436. <span>{{ scope.row.fname }}</span>
  437. </template>
  438. </el-table-column>
  439. <el-table-column label="计划重量" min-width="110px" align="center">
  440. <template slot-scope="scope">
  441. <span>{{ scope.row.lweight }}</span>
  442. </template>
  443. </el-table-column>
  444. <el-table-column label="实际重量" min-width="110px" align="center">
  445. <template slot-scope="scope">
  446. <span>{{ scope.row.actualweightminus }}</span>
  447. </template>
  448. </el-table-column>
  449. <el-table-column label="误差值" min-width="110px" align="center">
  450. <template slot-scope="scope">
  451. <span>{{ scope.row.diff }}</span>
  452. </template>
  453. </el-table-column>
  454. <el-table-column label="准确率" min-width="90px" align="center">
  455. <template slot-scope="scope">
  456. <span>{{ scope.row.diffRate }}</span>
  457. </template>
  458. </el-table-column>
  459. <el-table-column label="完成时间" min-width="110px" align="center">
  460. <template slot-scope="scope">
  461. <span>{{ scope.row.intime }}</span>
  462. </template>
  463. </el-table-column>
  464. <el-table-column label="过程时间" min-width="110px" align="center">
  465. <template slot-scope="scope">
  466. <span>{{ scope.row.proesstime }}</span>
  467. </template>
  468. </el-table-column>
  469. <el-table-column label="跳转方式" min-width="110px" align="center">
  470. <template slot-scope="scope">
  471. <span>{{ scope.row.buttontype }}</span>
  472. </template>
  473. </el-table-column>
  474. <el-table-column label="开始重量" min-width="110px" align="center">
  475. <template slot-scope="scope">
  476. <span>{{ scope.row.lastactualweight }}</span>
  477. </template>
  478. </el-table-column>
  479. <el-table-column label="结束重量" min-width="110px" align="center">
  480. <template slot-scope="scope">
  481. <span>{{ scope.row.actualweight }}</span>
  482. </template>
  483. </el-table-column>
  484. </el-table>
  485. </div>
  486. <div class="ControlChart">
  487. <h4>监控图</h4>
  488. <div id="chartLine" style="width: 100%;height:300px;" />
  489. </div>
  490. </el-col>
  491. </el-row>
  492. </div>
  493. </template>
  494. <script>
  495. import echarts from 'echarts'
  496. require('echarts/theme/macarons')
  497. import { GetDataByName, GetReportform,formatNum } from '@/api/common'
  498. import Cookies from 'js-cookie'
  499. import { parseTime } from '@/utils/index.js'
  500. export default {
  501. name: 'PastureProcessAnalysis',
  502. data() {
  503. return {
  504. title: '',
  505. isPremixedPlan: '', // 预混计划
  506. isSpreadingPlan: '', // 撒料计划
  507. isResidualMaterialPlan: '', // 剩料计划,
  508. isSpreadingPlanSH: '', // 撒料计划-混料
  509. isSpreadingPlanSS: '', // 撒料计划-撒料
  510. pickerMinDate: '',
  511. pickerOptions: {
  512. onPick: ({ maxDate, minDate }) => {
  513. this.pickerMinDate = minDate.getTime()
  514. if (maxDate) {
  515. this.pickerMinDate = ''
  516. }
  517. },
  518. // 限制不能选择今天之后的日期
  519. disabledDate: (time) => {
  520. if (this.pickerMinDate !== '') {
  521. const one = 31 * 24 * 3600 * 1000
  522. const minTime = this.pickerMinDate - one
  523. let maxTime = this.pickerMinDate + one
  524. if (maxTime > new Date()) {
  525. maxTime = new Date()
  526. }
  527. return time.getTime() < minTime || time.getTime() > maxTime
  528. }
  529. return time.getTime() > Date.now()
  530. }
  531. },
  532. requestParams: [
  533. { name: 'getBarListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }},
  534. { name: 'getCowclassListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }}
  535. ],
  536. planTypeList: [{ lable: '预混计划', value: '4' }, { lable: '撒料计划', value: '0' }, { lable: '剩料计划', value: '3' }, { lable: '撒料计划-混料', value: '1' }, { lable: '撒料计划-撒料', value: '2' }, { lable: '预称重计划', value: '5' }], // 计划类型
  537. workingConditionList: [{ id: '0', name: '进行中' }, { id: '1', name: '已完成' }], // 工作状态
  538. // TMR设备列表
  539. table: {
  540. getdataListParm: {
  541. name: 'getprocessAnalysis',
  542. page: 1,
  543. offset: 1,
  544. pagecount: '',
  545. returntype: 'Map',
  546. parammaps: {
  547. pastureid: Cookies.get('pastureid'),
  548. startTime: parseTime(new Date(), '{y}-{m}-{d}'),
  549. stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
  550. inputDatetime: [new Date(), new Date()],
  551. iscompleted: '',
  552. tmrtname: '',
  553. lpplantype: ''
  554. }
  555. },
  556. tableKey: 0,
  557. list: [],
  558. total: 0,
  559. listLoading: true
  560. },
  561. // 过程详情
  562. table2: {
  563. getdataListParm: {
  564. name: 'getprocessAnalysisStr',
  565. page: 1,
  566. offset: 1,
  567. pagecount: 1,
  568. returntype: 'Map',
  569. parammaps: {
  570. pastureid: Cookies.get('pastureid'),
  571. id: ''
  572. }
  573. },
  574. tableKey: 0,
  575. list: [],
  576. total: 0,
  577. listLoading: true
  578. },
  579. // 混料详情
  580. table3: {
  581. getdataListParm: {
  582. name: 'getprocessAnalysisHL',
  583. page: 1,
  584. offset: 1,
  585. pagecount: '',
  586. returntype: 'Map',
  587. parammaps: {
  588. pastureid: Cookies.get('pastureid'),
  589. id: ''
  590. }
  591. },
  592. tableKey: 0,
  593. list: [],
  594. total: 0,
  595. listLoading: true
  596. },
  597. // 撒料详情
  598. table4: {
  599. getdataListParm: {
  600. name: 'getprocessAnalysisSL',
  601. page: 1,
  602. offset: 1,
  603. pagecount: '',
  604. returntype: 'Map',
  605. parammaps: {
  606. pastureid: Cookies.get('pastureid'),
  607. id: ''
  608. }
  609. },
  610. tableKey: 0,
  611. list: [],
  612. total: 0,
  613. listLoading: true
  614. },
  615. chart1: {
  616. getdataListParm: {
  617. name: 'getprocessAnalysisTB',
  618. page: 1,
  619. offset: 1,
  620. pagecount: '',
  621. returntype: 'Map',
  622. parammaps: {
  623. pastureid: Cookies.get('pastureid'),
  624. id: ''
  625. }
  626. },
  627. tableKey: 0,
  628. list: [],
  629. total: 0,
  630. listLoading: false,
  631. chartLine_data: []
  632. },
  633. chartLine: null,
  634. chartLine_data: {},
  635. rowStyle: { maxHeight: 30 + 'px', height: 30 + 'px' },
  636. cellStyle: { padding: 0 + 'px' }
  637. }
  638. },
  639. created() {
  640. this.getList()
  641. },
  642. methods: {
  643. // TMR设备列表
  644. getList() {
  645. this.table.listLoading = true
  646. GetDataByName(this.table.getdataListParm).then(response => {
  647. console.log('TMR设备列表table数据', response.data.list)
  648. if (response.data.list !== null) {
  649. this.table.list = response.data.list
  650. if (response.data.list[0].lpplantype == '预混计划') {
  651. this.isPremixedPlan = true
  652. this.isSpreadingPlan = false
  653. this.isResidualMaterialPlan = false
  654. this.isSpreadingPlanSH = false
  655. this.isSpreadingPlanSS = false
  656. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  657. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  658. this.getList2()
  659. this.getList3()
  660. } else if (response.data.list[0].lpplantype == '剩料计划') {
  661. this.isResidualMaterialPlan = true
  662. this.isPremixedPlan = false
  663. this.isSpreadingPlan = false
  664. this.isSpreadingPlanSH = false
  665. this.isSpreadingPlanSS = false
  666. this.table2.getdataListParm.name = 'getprocessAnalysisStrSH'
  667. this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
  668. this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
  669. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  670. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  671. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  672. this.getList2()
  673. this.getList3()
  674. this.getList4()
  675. } else if (response.data.list[0].lpplantype == '撒料计划-混料') {
  676. // 撒料计划-混料
  677. this.isSpreadingPlan = false
  678. this.isResidualMaterialPlan = false
  679. this.isPremixedPlan = false
  680. this.isSpreadingPlanSH = true
  681. this.isSpreadingPlanSS = false
  682. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  683. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  684. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  685. this.getList2()
  686. this.getList3()
  687. this.getList4()
  688. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  689. this.getChart1()
  690. } else if (response.data.list[0].lpplantype == '撒料计划-撒料') {
  691. // 撒料计划-撒料
  692. this.isSpreadingPlan = false
  693. this.isResidualMaterialPlan = false
  694. this.isPremixedPlan = false
  695. this.isSpreadingPlanSH = false
  696. this.isSpreadingPlanSS = true
  697. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  698. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  699. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  700. this.getList2()
  701. this.getList3()
  702. this.getList4()
  703. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  704. this.getChart1()
  705. } else if (response.data.list[0].lpplantype == '预称重计划') {
  706. // 撒料计划-混料
  707. this.isSpreadingPlan = false
  708. this.isResidualMaterialPlan = false
  709. this.isPremixedPlan = false
  710. this.isSpreadingPlanSH = true
  711. this.isSpreadingPlanSS = false
  712. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  713. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  714. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  715. this.getList2()
  716. this.getList3()
  717. this.getList4()
  718. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  719. this.getChart1()
  720. } else {
  721. // 撒料
  722. this.isSpreadingPlan = true
  723. this.isResidualMaterialPlan = false
  724. this.isPremixedPlan = false
  725. this.isSpreadingPlanSH = false
  726. this.isSpreadingPlanSS = false
  727. this.table2.getdataListParm.parammaps.id = response.data.list[0].id
  728. this.table3.getdataListParm.parammaps.pid = response.data.list[0].id
  729. this.table4.getdataListParm.parammaps.pid = response.data.list[0].id
  730. this.getList2()
  731. this.getList3()
  732. this.getList4()
  733. this.chart1.getdataListParm.parammaps.pid = response.data.list[0].id
  734. this.getChart1()
  735. }
  736. this.title = '过程详情-' + response.data.list[0].lpplantype
  737. } else {
  738. this.table.list = []
  739. this.table2.list = []
  740. this.table3.list = []
  741. this.table2.listLoading = false
  742. this.table3.listLoading = false
  743. this.table4.listLoading = false
  744. this.chart1.listLoading = false
  745. }
  746. setTimeout(() => {
  747. this.table.listLoading = false
  748. }, 100)
  749. })
  750. },
  751. handleSearch() {
  752. console.log('点击了查询')
  753. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  754. this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  755. this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  756. } else {
  757. this.table.getdataListParm.parammaps.inputDatetime = ''
  758. this.table.getdataListParm.parammaps.startTime = ''
  759. this.table.getdataListParm.parammaps.stopTime = ''
  760. }
  761. this.table.getdataListParm.offset = 1
  762. this.getList()
  763. },
  764. handleRefresh() {
  765. console.log('点击了重置')
  766. this.table.getdataListParm.parammaps.tmrtname = ''
  767. this.table.getdataListParm.parammaps.iscompleted = ''
  768. this.table.getdataListParm.parammaps.lpplantype = ''
  769. this.table.getdataListParm.parammaps.startTime = parseTime(new Date(), '{y}-{m}-{d}')
  770. this.table.getdataListParm.parammaps.stopTime = parseTime(new Date(), '{y}-{m}-{d}')
  771. this.table.getdataListParm.parammaps.inputDatetime = [new Date(), new Date()]
  772. this.table.getdataListParm.offset = 1
  773. this.getList()
  774. },
  775. rowClick(row, column, event) {
  776. this.table2.getdataListParm.parammaps.id = row.id
  777. this.table3.getdataListParm.parammaps.pid = row.id
  778. this.table4.getdataListParm.parammaps.pid = row.id
  779. this.chart1.getdataListParm.parammaps.pid = row.id
  780. if (row.lpplantype == '预混计划') {
  781. this.isPremixedPlan = true
  782. this.isResidualMaterialPlan = false
  783. this.isSpreadingPlan = false
  784. this.isSpreadingPlanSH = false
  785. this.isSpreadingPlanSS = false
  786. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  787. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  788. this.getList2()
  789. this.getList3()
  790. } else if (row.lpplantype == '剩料计划') {
  791. this.isResidualMaterialPlan = true
  792. this.isPremixedPlan = false
  793. this.isSpreadingPlan = false
  794. this.isSpreadingPlanSH = false
  795. this.isSpreadingPlanSS = false
  796. this.table2.getdataListParm.name = 'getprocessAnalysisStrSH'
  797. this.table3.getdataListParm.name = 'getprocessAnalysisHLSH'
  798. this.table4.getdataListParm.name = 'getprocessAnalysisSLSH'
  799. this.getList2()
  800. this.getList3()
  801. this.getList4()
  802. } else if (row.lpplantype == '撒料计划-混料') {
  803. this.isSpreadingPlan = false
  804. this.isPremixedPlan = false
  805. this.isResidualMaterialPlan = false
  806. this.isSpreadingPlanSH = true
  807. this.isSpreadingPlanSS = false
  808. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  809. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  810. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  811. this.getList2()
  812. this.getList3()
  813. this.getList4()
  814. this.getChart1()
  815. } else if (row.lpplantype == '撒料计划-撒料') {
  816. this.isSpreadingPlan = false
  817. this.isPremixedPlan = false
  818. this.isResidualMaterialPlan = false
  819. this.isSpreadingPlanSH = false
  820. this.isSpreadingPlanSS = true
  821. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  822. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  823. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  824. this.getList2()
  825. this.getList3()
  826. this.getList4()
  827. this.getChart1()
  828. } else if (row.lpplantype == '预称重计划') {
  829. this.isSpreadingPlan = false
  830. this.isPremixedPlan = false
  831. this.isResidualMaterialPlan = false
  832. this.isSpreadingPlanSH = true
  833. this.isSpreadingPlanSS = false
  834. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  835. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  836. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  837. this.getList2()
  838. this.getList3()
  839. this.getList4()
  840. this.getChart1()
  841. } else {
  842. this.isSpreadingPlan = true
  843. this.isPremixedPlan = false
  844. this.isResidualMaterialPlan = false
  845. this.isSpreadingPlanSH = false
  846. this.isSpreadingPlanSS = false
  847. this.table2.getdataListParm.name = 'getprocessAnalysisStr'
  848. this.table3.getdataListParm.name = 'getprocessAnalysisHL'
  849. this.table4.getdataListParm.name = 'getprocessAnalysisSL'
  850. this.getList2()
  851. this.getList3()
  852. this.getList4()
  853. this.getChart1()
  854. }
  855. this.title = '过程详情-' + row.lpplantype
  856. },
  857. // 过程详情
  858. getList2() {
  859. this.table2.listLoading = false
  860. GetDataByName(this.table2.getdataListParm).then(response => {
  861. console.log('过程详情table数据', response.data.list)
  862. if (response.data.list !== null) {
  863. this.table2.list = response.data.list
  864. } else {
  865. this.table2.list = []
  866. }
  867. setTimeout(() => {
  868. this.table2.listLoading = false
  869. }, 100)
  870. })
  871. },
  872. // 混料详情
  873. getList3() {
  874. this.table3.listLoading = false
  875. GetDataByName(this.table3.getdataListParm).then(response => {
  876. console.log('混料详情table数据', response.data.list)
  877. if (response.data.list !== null) {
  878. this.table3.list = response.data.list
  879. var sumlweight = 0
  880. var sumactualweightminus = 0
  881. var sumsweight = 0
  882. for(let i=0;i<response.data.list.length;i++){
  883. if(response.data.list[i].lweight == undefined){response.data.list[i].lweight = 0}
  884. if(response.data.list[i].actualweightminus == undefined){response.data.list[i].actualweightminus = 0}
  885. if(response.data.list[i].sweight == undefined){response.data.list[i].sweight = 0}
  886. sumlweight += parseFloat(response.data.list[i].lweight)
  887. sumactualweightminus += parseFloat(response.data.list[i].actualweightminus)
  888. sumsweight += parseFloat(response.data.list[i].sweight)
  889. }
  890. sumlweight = formatNum(sumlweight,2)
  891. sumactualweightminus = formatNum(sumactualweightminus,2)
  892. sumsweight = formatNum(sumsweight,2)
  893. this.table3.list.push({'sort':'合计','lweight':sumlweight,'actualweightminus':sumactualweightminus,'sweight':sumsweight})
  894. } else {
  895. this.table3.list = []
  896. }
  897. setTimeout(() => {
  898. this.table3.listLoading = false
  899. }, 100)
  900. })
  901. },
  902. // 撒料详情
  903. getList4() {
  904. this.table4.listLoading = false
  905. GetDataByName(this.table4.getdataListParm).then(response => {
  906. console.log('撒料详情table数据', response.data.list)
  907. if (response.data.list !== null) {
  908. this.table4.list = response.data.list
  909. var sumlweight = 0
  910. var sumactualweightminus = 0
  911. var sumsweight = 0
  912. for(let i=0;i<response.data.list.length;i++){
  913. if(response.data.list[i].lweight == undefined){response.data.list[i].lweight = 0}
  914. if(response.data.list[i].actualweightminus == undefined){response.data.list[i].actualweightminus = 0}
  915. if(response.data.list[i].sweight == undefined){response.data.list[i].sweight = 0}
  916. sumlweight += parseFloat(response.data.list[i].lweight)
  917. sumactualweightminus += parseFloat(response.data.list[i].actualweightminus)
  918. sumsweight += parseFloat(response.data.list[i].sweight)
  919. }
  920. sumlweight = formatNum(sumlweight,2)
  921. sumactualweightminus = formatNum(sumactualweightminus,2)
  922. sumsweight = formatNum(sumsweight,2)
  923. this.table4.list.push({'sort':'合计','lweight':sumlweight,'actualweightminus':sumactualweightminus,'sweight':sumsweight})
  924. this.rowspan()
  925. } else {
  926. this.table4.list = []
  927. }
  928. setTimeout(() => {
  929. this.table4.listLoading = false
  930. }, 100)
  931. })
  932. },
  933. rowspan() {
  934. this.spanArr = []
  935. this.table4.list.forEach((item, index) => {
  936. if (index == 0) {
  937. this.spanArr.push(1)
  938. this.position = 0
  939. } else {
  940. console.log(item, index, '======')
  941. if (this.table4.list[index].aweight == this.table4.list[index - 1].aweight) {
  942. this.spanArr[this.position] += 1
  943. this.spanArr.push(0)
  944. } else {
  945. this.spanArr.push(1)
  946. this.position = index
  947. }
  948. }
  949. })
  950. },
  951. objectSpanMethod({ row, column, rowIndex, columnIndex }) {
  952. if (columnIndex == 4) {
  953. const _row = this.spanArr[rowIndex]
  954. const _col = _row > 0 ? 1 : 0
  955. return {
  956. rowspan: _row,
  957. colspan: _col
  958. }
  959. }
  960. },
  961. getChart1() {
  962. this.chart1.listLoading = true
  963. GetReportform(this.chart1.getdataListParm).then(response => {
  964. if (response.data.list !== null) {
  965. this.chart1.list = response.data.data
  966. console.log('实时监控', response.data.list)
  967. // console.log('实时监控', response.data.list.data4)
  968. var evenNumbers = []// 偶数
  969. var oddNumbers = []// 奇数
  970. for (let i = 0; i < response.data.list.data4.length; i++) {
  971. console.log(response.data.list.data4[i])
  972. if (i == 0) {
  973. oddNumbers.push(response.data.list.data4[i])
  974. } else {
  975. if (i % 2 == 0) {
  976. evenNumbers.push(response.data.list.data4[i])
  977. } else {
  978. oddNumbers.push(response.data.list.data4[i])
  979. }
  980. }
  981. }
  982. response.data.list.data4 = oddNumbers
  983. response.data.list.data5 = evenNumbers
  984. this.chart1.chartLine_data = response.data.list
  985. this.chart1.total = response.data.total
  986. this.roadChartLine1(this.chart1.chartLine_data)
  987. } else {
  988. this.chart1.list = []
  989. }
  990. setTimeout(() => {
  991. this.chart1.listLoading = false
  992. }, 100)
  993. })
  994. },
  995. roadChartLine1(chartLine_data) {
  996. if (this.chartLine != null) {
  997. this.chartLine.dispose()
  998. }
  999. this.chartLine = echarts.init(document.getElementById('chartLine'))
  1000. var option = {
  1001. title: {
  1002. text: '',
  1003. subtext: ''
  1004. },
  1005. color: ['#38c193', '#5199e5', '#fdb06a', '#fb8b73'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
  1006. legend: [{
  1007. itemWidth: 15, itemHeight: 7, right: '25%', textStyle: { fontSize: 12 },
  1008. data: [{ name: '设计重量' }, { name: '实际重量' }]
  1009. }, {
  1010. itemWidth: 15, itemHeight: 15, right: '0', textStyle: { fontSize: 12 },
  1011. data: [{ name: '开始重量', icon: 'image://https://kptyun.cn:8081/file/pic/3.png' }, { name: '结束重量', icon: 'image://https://kptyun.cn:8081/file/pic/4.png' }]
  1012. }],
  1013. tooltip: {
  1014. trigger: 'axis'
  1015. },
  1016. calculable: true,
  1017. xAxis: [
  1018. {
  1019. type: 'category',
  1020. splitLine: { show: false }, // 去除网格线
  1021. name: '时间',
  1022. data: chartLine_data.data1,
  1023. axisLabel: {
  1024. show: true,
  1025. textStyle: {
  1026. color: '#666' // 这里用参数代替了
  1027. }
  1028. }
  1029. }
  1030. ],
  1031. yAxis: [
  1032. {
  1033. type: 'value'
  1034. }
  1035. ],
  1036. series: [
  1037. {
  1038. symbol: 'none',
  1039. name: '实际重量',
  1040. type: 'line',
  1041. // step: 'end',
  1042. data: chartLine_data.data3,
  1043. smooth: true,
  1044. barWidth: '37',
  1045. itemStyle: {
  1046. normal: {
  1047. lineStyle: { color: '#ff3131' }
  1048. }
  1049. }
  1050. },
  1051. {
  1052. symbol: 'none',
  1053. name: '设计重量',
  1054. type: 'line',
  1055. step: 'middle',
  1056. // symbol: 'rect',
  1057. // symbolSize: [100, 2],
  1058. // label: { show: true, formatter: '{b} {c}kg' },
  1059. data: chartLine_data.data2
  1060. }, , {
  1061. name: '开始重量',
  1062. symbol: 'image://https://kptyun.cn:8081/file/pic/3.png',
  1063. symbolSize: 10,
  1064. type: 'scatter',
  1065. data: chartLine_data.data4
  1066. }, {
  1067. name: '结束重量',
  1068. symbol: 'image://https://kptyun.cn:8081/file/pic/4.png',
  1069. symbolSize: 10,
  1070. type: 'scatter',
  1071. data: chartLine_data.data5
  1072. }]
  1073. }
  1074. this.chartLine.setOption(option)
  1075. window.onresize = function() {
  1076. this.chartLine.resize()
  1077. }
  1078. }
  1079. }
  1080. }
  1081. </script>
  1082. <style lang="scss" scoped>
  1083. .search{padding-top:10px;clear: both;}
  1084. .table{margin-top:10px;}
  1085. .detail{
  1086. height:84px;border: 1px solid #EBEEF5;padding-left:10px;font:16px/32px '';color:#333;
  1087. .detail-t{margin-top: 10px;}
  1088. .detail-b{margin-bottom: 10px;}
  1089. }
  1090. </style>