| | |
| | | <template> |
| | | <basic-container> |
| | | <div class="chart"> |
| | | <DeviceChart1 :key="updateKey"/> |
| | | <DeviceChart2 :key="updateKey"/> |
| | | <DeviceChart3 :key="updateKey"/> |
| | | <DeviceChart1 :key="updateKey" /> |
| | | <DeviceChart2 :key="updateKey" /> |
| | | <DeviceChart3 :key="updateKey" /> |
| | | </div> |
| | | |
| | | <el-form ref="queryParamsRef" :model="searchParams" class="command-page-history-search"> |
| | |
| | | {{ getDictLabel(row.trackStatus, trackStatusOptions) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="maintenanceStatus" show-overflow-tooltip width="96" label="维护状态"> |
| | | <el-table-column prop="maintenanceStatus" show-overflow-tooltip width="96" label="报废预警"> |
| | | <template v-slot="{ row }"> |
| | | {{ row.maintenanceStatus === 0 ? '否' : '是' }} |
| | | <span :style="{ color: row.maintenanceStatus === 0 ? 'inherit' : 'red' }"> |
| | | {{ row.maintenanceStatus === 0 ? '正常' : '临近报废' }} |
| | | </span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="操作" class-name="operation-btns" width="196" fixed="right"> |
| | |
| | | // 出库状态 |
| | | const trackStatusOptions = ref([ |
| | | { dictKey: 0, dictValue: '未出库' }, |
| | | { dictKey: 1, dictValue: '已出库' } |
| | | { dictKey: 1, dictValue: '已出库' }, |
| | | ]) |
| | | |
| | | const updateKey = ref(0) |
| | |
| | | cancelButtonClass: 'command-message-box-cancel', |
| | | }) |
| | | const payload = { |
| | | deviceId: row.id |
| | | deviceId: row.id, |
| | | } |
| | | await fwDeviceUpdateTrackStatusApi(payload) |
| | | ElMessage.success('归还成功') |
| | |
| | | } |
| | | } |
| | | } |
| | | .danger-text { |
| | | color: red; /* 或者直接用 red */ |
| | | } |
| | | </style> |