Bladeren bron

修改url

chenyi406 3 jaren geleden
bovenliggende
commit
e00c2858b5
1 gewijzigde bestanden met toevoegingen van 9 en 7 verwijderingen
  1. 9 7
      src/views/devices/ubi.vue

+ 9 - 7
src/views/devices/ubi.vue

@@ -29,13 +29,15 @@
                     </template>
                 </el-table-column>
                 <el-table-column label="设备二维码" min-width="120">
-                    <el-popover placement="right" :width="200" trigger="click">
-                        <template #reference>
-                            <el-button type="text">点击查看</el-button>
-                        </template>
-                        <img src="http://lq.ailishi.org:4032/chenyi/static/bg.59f1ed01.png" alt="二维码" width="200"
-                             height="200">
-                    </el-popover>
+                    <template #default="scope">
+                        <el-popover placement="right" :width="200" trigger="click">
+                            <template #reference>
+                                <el-button type="text">点击查看</el-button>
+                            </template>
+                            <img :src="scope.row.qrCode" alt="二维码" width="200"
+                                 height="200">
+                        </el-popover>
+                    </template>
                 </el-table-column>
                 <el-table-column label="电池电压" min-width="80">
                     <template #default="scope">