feat(iot):优化 iot 设备管理的样式

pull/345/head
YunaiV 2026-05-17 19:07:50 +08:00
parent 3da4a3f417
commit 5a1f4901da
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ function openEditForm(row: IotDeviceApi.Device) {
<div>
<h2 class="text-xl font-bold">{{ device.deviceName }}</h2>
</div>
<div class="space-x-2">
<div class="flex gap-2">
<Button
v-if="product.status === 0"
v-access:code="['iot:device:update']"

View File

@ -284,7 +284,7 @@ onMounted(async () => {
<DeviceImportFormModal @success="handleRefresh" />
<!-- 统一搜索工具栏 -->
<Card :body-style="{ padding: '16px' }" class="mb-4">
<Card :body-style="{ padding: '16px' }" class="!mb-2">
<!-- 搜索表单 -->
<div class="mb-3 flex flex-wrap items-center gap-3">
<Select

View File

@ -90,7 +90,7 @@ function handleUnpublish(product: IotProductApi.Product) {
<div>
<h2 class="text-xl font-bold">{{ product.name }}</h2>
</div>
<div class="space-x-2">
<div class="flex gap-2">
<Button
:disabled="product.status === ProductStatusEnum.PUBLISHED"
@click="openEditForm(product)"