| | |
| | | </el-form> |
| | | |
| | | <div> |
| | | <el-button v-if="demo === 'N' " @click="demos('true')" type="warning">演示</el-button> |
| | | <el-button v-if="demo === 'Y' " @click="demos('false')" type="warning">取消演示</el-button> |
| | | <el-button v-if="demo === 'N' " @click="demos('true')" type="info">演示</el-button> |
| | | <el-button v-if="demo === 'Y' " @click="demos('false')" type="info">取消演示</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button @click="rgvStatus(8)" type="primary">启动</el-button> |
| | | <el-button @click="rgvStatus(9)" type="primary">停止</el-button> |
| | | <el-button @click="rgvStatus(14)" type="primary">单机</el-button> |
| | | <el-button @click="rgvStatus(15)" type="primary">联机</el-button> |
| | | <el-button @click="rgvStatus(11)" type="primary">复位按钮</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button @click="rgvStatus(7)" type="warning">报警消音</el-button> |
| | | <el-button @click="rgvStatus(12)" type="warning">手动</el-button> |
| | | <el-button @click="rgvStatus(13)" type="warning">手动定位</el-button> |
| | | </div> |
| | | <div style="margin: 10px auto 10px auto" v-if="demo === 'N' "> |
| | | <el-button :style="" @click="rgvStatus(5)" type="danger">强制启动</el-button> |
| | | <el-button @click="rgvStatus(10)" type="danger">急停</el-button> |
| | | <el-button @click="rgvStatus(16)" type="danger">货叉定位回中</el-button> |
| | | </div> |
| | | <div style="margin-top: 5px" v-if="demo === 'Y'"> |
| | | <el-button @click="staTova(2,1)" type="warning">输送-置换1</el-button> |
| | |
| | | }); |
| | | }) |
| | | }, |
| | | rgvStatus(method){ |
| | | let that = this |
| | | that.$confirm('此操作存在风险,是否继续','提示',{ |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(()=>{ |
| | | $.ajax({ |
| | | url: baseUrl + "/rgv/demo/status/rgvStatus", |
| | | headers: { |
| | | 'token': localStorage.getItem('token') |
| | | }, |
| | | data:{ |
| | | rgvNo : this.formParam.rgvNo, |
| | | status : Number(method) |
| | | }, |
| | | method: 'Get', |
| | | success: function (res) { |
| | | if (res.code == 200) { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'success' |
| | | }); |
| | | } else { |
| | | that.$message({ |
| | | message: res.msg, |
| | | type: 'error' |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | }) |
| | | }, |
| | | requestOperate(method) { |
| | | let that = this |
| | | that.$confirm('此操作存在风险,是否继续','提示',{ |