updata:智控台页面添加语言切换,支持中英繁

This commit is contained in:
rainv123
2025-09-12 15:11:56 +08:00
parent 5b4381c257
commit f788e45bc1
4 changed files with 8 additions and 7 deletions
@@ -10,7 +10,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="handleClose">{{ $t('button.cancel') }}</el-button> <el-button @click="handleClose">{{ $t('button.cancel') }}</el-button>
<el-button type="primary" @click="handleSave">{{ $t('button.confirm') }}</el-button> <el-button type="primary" @click="handleSave">{{ $t('button.save') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
@@ -31,7 +31,7 @@
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
<el-button @click="handleCancel">{{ $t('button.cancel') }}</el-button> <el-button @click="handleCancel">{{ $t('button.cancel') }}</el-button>
<el-button type="primary" @click="handleSubmit">{{ $t('button.confirm') }}</el-button> <el-button type="primary" @click="handleSubmit">{{ $t('button.save') }}</el-button>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
+2 -1
View File
@@ -532,9 +532,10 @@ export default {
'paramManagement.addSuccess': 'Add successful', 'paramManagement.addSuccess': 'Add successful',
'paramManagement.updateFailed': 'Update failed', 'paramManagement.updateFailed': 'Update failed',
'paramManagement.addFailed': 'Add failed', 'paramManagement.addFailed': 'Add failed',
'home.noConversation': 'No conversation',
'home.justNow': 'Just now', 'home.justNow': 'Just now',
'home.minutesAgo': '{minutes} minutes ago', 'home.minutesAgo': '{minutes} minutes ago',
'home.hoursAgo': '{hours} hours{minutes, plural, one { minute } other { minutes }} ago', 'home.hoursAgo': '{hours} hours {minutes} minutes ago',
'home.confirmDeleteAgent': 'Are you sure you want to delete this agent?', 'home.confirmDeleteAgent': 'Are you sure you want to delete this agent?',
'home.deleteSuccess': 'Delete successful', 'home.deleteSuccess': 'Delete successful',
'home.deleteFailed': 'Delete failed', 'home.deleteFailed': 'Delete failed',
@@ -280,12 +280,12 @@ export default {
}); });
return; return;
} }
this.$confirm(this.$t('paramManagement.confirmBatchDelete', { paramCount }), 'Warning', { this.$confirm(this.$t('paramManagement.confirmBatchDelete', { paramCount }), this.$t('message.warning'), {
confirmButtonText: 'OK', confirmButtonText: this.$t('button.ok'),
cancelButtonText: 'Cancel', cancelButtonText: this.$t('button.cancel'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
Api.admin.deleteParams(paramIds, ({ data }) => { Api.admin.deleteParam(paramIds, ({ data }) => {
if (data.code === 0) { if (data.code === 0) {
this.fetchParams(); this.fetchParams();
this.$message.success({ this.$message.success({