|  |  | 
 |  |  |                      <el-button @click="requestOperate('siteMove')" type="primary">站到站</el-button> | 
 |  |  |                      <el-button @click="requestOperate('taskComplete')" type="primary">任务完成</el-button> | 
 |  |  |                      <el-button @click="requestOperate('clearCommand')" type="primary">清除命令</el-button> | 
 |  |  |                      <el-button @click="requestOperate('handleReset')" type="primary">复位</el-button> | 
 |  |  |                      <el-button @click="requestOperate('auto')" type="primary">联机</el-button> | 
 |  |  |                      <el-button @click="requestOperate('reset')" type="primary">复位</el-button> | 
 |  |  |                      <br/> | 
 |  |  |                      <br/> | 
 |  |  |                      <el-button @click="requestOperate('auto')" type="warning">联机</el-button> | 
 |  |  |                      <el-button @click="requestOperate('semiAutomatic')" type="warning">半自动</el-button> | 
 |  |  |                      <el-button @click="requestOperate('hand')" type="warning">手动</el-button> | 
 |  |  |                      <el-button @click="requestOperate('onlineWrk4')" type="warning">恢复联机任务</el-button> | 
 |  |  |                      <el-button @click="requestOperate('onlineWrk3')" type="warning">清除联机任务</el-button> | 
 |  |  |                      <el-button @click="requestOperate('onlineWrk1')" type="warning">申请完成任务</el-button> | 
 |  |  |                      <br/> | 
 |  |  |                      <br/> | 
 |  |  |                      <el-button @click="requestOperate('onlineWrk2')" type="warning">申请取消任务</el-button> | 
 |  |  |                   </div> | 
 |  |  |                </div> | 
 |  |  |             </el-card> | 
 |  |  | 
 |  |  |             }, | 
 |  |  |             requestOperate(method) { | 
 |  |  |                let that = this | 
 |  |  |                $.ajax({ | 
 |  |  |                   url: baseUrl + "/crn/operator/" + method, | 
 |  |  |                   headers: { | 
 |  |  |                      'token': localStorage.getItem('token') | 
 |  |  |                   }, | 
 |  |  |                   data: this.formParam, | 
 |  |  |                   method: 'POST', | 
 |  |  |                   success: function (res) { | 
 |  |  |                      if (res.code == 200) { | 
 |  |  |                         that.$message({ | 
 |  |  |                            message: res.msg, | 
 |  |  |                            type: 'success' | 
 |  |  |                         }); | 
 |  |  |                      } else { | 
 |  |  |                         that.$message({ | 
 |  |  |                            message: res.msg, | 
 |  |  |                            type: 'error' | 
 |  |  |                         }); | 
 |  |  |                that.$confirm('此操作存在风险,是否继续','提示',{ | 
 |  |  |                   confirmButtonText: '确定', | 
 |  |  |                   cancelButtonText: '取消', | 
 |  |  |                   type: 'warning' | 
 |  |  |                }).then(()=>{ | 
 |  |  |                   $.ajax({ | 
 |  |  |                      url: baseUrl + "/crn/operator/" + method, | 
 |  |  |                      headers: { | 
 |  |  |                         'token': localStorage.getItem('token') | 
 |  |  |                      }, | 
 |  |  |                      data: this.formParam, | 
 |  |  |                      method: 'POST', | 
 |  |  |                      success: function (res) { | 
 |  |  |                         if (res.code == 200) { | 
 |  |  |                            that.$message({ | 
 |  |  |                               message: res.msg, | 
 |  |  |                               type: 'success' | 
 |  |  |                            }); | 
 |  |  |                         } else { | 
 |  |  |                            that.$message({ | 
 |  |  |                               message: res.msg, | 
 |  |  |                               type: 'error' | 
 |  |  |                            }); | 
 |  |  |                         } | 
 |  |  |                      } | 
 |  |  |                   } | 
 |  |  |                }); | 
 |  |  |                   }); | 
 |  |  |                }) | 
 |  |  |  | 
 |  |  |             }, | 
 |  |  |             updateEnableInOut(type) { | 
 |  |  |                let that = this |