feat: hide seize button

This commit is contained in:
chndfang 2025-06-04 18:51:17 +08:00
parent 37d5dfa7de
commit c4166e94a3
2 changed files with 10 additions and 4 deletions

View File

@ -64,7 +64,7 @@ const selectRobot = (id: RobotInfo['id'], checked: boolean) => {
</template>
</a-input>
<a-flex v-if="editable" class="mb-8" style="height: 32px" justify="end" align="center">
<a-flex v-if="editable && false" class="mb-8" style="height: 32px" justify="end" align="center">
<a-button
class="icon-btn panel-btn"
:title="$t('抢占控制权')"
@ -85,7 +85,7 @@ const selectRobot = (id: RobotInfo['id'], checked: boolean) => {
<template #header>
<a-space align="center" :size="8">
<a-checkbox
v-if="editable"
v-if="editable && false"
:checked="isAllSelected"
@change="selectAll($event.target.checked)"
@click.stop
@ -97,13 +97,18 @@ const selectRobot = (id: RobotInfo['id'], checked: boolean) => {
<a-list rowKey="id" :data-source="robots">
<template #renderItem="{ item }">
<a-list-item
:class="{ 'ph-16': !editable, 'pl-12': editable, 'pr-8': editable, selected: item.id === current }"
:class="{
'ph-16': !editable || true,
// 'pl-12': editable,
'pr-8': editable,
selected: item.id === current,
}"
style="height: 36px"
@click="emit('change', item.id)"
>
<a-space align="center" :size="8">
<a-checkbox
v-if="editable"
v-if="editable && false"
:checked="selected.has(item.id)"
@change="selectRobot(item.id, $event.target.checked)"
@click.stop

View File

@ -149,6 +149,7 @@ const toRemoveRobots = () =>
<a-checkbox :checked="isAllSelected" @change="selectAll($event.target.checked)">{{ $t('全选') }}</a-checkbox>
<a-space align="center">
<a-button
v-if="false"
class="icon-btn panel-btn"
size="small"
:title="$t('抢占控制权')"