refactor: 注释掉不必要的扩展类型逻辑,简化点位详情和编辑组件的显示结构

This commit is contained in:
xudan 2025-07-18 16:41:09 +08:00
parent 2fc2ed317e
commit 7e4444c460
3 changed files with 8 additions and 7 deletions

View File

@ -50,9 +50,10 @@ export const MAP_POINT_TYPES = Object.freeze(
export const MAP_POINT_EXTENSION_TYPES = Object.freeze({
[MapPointType.]: [MapPointType.],
[MapPointType.]: [MapPointType.],
[MapPointType.]: [MapPointType., MapPointType., MapPointType.],
[MapPointType.]: [MapPointType., MapPointType.],
[MapPointType.]: [MapPointType.],
[MapPointType.]: [MapPointType., MapPointType.],
// [MapPointType.临时避让点]: [MapPointType.等待点, MapPointType.库区点, MapPointType.密集库区点],
// [MapPointType.密集库区点]: [MapPointType.动作点, MapPointType.临时避让点],
// [MapPointType.动作点]: [MapPointType.密集库区点],
});
/**

View File

@ -109,10 +109,10 @@ const getStorageStatusTag = (location: StorageLocationInfo) => {
<a-typography-text type="secondary">{{ $t('站点坐标') }}</a-typography-text>
<a-typography-text>({{ rect.x?.toFixed() }},{{ rect.y?.toFixed() }})</a-typography-text>
</a-list-item>
<!-- <a-list-item v-if="point.extensionType">
<a-list-item v-if="point.extensionType">
<a-typography-text type="secondary">{{ $t('扩展类型') }}</a-typography-text>
<a-typography-text>{{ $t(MapPointType[point.extensionType]) }}</a-typography-text>
</a-list-item> -->
</a-list-item>
<a-list-item v-if="[MapPointType.充电点, MapPointType.停靠点].includes(point.type)">
<a-flex :gap="8" vertical>
<a-typography-text type="secondary">{{ $t('绑定机器人') }}</a-typography-text>

View File

@ -234,7 +234,7 @@ function onChangeLocation(i: number, v: string) {
</a-button>
</a-flex>
</a-collapse-panel>
<!--
<a-collapse-panel
v-if="Object.keys(MAP_POINT_EXTENSION_TYPES).map(Number).includes(point.type)"
:header="$t('扩展类型')"
@ -253,7 +253,7 @@ function onChangeLocation(i: number, v: string) {
{{ $t(MapPointType[extType]) }}
</a-select-option>
</a-select>
</a-collapse-panel> -->
</a-collapse-panel>
<a-collapse-panel
v-if="