-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
-
+
+
+
- {{ scope.row.configJson.type || '未知' }}
+ {{ scope.row.configJson.type || 'Unknown' }}
-
+
-
+
-
+
- 音色管理
+ Voice Settings
-
+
- 修改
+ Edit
- 删除
+ Delete
@@ -94,32 +94,32 @@
{{ isAllSelected ?
- '取消全选' : '全选' }}
+ 'Deselect All' : 'Select All' }}
- 新增
+ Add
- 删除
+ Delete
@@ -174,15 +174,15 @@ export default {
computed: {
modelTypeText() {
const map = {
- vad: '语言活动检测模型(VAD)',
- asr: '语音识别模型(ASR)',
- llm: '大语言模型(LLM)',
- vllm: '视觉大模型(VLLM)',
- intent: '意图识别模型(Intent)',
- tts: '语音合成模型(TTS)',
- memory: '记忆模型(Memory)'
+ vad: 'Voice Activity Detection (VAD)',
+ asr: 'Automatic Speech Recognition (ASR)',
+ llm: 'Large Language Model (LLM)',
+ vllm: 'Vision Language Model (VLLM)',
+ intent: 'Intent Recognition (Intent)',
+ tts: 'Text-to-Speech (TTS)',
+ memory: 'Memory Model'
}
- return map[this.activeTab] || '模型配置'
+ return map[this.activeTab] || 'Model Configuration'
},
pageCount() {
return Math.ceil(this.total / this.pageSize);
@@ -223,24 +223,24 @@ export default {
},
handleMenuSelect(index) {
this.activeTab = index;
- this.currentPage = 1; // 重置到第一页
- this.pageSize = 10; // 可选:重置每页条数
+ this.currentPage = 1; // Reset to first page
+ this.pageSize = 10; // Optional: reset page size
this.loadData();
},
handleSearch() {
this.currentPage = 1;
this.loadData();
},
- // 批量删除
+ // Batch delete
batchDelete() {
if (this.selectedModels.length === 0) {
- this.$message.warning('请先选择要删除的模型')
+ this.$message.warning('Please select models to delete')
return
}
- this.$confirm('确定要删除选中的模型吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm('Are you sure you want to delete the selected models?', 'Confirm', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
const deletePromises = this.selectedModels.map(model =>
@@ -255,19 +255,19 @@ export default {
Promise.all(deletePromises).then(results => {
if (results.every(Boolean)) {
this.$message.success({
- message: '批量删除成功',
+ message: 'Batch deletion successful',
showClose: true
})
this.loadData()
} else {
this.$message.error({
- message: '部分删除失败',
+ message: 'Some deletions failed',
showClose: true
})
}
})
}).catch(() => {
- this.$message.info('已取消删除')
+ this.$message.info('Deletion cancelled')
})
},
addModel() {
@@ -277,11 +277,11 @@ export default {
this.editModelData = JSON.parse(JSON.stringify(model));
this.editDialogVisible = true;
},
- // 删除单个模型
+ // Delete single model
deleteModel(model) {
- this.$confirm('确定要删除该模型吗?', '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm('Are you sure you want to delete this model?', 'Confirm', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
Api.model.deleteModel(
@@ -289,20 +289,20 @@ export default {
({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: '删除成功',
+ message: 'Deletion successful',
showClose: true
})
this.loadData()
} else {
this.$message.error({
- message: data.msg || '删除失败',
+ message: data.msg || 'Deletion failed',
showClose: true
})
}
}
)
}).catch(() => {
- this.$message.info('已取消删除')
+ this.$message.info('Deletion cancelled')
})
},
handleCurrentChange(page) {
@@ -317,13 +317,13 @@ export default {
{ modelType, provideCode, id, formData },
({ data }) => {
if (data.code === 0) {
- this.$message.success('保存成功');
+ this.$message.success('Saved successfully');
this.loadData();
this.editDialogVisible = false;
} else {
- this.$message.error(data.msg || '保存失败');
+ this.$message.error(data.msg || 'Save failed');
}
- done && done(); // 调用done回调关闭加载状态
+ done && done(); // Call done callback to close loading state
}
);
},
@@ -342,7 +342,7 @@ export default {
}
},
- // 新增模型配置
+ // Add model configuration
handleAddConfirm(newModel) {
const params = {
modelType: this.activeTab,
@@ -371,7 +371,7 @@ export default {
});
},
- // 分页器
+ // Pagination
goFirst() {
this.currentPage = 1;
this.loadData();
@@ -393,9 +393,9 @@ export default {
this.loadData();
},
- // 获取模型配置列表
+ // Get model configuration list
loadData() {
- this.loading = true; // 开始加载
+ this.loading = true; // Start loading
const params = {
modelType: this.activeTab,
modelName: this.search,
@@ -404,7 +404,7 @@ export default {
};
Api.model.getModelList(params, ({ data }) => {
- this.loading = false; // 结束加载
+ this.loading = false; // End loading
if (data.code === 0) {
this.modelList = data.data.list;
this.total = data.data.total;
@@ -413,7 +413,7 @@ export default {
}
});
},
- // 处理启用/禁用状态变更
+ // Handle enable/disable status change
handleStatusChange(model) {
const newStatus = model.isEnabled ? 1 : 0
const originalStatus = model.isEnabled
@@ -425,13 +425,13 @@ export default {
newStatus,
({ data }) => {
if (data.code === 0) {
- this.$message.success(newStatus === 1 ? '启用成功' : '禁用成功')
- // 保持新状态
+ this.$message.success(newStatus === 1 ? 'Enabled successfully' : 'Disabled successfully')
+ // Keep new status
model.isEnabled = newStatus
} else {
- // 操作失败时恢复原状态
+ // Restore original status on operation failure
model.isEnabled = originalStatus
- this.$message.error(data.msg || '操作失败')
+ this.$message.error(data.msg || 'Operation failed')
}
}
)
@@ -439,7 +439,7 @@ export default {
handleDefaultChange(model) {
Api.model.setDefaultModel(model.id, ({ data }) => {
if (data.code === 0) {
- this.$message.success('设置默认模型成功')
+ this.$message.success('Default model set successfully')
this.loadData()
}
})
@@ -741,7 +741,7 @@ export default {
}
::v-deep .el-table .custom-selection-header .cell::before {
- content: '选择';
+ content: 'Select';
display: block;
text-align: center;
line-height: 0;
@@ -808,7 +808,7 @@ export default {
.voice-management-btn:hover {
background: #8aa2e0;
- /* 悬停时颜色加深 */
+ /* Darken color on hover */
transform: scale(1.05);
}
@@ -831,13 +831,13 @@ export default {
padding-right: 10px;
}
-/* 分页器 */
+/* Pagination */
.custom-pagination {
display: flex;
align-items: center;
gap: 8px;
- /* 导航按钮样式 (首页、上一页、下一页) */
+ /* Navigation button styles (First, Previous, Next) */
.pagination-btn:first-child,
.pagination-btn:nth-child(2),
.pagination-btn:nth-child(3),
@@ -863,7 +863,7 @@ export default {
}
}
- /* 数字按钮样式 */
+ /* Number button styles */
.pagination-btn:not(:first-child):not(:nth-child(2)):not(:nth-child(3)):not(:nth-last-child(2)) {
min-width: 28px;
height: 32px;
diff --git a/main/manager-web/src/views/OtaManagement.vue b/main/manager-web/src/views/OtaManagement.vue
index b58f70893..aedcaa67d 100644
--- a/main/manager-web/src/views/OtaManagement.vue
+++ b/main/manager-web/src/views/OtaManagement.vue
@@ -3,11 +3,11 @@
-
固件管理
+
Firmware Management
-
- 搜索
+ Search
@@ -16,44 +16,44 @@
-
+
-
-
+
+
{{ getFirmwareTypeName(scope.row.type) }}
-
-
+
+
{{ formatFileSize(scope.row.size) }}
-
-
+
{{ formatDate(scope.row.createDate) }}
-
+
{{ formatDate(scope.row.updateDate) }}
-
+
下载
- 编辑
- 删除
+ @click="downloadFirmware(scope.row)">Download
+ Edit
+ Delete
@@ -61,33 +61,33 @@
- {{ isAllSelected ? '取消全选' : '全选' }}
+ {{ isAllSelected ? 'Deselect All' : 'Select All' }}
新增
+ style="background: #5bc98c;border: None;">Add
删除
+ @click="deleteSelectedParams">Delete
@@ -95,7 +95,7 @@
@@ -193,7 +193,7 @@ export default {
this.paramsList = [];
this.total = 0;
this.$message.error({
- message: res?.data?.msg || '获取固件列表失败',
+ message: res?.data?.msg || 'Failed to get firmware list',
showClose: true
});
}
@@ -222,7 +222,7 @@ export default {
firmwarePath: ""
};
this.$nextTick(() => {
- // 重置表单的校验状态
+ // Reset form validation state
if (this.$refs.firmwareDialog && this.$refs.firmwareDialog.$refs.form) {
this.$refs.firmwareDialog.$refs.form.clearValidate();
}
@@ -236,37 +236,37 @@ export default {
},
handleSubmit(form) {
if (form.id) {
- // 编辑
+ // Edit
Api.ota.updateOta(form.id, form, (res) => {
res = res.data;
if (res.code === 0) {
this.$message.success({
- message: "修改成功",
+ message: "Update successful",
showClose: true
});
this.dialogVisible = false;
this.fetchFirmwareList();
} else {
this.$message.error({
- message: res.msg || "修改失败",
+ message: res.msg || "Update failed",
showClose: true
});
}
});
} else {
- // 新增
+ // Add
Api.ota.saveOta(form, (res) => {
res = res.data;
if (res.code === 0) {
this.$message.success({
- message: "新增成功",
+ message: "Add successful",
showClose: true
});
this.dialogVisible = false;
this.fetchFirmwareList();
} else {
this.$message.error({
- message: res.msg || "新增失败",
+ message: res.msg || "Add failed",
showClose: true
});
}
@@ -278,7 +278,7 @@ export default {
const selectedRows = this.firmwareList.filter(row => row.selected);
if (selectedRows.length === 0) {
this.$message.warning({
- message: "请先选择需要删除的固件",
+ message: "Please select firmware to delete first",
showClose: true
});
return;
@@ -286,28 +286,28 @@ export default {
this.deleteParam(selectedRows);
},
deleteParam(row) {
- // 处理单个参数或参数数组
+ // Handle single parameter or parameter array
const params = Array.isArray(row) ? row : [row];
if (Array.isArray(row) && row.length === 0) {
this.$message.warning({
- message: "请先选择需要删除的参数",
+ message: "Please select parameters to delete first",
showClose: true
});
return;
}
const paramCount = params.length;
- this.$confirm(`确定要删除选中的${paramCount}个固件吗?`, '警告', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(`Are you sure you want to delete ${paramCount} selected firmware?`, 'Warning', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning',
distinguishCancelAndClose: true
}).then(() => {
const ids = params.map(param => param.id);
if (ids.some(id => !id)) {
this.$message.error({
- message: '存在无效的参数ID',
+ message: 'Invalid parameter ID exists',
showClose: true
});
return;
@@ -317,13 +317,13 @@ export default {
res = res.data;
if (res.code === 0) {
this.$message.success({
- message: `成功删除${paramCount}个固件`,
+ message: `Successfully deleted ${paramCount} firmware`,
showClose: true
});
this.fetchFirmwareList();
} else {
this.$message.error({
- message: res.msg || '删除失败,请重试',
+ message: res.msg || 'Delete failed, please try again',
showClose: true
});
}
@@ -332,13 +332,13 @@ export default {
if (action === 'cancel') {
this.$message({
type: 'info',
- message: '已取消删除操作',
+ message: 'Delete operation cancelled',
duration: 1000
});
} else {
this.$message({
type: 'info',
- message: '操作已关闭',
+ message: 'Operation closed',
duration: 1000
});
}
@@ -372,17 +372,17 @@ export default {
},
downloadFirmware(firmware) {
if (!firmware || !firmware.id) {
- this.$message.error('固件信息不完整');
+ this.$message.error('Incomplete firmware information');
return;
}
- // 先获取下载链接
+ // First get download link
Api.ota.getDownloadUrl(firmware.id, (res) => {
if (res.data.code === 0) {
const uuid = res.data.data;
const baseUrl = process.env.VUE_APP_API_BASE_URL || '';
window.open(`${window.location.origin}${baseUrl}/otaMag/download/${uuid}`);
} else {
- this.$message.error('获取下载链接失败');
+ this.$message.error('Failed to get download link');
}
});
},
@@ -393,8 +393,8 @@ export default {
const res = await Api.dict.getDictDataByType('FIRMWARE_TYPE')
this.firmwareTypes = res.data
} catch (error) {
- console.error('获取固件类型失败:', error)
- this.$message.error(error.message || '获取固件类型失败')
+ console.error('Failed to get firmware types:', error)
+ this.$message.error(error.message || 'Failed to get firmware types')
}
},
getFirmwareTypeName(type) {
diff --git a/main/manager-web/src/views/ParamsManagement.vue b/main/manager-web/src/views/ParamsManagement.vue
index 71d0866b8..9665e59d0 100644
--- a/main/manager-web/src/views/ParamsManagement.vue
+++ b/main/manager-web/src/views/ParamsManagement.vue
@@ -3,11 +3,11 @@
-
参数管理
+
Parameter Management
-
- 搜索
+ Search
@@ -16,33 +16,33 @@
-
+
-
-
+
+
{{ maskSensitiveValue(scope.row.paramValue)
}}
{{ scope.row.paramValue }}
- {{ scope.row.showValue ? '隐藏' : '查看' }}
+ {{ scope.row.showValue ? 'Hide' : 'View' }}
{{ scope.row.paramValue }}
-
-
+
+
- 编辑
- 删除
+ Edit
+ Delete
@@ -50,32 +50,32 @@
- {{ isAllSelected ? '取消全选' : '全选' }}
+ {{ isAllSelected ? 'Deselect All' : 'Select All' }}
- 新增
+ Add
删除
+ @click="deleteSelectedParams">Delete
@@ -109,7 +109,7 @@ export default {
pageSizeOptions: [10, 20, 50, 100],
total: 0,
dialogVisible: false,
- dialogTitle: "新增参数",
+ dialogTitle: "Add Parameter",
isAllSelected: false,
sensitive_keys: ["api_key", "personal_access_token", "access_token", "token", "secret", "access_key_secret", "secret_key"],
paramForm: {
@@ -170,7 +170,7 @@ export default {
this.total = data.data.total;
} else {
this.$message.error({
- message: data.msg || '获取参数列表失败',
+ message: data.msg || 'Failed to get parameter list',
showClose: true
});
}
@@ -188,7 +188,7 @@ export default {
});
},
showAddDialog() {
- this.dialogTitle = "新增参数";
+ this.dialogTitle = "Add Parameter";
this.paramForm = {
id: null,
paramCode: "",
@@ -198,7 +198,7 @@ export default {
this.dialogVisible = true;
},
editParam(row) {
- this.dialogTitle = "编辑参数";
+ this.dialogTitle = "Edit Parameter";
this.paramForm = { ...row };
this.dialogVisible = true;
},
@@ -209,7 +209,7 @@ export default {
Api.admin.updateParam(form, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: "修改成功",
+ message: "Update successful",
showClose: true
});
this.dialogVisible = false;
@@ -222,7 +222,7 @@ export default {
Api.admin.addParam(form, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: "新增成功",
+ message: "Added successfully",
showClose: true
});
this.dialogVisible = false;
@@ -237,7 +237,7 @@ export default {
const selectedRows = this.paramsList.filter(row => row.selected);
if (selectedRows.length === 0) {
this.$message.warning({
- message: "请先选择需要删除的参数",
+ message: "Please select parameters to delete",
showClose: true
});
return;
@@ -250,23 +250,23 @@ export default {
if (Array.isArray(row) && row.length === 0) {
this.$message.warning({
- message: "请先选择需要删除的参数",
+ message: "Please select parameters to delete",
showClose: true
});
return;
}
const paramCount = params.length;
- this.$confirm(`确定要删除选中的${paramCount}个参数吗?`, '警告', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(`Are you sure you want to delete ${paramCount} selected parameter(s)?`, 'Warning', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning',
distinguishCancelAndClose: true
}).then(() => {
const ids = params.map(param => param.id);
if (ids.some(id => isNaN(id))) {
this.$message.error({
- message: '存在无效的参数ID',
+ message: 'Invalid parameter ID exists',
showClose: true
});
return;
@@ -275,13 +275,13 @@ export default {
Api.admin.deleteParam(ids, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: `成功删除${paramCount}个参数`,
+ message: `Successfully deleted ${paramCount} parameter(s)`,
showClose: true
});
this.fetchParams();
} else {
this.$message.error({
- message: data.msg || '删除失败,请重试',
+ message: data.msg || 'Delete failed, please try again',
showClose: true
});
}
@@ -290,13 +290,13 @@ export default {
if (action === 'cancel') {
this.$message({
type: 'info',
- message: '已取消删除操作',
+ message: 'Delete operation cancelled',
duration: 1000
});
} else {
this.$message({
type: 'info',
- message: '操作已关闭',
+ message: 'Operation closed',
duration: 1000
});
}
diff --git a/main/manager-web/src/views/ProviderManagement.vue b/main/manager-web/src/views/ProviderManagement.vue
index f9b057388..d501a1317 100644
--- a/main/manager-web/src/views/ProviderManagement.vue
+++ b/main/manager-web/src/views/ProviderManagement.vue
@@ -7,19 +7,19 @@
- 类别筛选 {{ selectedModelTypeLabel }}
- 全部
+ All
{{ item.label }}
-
- 搜索
+ Search
@@ -28,24 +28,24 @@
-
+
-
+
- 类别{{ selectedModelTypeLabel }}
- 全部
+ All
{{ item.label }}
@@ -58,25 +58,25 @@
-
-
-
+
+
+
{{ field.label }}:
{{ field.type }}
- 敏感
+ Sensitive
- 查看字段
+ View Fields
-
-
+
+
- 编辑
- 删除
+ Edit
+ Delete
@@ -84,19 +84,19 @@
- {{ isAllSelected ? '取消全选' : '全选' }}
+ {{ isAllSelected ? 'Deselect All' : 'Select All' }}
- 新增
- 删除
+ Add
+ Delete
-
+
@@ -175,7 +175,7 @@ export default {
},
computed: {
selectedModelTypeLabel() {
- if (!this.searchModelType) return "(全部)";
+ if (!this.searchModelType) return "(All)";
const selectedType = this.modelTypes.find(item => item.value === this.searchModelType);
return selectedType ? `(${selectedType.label})` : "";
},
@@ -208,7 +208,7 @@ export default {
// list.sort((a, b) => a.sort - b.sort);
- // // 分页处理
+ // // Pagination processing
// const start = (this.currentPage - 1) * this.pageSize;
// return list.slice(start, start + this.pageSize);
}
@@ -324,9 +324,9 @@ export default {
const providers = Array.isArray(row) ? row : [row];
const providerCount = providers.length;
- this.$confirm(`确定要删除选中的${providerCount}个供应器吗?`, '警告', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(`Are you sure you want to delete ${providerCount} selected provider(s)?`, 'Warning', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning',
}).then(() => {
const ids = providers.map(provider => provider.id);
@@ -334,15 +334,15 @@ export default {
if (data.code === 0) {
this.isAllSelected = false;
- this.fetchProviders(); // 刷新表格
+ this.fetchProviders(); // Refresh table
this.$message.success({
- message: `成功删除${providerCount}个参数`,
+ message: `Successfully deleted ${providerCount} provider(s)`,
showClose: true
});
} else {
this.$message.error({
- message: data.msg || '删除失败,请重试',
+ message: data.msg || 'Delete failed, please try again',
showClose: true
});
}
@@ -350,7 +350,7 @@ export default {
}).catch(() => {
this.$message({
type: 'info',
- message: '已取消删除',
+ message: 'Delete cancelled',
showClose: true,
duration: 1000
});
diff --git a/main/manager-web/src/views/ServerSideManager.vue b/main/manager-web/src/views/ServerSideManager.vue
index 973fcd6f5..bc8d8d4d3 100644
--- a/main/manager-web/src/views/ServerSideManager.vue
+++ b/main/manager-web/src/views/ServerSideManager.vue
@@ -3,7 +3,7 @@
-
服务端管理
+ Server Management
@@ -11,19 +11,19 @@
-
+
-
-
+
+
- 重启
+ Restart
更新配置
+ @click="emitAction(scope.row, actionMap.update_config)">Update Config
@@ -53,15 +53,15 @@ export default {
actionMap: {
restart: {
value: 'restart',
- title: "重启服务端",
- message: "确定要重启服务端吗?",
- confirmText: "重启",
+ title: "Restart Server",
+ message: "Are you sure you want to restart the server?",
+ confirmText: "Restart",
},
update_config: {
value: 'update_config',
- title: "更新配置",
- message: "确定要更新配置吗?",
- confirmText: "更新",
+ title: "Update Configuration",
+ message: "Are you sure you want to update the configuration?",
+ confirmText: "Update",
}
},
currentPage: 1,
@@ -70,7 +70,7 @@ export default {
pageSizeOptions: [10, 20, 50, 100],
total: 0,
dialogVisible: false,
- dialogTitle: "新增参数",
+ dialogTitle: "Add Parameter",
isAllSelected: false,
sensitive_keys: ["api_key", "personal_access_token", "access_token", "token", "secret", "access_key_secret", "secret_key"],
paramForm: {
@@ -122,7 +122,7 @@ export default {
this.total = data.data.length;
} else {
this.$message.error({
- message: data.msg || '获取参数列表失败',
+ message: data.msg || 'Failed to get parameter list',
showClose: true
});
}
@@ -133,24 +133,25 @@ export default {
if (actionItem === undefined || rowItem.address === undefined) {
return;
}
- // 弹开询问框
+ // Show confirmation dialog
this.$confirm(actionItem.message, actionItem.title, {
- confirmButtonText: actionItem.confirmText, // 确认按钮文本
+ confirmButtonText: actionItem.confirmText, // Confirm button text
+ cancelButtonText: 'Cancel'
}).then(() => {
- // 用户点击了确认按钮
+ // User clicked confirm button
Api.admin.sendWsServerAction({
targetWs: rowItem.address,
action: actionItem.value
}, ({ data }) => {
if (data.code !== 0) {
this.$message.error({
- message: data.msg || '操作失败',
+ message: data.msg || 'Operation failed',
showClose: true
});
return;
}
this.$message.success({
- message: `${actionItem.title}成功`,
+ message: `${actionItem.title} successful`,
showClose: true
})
})
diff --git a/main/manager-web/src/views/UserManagement.vue b/main/manager-web/src/views/UserManagement.vue
index 34d60e746..15eb39862 100644
--- a/main/manager-web/src/views/UserManagement.vue
+++ b/main/manager-web/src/views/UserManagement.vue
@@ -3,11 +3,11 @@
-
用户管理
+
User Management
-
- 搜索
+ Search
@@ -16,31 +16,31 @@
-
+
-
-
-
-
-
+
+
+
+
+
- 正常
- 禁用
+ Active
+ Disabled
-
+
- 重置密码
+ Reset Password
禁用账户
+ @click="handleChangeStatus(scope.row, 0)">Disable Account
恢复账号
- 删除用户
+ @click="handleChangeStatus(scope.row, 1)">Enable Account
+ Delete User
@@ -48,32 +48,32 @@
- {{ isAllSelected ? '取消全选' : '全选' }}
+ {{ isAllSelected ? 'Deselect All' : 'Select All' }}
- 启用
+ Enable
禁用
- 删除
+ class="el-icon-remove-outline rotated-icon">Disable
+ Delete
@@ -148,7 +148,7 @@ export default {
mobile: this.searchPhone,
},
({ data }) => {
- this.loading = false; // 结束加载
+ this.loading = false; // End loading
if (data.code === 0) {
this.userList = data.data.list.map(item => ({
...item,
@@ -172,19 +172,19 @@ export default {
batchDelete() {
const selectedUsers = this.userList.filter(user => user.selected);
if (selectedUsers.length === 0) {
- this.$message.warning("请先选择需要删除的用户");
+ this.$message.warning("Please select users to delete first");
return;
}
- this.$confirm(`确定要删除选中的${selectedUsers.length}个用户吗?`, "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
+ this.$confirm(`Are you sure you want to delete ${selectedUsers.length} selected users?`, "Warning", {
+ confirmButtonText: "Confirm",
+ cancelButtonText: "Cancel",
type: "warning",
})
.then(async () => {
const loading = this.$loading({
lock: true,
- text: "正在删除中...",
+ text: "Deleting...",
spinner: "el-icon-loading",
background: "rgba(0, 0, 0, 0.7)",
});
@@ -209,29 +209,29 @@ export default {
if (failCount === 0) {
this.$message.success({
- message: `成功删除${successCount}个用户`,
+ message: `Successfully deleted ${successCount} users`,
showClose: true
});
} else if (successCount === 0) {
this.$message.error({
- message: '删除失败,请重试',
+ message: 'Delete failed, please try again',
showClose: true
});
} else {
this.$message.warning(
- `成功删除${successCount}个用户,${failCount}个删除失败`
+ `Successfully deleted ${successCount} users, ${failCount} failed`
);
}
this.fetchUsers();
} catch (error) {
- this.$message.error("删除过程中发生错误");
+ this.$message.error("Error occurred during deletion");
} finally {
loading.close();
}
})
.catch(() => {
- this.$message.info("已取消删除");
+ this.$message.info("Delete cancelled");
});
},
batchEnable() {
@@ -243,16 +243,16 @@ export default {
this.handleChangeStatus(selectedUsers, 0);
},
resetPassword(row) {
- this.$confirm("重置后将会生成新密码,是否继续?", "提示", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
+ this.$confirm("A new password will be generated after reset, continue?", "Tip", {
+ confirmButtonText: "Confirm",
+ cancelButtonText: "Cancel",
}).then(() => {
Api.admin.resetUserPassword(row.userid, ({ data }) => {
if (data.code === 0) {
this.currentPassword = data.data;
this.showViewPassword = true;
this.$message.success({
- message: "密码已重置,请通知用户使用新密码登录",
+ message: "Password has been reset, please notify the user to login with the new password",
showClose: true
});
}
@@ -260,22 +260,22 @@ export default {
});
},
deleteUser(row) {
- this.$confirm("确定要删除该用户吗?", "警告", {
- confirmButtonText: "确定",
- cancelButtonText: "取消",
+ this.$confirm("Are you sure you want to delete this user?", "Warning", {
+ confirmButtonText: "Confirm",
+ cancelButtonText: "Cancel",
type: "warning",
})
.then(() => {
Api.admin.deleteUser(row.userid, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: "删除成功",
+ message: "Delete successful",
showClose: true
});
this.fetchUsers();
} else {
this.$message.error({
- message: data.msg || "删除失败",
+ message: data.msg || "Delete failed",
showClose: true
});
}
@@ -304,38 +304,38 @@ export default {
this.fetchUsers();
},
handleChangeStatus(row, status) {
- // 处理单个用户或用户数组
+ // Handle single user or user array
const users = Array.isArray(row) ? row : [row];
- const confirmText = status === 0 ? '禁用' : '启用';
+ const confirmText = status === 0 ? 'disable' : 'enable';
const userCount = users.length;
- this.$confirm(`确定要${confirmText}选中的${userCount}个用户吗?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(`Are you sure you want to ${confirmText} ${userCount} selected users?`, 'Tip', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning'
}).then(() => {
const userIds = users.map(user => user.userid);
if (userIds.some(id => isNaN(id))) {
- this.$message.error('存在无效的用户ID');
+ this.$message.error('Invalid user ID exists');
return;
}
Api.user.changeUserStatus(status, userIds, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: `成功${confirmText}${userCount}个用户`,
+ message: `Successfully ${confirmText}d ${userCount} users`,
showClose: true
});
- this.fetchUsers(); // 刷新用户列表
+ this.fetchUsers(); // Refresh user list
} else {
this.$message.error({
- message: '操作失败,请重试',
+ message: 'Operation failed, please try again',
showClose: true
});
}
});
}).catch(() => {
- // 用户取消操作
+ // User cancelled operation
});
},
},
diff --git a/main/manager-web/src/views/VoicePrint.vue b/main/manager-web/src/views/VoicePrint.vue
index be55a9073..afa0910f5 100644
--- a/main/manager-web/src/views/VoicePrint.vue
+++ b/main/manager-web/src/views/VoicePrint.vue
@@ -3,7 +3,7 @@
-
声纹识别
+ Voice Recognition
@@ -11,23 +11,23 @@
-
-
-
-
+
+
+
+
- 编辑
+ Edit
删除
+ @click="deleteVoicePrint(scope.row.id)">Delete
@@ -35,7 +35,7 @@
-
+
@@ -56,7 +56,7 @@ export default {
voicePrintList: [],
loading: false,
dialogVisible: false,
- dialogTitle: "添加说话人",
+ dialogTitle: "Add Speaker",
isAllSelected: false,
paramForm: {
id: null,
@@ -87,7 +87,7 @@ export default {
}));
} else {
this.$message.error({
- message: data.msg || '获取声纹列表失败',
+ message: data.msg || 'Failed to get voice print list',
showClose: true
});
}
@@ -95,7 +95,7 @@ export default {
);
},
showAddDialog() {
- this.dialogTitle = "添加说话人";
+ this.dialogTitle = "Add Speaker";
this.paramForm = {
id: null,
audioId: '',
@@ -105,18 +105,18 @@ export default {
this.dialogVisible = true;
},
editVoicePrint(row) {
- this.dialogTitle = "编辑说话人";
+ this.dialogTitle = "Edit Speaker";
this.paramForm = { ...row };
this.dialogVisible = true;
},
handleSubmit({ form, done }) {
if (form.id) {
- // 编辑
+ // Edit
Api.agent.updateAgentVoicePrint(form, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: "修改成功",
+ message: "Update successful",
showClose: true
});
this.dialogVisible = false;
@@ -125,7 +125,7 @@ export default {
done && done();
});
} else {
- // 新增
+ // Add
Api.agent.addAgentVoicePrint({
agentId: this.agentId,
audioId: form.audioId,
@@ -134,7 +134,7 @@ export default {
}, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: "新增成功",
+ message: "Add successful",
showClose: true
});
this.dialogVisible = false;
@@ -144,24 +144,24 @@ export default {
});
}
},
- // 删除按钮
+ // Delete button
deleteVoicePrint(id) {
- this.$confirm(`确定要删除选中的此声纹吗?`, '警告', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
+ this.$confirm(`Are you sure you want to delete this voice print?`, 'Warning', {
+ confirmButtonText: 'Confirm',
+ cancelButtonText: 'Cancel',
type: 'warning',
distinguishCancelAndClose: true
}).then(() => {
Api.agent.deleteAgentVoicePrint(id, ({ data }) => {
if (data.code === 0) {
this.$message.success({
- message: `成功删除此声纹`,
+ message: `Successfully deleted voice print`,
showClose: true
});
this.fetchVoicePrints();
} else {
this.$message.error({
- message: data.msg || '删除失败,请重试',
+ message: data.msg || 'Delete failed, please try again',
showClose: true
});
}
@@ -170,13 +170,13 @@ export default {
if (action === 'cancel') {
this.$message({
type: 'info',
- message: '已取消删除操作',
+ message: 'Delete operation cancelled',
duration: 1000
});
} else {
this.$message({
type: 'info',
- message: '操作已关闭',
+ message: 'Operation closed',
duration: 1000
});
}
diff --git a/main/manager-web/src/views/home.vue b/main/manager-web/src/views/home.vue
index 005d763c2..15f3e06a1 100644
--- a/main/manager-web/src/views/home.vue
+++ b/main/manager-web/src/views/home.vue
@@ -8,12 +8,12 @@
- 你好,小智
+ Hello, Cheeko
- 让我们度过
+ Let's have a
- 美好的一天!
+ wonderful day!
@@ -21,7 +21,7 @@
- 添加智能体
+ Add Agent
diff --git a/main/manager-web/src/views/login.vue b/main/manager-web/src/views/login.vue
index 24c601d9c..83bc3a495 100644
--- a/main/manager-web/src/views/login.vue
+++ b/main/manager-web/src/views/login.vue
@@ -3,7 +3,7 @@
@@ -14,7 +14,7 @@

-
登录
+
Login
WELCOME TO LOGIN
@@ -24,7 +24,7 @@
@@ -36,48 +36,48 @@
-
+
-
-
新用户注册
-
忘记密码?
+
New User Registration
+
Forgot Password?
-
登录
+
Login
-
+
-
+
- 登录即同意
-
《用户协议》
- 和
-
《隐私政策》
+ By logging in, you agree to
+
User Agreement
+ and
+
Privacy Policy
@@ -143,7 +143,7 @@ export default {
const blob = new Blob([res.data], { type: res.data.type });
this.captchaUrl = URL.createObjectURL(blob);
} else {
- showDanger('验证码加载失败,点击刷新');
+ showDanger('Failed to load verification code, click to refresh');
}
});
}
@@ -173,35 +173,35 @@ export default {
if (this.isMobileLogin) {
// 手机号登录验证
if (!validateMobile(this.form.mobile, this.form.areaCode)) {
- showDanger('请输入正确的手机号码');
+ showDanger('Please enter a valid phone number');
return;
}
// 拼接手机号作为用户名
this.form.username = this.form.areaCode + this.form.mobile;
} else {
// 用户名登录验证
- if (!this.validateInput(this.form.username, '用户名不能为空')) {
+ if (!this.validateInput(this.form.username, 'Username cannot be empty')) {
return;
}
}
// 验证密码
- if (!this.validateInput(this.form.password, '密码不能为空')) {
+ if (!this.validateInput(this.form.password, 'Password cannot be empty')) {
return;
}
// 验证验证码
- if (!this.validateInput(this.form.captcha, '验证码不能为空')) {
+ if (!this.validateInput(this.form.captcha, 'Verification code cannot be empty')) {
return;
}
this.form.captchaId = this.captchaUuid
Api.user.login(this.form, ({ data }) => {
- showSuccess('登录成功!');
+ showSuccess('Login successful!');
this.$store.commit('setToken', JSON.stringify(data.data));
goToPage('/home');
}, (err) => {
- showDanger(err.data.msg || '登录失败')
- if (err.data != null && err.data.msg != null && err.data.msg.indexOf('图形验证码') > -1) {
+ showDanger(err.data.msg || 'Login failed')
+ if (err.data != null && err.data.msg != null && (err.data.msg.indexOf('verification code') > -1 || err.data.msg.indexOf('图形验证码') > -1)) {
this.fetchCaptcha()
}
})
diff --git a/main/manager-web/src/views/register.vue b/main/manager-web/src/views/register.vue
index e9f7dbcb4..5131eecdb 100644
--- a/main/manager-web/src/views/register.vue
+++ b/main/manager-web/src/views/register.vue
@@ -4,7 +4,7 @@
diff --git a/main/manager-web/src/views/retrievePassword.vue b/main/manager-web/src/views/retrievePassword.vue
index dbf3ffcfc..6abc2340c 100644
--- a/main/manager-web/src/views/retrievePassword.vue
+++ b/main/manager-web/src/views/retrievePassword.vue
@@ -4,7 +4,7 @@
diff --git a/main/manager-web/src/views/roleConfig.vue b/main/manager-web/src/views/roleConfig.vue
index bbba01bda..a12b45c5f 100644
--- a/main/manager-web/src/views/roleConfig.vue
+++ b/main/manager-web/src/views/roleConfig.vue
@@ -3,7 +3,7 @@
-
角色配置
+ Role Configuration
@@ -18,10 +18,10 @@