feat: 在地图点类型中添加不可避让点,并在相关组件中更新以支持新类型
This commit is contained in:
parent
8e1b245ab6
commit
1fc89c6677
@ -18,6 +18,8 @@ export enum MapPointType {
|
||||
临时避让点,
|
||||
/** 库区点 - 仓储作业区域 */
|
||||
库区点,
|
||||
/** 不可避让点 - 机器人不可避让的点位 */
|
||||
不可避让点,
|
||||
/** 密集库区点 - 密集库区点位 */
|
||||
// 密集库区点,
|
||||
|
||||
|
@ -101,6 +101,7 @@ const updateActiveKeys = () => {
|
||||
{ key: '避让点', type: MapPointType.避让点 },
|
||||
{ key: '临时避让点', type: MapPointType.临时避让点 },
|
||||
{ key: '库区点', type: MapPointType.库区点 },
|
||||
{ key: '不可避让点', type: MapPointType.不可避让点 },
|
||||
{ key: '电梯点', type: MapPointType.电梯点 },
|
||||
{ key: '自动门点', type: MapPointType.自动门点 },
|
||||
{ key: '充电点', type: MapPointType.充电点 },
|
||||
@ -278,6 +279,21 @@ watch(keyword, updateActiveKeys);
|
||||
</a-list>
|
||||
</a-collapse-panel>
|
||||
|
||||
<a-collapse-panel :header="$t('不可避让点')" key="不可避让点">
|
||||
<a-list rowKey="id" :data-source="points.filter(({ point }) => point?.type === MapPointType.不可避让点)">
|
||||
<template #renderItem="{ item }">
|
||||
<a-list-item
|
||||
class="ph-16"
|
||||
:class="{ selected: item.id === current }"
|
||||
style="height: 36px"
|
||||
@click="select(item.id)"
|
||||
>
|
||||
<a-typography-text type="secondary">{{ item.label }}</a-typography-text>
|
||||
</a-list-item>
|
||||
</template>
|
||||
</a-list>
|
||||
</a-collapse-panel>
|
||||
|
||||
<a-collapse-panel :header="$t('电梯点')" key="电梯点">
|
||||
<a-list rowKey="id" :data-source="points.filter(({ point }) => point?.type === MapPointType.电梯点)">
|
||||
<template #renderItem="{ item }">
|
||||
|
Loading…
x
Reference in New Issue
Block a user