const formItem = ref([]) | const formItem = ref([]) | ||||
if (props?.data?.id) { | if (props?.data?.id) { | ||||
getLineOptions(props.data.droneId) | getLineOptions(props.data.droneId) | ||||
if ([1, 2].includes(props.data.status)) { | |||||
if (![1, 2].includes(props.data.status)) { | |||||
formItem.value = [ | formItem.value = [ | ||||
{ type: 'input', key: 'droneName', label: '无人机' }, | { type: 'input', key: 'droneName', label: '无人机' }, | ||||
{ type: 'input', key: 'flyTime', label: '飞行时间' } | { type: 'input', key: 'flyTime', label: '飞行时间' } |