refactor: 修改绑定动作点为绑定库位,更新相关计算属性以反映新的库位逻辑
This commit is contained in:
parent
3fdd2db521
commit
0a4f25bde6
@ -20,12 +20,12 @@ const area = computed<MapAreaInfo | null>(() => {
|
|||||||
|
|
||||||
const icon = computed<string>(() => `area${area.value?.type}-detail`);
|
const icon = computed<string>(() => `area${area.value?.type}-detail`);
|
||||||
|
|
||||||
const bindAction = computed<string>(
|
const bindStorageLocations = computed<string>(
|
||||||
() =>
|
() =>
|
||||||
area.value?.points
|
area.value?.points
|
||||||
?.map((v) => editor.value.getPenById(v))
|
?.map((v) => editor.value.getPenById(v))
|
||||||
.filter((v) => v?.point?.type === MapPointType.动作点)
|
.filter((v) => v?.point?.type === MapPointType.动作点)
|
||||||
.map((v) => v?.label)
|
.flatMap((v) => v?.point?.associatedStorageLocations ?? [])
|
||||||
.filter((v) => !!v)
|
.filter((v) => !!v)
|
||||||
.join('、') ?? '',
|
.join('、') ?? '',
|
||||||
);
|
);
|
||||||
@ -83,8 +83,8 @@ const ruleText = computed(() => {
|
|||||||
</a-list-item>
|
</a-list-item>
|
||||||
<a-list-item v-if="MapAreaType.库区 === area.type">
|
<a-list-item v-if="MapAreaType.库区 === area.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>
|
||||||
<a-typography-text>{{ bindAction || $t('暂无') }}</a-typography-text>
|
<a-typography-text>{{ bindStorageLocations || $t('暂无') }}</a-typography-text>
|
||||||
</a-flex>
|
</a-flex>
|
||||||
</a-list-item>
|
</a-list-item>
|
||||||
<a-list-item v-if="[MapAreaType.互斥区, MapAreaType.非互斥区, MapAreaType.约束区].includes(area.type)">
|
<a-list-item v-if="[MapAreaType.互斥区, MapAreaType.非互斥区, MapAreaType.约束区].includes(area.type)">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user