代码优化

This commit is contained in:
BianLzhaoMin 2024-08-09 16:20:27 +08:00
parent e41bc3419a
commit 5bd0f38ff2
2 changed files with 7 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