| | |
| | | <el-table-column label="复核状态" min-width="180" prop="status"> |
| | | <template #default="scope"> |
| | | <el-tag v-if="scope.row.status === 1" type="success">通 过</el-tag> |
| | | <el-tag v-if="scope.row.status === 0" type="danger">不通过</el-tag> |
| | | <el-tag v-else-if="scope.row.status === 0" type="danger">不通过</el-tag> |
| | | <el-tag v-else type="info">待审核</el-tag> |
| | | </template> |
| | | </el-table-column> |
| | | <!-- 操作按钮 --> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination :current-page="1" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" |
| | | <el-pagination :current-page="pagination1.current" :page-size="pagination1.size" :page-sizes="[10, 20, 30, 50, 100]" |
| | | :total="pagination1.total" layout="->,total, sizes, prev, pager, next, jumper" background |
| | | @size-change="handleSizeChange1" @current-change="handleCurrentChange1"> |
| | | </el-pagination> |
| | |
| | | exportDeviceInspectionRecord, |
| | | deleteDeviceInspectionRecord, |
| | | } from '@/api/cnas/resourceDemand/device.js' |
| | | import { saveBlobOrShowError } from '@/utils/saveBlob' |
| | | export default { |
| | | name: "inspection-of-equipment", |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | |
| | | inspectionRecordId: id |
| | | }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '设备点检记录表.doc') |
| | | saveBlobOrShowError(res, '设备点检记录表.doc', 'application/msword') |
| | | }).catch(() => { |
| | | this.outLoading = false |
| | | }) |
| | | }, |
| | | // 删除 |