| | |
| | | |
| | | .task-bar-left1 { |
| | | position: fixed; |
| | | top: 5%; |
| | | top: 8%; |
| | | /*transform: translateY(-50%);*/ |
| | | width: 25%; /* 设置宽度 */ |
| | | background-color: rgba(255, 255, 255, 0); /* 半透明背景 */ |
| | |
| | | label="操作" |
| | | type="template"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | | @click="taskDelete1(scope.row)"> |
| | | 初始化 |
| | | </el-button> |
| | | <el-button |
| | | type="danger" |
| | | size="small" |
| | |
| | | }, |
| | | taskDelete(row) { |
| | | let that = this; |
| | | that.$confirm('确认要删除该设备吗?', '提示', { |
| | | that.$confirm('确认要删除该任务吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | |
| | | that.tableDataRight.splice(that.tableDataRight.indexOf(row), 1); |
| | | } else { |
| | | that.$message.error('删除失败'); |
| | | } |
| | | } |
| | | }); |
| | | }); |
| | | }, |
| | | taskDelete1(row) { |
| | | let that = this; |
| | | that.$confirm('确认要初始化该任务吗?', '提示', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | | type: 'warning' |
| | | }).then(() => { |
| | | $.ajax({ |
| | | url: baseUrl + "/rgv/disable/task/delete1", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'POST', |
| | | data: { |
| | | wrkNo: row.wrkNo |
| | | }, |
| | | success: function (res) { |
| | | if (res.code === 200) { |
| | | that.$message.success('初始化成功'); |
| | | // 删除当前行 |
| | | // that.tableDataRight.splice(that.tableDataRight.indexOf(row), 1); |
| | | } else { |
| | | that.$message.error('初始化失败'); |
| | | } |
| | | } |
| | | }); |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | // setTimeout(function() { |
| | | // |
| | | // }, 1000); |
| | | }, |
| | | getValueSystem() { |
| | | let that = this; |
| | |
| | | }, |
| | | upDateValueSystem(){ |
| | | let that = this; |
| | | let operatorTypeI = 0; |
| | | if (that.valueSystem){ |
| | | operatorTypeI = 1; |
| | | } |
| | | this.verifyPassword(() => { |
| | | let operatorTypeI = 0; |
| | | if (that.valueSystem){ |
| | | operatorTypeI = 1; |
| | | } |
| | | $.ajax({ |
| | | url: baseUrl + "/console/system/switch", |
| | | headers: {'token': localStorage.getItem('token')}, |