|
|
@ -13,7 +13,7 @@ import { useAppDispatch, useAppSelector } from '../utils/hooks'; |
|
|
|
import { updateTaskState } from '../store/features/measureSlice'; |
|
|
|
import Bridge from '../utils/bridge'; |
|
|
|
import { selectLabeledKtjOrgs, updateRailPoints } from '../store/features/baseData'; |
|
|
|
import { refreshStationList, updateOrg } from '../store/features/contextSlice'; |
|
|
|
import { updateOrg } from '../store/features/contextSlice'; |
|
|
|
import { selectOrgTextArr } from '../store'; |
|
|
|
|
|
|
|
export default function Measure() { |
|
|
@ -91,6 +91,15 @@ export default function Measure() { |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (baseState.ktjOrgs.length === 0) { |
|
|
|
Dialog.alert({ |
|
|
|
content: '请在基础数据同步完成后重试', |
|
|
|
onConfirm: () => { |
|
|
|
navigate('/home/mine'); |
|
|
|
}, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!contextState.currOrgCode) { |
|
|
|
Dialog.alert({ |
|
|
|
content: '请选择铁路局/工务段/线路', |
|
|
@ -110,6 +119,15 @@ export default function Measure() { |
|
|
|
}; |
|
|
|
|
|
|
|
const onOrgBarClick = async () => { |
|
|
|
if (baseState.ktjOrgs.length === 0) { |
|
|
|
Dialog.alert({ |
|
|
|
content: '请在基础数据同步完成后重试', |
|
|
|
onConfirm: () => { |
|
|
|
navigate('/home/mine'); |
|
|
|
}, |
|
|
|
}); |
|
|
|
return; |
|
|
|
} |
|
|
|
const value = await Cascader.prompt({ |
|
|
|
options: labeledKtjOrgs, |
|
|
|
placeholder: '请选择', |
|
|
|