mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 23:23:55 +08:00
87 lines
1.9 KiB
Vue
87 lines
1.9 KiB
Vue
<template>
|
||
<div class="device-item">
|
||
<div style="display: flex;justify-content: space-between;">
|
||
<div style="font-weight: 700;font-size: 18px;text-align: left;color: #3d4566;">
|
||
{{ device.agentName }}
|
||
</div>
|
||
<div>
|
||
<img src="@/assets/home/delete.png" alt=""
|
||
style="width: 18px;height: 18px;margin-right: 10px;" />
|
||
<img src="@/assets/home/info.png" alt="" style="width: 18px;height: 18px;" />
|
||
</div>
|
||
</div>
|
||
<div class="device-name">
|
||
设备型号:{{ device.ttsModelName }}
|
||
</div>
|
||
<div class="device-name">
|
||
音色模型:{{ device.ttsVoiceName }}
|
||
</div>
|
||
<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>
|
||
<div class="settings-btn" @click="$emit('deviceManage')">
|
||
设备管理
|
||
</div>
|
||
</div>
|
||
<div class="version-info">
|
||
<div>最近对话:{{ device.lastConnectedAt }}</div>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
name: 'DeviceItem',
|
||
props: {
|
||
device: { type: Object, required: true }
|
||
},
|
||
data() {
|
||
return { switchValue: false }
|
||
}
|
||
}
|
||
</script>
|
||
<style scoped>
|
||
.device-item {
|
||
width: 342px;
|
||
border-radius: 20px;
|
||
background: #fafcfe;
|
||
padding: 22px;
|
||
box-sizing: border-box;
|
||
}
|
||
.device-name {
|
||
margin: 7px 0 10px;
|
||
font-weight: 400;
|
||
font-size: 11px;
|
||
color: #3d4566;
|
||
text-align: left;
|
||
}
|
||
|
||
.settings-btn {
|
||
font-weight: 500;
|
||
font-size: 10px;
|
||
color: #5778ff;
|
||
background: #e6ebff;
|
||
width: 57px;
|
||
height: 21px;
|
||
line-height: 21px;
|
||
cursor: pointer;
|
||
border-radius: 14px;
|
||
}
|
||
|
||
.version-info {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
margin-top: 15px;
|
||
font-size: 10px;
|
||
color: #979db1;
|
||
font-weight: 400;
|
||
}
|
||
|
||
</style> |