@@ -125,7 +125,7 @@ export default function AccessPage() {
| 车辆 | 品牌 / 车型 | 应接协议 | {PROTOCOLS.map((item) => {item} | )}综合状态 |
{rows.map((row) => setSelectedVIN(row.vin)} onKeyDown={(event) => { if (event.key === 'Enter' || event.key === ' ') setSelectedVIN(row.vin); }}>| {row.plate || '未绑定车牌'}{row.vin} | {row.oem || '品牌未维护'}{row.model || row.company || '车型未维护'} | {row.expectedProtocols.length} 项{row.expectedProtocols.join(' / ')} | {PROTOCOLS.map((protocol) => | )} |
)}
{vehiclesQuery.isFetching ?
正在更新车辆接入状态…
: null}{!vehiclesQuery.isFetching && !rows.length ?
当前筛选条件没有车辆
: null}
{selected ?
setSelectedVIN('')} /> : null}
{unresolvedQuery.isError ?
unresolvedQuery.refetch()} /> : null}
- {thresholdQuery.isError ? thresholdQuery.refetch()} /> : null}
- thresholdDraft && updateThreshold.mutate(thresholdDraft)} />
+ {editable && thresholdQuery.isError ? thresholdQuery.refetch()} /> : null}
+ {editable ? thresholdDraft && updateThreshold.mutate(thresholdDraft)} /> : null}
;
}