|
|
@ -120,14 +120,14 @@ export default function MeasureSave() { |
|
|
|
tljCode: tlj, |
|
|
|
gwdCode: gwd, |
|
|
|
xmCode: xm, |
|
|
|
xbCode: XB_CODES.find((x) => x.value === directionCode[0])!.label, |
|
|
|
xbCode: XB_CODES.find((x) => x.value === directionCode[0])?.label, |
|
|
|
stationCode: |
|
|
|
stationCode.length > 0 |
|
|
|
? contextState.stationList.find((s) => s.value === stationCode[0])!.label |
|
|
|
? contextState.stationList.find((s) => s.value === stationCode[0])?.label |
|
|
|
: '', |
|
|
|
lineClassify: LINE_CLASSIFY.find((l) => l.value === lineClassCode[0])!.label, |
|
|
|
dataSource: DATA_SOURCE.find((d) => d.value === dataSourceCode[0])!.label, |
|
|
|
unitType: UNIT_TYPES.find((u) => u.value === unitType[0])!.label, |
|
|
|
lineClassify: LINE_CLASSIFY.find((l) => l.value === lineClassCode[0])?.label, |
|
|
|
dataSource: DATA_SOURCE.find((d) => d.value === dataSourceCode[0])?.label, |
|
|
|
unitType: UNIT_TYPES.find((u) => u.value === unitType[0])?.label, |
|
|
|
mile: +mile, |
|
|
|
meter: +meter, |
|
|
|
}; |
|
|
|