fix: i18n bugs

This commit is contained in:
wangdan-fit2cloud 2025-01-23 15:07:27 +08:00
parent 1e479270d7
commit 83c5404826
5 changed files with 8 additions and 8 deletions

View File

@ -268,10 +268,10 @@ async function publicHandle() {
const node = res.node
const err_message = res.errMessage
if (typeof err_message == 'string') {
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message)
MsgError(res.node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message.toLowerCase())
} else {
const keys = Object.keys(err_message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node')}` + err_message[keys[0]]?.[0]?.message)
MsgError(node.properties?.stepName + ` ${t('views.applicationWorkflow.node').toLowerCase()} ` + err_message[keys[0]]?.[0]?.message.toLowerCase())
}
})
}

View File

@ -22,7 +22,7 @@
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">

View File

@ -13,7 +13,7 @@
:data="props.nodeModel.properties.user_input_field_list"
class="mb-16"
>
<el-table-column prop="field" :label="$t('dynamicsForm.paramForm.field.label')">
<el-table-column prop="field" :label="$t('dynamicsForm.paramForm.field.label')" width="95">
<template #default="{ row }">
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
</template>
@ -71,7 +71,7 @@
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">

View File

@ -73,6 +73,7 @@
<el-table-column
prop="field"
:label="$t('dynamicsForm.paramForm.field.label')"
width="95"
>
<template #default="{ row }">
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
@ -117,14 +118,14 @@
}}</span>
</template>
</el-table-column>
<el-table-column :label="$t('common.required')">
<el-table-column :label="$t('common.required')" width="85">
<template #default="{ row }">
<div @click.stop>
<el-switch disabled size="small" v-model="row.required" />
</div>
</template>
</el-table-column>
<el-table-column :label="$t('common.operation')" align="left" width="80">
<el-table-column :label="$t('common.operation')" align="left" width="90">
<template #default="{ row, $index }">
<span class="mr-4">
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">

View File

@ -206,7 +206,6 @@ function refresh() {
}
const validate = () => {
console.log(DatasetNodeFormRef.value)
return Promise.all([
nodeCascaderRef.value.validate(),
DatasetNodeFormRef.value?.validate()