From 905d9c7ffcf65057bf42c5f213880f2030555e55 Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 26 Jun 2026 09:06:46 +0800 Subject: [PATCH] =?UTF-8?q?i18n(ui):=20=E5=9B=BD=E9=99=85=E5=8C=96?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E6=96=87=E6=9C=AC=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 替换费用配置页面的所有静态文本为国际化标签 - 替换组织机构管理页面的表单标签和按钮文本 - 替换病房管理页面的列标题和操作按钮 - 替换设备对照对话框的标题和占位符文本 - 替换诊断治疗对照对话框的标题和字段标签 - 替换CDSS告警页面的消息提示文本 - 在相关组件中引入vue-i18n并创建翻译实例 --- .../src/views/basicmanage/fee/index.vue | 62 +++++++++---------- .../views/basicmanage/organization/index.vue | 50 +++++++-------- .../src/views/basicmanage/ward/index.vue | 22 +++---- .../device/components/deviceYbDialog.vue | 27 ++++---- .../components/diagTreYbDialog.vue | 25 ++++---- .../src/views/cdss/cdssAlerts/index.vue | 4 +- 6 files changed, 98 insertions(+), 92 deletions(-) diff --git a/healthlink-his-ui/src/views/basicmanage/fee/index.vue b/healthlink-his-ui/src/views/basicmanage/fee/index.vue index e46a43b76..8da9d0263 100755 --- a/healthlink-his-ui/src/views/basicmanage/fee/index.vue +++ b/healthlink-his-ui/src/views/basicmanage/fee/index.vue @@ -3,13 +3,13 @@ @@ -18,10 +18,10 @@ :model="queryParams" label-width="80px" > - + - 搜索 + {{ $t('common.search') }} - 重置 + {{ $t('common.reset') }} @@ -51,28 +51,28 @@ > @@ -81,12 +81,12 @@ :type="row.status === '0' ? 'success' : 'info'" size="small" > - {{ row.status === '0' ? '启用' : '停用' }} + {{ row.status === '0' ? $t('common.enabled') : $t('common.disabled') }} @@ -97,7 +97,7 @@ icon="Edit" @click="handleEdit(row)" > - 编辑 + {{ $t('common.edit') }} @@ -123,49 +123,49 @@ label-width="100px" > - + @@ -173,13 +173,13 @@ @@ -199,9 +199,9 @@ const rules = computed(() => ({ conditionCode: [{ required: true, message: t('ba function getList() { loading.value = true; getFeePage(queryParams.value).then(res => { tableData.value = res.data?.records || []; total.value = res.data?.total || 0 }).finally(() => { loading.value = false }) } function handleQuery() { queryParams.value.pageNo = 1; getList() } function resetQuery() { queryParams.value = { searchKey: '', pageNo: 1, pageSize: 10 }; getList() } -function handleAdd() { isEdit.value = false; formTitle.value = '新增项目'; form.value = { id: null, conditionCode: '', name: '', typeCode: 'TREAT' }; formVisible.value = true } -function handleEdit(row) { isEdit.value = true; formTitle.value = '编辑项目'; form.value = { ...row }; formVisible.value = true } -function submitForm() { formRef.value.validate(valid => { if (!valid) return; const action = isEdit.value ? updateFee(form.value) : addFee(form.value); action.then(res => { if (res.code === 200) { ElMessage.success(isEdit.value ? '修改成功' : '新增成功'); formVisible.value = false; getList() } else ElMessage.error(res.msg || t('common.operationFailed')) }) }) } +function handleAdd() { isEdit.value = false; formTitle.value = t('basic.fee.addTitle'); form.value = { id: null, conditionCode: '', name: '', typeCode: 'TREAT' }; formVisible.value = true } +function handleEdit(row) { isEdit.value = true; formTitle.value = t('basic.fee.editTitle'); form.value = { ...row }; formVisible.value = true } +function submitForm() { formRef.value.validate(valid => { if (!valid) return; const action = isEdit.value ? updateFee(form.value) : addFee(form.value); action.then(res => { if (res.code === 200) { ElMessage.success(isEdit.value ? t('basic.fee.msgEditSuccess') : t('basic.fee.msgAddSuccess')); formVisible.value = false; getList() } else ElMessage.error(res.msg || t('common.operationFailed')) }) }) } onMounted(() => getList())