车库门状态显示调整

This commit is contained in:
joylink_fanyuhong 2024-03-27 17:20:17 +08:00
parent 4012e3c2f7
commit d9b5841cfb

View File

@ -83,7 +83,7 @@ const list: KeyType[] = [
{ label: '车库门索引', key: 'id' }, { label: '车库门索引', key: 'id' },
{ label: '车库门名称', key: 'code', formatFn: getNameFormat }, { label: '车库门名称', key: 'code', formatFn: getNameFormat },
{ label: '车库门关闭', key: 'mgj', formatFn: getName }, { label: '车库门关闭', key: 'mgj', formatFn: getName },
{ label: '状态丢失', key: 'stateLoss', formatFn: getName }, // { label: '', key: 'stateLoss', formatFn: getName },
{ label: '车库门强制', key: 'param', formatFn: getForceName }, { label: '车库门强制', key: 'param', formatFn: getForceName },
{ label: '设置故障', key: 'param', formatFn: getFaultName }, { label: '设置故障', key: 'param', formatFn: getFaultName },
]; ];
@ -127,8 +127,8 @@ function getForceName() {
} }
function getFaultName() { function getFaultName() {
if (garageDoorFault.value == 1) return '是'; if (garageDoorFault.value == request.Ckm.Fault.FA_State_Loss) return '状态丢失';
return ''; return '';
} }
function initGarageDoorState(garageDoor: GarageDoor) { function initGarageDoorState(garageDoor: GarageDoor) {