feat(iot):优化 iot 设备管理的样式
parent
3da4a3f417
commit
5a1f4901da
|
|
@ -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']"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)"
|
||||
|
|
|
|||
Loading…
Reference in New Issue