Browse Source

feat: 解开了故障列表中解除失败状态的 按钮禁用状态

feature-with-login
wally 4 years ago
parent
commit
77608fc2fe
  1. 3
      src/components/overview/broken-table.vue

3
src/components/overview/broken-table.vue

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

Loading…
Cancel
Save