refactor: 注释掉不必要的扩展类型逻辑,简化点位详情和编辑组件的显示结构
This commit is contained in:
parent
2fc2ed317e
commit
7e4444c460
@ -50,9 +50,10 @@ export const MAP_POINT_TYPES = Object.freeze(
|
|||||||
export const MAP_POINT_EXTENSION_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.密集库区点]: [MapPointType.动作点, MapPointType.临时避让点],
|
||||||
|
// [MapPointType.动作点]: [MapPointType.密集库区点],
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -109,10 +109,10 @@ const getStorageStatusTag = (location: StorageLocationInfo) => {
|
|||||||
<a-typography-text type="secondary">{{ $t('站点坐标') }}</a-typography-text>
|
<a-typography-text type="secondary">{{ $t('站点坐标') }}</a-typography-text>
|
||||||
<a-typography-text>({{ rect.x?.toFixed() }},{{ rect.y?.toFixed() }})</a-typography-text>
|
<a-typography-text>({{ rect.x?.toFixed() }},{{ rect.y?.toFixed() }})</a-typography-text>
|
||||||
</a-list-item>
|
</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 type="secondary">{{ $t('扩展类型') }}</a-typography-text>
|
||||||
<a-typography-text>{{ $t(MapPointType[point.extensionType]) }}</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-list-item v-if="[MapPointType.充电点, MapPointType.停靠点].includes(point.type)">
|
||||||
<a-flex :gap="8" vertical>
|
<a-flex :gap="8" vertical>
|
||||||
<a-typography-text type="secondary">{{ $t('绑定机器人') }}</a-typography-text>
|
<a-typography-text type="secondary">{{ $t('绑定机器人') }}</a-typography-text>
|
||||||
|
@ -234,7 +234,7 @@ function onChangeLocation(i: number, v: string) {
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-flex>
|
</a-flex>
|
||||||
</a-collapse-panel>
|
</a-collapse-panel>
|
||||||
<!--
|
|
||||||
<a-collapse-panel
|
<a-collapse-panel
|
||||||
v-if="Object.keys(MAP_POINT_EXTENSION_TYPES).map(Number).includes(point.type)"
|
v-if="Object.keys(MAP_POINT_EXTENSION_TYPES).map(Number).includes(point.type)"
|
||||||
:header="$t('扩展类型')"
|
:header="$t('扩展类型')"
|
||||||
@ -253,7 +253,7 @@ function onChangeLocation(i: number, v: string) {
|
|||||||
{{ $t(MapPointType[extType]) }}
|
{{ $t(MapPointType[extType]) }}
|
||||||
</a-select-option>
|
</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-collapse-panel> -->
|
</a-collapse-panel>
|
||||||
|
|
||||||
<a-collapse-panel
|
<a-collapse-panel
|
||||||
v-if="
|
v-if="
|
||||||
|
Loading…
x
Reference in New Issue
Block a user