mirror of
https://gitee.com/beecue/fastbee.git
synced 2025-12-18 00:45:55 +08:00
多租户测试调整
This commit is contained in:
@@ -368,7 +368,7 @@ export default {
|
||||
if (this.form.status == 2) {
|
||||
this.deviceStatus = 1;
|
||||
}
|
||||
this.$modal.alertSuccess("新增成功, 可以烧录sdk到设备了");
|
||||
this.$modal.alertSuccess("添加设备成功");
|
||||
this.loadMap();
|
||||
}
|
||||
});
|
||||
|
||||
@@ -33,7 +33,9 @@
|
||||
<el-row type="flex" :gutter="10" justify="space-between">
|
||||
<el-col :span="20" style="text-align:left;">
|
||||
<el-link type="" :underline="false" @click="handleEditDevice(item)" style="font-weight:bold;font-size:16px;line-height:32px;">
|
||||
<svg-icon icon-class="device" /> {{item.deviceName}}
|
||||
<svg-icon icon-class="device" v-if="item.isOwner==1" />
|
||||
<svg-icon icon-class="share" v-else />
|
||||
{{item.deviceName}}
|
||||
<el-tag size="mini" type="info">Version {{item.firmwareVersion}}</el-tag>
|
||||
</el-link>
|
||||
</el-col>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
<script>
|
||||
import {
|
||||
listUser
|
||||
} from "@/api/system/user";
|
||||
} from "@/api/iot/tool";
|
||||
import {
|
||||
addDeviceUser,
|
||||
addDeviceUsers,
|
||||
|
||||
@@ -15,6 +15,12 @@
|
||||
<el-table-column label="设备名称" align="center" prop="deviceName" />
|
||||
<el-table-column label="设备编号" align="center" prop="serialNumber" />
|
||||
<el-table-column label="产品名称" align="center" prop="productName" />
|
||||
<el-table-column label="设备类型" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-tag type="success" v-if="scope.row.isOwner==0">分享</el-tag>
|
||||
<el-tag type="primary" v-else>拥有</el-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="设备状态" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.iot_device_status" :value="scope.row.status" />
|
||||
|
||||
Reference in New Issue
Block a user