|  |  | 
 |  |  |                      <el-button type="primary" @click="resetParam">重置</el-button> | 
 |  |  |                   </el-form-item> | 
 |  |  |                </el-form> | 
 |  |  |                <el-table ref="singleTable" :data="tableData" style="width: 100%;" :row-class-name="tableRowClassName"> | 
 |  |  |                <el-table border ref="singleTable" :data="tableData" style="width: 100%;" :row-class-name="tableRowClassName"> | 
 |  |  |                   <el-table-column label="操作" width="100"> | 
 |  |  |                      <template slot-scope="scope"> | 
 |  |  |                         <el-dropdown @command="(command)=>{handleCommand(command, scope.row)}"> | 
 |  |  | 
 |  |  |                         </el-dropdown> | 
 |  |  |                      </template> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="id" label="指令编号"> | 
 |  |  |                   <el-table-column property="id" label="#ID"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="wrkNo" label="工作号"> | 
 |  |  |                   </el-table-column> | 
 |  |  | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column show-overflow-tooltip property="durationTime" label="持续时长"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="commandType" label="指令类型"> | 
 |  |  |                   <el-table-column property="commandType$" label="指令类型"> | 
 |  |  |                   </el-table-column> | 
 |  |  |                   <el-table-column property="device" label="设备"> | 
 |  |  |                   </el-table-column> | 
 |  |  | 
 |  |  |                   } | 
 |  |  |                   this.getTableData() | 
 |  |  |                }, | 
 |  |  |                tableRowClassName({row, rowIndex}) { | 
 |  |  |                   if (rowIndex === this.commandStep) { | 
 |  |  |                      return 'success-row'; | 
 |  |  |                   } | 
 |  |  |                   return ''; | 
 |  |  |                }, | 
 |  |  |                handleCommand(command, row) { | 
 |  |  |                   switch (command) { | 
 |  |  |                      case "showTask": | 
 |  |  | 
 |  |  |                   } | 
 |  |  |                }, | 
 |  |  |                showTask(row) { | 
 |  |  |                   //查看任务 | 
 |  |  |                   let wrkNo = row.wrkNo == null ? "" : row.wrkNo | 
 |  |  |                   console.log(wrkNo) | 
 |  |  |                   //查看指令 | 
 |  |  |                   $layui.layer.open({ | 
 |  |  |                      type: 2, | 
 |  |  |                      title: '任务管理', | 
 |  |  |                      maxmin: true, | 
 |  |  |                      area: [top.detailWidth, top.detailHeight], | 
 |  |  |                      shadeClose: true, | 
 |  |  |                      content: '../taskWrk/taskWrk.html?taskNo=' + row.taskNo + "&wrkNo=" + row.wrkNo, | 
 |  |  |                      content: '../taskWrk/taskWrk.html?taskNo=' + row.taskNo + "&wrkNo=" + wrkNo, | 
 |  |  |                      success: function(layero, index) {} | 
 |  |  |                   }); | 
 |  |  |                }, | 
 |  |  |                tableRowClassName({row, rowIndex}) { | 
 |  |  |                   if (rowIndex === this.commandStep) { | 
 |  |  |                      return 'success-row'; | 
 |  |  |                   } | 
 |  |  |                   return ''; | 
 |  |  |                }, | 
 |  |  |                executeCommand(row) { | 
 |  |  |                   //执行指令 | 
 |  |  | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                   }); | 
 |  |  |                } | 
 |  |  |                }, | 
 |  |  |             } | 
 |  |  |          }) | 
 |  |  |       </script> |