6796e3126a873a7cb204c4183c899bbabc03efcb.svn-base 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. <template>
  2. <div class="app-container">
  3. <div class="search">
  4. <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" />
  5. <el-select v-model="table.getdataListParm.parammaps.barid" placeholder="计划类型" class="filter-item" style="width: 120px;" clearable>
  6. <el-option v-for="item in planTypeList" :key="item.id" :label="item.name" :value="item.id" />
  7. </el-select>
  8. <el-input v-model="table.getdataListParm.parammaps.drivername" placeholder="TMR名称" style="width: 180px;" class="filter-item" clearable />
  9. <el-select v-model="table.getdataListParm.parammaps.barid1" placeholder="工作状态" class="filter-item" style="width: 120px;" clearable>
  10. <el-option v-for="item in workingConditionList" :key="item.id" :label="item.name" :value="item.id" />
  11. </el-select>
  12. <el-button class="successBorder" @click="handleSearch">查询</el-button>
  13. <el-button class="successBorder" @click="handleRefresh">重置</el-button>
  14. </div>
  15. <el-row :gutter="20">
  16. <el-col :span="8">
  17. <h4>TMR设备列表</h4>
  18. <div class="table">
  19. <el-table
  20. :key="table.tableKey"
  21. v-loading="table.listLoading"
  22. element-loading-text="给我一点时间"
  23. :data="table.list"
  24. border
  25. fit
  26. highlight-current-row
  27. style="width: 100%;"
  28. :row-style="rowStyle"
  29. :cell-style="cellStyle"
  30. class="elTable table-fixed"
  31. height="970px"
  32. @row-click="rowClick"
  33. >
  34. <el-table-column label="开始时间" min-width="100px" align="center">
  35. <template slot-scope="scope">
  36. <span>{{ scope.row.A1 }}</span>
  37. </template>
  38. </el-table-column>
  39. <el-table-column label="计划类型" min-width="90px" align="center">
  40. <template slot-scope="scope">
  41. <span>{{ scope.row.A2 }}</span>
  42. </template>
  43. </el-table-column>
  44. <el-table-column label="描述" min-width="90px" align="center">
  45. <template slot-scope="scope">
  46. <span>{{ scope.row.A3 }}</span>
  47. </template>
  48. </el-table-column>
  49. <el-table-column label="TMR名称" min-width="110px" align="center">
  50. <template slot-scope="scope">
  51. <span>{{ scope.row.A4 }}</span>
  52. </template>
  53. </el-table-column>
  54. </el-table>
  55. </div>
  56. </el-col>
  57. <el-col :span="16">
  58. <h4>过程详情</h4>
  59. <div class="detail">
  60. <div class="detail-t">
  61. 过程时间:<span>{{ table.list2[0].A1 }}</span>;
  62. 工作状态:<span>{{ table.list2[0].A2 }}</span>
  63. </div>
  64. <div class="detail-b">
  65. 混料误差值:<span>{{ table.list2[0].A3 }}kg</span>;
  66. 混料误差率:<span>{{ table.list2[0].A4 }}</span>;
  67. 撒料误差值:<span>{{ table.list2[0].A5 }}kg</span>;
  68. 撒料误差率:<span>{{ table.list2[0].A6 }}</span>
  69. </div>
  70. </div>
  71. <div class="Mixture">
  72. <h4>混料详情</h4>
  73. <el-table
  74. :key="table2.tableKey"
  75. v-loading="table2.listLoading"
  76. element-loading-text="给我一点时间"
  77. :data="table2.list"
  78. border
  79. fit
  80. highlight-current-row
  81. style="width: 100%;"
  82. :row-style="rowStyle"
  83. :cell-style="cellStyle"
  84. class="elTable table-fixed"
  85. height="200px"
  86. >
  87. <el-table-column label="操作编号" min-width="110px" align="center">
  88. <template slot-scope="scope">
  89. <span>{{ scope.row.A1 }}</span>
  90. </template>
  91. </el-table-column>
  92. <el-table-column label="饲料名称" min-width="90px" align="center">
  93. <template slot-scope="scope">
  94. <span>{{ scope.row.A2 }}</span>
  95. </template>
  96. </el-table-column>
  97. <el-table-column label="计划重量" min-width="110px" align="center">
  98. <template slot-scope="scope">
  99. <span>{{ scope.row.A3 }}</span>
  100. </template>
  101. </el-table-column>
  102. <el-table-column label="实际重量" min-width="110px" align="center">
  103. <template slot-scope="scope">
  104. <span>{{ scope.row.A4 }}</span>
  105. </template>
  106. </el-table-column>
  107. <el-table-column label="误差值" min-width="110px" align="center">
  108. <template slot-scope="scope">
  109. <span>{{ scope.row.A5 }}</span>
  110. </template>
  111. </el-table-column>
  112. <el-table-column label="误差率" min-width="90px" align="center">
  113. <template slot-scope="scope">
  114. <span>{{ scope.row.A6 }}</span>
  115. </template>
  116. </el-table-column>
  117. <el-table-column label="完成时间" min-width="110px" align="center">
  118. <template slot-scope="scope">
  119. <span>{{ scope.row.A7 }}</span>
  120. </template>
  121. </el-table-column>
  122. <el-table-column label="过程时间" min-width="110px" align="center">
  123. <template slot-scope="scope">
  124. <span>{{ scope.row.A8 }}</span>
  125. </template>
  126. </el-table-column>
  127. <el-table-column label="跳转方式" min-width="110px" align="center">
  128. <template slot-scope="scope">
  129. <span>{{ scope.row.A9 }}</span>
  130. </template>
  131. </el-table-column>
  132. <el-table-column label="开始重量" min-width="110px" align="center">
  133. <template slot-scope="scope">
  134. <span>{{ scope.row.A10 }}</span>
  135. </template>
  136. </el-table-column>
  137. <el-table-column label="结束重量" min-width="110px" align="center">
  138. <template slot-scope="scope">
  139. <span>{{ scope.row.A11 }}</span>
  140. </template>
  141. </el-table-column>
  142. </el-table>
  143. </div>
  144. <div class="SpreadingMaterials">
  145. <h4>撒料详情</h4>
  146. <el-table
  147. :key="table3.tableKey"
  148. v-loading="table3.listLoading"
  149. element-loading-text="给我一点时间"
  150. :data="table3.list"
  151. border
  152. fit
  153. highlight-current-row
  154. style="width: 100%;"
  155. :row-style="rowStyle"
  156. :cell-style="cellStyle"
  157. class="elTable table-fixed"
  158. height="200px"
  159. >
  160. <el-table-column label="操作编号" min-width="110px" align="center">
  161. <template slot-scope="scope">
  162. <span>{{ scope.row.A1 }}</span>
  163. </template>
  164. </el-table-column>
  165. <el-table-column label="栏舍名称" min-width="90px" align="center">
  166. <template slot-scope="scope">
  167. <span>{{ scope.row.A2 }}</span>
  168. </template>
  169. </el-table-column>
  170. <el-table-column label="计划重量" min-width="110px" align="center">
  171. <template slot-scope="scope">
  172. <span>{{ scope.row.A3 }}</span>
  173. </template>
  174. </el-table-column>
  175. <el-table-column label="实际重量" min-width="110px" align="center">
  176. <template slot-scope="scope">
  177. <span>{{ scope.row.A4 }}</span>
  178. </template>
  179. </el-table-column>
  180. <el-table-column label="误差值" min-width="110px" align="center">
  181. <template slot-scope="scope">
  182. <span>{{ scope.row.A5 }}</span>
  183. </template>
  184. </el-table-column>
  185. <el-table-column label="误差率" min-width="90px" align="center">
  186. <template slot-scope="scope">
  187. <span>{{ scope.row.A6 }}</span>
  188. </template>
  189. </el-table-column>
  190. <el-table-column label="完成时间" min-width="110px" align="center">
  191. <template slot-scope="scope">
  192. <span>{{ scope.row.A7 }}</span>
  193. </template>
  194. </el-table-column>
  195. <el-table-column label="过程时间" min-width="110px" align="center">
  196. <template slot-scope="scope">
  197. <span>{{ scope.row.A8 }}</span>
  198. </template>
  199. </el-table-column>
  200. <el-table-column label="跳转方式" min-width="110px" align="center">
  201. <template slot-scope="scope">
  202. <span>{{ scope.row.A9 }}</span>
  203. </template>
  204. </el-table-column>
  205. <el-table-column label="开始重量" min-width="110px" align="center">
  206. <template slot-scope="scope">
  207. <span>{{ scope.row.A10 }}</span>
  208. </template>
  209. </el-table-column>
  210. <el-table-column label="结束重量" min-width="110px" align="center">
  211. <template slot-scope="scope">
  212. <span>{{ scope.row.A11 }}</span>
  213. </template>
  214. </el-table-column>
  215. </el-table>
  216. </div>
  217. <div class="ControlChart">
  218. <h4>监控图</h4>
  219. <div style="font-size:14px;color:#666;margin:0 auto;position: relative;">
  220. <span style="line-height:30px;position:absolute;right:190px"><i class="el-icon-caret-top" style="color:#c23531;line-height:30px;font-size:30px;" /><b style="line-height:32px;">开始重量</b></span>
  221. <span style="line-height:30px;position:absolute;right:100px"><i class="el-icon-caret-top" style="color:#2f4554;line-height:30px;font-size:30px;" /><b style="line-height:32px;">结束重量</b></span>
  222. </div>
  223. <div id="chartLine" style="width: 100%;height:300px;" /></div>
  224. </el-col>
  225. </el-row>
  226. </div>
  227. </template>
  228. <script>
  229. import echarts from 'echarts'
  230. require('echarts/theme/macarons')
  231. import { GetDataByName } from '@/api/common'
  232. import Cookies from 'js-cookie'
  233. import { parseTime } from '@/utils/index.js'
  234. export default {
  235. name: 'ProcessAnalysis',
  236. data() {
  237. return {
  238. requestParams: [
  239. { name: 'getBarListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }},
  240. { name: 'getCowclassListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }}
  241. ],
  242. planTypeList: [{ id: '0', name: '预混计划' }, { id: '1', name: '撒料计划' }, { id: '2', name: '剩料计划' }], // 计划类型
  243. workingConditionList: [{ id: '0', name: '运行中' }, { id: '1', name: '已完成' }], // 工作状态
  244. table: {
  245. getdataListParm: {
  246. name: 'getBarmilkList',
  247. page: 1,
  248. offset: 1,
  249. pagecount: 10,
  250. returntype: 'Map',
  251. parammaps: {
  252. pastureid: Cookies.get('pastureid'),
  253. barid: '',
  254. cowclass: '',
  255. startTime: '',
  256. stopTime: '',
  257. inputDatetime: ''
  258. }
  259. },
  260. tableKey: 0,
  261. list: [
  262. { 'id': 1, 'A1': '2020-09-27 06:34:09', 'A2': '撒料计划', 'A3': '9北10南', 'A4': '1' },
  263. { 'id': 2, 'A1': '2020-09-27 06:34:25', 'A2': '撒料计划', 'A3': '10南', 'A4': '4' },
  264. { 'id': 3, 'A1': '2020-09-27 06:54:04', 'A2': '撒料计划', 'A3': '13南', 'A4': '4' },
  265. { 'id': 4, 'A1': '2020-09-27 07:11:06', 'A2': '撒料计划', 'A3': '13北12南', 'A4': '1' },
  266. { 'id': 5, 'A1': '2020-09-27 07:11:18', 'A2': '撒料计划', 'A3': '12号', 'A4': '4' },
  267. { 'id': 6, 'A1': '2020-09-27 07:28:13', 'A2': '撒料计划', 'A3': '11南', 'A4': '4' },
  268. { 'id': 7, 'A1': '2020-09-27 07:43:35', 'A2': '撒料计划', 'A3': '18号', 'A4': '1' },
  269. { 'id': 8, 'A1': '2020-09-27 07:52:52', 'A2': '撒料计划', 'A3': '5南3南', 'A4': '4' },
  270. { 'id': 9, 'A1': '2020-09-27 08:08:30', 'A2': '撒料计划', 'A3': '10北11北', 'A4': '4' }
  271. ],
  272. list2: [
  273. { 'id': 1, 'A1': '00:36:48', 'A2': '已完成', 'A3': '33.45', 'A4': '11.66%', 'A5': '33.52', 'A6': '6.29%' }
  274. ],
  275. total: 0,
  276. listLoading: true
  277. },
  278. // 混料详情
  279. table2: {
  280. getdataListParm: {
  281. name: 'getBarmilkList',
  282. page: 1,
  283. offset: 1,
  284. pagecount: 10,
  285. returntype: 'Map',
  286. parammaps: {
  287. pastureid: Cookies.get('pastureid'),
  288. barid: '',
  289. cowclass: '',
  290. startTime: '',
  291. stopTime: '',
  292. inputDatetime: ''
  293. }
  294. },
  295. tableKey: 0,
  296. list: [
  297. { 'id': 1, 'A1': '1', 'A2': '进口燕麦草', 'A3': '149.6', 'A4': '150', 'A5': '0.4', 'A6': '0.27%', 'A7': '06:37:28', 'A8': '00:03:19', 'A9': '自动跳转', 'A10': '-8', 'A11': '142' },
  298. { 'id': 2, 'A1': '2', 'A2': '1号苜蓿', 'A3': '199.46', 'A4': '196', 'A5': '3.46', 'A6': '1.7%', 'A7': '06:38:59', 'A8': '00:01:31', 'A9': '自动跳转', 'A10': '142', 'A11': '338' },
  299. { 'id': 3, 'A1': '3', 'A2': '棉籽', 'A3': '99.73', 'A4': '101', 'A5': '1.27', 'A6': '1.3%', 'A7': '06:40:08', 'A8': '00:01:09', 'A9': '自动跳转', 'A10': '337', 'A11': '438' },
  300. { 'id': 4, 'A1': '4', 'A2': '青贮苜蓿', 'A3': '249.33', 'A4': '242', 'A5': '7.33', 'A6': '2.9%', 'A7': '06:41:40', 'A8': '00:01:32', 'A9': '自动跳转', 'A10': '438', 'A11': '680' },
  301. { 'id': 5, 'A1': '5', 'A2': '湿储玉米', 'A3': '279.24', 'A4': '280', 'A5': '0.76', 'A6': '0.27%', 'A7': '06:43:09', 'A8': '00:01:29', 'A9': '自动跳转', 'A10': '678', 'A11': '958' },
  302. { 'id': 6, 'A1': '6', 'A2': '啤酒糟', 'A3': '149.6', 'A4': '144', 'A5': '5.6', 'A6': '3.7%', 'A7': '06:44:44', 'A8': '00:01:35', 'A9': '自动跳转', 'A10': '856', 'A11': '1100' },
  303. { 'id': 7, 'A1': '7', 'A2': '青贮玉米', 'A3': '1396.22', 'A4': '1387', 'A5': '9.22', 'A6': '0.66%', 'A7': '06:47:40', 'A8': '00:02:56', 'A9': '自动跳转', 'A10': '1099', 'A11': '2486' },
  304. { 'id': 8, 'A1': '8', 'A2': '新产料', 'A3': '747.97', 'A4': '749', 'A5': '1.03', 'A6': '0.14%', 'A7': '06:49:20', 'A8': '00:01:40', 'A9': '自动跳转', 'A10': '2487', 'A11': '3236' },
  305. { 'id': 9, 'A1': '9', 'A2': '水', 'A3': '598.38', 'A4': '594', 'A5': '4.38', 'A6': '0.73%', 'A7': '06:53:14', 'A8': '00:03:54', 'A9': '自动跳转', 'A10': '3236', 'A11': '3830' }
  306. ],
  307. total: 0,
  308. listLoading: true
  309. },
  310. // 撒料详情
  311. table3: {
  312. getdataListParm: {
  313. name: 'getBarmilkList',
  314. page: 1,
  315. offset: 1,
  316. pagecount: 10,
  317. returntype: 'Map',
  318. parammaps: {
  319. pastureid: Cookies.get('pastureid'),
  320. barid: '',
  321. cowclass: '',
  322. startTime: '',
  323. stopTime: '',
  324. inputDatetime: ''
  325. }
  326. },
  327. tableKey: 0,
  328. list: [
  329. { 'id': 1, 'A1': '101', 'A2': '17号', 'A3': '802.38', 'A4': '798', 'A5': '4.38', 'A6': '0.55%', 'A7': '06:59:03', 'A8': '00:05:49', 'A9': '自动跳转', 'A10': '3830', 'A11': '3032' },
  330. { 'id': 2, 'A1': '102', 'A2': '5号南', 'A3': '1808.86', 'A4': '1801', 'A5': '7.86', 'A6': '0.43%', 'A7': '07:02:01', 'A8': '00:02:58', 'A9': '自动跳转', 'A10': '3033', 'A11': '1232' },
  331. { 'id': 3, 'A1': '103', 'A2': '3南东', 'A3': '529.62', 'A4': '524', 'A5': '5.62', 'A6': '1.06%', 'A7': '07:05:20', 'A8': '00:03:19', 'A9': '自动跳转', 'A10': '1232', 'A11': '708' },
  332. { 'id': 4, 'A1': '104', 'A2': '3南西', 'A3': '356.18', 'A4': '352', 'A5': '4.18', 'A6': '1.17%', 'A7': '07:07:10', 'A8': '00:01:50', 'A9': '自动跳转', 'A10': '708', 'A11': '356 ' },
  333. { 'id': 5, 'A1': '105', 'A2': '1号南', 'A3': '372.48', 'A4': '361', 'A5': '11.48', 'A6': '3.08%', 'A7': '07:10:57', 'A8': '00:03:47', 'A9': '自动跳转', 'A10': '355', 'A11': '-6' }
  334. ],
  335. total: 0,
  336. listLoading: true
  337. },
  338. chartLine: null,
  339. chartLine_data1: {
  340. data1: ['06:34:10', '06:34:11', '06:34:12', '06:34:13', '06:34:14', '06:34:14', '06:34:15', '06:34:16', '06:34:17', '06:34:18', '06:34:19', '06:34:20', '06:34:21', '06:34:22', '06:34:23', '06:34:29', '06:34:44', '06:34:59', '06:35:14', '06:35:29', '06:35:44', '06:35:59', '06:36:14', '06:36:29', '06:36:44', '06:36:59', '06:37:14', '06:37:28', '06:37:29', '06:37:44', '06:37:59', '06:38:14', '06:38:29', '06:38:44', '06:38:59', '06:38:59', '06:39:14', '06:39:29', '06:39:44', '06:39:59', '06:40:08', '06:40:14', '06:40:29', '06:40:44', '06:40:59', '06:41:14', '06:41:29', '06:41:40', '06:41:44', '06:41:59', '06:42:14', '06:42:29', '06:42:44', '06:42:59', '06:43:09', '06:43:14', '06:43:29', '06:43:44', '06:43:59', '06:44:14', '06:44:29', '06:44:44', '06:44:44', '06:44:59', '06:45:14', '06:45:30', '06:45:45', '06:46:00', '06:46:15', '06:46:30', '06:46:45', '06:47:00', '06:47:15', '06:47:30', '06:47:40', '06:47:45', '06:48:00', '06:48:15', '06:48:30', '06:48:45', '06:49:00', '06:49:15', '06:49:20', '06:49:30', '06:49:45', '06:50:00', '06:50:15', '06:50:30', '06:50:45', '06:51:00', '06:51:15', '06:51:30', '06:51:45', '06:52:00', '06:52:15', '06:52:30', '06:52:45', '06:53:00', '06:53:14', '06:53:15', '06:53:30', '06:53:45', '06:54:00', '06:54:15', '06:54:30', '06:54:45', '06:55:00', '06:55:15', '06:55:30', '06:55:45', '06:56:00', '06:56:15', '06:56:30', '06:56:45', '06:57:00', '06:57:15', '06:57:30', '06:57:45', '06:58:00', '06:58:16', '06:58:31', '06:58:46', '06:59:01', '06:59:03', '06:59:16', '06:59:31', '06:59:46', '07:00:01', '07:00:16', '07:00:31', '07:00:46', '07:01:01', '07:01:16', '07:01:31', '07:01:46', '07:02:01', '07:02:01', '07:02:16', '07:02:31', '07:02:46', '07:03:01', '07:03:16', '07:03:31', '07:03:46', '07:04:01', '07:04:16', '07:04:31', '07:04:46', '07:05:01', '07:05:16', '07:05:20', '07:05:31', '07:05:46', '07:06:01', '07:06:16', '07:06:31', '07:06:46', '07:07:01', '07:07:10', '07:07:16', '07:07:31', '07:07:46', '07:08:01', '07:08:16', '07:08:31', '07:08:46', '07:09:01', '07:09:16', '07:09:31', '07:09:46'],
  341. data2: [141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 341.46, 341.46, 341.46, 341.46, 341.46, 341.46, 341.46, 437.73, 437.73, 437.73, 437.73, 437.73, 437.73, 687.33, 687.33, 687.33, 687.33, 687.33, 687.33, 687.33, 959.24, 959.24, 959.24, 959.24, 959.24, 959.24, 959.24, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 351.82, 351.82, 351.82, 351.82, 351.82, 351.82, 351.82, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48],
  342. data3: [-8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -11, -9, -4, -8, -10, -8, -8, 0, -1, 32, 88, 142, 143, 141, 154, 215, 250, 256, 338, 337, 329, 325, 409, 420, 438, 434, 432, 447, 439, 496, 655, 680, 678, 670, 669, 741, 752, 924, 958, 962, 955, 961, 956, 956, 968, 1100, 1099, 1102, 1115, 1103, 1217, 1266, 1681, 1919, 1968, 2139, 2426, 2479, 2486, 2489, 2480, 2502, 2498, 2769, 3097, 3224, 3236, 3242, 3238, 3282, 3320, 3369, 3411, 3458, 3499, 3540, 3580, 3632, 3668, 3708, 3753, 3798, 3830, 3830, 3837, 3840, 3832, 3829, 3842, 3817, 3825, 3822, 3850, 3820, 3830, 3837, 3833, 3830, 3832, 3829, 3814, 3681, 3575, 3423, 3268, 3138, 3036, 3032, 3039, 3032, 3017, 3025, 3036, 2926, 2895, 2696, 2315, 1831, 1379, 1232, 1232, 1227, 1228, 1224, 1225, 1213, 1230, 1209, 1221, 1225, 1231, 1138, 928, 736, 708, 707, 674, 540, 530, 527, 437, 390, 356, 325, 307, 309, 310, 308, 294, 308, 306, 293, 278, 226],
  343. data4: [
  344. ['06:34:10', -8],
  345. ['06:37:28', 142],
  346. ['06:37:29', 143],
  347. ['06:38:59', 338],
  348. ['06:38:59', 337],
  349. ['06:40:08', 438],
  350. ['06:40:08', 438],
  351. ['06:41:40', 680],
  352. ['06:41:44', 678],
  353. ['06:43:09', 958],
  354. ['06:43:09', 958],
  355. ['06:44:44', 1100],
  356. ['06:44:44', 1099],
  357. ['06:47:40', 2486],
  358. ['06:47:45', 2489],
  359. ['06:49:20', 3236],
  360. ['06:49:20', 3236],
  361. ['06:53:14', 3830],
  362. ['06:53:15', 3830],
  363. ['06:59:01', 3036],
  364. ['06:59:03', 3032],
  365. ['07:02:01', 1232],
  366. ['07:02:01', 1232],
  367. ['07:05:16', 736],
  368. ['07:05:20', 708],
  369. ['07:07:10', 356],
  370. ['07:07:10', 356]
  371. ]
  372. },
  373. rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
  374. cellStyle: { padding: 0 + 'px' }
  375. }
  376. },
  377. created() {
  378. this.getList()
  379. },
  380. mounted() {
  381. this.roadChartLine1(this.chartLine_data1)
  382. },
  383. methods: {
  384. getList() {
  385. this.table.listLoading = true
  386. GetDataByName(this.table.getdataListParm).then(response => {
  387. console.log('table数据', response.data.list)
  388. if (response.data.list !== null) {
  389. // this.table.list = response.data.list
  390. this.getList2()
  391. this.getList3()
  392. } else {
  393. this.table.list = []
  394. }
  395. setTimeout(() => {
  396. this.table.listLoading = false
  397. }, 100)
  398. })
  399. },
  400. handleSearch() {
  401. console.log('点击了查询')
  402. if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
  403. this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
  404. this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
  405. } else {
  406. this.table.getdataListParm.parammaps.inputDatetime = ''
  407. this.table.getdataListParm.parammaps.startTime = ''
  408. this.table.getdataListParm.parammaps.stopTime = ''
  409. }
  410. this.table.getdataListParm.offset = 1
  411. this.getList()
  412. },
  413. handleRefresh() {
  414. console.log('点击了重置')
  415. this.table.getdataListParm.parammaps.barid = ''
  416. this.table.getdataListParm.parammaps.cowclass = ''
  417. this.table.getdataListParm.parammaps.startTime = ''
  418. this.table.getdataListParm.parammaps.stopTime = ''
  419. this.table.getdataListParm.parammaps.inputDatetime = ''
  420. this.table.getdataListParm.offset = 1
  421. this.getList()
  422. },
  423. rowClick(row, column, event) {
  424. console.log(row, column, event)
  425. if (row.id % 2 == 0) {
  426. console.log(123)
  427. this.table.list2 = [{ 'id': 1, 'A1': '00:40:55', 'A2': '已完成', 'A3': '29', 'A4': '9.85%', 'A5': '31.52', 'A6': '5.96%' }]
  428. this.table2.list = [
  429. { 'id': 1, 'A1': '1', 'A2': '国产燕麦草', 'A3': '52.26', 'A4': '49', 'A5': '3.26', 'A6': '0.31%', 'A7': '06:35:04', 'A8': '00:00:39', 'A9': '自动跳转', 'A10': '3', 'A11': '52' },
  430. { 'id': 2, 'A1': '2', 'A2': '1号苜蓿', 'A3': '130.66', 'A4': '126', 'A5': '4.66', 'A6': '1.9%', 'A7': '06:36:04', 'A8': '00:01:00', 'A9': '自动跳转', 'A10': '52', 'A11': '178' },
  431. { 'id': 3, 'A1': '3', 'A2': '棉籽', 'A3': '111.06', 'A4': '117', 'A5': '6.06', 'A6': '1.15%', 'A7': '06:37:00', 'A8': '00:00:56', 'A9': '自动跳转', 'A10': '177', 'A11': '294' },
  432. { 'id': 4, 'A1': '4', 'A2': '湿储玉米', 'A3': '346.25', 'A4': '351', 'A5': '4.25', 'A6': '1.9%', 'A7': '06:38:24', 'A8': '00:01:24', 'A9': '自动跳转', 'A10': '293', 'A11': '644' },
  433. { 'id': 5, 'A1': '5', 'A2': '青贮苜蓿', 'A3': '195.99', 'A4': '189', 'A5': '6.99', 'A6': '0.45%', 'A7': '06:39:31', 'A8': '00:01:07', 'A9': '自动跳转', 'A10': '643', 'A11': '832' },
  434. { 'id': 6, 'A1': '6', 'A2': '啤酒糟', 'A3': '228.65', 'A4': '229', 'A5': '0.35', 'A6': '3.46%', 'A7': '06:41:04', 'A8': '00:01:33', 'A9': '自动跳转', 'A10': '833', 'A11': '1.62' },
  435. { 'id': 7, 'A1': '7', 'A2': '青贮玉米', 'A3': '1371.93', 'A4': '1370', 'A5': '1.93', 'A6': '0.86%', 'A7': '06:43:13', 'A8': '00:02:09', 'A9': '自动跳转', 'A10': '1060', 'A11': '2430' },
  436. { 'id': 8, 'A1': '8', 'A2': '高产料', 'A3': '607.57', 'A4': '597', 'A5': '9.57', 'A6': '0.54%', 'A7': '06:44:45', 'A8': '00:01:32', 'A9': '自动跳转', 'A10': '2428', 'A11': '3025' },
  437. { 'id': 9, 'A1': '9', 'A2': '水', 'A3': '326.65', 'A4': '331', 'A5': '4.65', 'A6': '0.33%', 'A7': '06:46:57', 'A8': '00:02:12', 'A9': '自动跳转', 'A10': '3025', 'A11': '3356' }
  438. ]
  439. this.table3.list = [
  440. { 'id': 1, 'A1': '101', 'A2': '10号南', 'A3': '3371.02', 'A4': '3343', 'A5': '27.02', 'A6': '0.43%', 'A7': '06:51:43', 'A8': '00:04:46', 'A9': '自动跳转', 'A10': '3349', 'A11': '6' }
  441. ]
  442. this.chartLine_data1 = {
  443. data1: ['06:34:10', '06:34:11', '06:34:12', '06:34:13', '06:34:14', '06:34:14', '06:34:15', '06:34:16', '06:34:17', '06:34:18', '06:34:19', '06:34:20', '06:34:21', '06:34:22', '06:34:23', '06:34:29', '06:34:44', '06:34:59', '06:35:14', '06:35:29', '06:35:44', '06:35:59', '06:36:14', '06:36:29', '06:36:44', '06:36:59', '06:37:14', '06:37:28', '06:37:29', '06:37:44', '06:37:59', '06:38:14', '06:38:29', '06:38:44', '06:38:59', '06:38:59', '06:39:14', '06:39:29', '06:39:44', '06:39:59', '06:40:08', '06:40:14', '06:40:29', '06:40:44', '06:40:59', '06:41:14', '06:41:29', '06:41:40', '06:41:44', '06:41:59', '06:42:14', '06:42:29', '06:42:44', '06:42:59', '06:43:09', '06:43:14', '06:43:29', '06:43:44', '06:43:59', '06:44:14', '06:44:29', '06:44:44', '06:44:44', '06:44:59', '06:45:14', '06:45:30', '06:45:45', '06:46:00', '06:46:15', '06:46:30', '06:46:45', '06:47:00', '06:47:15', '06:47:30', '06:47:40', '06:47:45', '06:48:00', '06:48:15', '06:48:30', '06:48:45', '06:49:00', '06:49:15', '06:49:20', '06:49:30', '06:49:45', '06:50:00', '06:50:15', '06:50:30', '06:50:45', '06:51:00', '06:51:15', '06:51:30', '06:51:45', '06:52:00', '06:52:15', '06:52:30', '06:52:45', '06:53:00', '06:53:14', '06:53:15', '06:53:30', '06:53:45', '06:54:00', '06:54:15', '06:54:30', '06:54:45', '06:55:00', '06:55:15', '06:55:30', '06:55:45', '06:56:00', '06:56:15', '06:56:30', '06:56:45', '06:57:00', '06:57:15', '06:57:30', '06:57:45', '06:58:00', '06:58:16', '06:58:31', '06:58:46', '06:59:01', '06:59:03', '06:59:16', '06:59:31', '06:59:46', '07:00:01', '07:00:16', '07:00:31', '07:00:46', '07:01:01', '07:01:16', '07:01:31', '07:01:46', '07:02:01', '07:02:01', '07:02:16', '07:02:31', '07:02:46', '07:03:01', '07:03:16', '07:03:31', '07:03:46', '07:04:01', '07:04:16', '07:04:31', '07:04:46', '07:05:01', '07:05:16', '07:05:20', '07:05:31', '07:05:46', '07:06:01', '07:06:16', '07:06:31', '07:06:46', '07:07:01', '07:07:10', '07:07:16', '07:07:31', '07:07:46', '07:08:01', '07:08:16', '07:08:31', '07:08:46', '07:09:01', '07:09:16', '07:09:31', '07:09:46'],
  444. data2: [141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 141.6, 341.46, 341.46, 341.46, 341.46, 341.46, 341.46, 341.46, 437.73, 437.73, 437.73, 437.73, 437.73, 437.73, 687.33, 687.33, 687.33, 687.33, 687.33, 687.33, 687.33, 959.24, 959.24, 959.24, 959.24, 959.24, 959.24, 959.24, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 1107.6, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 2496.22, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3233.97, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3834.38, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 3027.62, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 1223.14, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 702.38, 351.82, 351.82, 351.82, 351.82, 351.82, 351.82, 351.82, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48, -16.48],
  445. data3: [-8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -8, -11, -9, -4, -8, -10, -8, -8, 0, -1, 32, 88, 142, 143, 141, 154, 215, 250, 256, 338, 337, 329, 325, 409, 420, 438, 434, 432, 447, 439, 496, 655, 680, 678, 670, 669, 741, 752, 924, 958, 962, 955, 961, 956, 956, 968, 1100, 1099, 1102, 1115, 1103, 1217, 1266, 1681, 1919, 1968, 2139, 2426, 2479, 2486, 2489, 2480, 2502, 2498, 2769, 3097, 3224, 3236, 3242, 3238, 3282, 3320, 3369, 3411, 3458, 3499, 3540, 3580, 3632, 3668, 3708, 3753, 3798, 3830, 3830, 3837, 3840, 3832, 3829, 3842, 3817, 3825, 3822, 3850, 3820, 3830, 3837, 3833, 3830, 3832, 3829, 3814, 3681, 3575, 3423, 3268, 3138, 3036, 3032, 3039, 3032, 3017, 3025, 3036, 2926, 2895, 2696, 2315, 1831, 1379, 1232, 1232, 1227, 1228, 1224, 1225, 1213, 1230, 1209, 1221, 1225, 1231, 1138, 928, 736, 708, 707, 674, 540, 530, 527, 437, 390, 356, 325, 307, 309, 310, 308, 294, 308, 306, 293, 278, 226],
  446. data4: [
  447. ['06:34:10', -8],
  448. ['06:37:28', 142],
  449. ['06:37:29', 143],
  450. ['06:38:59', 338],
  451. ['06:38:59', 337],
  452. ['06:40:08', 438],
  453. ['06:40:08', 438],
  454. ['06:41:40', 680],
  455. ['06:41:44', 678],
  456. ['06:43:09', 958],
  457. ['06:43:09', 958],
  458. ['06:44:44', 1100],
  459. ['06:44:44', 1099],
  460. ['06:47:40', 2486],
  461. ['06:47:45', 2489],
  462. ['06:49:20', 3236],
  463. ['06:49:20', 3236],
  464. ['06:53:14', 3830],
  465. ['06:53:15', 3830],
  466. ['06:59:01', 3036],
  467. ['06:59:03', 3032],
  468. ['07:02:01', 1232],
  469. ['07:02:01', 1232],
  470. ['07:05:16', 736],
  471. ['07:05:20', 708],
  472. ['07:07:10', 356],
  473. ['07:07:10', 356]
  474. ]
  475. }
  476. this.roadChartLine1(this.chartLine_data1)
  477. } else {
  478. this.table.list2 = [
  479. { 'id': 1, 'A1': '00:36:48', 'A2': '已完成', 'A3': '33.45', 'A4': '11.66%', 'A5': '33.52', 'A6': '6.29%' }
  480. ]
  481. this.table2.list = [
  482. { 'id': 1, 'A1': '1', 'A2': '进口燕麦草', 'A3': '149.6', 'A4': '150', 'A5': '0.4', 'A6': '0.27%', 'A7': '06:37:28', 'A8': '00:03:19', 'A9': '自动跳转', 'A10': '-8', 'A11': '142' },
  483. { 'id': 2, 'A1': '2', 'A2': '1号苜蓿', 'A3': '199.46', 'A4': '196', 'A5': '3.46', 'A6': '1.7%', 'A7': '06:38:59', 'A8': '00:01:31', 'A9': '自动跳转', 'A10': '142', 'A11': '338' },
  484. { 'id': 3, 'A1': '3', 'A2': '棉籽', 'A3': '99.73', 'A4': '101', 'A5': '1.27', 'A6': '1.3%', 'A7': '06:40:08', 'A8': '00:01:09', 'A9': '自动跳转', 'A10': '337', 'A11': '438' },
  485. { 'id': 4, 'A1': '4', 'A2': '青贮苜蓿', 'A3': '249.33', 'A4': '242', 'A5': '7.33', 'A6': '2.9%', 'A7': '06:41:40', 'A8': '00:01:32', 'A9': '自动跳转', 'A10': '438', 'A11': '680' },
  486. { 'id': 5, 'A1': '5', 'A2': '湿储玉米', 'A3': '279.24', 'A4': '280', 'A5': '0.76', 'A6': '0.27%', 'A7': '06:43:09', 'A8': '00:01:29', 'A9': '自动跳转', 'A10': '678', 'A11': '958' },
  487. { 'id': 6, 'A1': '6', 'A2': '啤酒糟', 'A3': '149.6', 'A4': '144', 'A5': '5.6', 'A6': '3.7%', 'A7': '06:44:44', 'A8': '00:01:35', 'A9': '自动跳转', 'A10': '856', 'A11': '1100' },
  488. { 'id': 7, 'A1': '7', 'A2': '青贮玉米', 'A3': '1396.22', 'A4': '1387', 'A5': '9.22', 'A6': '0.66%', 'A7': '06:47:40', 'A8': '00:02:56', 'A9': '自动跳转', 'A10': '1099', 'A11': '2486' },
  489. { 'id': 8, 'A1': '8', 'A2': '新产料', 'A3': '747.97', 'A4': '749', 'A5': '1.03', 'A6': '0.14%', 'A7': '06:49:20', 'A8': '00:01:40', 'A9': '自动跳转', 'A10': '2487', 'A11': '3236' },
  490. { 'id': 9, 'A1': '9', 'A2': '水', 'A3': '598.38', 'A4': '594', 'A5': '4.38', 'A6': '0.73%', 'A7': '06:53:14', 'A8': '00:03:54', 'A9': '自动跳转', 'A10': '3236', 'A11': '3830' }
  491. ]
  492. this.table3.list = [
  493. { 'id': 1, 'A1': '101', 'A2': '17号', 'A3': '802.38', 'A4': '798', 'A5': '4.38', 'A6': '0.55%', 'A7': '06:59:03', 'A8': '00:05:49', 'A9': '自动跳转', 'A10': '3830', 'A11': '3032' },
  494. { 'id': 2, 'A1': '102', 'A2': '5号南', 'A3': '1808.86', 'A4': '1801', 'A5': '7.86', 'A6': '0.43%', 'A7': '07:02:01', 'A8': '00:02:58', 'A9': '自动跳转', 'A10': '3033', 'A11': '1232' },
  495. { 'id': 3, 'A1': '103', 'A2': '3南东', 'A3': '529.62', 'A4': '524', 'A5': '5.62', 'A6': '1.06%', 'A7': '07:05:20', 'A8': '00:03:19', 'A9': '自动跳转', 'A10': '1232', 'A11': '708' },
  496. { 'id': 4, 'A1': '104', 'A2': '3南西', 'A3': '356.18', 'A4': '352', 'A5': '4.18', 'A6': '1.17%', 'A7': '07:07:10', 'A8': '00:01:50', 'A9': '自动跳转', 'A10': '708', 'A11': '356 ' },
  497. { 'id': 5, 'A1': '105', 'A2': '1号南', 'A3': '372.48', 'A4': '361', 'A5': '11.48', 'A6': '3.08%', 'A7': '07:10:57', 'A8': '00:03:47', 'A9': '自动跳转', 'A10': '355', 'A11': '-6' }
  498. ]
  499. this.chartLine_data1 = {
  500. data1: ['06:34:26', '06:34:27', '06:34:28', '06:34:29', '06:34:30', '06:34:34', '06:34:35', '06:34:45', '06:35:00', '06:35:04', '06:35:15', '06:35:30', '06:35:45', '06:36:00', '06:36:04', '06:36:15', '06:36:30', '06:36:45', '06:37:00', '06:37:00', '06:37:15', '06:37:30', '06:37:45', '06:38:00', '06:38:15', '06:38:24', '06:38:30', '06:38:45', '06:39:00', '06:39:15', '06:39:30', '06:39:31', '06:39:45', '06:40:00', '06:40:15', '06:40:30', '06:40:45', '06:41:00', '06:41:04', '06:41:15', '06:41:30', '06:41:45', '06:42:00', '06:42:15', '06:42:30', '06:42:45', '06:43:00', '06:43:13', '06:43:15', '06:43:31', '06:43:46', '06:44:01', '06:44:16', '06:44:31', '06:44:45', '06:44:46', '06:45:01', '06:45:16', '06:45:31', '06:45:46', '06:46:01', '06:46:16', '06:46:31', '06:46:46', '06:46:57', '06:47:01', '06:47:16', '06:47:31', '06:47:46', '06:48:01', '06:48:16', '06:48:31', '06:48:46', '06:49:01', '06:49:16', '06:49:31', '06:49:46', '06:50:01', '06:50:16', '06:50:31', '06:50:46', '06:51:01', '06:51:16', '06:51:31'],
  501. data2: [55.26, 55.26, 55.26, 55.26, 55.26, 55.26, 55.26, 55.26, 55.26, 55.26, 182.66, 182.66, 182.66, 182.66, 182.66, 289.06, 289.06, 289.06, 289.06, 620.25, 620.25, 620.25, 620.25, 620.25, 620.25, 620.25, 839.99, 839.99, 839.99, 839.99, 839.99, 839.99, 1060.65, 1060.65, 1060.65, 1060.65, 1060.65, 1060.65, 1060.65, 2433.93, 2433.93, 2433.93, 2433.93, 2433.93, 2433.93, 2433.93, 2433.93, 2433.93, 3037.57, 3037.57, 3037.57, 3037.57, 3037.57, 3037.57, 3037.57, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, 3351.65, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03, -15.03],
  502. data3: [3, 2, 1, 2, 3, 8, 13, 1, 47, 52, 56, 49, 124, 167, 178, 176, 178, 192, 294, 293, 286, 292, 290, 301, 574, 644, 649, 641, 648, 795, 831, 832, 827, 841, 845, 889, 1029, 1082, 1062, 1070, 1077, 1183, 1393, 1732, 1959, 2222, 2332, 2430, 2429, 2423, 2442, 2446, 2598, 2814, 3025, 3040, 3031, 3062, 3097, 3142, 3189, 3230, 3277, 3324, 3356, 3353, 3358, 3334, 3363, 3364, 3353, 3343, 3351, 3364, 3351, 3370, 3355, 2971, 2273, 1425, 1380, 857, 251, 21],
  503. data4: [
  504. ['06:34:10', -8],
  505. ['06:37:28', 142],
  506. ['06:37:29', 143],
  507. ['06:38:59', 338],
  508. ['06:38:59', 337],
  509. ['06:40:08', 438],
  510. ['06:40:08', 438],
  511. ['06:41:40', 680],
  512. ['06:41:44', 678],
  513. ['06:43:09', 958],
  514. ['06:43:09', 958],
  515. ['06:44:44', 1100],
  516. ['06:44:44', 1099],
  517. ['06:47:40', 2486],
  518. ['06:47:45', 2489],
  519. ['06:49:20', 3236],
  520. ['06:49:20', 3236],
  521. ['06:53:14', 3830],
  522. ['06:53:15', 3830],
  523. ['06:59:01', 3036],
  524. ['06:59:03', 3032],
  525. ['07:02:01', 1232],
  526. ['07:02:01', 1232],
  527. ['07:05:16', 736],
  528. ['07:05:20', 708],
  529. ['07:07:10', 356],
  530. ['07:07:10', 356]
  531. ]
  532. }
  533. this.roadChartLine1(this.chartLine_data1)
  534. }
  535. },
  536. getList2() {
  537. this.table2.listLoading = true
  538. GetDataByName(this.table2.getdataListParm).then(response => {
  539. console.log('table数据', response.data.list)
  540. if (response.data.list !== null) {
  541. // this.table2.list = response.data.list
  542. } else {
  543. this.table2.list = []
  544. }
  545. setTimeout(() => {
  546. this.table2.listLoading = false
  547. }, 100)
  548. })
  549. },
  550. getList3() {
  551. this.table3.listLoading = true
  552. GetDataByName(this.table3.getdataListParm).then(response => {
  553. console.log('table数据', response.data.list)
  554. if (response.data.list !== null) {
  555. // this.table3.list = response.data.list
  556. } else {
  557. this.table3.list = []
  558. }
  559. setTimeout(() => {
  560. this.table3.listLoading = false
  561. }, 100)
  562. })
  563. },
  564. roadChartLine1(chartLine_data1) {
  565. if (this.chartLine != null) {
  566. this.chartLine.dispose()
  567. }
  568. this.chartLine = echarts.init(document.getElementById('chartLine'))
  569. var option = {
  570. title: {
  571. text: '',
  572. subtext: ''
  573. },
  574. color: ['#c23531', '#2f4554'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
  575. legend: {
  576. icon: 'rectangle',
  577. data: ['设计重量', '实际重量'],
  578. // right: '20%',
  579. textStyle: {
  580. fontSize: 12,
  581. color: '#666'
  582. }
  583. },
  584. /* grid:{y:15},*/
  585. tooltip: {
  586. trigger: 'axis'
  587. },
  588. calculable: true,
  589. yAxis: [
  590. {
  591. type: 'value',
  592. splitLine: { show: false }, // 去除网格线
  593. axisLabel: {
  594. show: true,
  595. textStyle: {
  596. color: '#666' // 这里用参数代替了
  597. }
  598. }
  599. }
  600. ],
  601. xAxis: [
  602. {
  603. type: 'category',
  604. splitLine: { show: false }, // 去除网格线
  605. data: chartLine_data1.data1,
  606. axisLabel: {
  607. show: true,
  608. textStyle: {
  609. color: '#666' // 这里用参数代替了
  610. }
  611. }
  612. }
  613. ],
  614. series: [{
  615. symbol: 'none',
  616. name: '实际重量',
  617. type: 'line',
  618. // step: 'end',
  619. data: chartLine_data1.data3,
  620. smooth: true,
  621. barWidth: '37',
  622. itemStyle: {
  623. normal: {
  624. lineStyle: { color: '#61a5e8' }
  625. }
  626. }
  627. }, {
  628. name: '设计重量',
  629. type: 'line',
  630. barWidth: '37',
  631. data: chartLine_data1.data2
  632. }, {
  633. symbol: 'triangle',
  634. symbolSize: 10,
  635. itemStyle: {
  636. normal: {
  637. lineStyle: { color: '#ff3131' },
  638. color: function(param) {
  639. const colorList = ['#61a5e8', '#ff3131']
  640. let x = ''
  641. param.dataIndex % 2 == 0 ? x = 1 : x = 2
  642. if (x == '1') {
  643. return colorList[0]
  644. } else {
  645. return colorList[1]
  646. }
  647. }
  648. }
  649. },
  650. data: chartLine_data1.data4,
  651. type: 'scatter'
  652. }]
  653. }
  654. this.chartLine.setOption(option)
  655. window.onresize = function() {
  656. this.chartLine.resize()
  657. }
  658. }
  659. }
  660. }
  661. </script>
  662. <style lang="scss" scoped>
  663. .search{padding-top:10px;clear: both;}
  664. .table{margin-top:10px;}
  665. .detail{
  666. height:84px;border: 1px solid #EBEEF5;padding-left:10px;font:16px/32px '';color:#333;
  667. .detail-t{margin-top: 10px;}
  668. .detail-b{margin-bottom: 10px;}
  669. }
  670. </style>