From 91a2846794ae3585b3d8fc8ba8ddc4098ca9771e Mon Sep 17 00:00:00 2001 From: Ran_Chen <1908198662@qq.com> Date: Tue, 8 Apr 2025 16:24:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E2=80=9C=E9=9F=B3=E8=89=B2?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E2=80=9D=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/AudioPlayer.vue | 379 ++++++++++++ main/manager-web/src/components/TtsModel.vue | 538 +++++++++++++----- 2 files changed, 786 insertions(+), 131 deletions(-) create mode 100644 main/manager-web/src/components/AudioPlayer.vue diff --git a/main/manager-web/src/components/AudioPlayer.vue b/main/manager-web/src/components/AudioPlayer.vue new file mode 100644 index 00000000..1af0df87 --- /dev/null +++ b/main/manager-web/src/components/AudioPlayer.vue @@ -0,0 +1,379 @@ + + + + + + + + + + + + + + {{ formattedCurrentTime }}/{{ formattedDuration }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/main/manager-web/src/components/TtsModel.vue b/main/manager-web/src/components/TtsModel.vue index 14535592..fe31f087 100644 --- a/main/manager-web/src/components/TtsModel.vue +++ b/main/manager-web/src/components/TtsModel.vue @@ -1,54 +1,112 @@ - - - - - EdgeTTS - DoubaoTTS - TTS302AI - CosyVoiceSiliconflow - - - - - - - 查询 - 添加音色 - 批量删除 - - - - - - - - + + + × + + + + + - 修改 - 删除 + + + + + + + {{ scope.row.voiceCode }} + + + + + + {{ scope.row.voiceName }} + + + + + + {{ scope.row.languageType }} + + + + + + + + + + + + + {{ scope.row.remark }} + + + + + + 编辑 + + + 删除 + + + 保存 + + - - + + + + - - - - - + + + + + {{ selectAll ? '取消全选' : '全选' }} + + 新增 + 删除 + + +/* 备注文本 */ +::v-deep .remark-input .el-textarea__inner { + background-color: #f5f5f5; + border-radius: 4px; + border: 1px solid #e6e6e6; + padding: 8px 12px; + resize: none; + max-height: 40px !important; + line-height: 1.5; +} + +::v-deep .remark-input .el-textarea__inner::placeholder { + color: black !important; + opacity: 0.7; +} + +::v-deep .remark-input .el-textarea__inner { + background-color: #f4f6fa; +} + +::v-deep .remark-input .el-textarea__inner:focus { + background-color: #edeffb; +} + +/* 滚动容器 */ +.scroll-wrapper { + display: flex; + max-height: 55vh; + position: relative; +} + +.table-container { + flex: 1; + overflow-y: scroll; + scrollbar-width: none; /* Firefox */ + padding-right: 15px; /* 为滚动条留出空间 */ + width: calc(100% - 16px); /* 减去滚动条宽度 */ +} + +.table-container::-webkit-scrollbar { + display: none; /* Chrome/Safari */ +} + +/* 自定义滚动条 */ +.custom-scrollbar { + width: 8px; + background: #f1f1f1; + border-radius: 4px; + position: relative; + margin-left: 8px; + height: 100%; + top: 55px; +} + +.custom-scrollbar-track { + position: relative; + height: 380px; + cursor: pointer; +} + +.custom-scrollbar-thumb { + position: absolute; + width: 100%; + background: #9dade7; + border-radius: 4px; + cursor: grab; + transition: background 0.2s; +} + +.custom-scrollbar-thumb:hover { + background: #6b84d9; +} + +.custom-scrollbar-thumb:active { + cursor: grabbing; +} + +.save-Tts { + background: #796dea; + border: None; +} + +.save-Tts:hover { + background: #8b80f0; +} + +.custom-audio-container audio { + display: none; +} + +/* 新增按钮组样式 */ +.action-buttons { + bottom: 20px; + padding-top: 10px; +} + + \ No newline at end of file