Compare commits

..

2 Commits

Author SHA1 Message Date
BianLzhaoMin 5bd0f38ff2 代码优化 2024-08-09 16:20:27 +08:00
BianLzhaoMin e41bc3419a 代码优化 2024-08-09 16:13:05 +08:00
2 changed files with 8 additions and 6 deletions

View File

@ -209,9 +209,9 @@
</el-table-column>
<el-table-column label="IOT设备" align="center" prop="ownHouseName">
<template slot-scope="{ row }">
<el-button type="text" @click="handleBindIOT(row)"
>未绑定</el-button
>
<el-button type="text" @click="handleBindIOT(row)">{{
row.iotNum === 0 ? '未绑定' : row.iotNum
}}</el-button>
</template>
</el-table-column>
<el-table-column
@ -223,6 +223,7 @@
<i
class="el-icon-location location-icon"
@click="handleMap(row)"
v-if="row.iotNum > 0"
/>
</template>
</el-table-column>

View File

@ -209,9 +209,9 @@
</el-table-column>
<el-table-column label="IOT设备" align="center" prop="ownHouseName">
<template slot-scope="{ row }">
<el-button type="text" @click="handleBindIOT(row)"
>未绑定</el-button
>
<el-button type="text" @click="handleBindIOT(row)">{{
row.iotNum === 0 ? '未绑定' : row.iotNum
}}</el-button>
</template>
</el-table-column>
<el-table-column
@ -223,6 +223,7 @@
<i
class="el-icon-location location-icon"
@click="handleMap(row)"
v-if="row.iotNum > 0"
/>
</template>
</el-table-column>