| | |
| | | <el-table-column label="当前状态" min-width="130" prop="currentState"></el-table-column> |
| | | <el-table-column label="当前责任人" min-width="180" prop="currentResponsible"></el-table-column> |
| | | <!-- 操作按钮 --> |
| | | <el-table-column fixed="right" label="操作" min-width="150"> |
| | | <el-table-column fixed="right" label="操作" min-width="120" align="center"> |
| | | <template #default="{ row }"> |
| | | <el-button size="small" type="text" @click="handleViewClick(row)">查看</el-button> |
| | | <el-button size="small" type="text" @click="handleDownOne(row)">导出</el-button> |
| | | <el-button size="small" type="text" @click="handleDeleteClick(row)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | import { |
| | | saveDeviceState, |
| | | selectDeviceByCode, |
| | | exportDeviceStatus, |
| | | deleteDeviceState, |
| | | deviceStateExport, |
| | | getDeviceStatePage, |
| | |
| | | this.$refs['form'].clearValidate() |
| | | }) |
| | | this.dialogVisible = true |
| | | }, |
| | | // 导出 |
| | | handleDownOne(row) { |
| | | this.outLoading = true |
| | | exportDeviceStatus({ deviceId: row.deviceId, processNumber: row.processNumber }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '设备停/启用.doc') |
| | | }) |
| | | }, |
| | | // 删除 |
| | | handleDeleteClick(row) { |