| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585 | 
							
- <template>
 
-   <div class="app-container">
 
-     <div class="search">
 
-       <el-date-picker v-model="table.getdataListParm.parammaps.inputDatetime" class="inputDatetime filter-item" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" style="width: 250px;" />
 
-       <el-select v-model="table.getdataListParm.parammaps.pid" placeholder="计划类型" class="filter-item" style="width: 120px;" clearable>
 
-         <el-option v-for="item in planTypeList" :key="item.id" :label="item.name" :value="item.id" />
 
-       </el-select>
 
-       <el-input v-model="table.getdataListParm.parammaps.tmrtname" placeholder="TMR名称" style="width: 180px;" class="filter-item" clearable />
 
-       <el-select v-model="table.getdataListParm.parammaps.iscompleted" placeholder="工作状态" class="filter-item" style="width: 120px;" clearable>
 
-         <el-option v-for="item in workingConditionList" :key="item.id" :label="item.name" :value="item.id" />
 
-       </el-select>
 
-       <el-button class="successBorder" @click="handleSearch">查询</el-button>
 
-       <el-button class="successBorder" @click="handleRefresh">重置</el-button>
 
-     </div>
 
-     <el-row :gutter="20">
 
-       <el-col :span="8">
 
-         <h4>TMR设备列表</h4>
 
-         <div class="table">
 
-           <el-table
 
-             :key="table.tableKey"
 
-             v-loading="table.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="table.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-             height="970px"
 
-             @row-click="rowClick"
 
-           >
 
-             <el-table-column label="开始时间" min-width="100px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.intime }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="计划类型" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.lpplantype }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="描述" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.remark }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="TMR名称" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.tmrtname }}</span>
 
-               </template>
 
-             </el-table-column>
 
-           </el-table>
 
-         </div>
 
-       </el-col>
 
-       <el-col :span="16">
 
-         <h4>过程详情</h4>
 
-         <div class="detail">
 
-           <div class="detail-t">
 
-             过程时间:<span>{{ table2.list[0].processtime }}</span>;
 
-             工作状态:<span>{{ table2.list[0].iscompleted }}</span>
 
-           </div>
 
-           <div class="detail-b">
 
-             混料误差值:<span>{{ table2.list[0].Hdif }}kg</span>;
 
-             混料误差率:<span>{{ table2.list[0].HdifRate }}</span>;
 
-             撒料误差值:<span>{{ table2.list[0].Sdif }}kg</span>;
 
-             撒料误差率:<span>{{ table2.list[0].SdifRate }}</span>
 
-           </div>
 
-         </div>
 
-         <div class="Mixture">
 
-           <h4>混料详情</h4>
 
-           <el-table
 
-             :key="table3.tableKey"
 
-             v-loading="table3.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="table3.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-             height="200px"
 
-           >
 
-             <el-table-column label="操作编号" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.sort }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="饲料名称" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.fname }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="计划重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.lweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="实际重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.actualweightminus }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="误差值" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.diff }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="误差率" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.diffRate }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="完成时间" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.intime }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="过程时间" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.proesstime }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="跳转方式" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.A9 }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="开始重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.lastactualweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="结束重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.actualweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-           </el-table>
 
-         </div>
 
-         <div class="SpreadingMaterials">
 
-           <h4>撒料详情</h4>
 
-           <el-table
 
-             :key="table4.tableKey"
 
-             v-loading="table4.listLoading"
 
-             element-loading-text="给我一点时间"
 
-             :data="table4.list"
 
-             border
 
-             fit
 
-             highlight-current-row
 
-             style="width: 100%;"
 
-             :row-style="rowStyle"
 
-             :cell-style="cellStyle"
 
-             class="elTable table-fixed"
 
-             height="200px"
 
-           >
 
-             <el-table-column label="操作编号" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.sort }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="栏舍名称" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.fname }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="计划重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.lweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="实际重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.actualweightminus }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="误差值" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.diff }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="误差率" min-width="90px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.diffRate }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="完成时间" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.intime }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="过程时间" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.proesstime }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="跳转方式" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.A9 }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="开始重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.lastactualweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-             <el-table-column label="结束重量" min-width="110px" align="center">
 
-               <template slot-scope="scope">
 
-                 <span>{{ scope.row.actualweight }}</span>
 
-               </template>
 
-             </el-table-column>
 
-           </el-table>
 
-         </div>
 
-         <div class="ControlChart">
 
-           <h4>监控图</h4>
 
-           <div style="font-size:14px;color:#666;margin:0 auto;position: relative;">
 
-             <span style="line-height:30px;position:absolute;right:190px"><i class="el-icon-caret-top" style="color:#ff2d2d;line-height:30px;font-size:30px;" /><b style="line-height:32px;">开始重量</b></span>
 
-             <span style="line-height:30px;position:absolute;right:100px"><i class="el-icon-caret-top" style="color:#61a5e8;line-height:30px;font-size:30px;" /><b style="line-height:32px;">结束重量</b></span>
 
-           </div>
 
-           <div id="chartLine" style="width: 100%;height:300px;" /></div>
 
-       </el-col>
 
-     </el-row>
 
-   </div>
 
- </template>
 
- <script>
 
- import echarts from 'echarts'
 
- require('echarts/theme/macarons')
 
- import { GetDataByName } from '@/api/common'
 
- import Cookies from 'js-cookie'
 
- import { parseTime } from '@/utils/index.js'
 
- export default {
 
-   name: 'ProcessAnalysis',
 
-   data() {
 
-     return {
 
-       requestParams: [
 
-         { name: 'getBarListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }},
 
-         { name: 'getCowclassListEnable', offset: 0, pagecount: 0, parammaps: { 'pastureid': Cookies.get('pastureid') }}
 
-       ],
 
-       planTypeList: [{ id: '3', name: '预混计划' }, { id: '2', name: '撒料计划' }, { id: '4', name: '剩料计划' }], // 计划类型
 
-       workingConditionList: [{ id: '0', name: '运行中' }, { id: '1', name: '已完成' }], // 工作状态
 
-       // TMR设备列表
 
-       table: {
 
-         getdataListParm: {
 
-           name: 'getprocessAnalysis',
 
-           page: 1,
 
-           offset: 1,
 
-           pagecount: '',
 
-           returntype: 'Map',
 
-           parammaps: {
 
-             pastureid: Cookies.get('pastureid'),
 
-             // startTime: parseTime(new Date(), '{y}-{m}-{d}'),
 
-             // stopTime: parseTime(new Date(), '{y}-{m}-{d}'),
 
-             startTime: '2020-09-15',
 
-             stopTime: '2020-09-16',
 
-             inputDatetime: [new Date(), new Date()],
 
-             iscompleted: '',
 
-             tmrtname: ''
 
-           }
 
-         },
 
-         tableKey: 0,
 
-         list: [],
 
-         total: 0,
 
-         listLoading: true
 
-       },
 
-       // 过程详情
 
-       table2: {
 
-         getdataListParm: {
 
-           name: 'getprocessAnalysisStr',
 
-           page: 1,
 
-           offset: 1,
 
-           pagecount: 1,
 
-           returntype: 'Map',
 
-           parammaps: {
 
-             pastureid: Cookies.get('pastureid'),
 
-             id: ''
 
-           }
 
-         },
 
-         tableKey: 0,
 
-         list: [],
 
-         total: 0,
 
-         listLoading: true
 
-       },
 
-       // 混料详情
 
-       table3: {
 
-         getdataListParm: {
 
-           name: 'getprocessAnalysisHL',
 
-           page: 1,
 
-           offset: 1,
 
-           pagecount: '',
 
-           returntype: 'Map',
 
-           parammaps: {
 
-             pastureid: Cookies.get('pastureid'),
 
-             pid: ''
 
-           }
 
-         },
 
-         tableKey: 0,
 
-         list: [],
 
-         total: 0,
 
-         listLoading: true
 
-       },
 
-       // 撒料详情
 
-       table4: {
 
-         getdataListParm: {
 
-           name: 'getprocessAnalysisSL',
 
-           page: 1,
 
-           offset: 1,
 
-           pagecount: '',
 
-           returntype: 'Map',
 
-           parammaps: {
 
-             pastureid: Cookies.get('pastureid'),
 
-             pid: ''
 
-           }
 
-         },
 
-         tableKey: 0,
 
-         list: [],
 
-         total: 0,
 
-         listLoading: true
 
-       },
 
-       chartLine: null,
 
-       chartLine_data1: {
 
-         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'],
 
-         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],
 
-         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],
 
-         data4: [
 
-           ['06:34:10', -8],
 
-           ['06:37:28', 142],
 
-           ['06:37:29', 143],
 
-           ['06:38:59', 338],
 
-           ['06:38:59', 337],
 
-           ['06:40:08', 438],
 
-           ['06:40:08', 438],
 
-           ['06:41:40', 680],
 
-           ['06:41:44', 678],
 
-           ['06:43:09', 958],
 
-           ['06:43:09', 958],
 
-           ['06:44:44', 1100],
 
-           ['06:44:44', 1099],
 
-           ['06:47:40', 2486],
 
-           ['06:47:45', 2489],
 
-           ['06:49:20', 3236],
 
-           ['06:49:20', 3236],
 
-           ['06:53:14', 3830],
 
-           ['06:53:15', 3830],
 
-           ['06:59:01', 3036],
 
-           ['06:59:03', 3032],
 
-           ['07:02:01', 1232],
 
-           ['07:02:01', 1232],
 
-           ['07:05:16', 736],
 
-           ['07:05:20', 708],
 
-           ['07:07:10', 356],
 
-           ['07:07:10', 356]
 
-         ]
 
-       },
 
-       rowStyle: { maxHeight: 50 + 'px', height: 45 + 'px' },
 
-       cellStyle: { padding: 0 + 'px' }
 
-     }
 
-   },
 
-   created() {
 
-     this.getList()
 
-   },
 
-   mounted() {
 
-     this.roadChartLine1(this.chartLine_data1)
 
-   },
 
-   methods: {
 
-     // TMR设备列表
 
-     getList() {
 
-       this.table.listLoading = true
 
-       GetDataByName(this.table.getdataListParm).then(response => {
 
-         console.log('TMR设备列表table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.table.list = response.data.list
 
-           this.table2.getdataListParm.parammaps.id = response.data.list[0].id
 
-           this.table3.getdataListParm.parammaps.pid = response.data.list[0].pid
 
-           this.table4.getdataListParm.parammaps.pid = response.data.list[0].pid
 
-           this.getList2()
 
-           this.getList3()
 
-           this.getList4()
 
-         } else {
 
-           this.table.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.table.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     handleSearch() {
 
-       console.log('点击了查询')
 
-       if (this.table.getdataListParm.parammaps.inputDatetime !== '' && this.table.getdataListParm.parammaps.inputDatetime !== null) {
 
-         this.table.getdataListParm.parammaps.startTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[0], '{y}-{m}-{d}')
 
-         this.table.getdataListParm.parammaps.stopTime = parseTime(this.table.getdataListParm.parammaps.inputDatetime[1], '{y}-{m}-{d}')
 
-       } else {
 
-         this.table.getdataListParm.parammaps.inputDatetime = ''
 
-         this.table.getdataListParm.parammaps.startTime = ''
 
-         this.table.getdataListParm.parammaps.stopTime = ''
 
-       }
 
-       this.table.getdataListParm.offset = 1
 
-       this.getList()
 
-     },
 
-     handleRefresh() {
 
-       console.log('点击了重置')
 
-       this.table.getdataListParm.parammaps.barid = ''
 
-       this.table.getdataListParm.parammaps.cowclass = ''
 
-       this.table.getdataListParm.parammaps.startTime = ''
 
-       this.table.getdataListParm.parammaps.stopTime = ''
 
-       this.table.getdataListParm.parammaps.inputDatetime = ''
 
-       this.table.getdataListParm.offset = 1
 
-       this.getList()
 
-     },
 
-     rowClick(row, column, event) {
 
-       this.table2.getdataListParm.parammaps.id = row.id
 
-       this.table3.getdataListParm.parammaps.pid = row.pid
 
-       this.table4.getdataListParm.parammaps.pid = row.pid
 
-       this.getList2()
 
-       this.getList3()
 
-       this.getList4()
 
-     },
 
-     // 过程详情
 
-     getList2() {
 
-       this.table2.listLoading = true
 
-       GetDataByName(this.table2.getdataListParm).then(response => {
 
-         console.log('过程详情table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.table2.list = response.data.list
 
-         } else {
 
-           this.table2.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.table2.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     // 混料详情
 
-     getList3() {
 
-       this.table3.listLoading = true
 
-       GetDataByName(this.table3.getdataListParm).then(response => {
 
-         console.log('混料详情table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.table3.list = response.data.list
 
-         } else {
 
-           this.table3.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.table3.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     // 撒料详情
 
-     getList4() {
 
-       this.table4.listLoading = true
 
-       GetDataByName(this.table4.getdataListParm).then(response => {
 
-         console.log('撒料详情table数据', response.data.list)
 
-         if (response.data.list !== null) {
 
-           this.table4.list = response.data.list
 
-         } else {
 
-           this.table4.list = []
 
-         }
 
-         setTimeout(() => {
 
-           this.table4.listLoading = false
 
-         }, 100)
 
-       })
 
-     },
 
-     roadChartLine1(chartLine_data1) {
 
-       if (this.chartLine != null) {
 
-         this.chartLine.dispose()
 
-       }
 
-       this.chartLine = echarts.init(document.getElementById('chartLine'))
 
-       var option = {
 
-         title: {
 
-           text: '',
 
-           subtext: ''
 
-         },
 
-         color: ['#61a5e8', '#ff3131'], // 关键加上这句话,legend的颜色和折线的自定义颜色就一致了
 
-         legend: {
 
-           icon: 'rectangle',
 
-           data: ['设计重量', '实际重量'],
 
-           // right: '20%',
 
-           textStyle: {
 
-             fontSize: 12,
 
-             color: '#666'
 
-           }
 
-         },
 
-         /* grid:{y:15},*/
 
-         tooltip: {
 
-           trigger: 'axis'
 
-         },
 
-         calculable: true,
 
-         yAxis: [
 
-           {
 
-             type: 'value',
 
-             name: '重量(kg)',
 
-             splitLine: { show: false }, // 去除网格线
 
-             axisLabel: {
 
-               show: true,
 
-               textStyle: {
 
-                 color: '#666' // 这里用参数代替了
 
-               }
 
-             }
 
-           }
 
-         ],
 
-         xAxis: [
 
-           {
 
-             type: 'category',
 
-             splitLine: { show: false }, // 去除网格线
 
-             name: '时间',
 
-             data: chartLine_data1.data1,
 
-             axisLabel: {
 
-               show: true,
 
-               textStyle: {
 
-                 color: '#666' // 这里用参数代替了
 
-               }
 
-             }
 
-           }
 
-         ],
 
-         series: [{
 
-           symbol: 'none',
 
-           name: '实际重量',
 
-           type: 'line',
 
-           // step: 'end',
 
-           data: chartLine_data1.data3,
 
-           smooth: true,
 
-           barWidth: '37',
 
-           itemStyle: {
 
-             normal: {
 
-               lineStyle: { color: '#61a5e8' }
 
-             }
 
-           }
 
-         }, {
 
-           symbol: 'none',
 
-           name: '设计重量',
 
-           type: 'line',
 
-           barWidth: '37',
 
-           data: chartLine_data1.data2
 
-         }, {
 
-           symbol: 'triangle',
 
-           symbolSize: 10,
 
-           itemStyle: {
 
-             normal: {
 
-               lineStyle: { color: '#ff3131' },
 
-               color: function(param) {
 
-                 const colorList = ['#61a5e8', '#ff3131']
 
-                 let x = ''
 
-                 param.dataIndex % 2 == 0 ? x = 1 : x = 2
 
-                 if (x == '1') {
 
-                   return colorList[1]
 
-                 } else {
 
-                   return colorList[0]
 
-                 }
 
-               }
 
-             }
 
-           },
 
-           data: chartLine_data1.data4,
 
-           type: 'scatter'
 
-         }]
 
-       }
 
-       this.chartLine.setOption(option)
 
-       window.onresize = function() {
 
-         this.chartLine.resize()
 
-       }
 
-     }
 
-   }
 
- }
 
- </script>
 
- <style lang="scss" scoped>
 
-   .search{padding-top:10px;clear: both;}
 
-   .table{margin-top:10px;}
 
-   .detail{
 
-     height:84px;border: 1px solid #EBEEF5;padding-left:10px;font:16px/32px '';color:#333;
 
-     .detail-t{margin-top: 10px;}
 
-     .detail-b{margin-bottom: 10px;}
 
-   }
 
- </style>
 
 
  |