2025-03-14 23:48:59 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="device-item">
|
|
|
|
|
|
<div style="display: flex;justify-content: space-between;">
|
2025-03-19 18:13:03 +08:00
|
|
|
|
<div style="font-weight: 700;font-size: 18px;text-align: left;color: #3d4566;">
|
|
|
|
|
|
{{ device.agentName }}
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<img src="@/assets/home/delete.png" alt=""
|
2025-03-18 21:49:57 +08:00
|
|
|
|
style="width: 18px;height: 18px;margin-right: 10px;" />
|
|
|
|
|
|
<img src="@/assets/home/info.png" alt="" style="width: 18px;height: 18px;" />
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="device-name">
|
2025-03-19 18:13:03 +08:00
|
|
|
|
设备型号:{{ device.ttsModelName }}
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</div>
|
2025-03-18 21:49:57 +08:00
|
|
|
|
<div class="device-name">
|
2025-03-19 18:13:03 +08:00
|
|
|
|
音色模型:{{ device.ttsVoiceName }}
|
2025-03-18 21:49:57 +08:00
|
|
|
|
</div>
|
2025-03-14 23:48:59 +08:00
|
|
|
|
<div style="display: flex;gap: 10px;align-items: center;">
|
|
|
|
|
|
<div class="settings-btn" @click="$emit('configure')">
|
|
|
|
|
|
配置角色
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="settings-btn">
|
|
|
|
|
|
声纹识别
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="settings-btn">
|
|
|
|
|
|
历史对话
|
|
|
|
|
|
</div>
|
2025-03-18 21:49:57 +08:00
|
|
|
|
<div class="settings-btn" @click="$emit('deviceManage')">
|
|
|
|
|
|
设备管理
|
|
|
|
|
|
</div>
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="version-info">
|
2025-03-19 18:13:03 +08:00
|
|
|
|
<div>最近对话:{{ device.lastConnectedAt }}</div>
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'DeviceItem',
|
|
|
|
|
|
props: {
|
|
|
|
|
|
device: { type: Object, required: true }
|
|
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return { switchValue: false }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.device-item {
|
2025-03-18 21:49:57 +08:00
|
|
|
|
width: 342px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background: #fafcfe;
|
2025-03-18 21:49:57 +08:00
|
|
|
|
padding: 22px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
}
|
|
|
|
|
|
.device-name {
|
2025-03-18 21:49:57 +08:00
|
|
|
|
margin: 7px 0 10px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
font-weight: 400;
|
2025-03-19 18:13:03 +08:00
|
|
|
|
font-size: 11px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
color: #3d4566;
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.settings-btn {
|
|
|
|
|
|
font-weight: 500;
|
2025-03-18 21:49:57 +08:00
|
|
|
|
font-size: 10px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
color: #5778ff;
|
|
|
|
|
|
background: #e6ebff;
|
2025-03-18 21:49:57 +08:00
|
|
|
|
width: 57px;
|
|
|
|
|
|
height: 21px;
|
|
|
|
|
|
line-height: 21px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.version-info {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2025-03-18 21:49:57 +08:00
|
|
|
|
margin-top: 15px;
|
|
|
|
|
|
font-size: 10px;
|
2025-03-14 23:48:59 +08:00
|
|
|
|
color: #979db1;
|
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
|
}
|
2025-03-18 21:49:57 +08:00
|
|
|
|
|
2025-03-14 23:48:59 +08:00
|
|
|
|
</style>
|