|
|
|
@ -32,7 +32,7 @@ |
|
|
|
<el-button |
|
|
|
size="mini" |
|
|
|
type="danger" |
|
|
|
:disabled="scope.row.brokenStatus !== '待解除'" |
|
|
|
:disabled="scope.row.brokenStatus === '解除成功'" |
|
|
|
@click="onCloseBroken(scope.row.deviceId, scope.row.id)" |
|
|
|
> |
|
|
|
解除故障 |
|
|
|
@ -89,6 +89,7 @@ async function onCloseBroken(deviceId, warningId) { |
|
|
|
}; |
|
|
|
await removeBroken(params); |
|
|
|
emit('removeBrokenSuccess', { warningId, deviceId }); |
|
|
|
ElMessage.success('指令提交成功'); |
|
|
|
} catch (error) { |
|
|
|
console.error('onCloseBroken: ', error); |
|
|
|
ElMessage.error('关闭故障失败'); |
|
|
|
|