| | |
| | | <!-- <el-table-column prop="devId" label="设备ID" show-overflow-tooltip></el-table-column> --> |
| | | <el-table-column prop="devIp" label="设备IP" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="devCode" label="设备编码" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="companyCode" label="企业编码" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="state" label="状态" show-overflow-tooltip> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.state == 0" class="status green">离线</div> |
| | | <div v-else class="status">在线</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="companyCode" label="企业编码" show-overflow-tooltip></el-table-column> |
| | | |
| | | <el-table-column label="操作" align="center" width="100px"> |
| | | <template slot-scope="scope"> |
| | |
| | | }, |
| | | delUser(row) { |
| | | console.log(row, "row") |
| | | this.$confirm("确认要删除该用户吗, 是否继续?", "提示", { |
| | | this.$confirm("确认要删除设备吗, 是否继续?", "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | |
| | | message: res.data |
| | | }) |
| | | this.goback() |
| | | this.fetchDevicesList() |
| | | } |
| | | }) |
| | | } else if (this.tip === 2) { |
| | |
| | | message: res.msg |
| | | }) |
| | | this.goback() |
| | | this.fetchDevicesList() |
| | | } |
| | | }) |
| | | } |
| | |
| | | goback() { |
| | | this.isShowAdd = false |
| | | }, |
| | | async editUser(row) { |
| | | editUser(row) { |
| | | this.tip = 2 |
| | | this.isShowAdd = true |
| | | this.ruleForm.devName = row.devName |