fix: i18n bugs
This commit is contained in:
parent
1e479270d7
commit
83c5404826
@ -268,10 +268,10 @@ async function publicHandle() {
|
|||||||
const node = res.node
|
const node = res.node
|
||||||
const err_message = res.errMessage
|
const err_message = res.errMessage
|
||||||
if (typeof err_message == 'string') {
|
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 {
|
} else {
|
||||||
const keys = Object.keys(err_message)
|
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())
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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 }">
|
<template #default="{ row, $index }">
|
||||||
<span class="mr-4">
|
<span class="mr-4">
|
||||||
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
:data="props.nodeModel.properties.user_input_field_list"
|
:data="props.nodeModel.properties.user_input_field_list"
|
||||||
class="mb-16"
|
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 }">
|
<template #default="{ row }">
|
||||||
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
|
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
|
||||||
</template>
|
</template>
|
||||||
@ -71,7 +71,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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 }">
|
<template #default="{ row, $index }">
|
||||||
<span class="mr-4">
|
<span class="mr-4">
|
||||||
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
||||||
|
|||||||
@ -73,6 +73,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="field"
|
prop="field"
|
||||||
:label="$t('dynamicsForm.paramForm.field.label')"
|
:label="$t('dynamicsForm.paramForm.field.label')"
|
||||||
|
width="95"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
|
<span :title="row.field" class="ellipsis-1">{{ row.field }}</span>
|
||||||
@ -117,14 +118,14 @@
|
|||||||
}}</span>
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column :label="$t('common.required')">
|
<el-table-column :label="$t('common.required')" width="85">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div @click.stop>
|
<div @click.stop>
|
||||||
<el-switch disabled size="small" v-model="row.required" />
|
<el-switch disabled size="small" v-model="row.required" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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 }">
|
<template #default="{ row, $index }">
|
||||||
<span class="mr-4">
|
<span class="mr-4">
|
||||||
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
<el-tooltip effect="dark" :content="$t('common.modify')" placement="top">
|
||||||
|
|||||||
@ -206,7 +206,6 @@ function refresh() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const validate = () => {
|
const validate = () => {
|
||||||
console.log(DatasetNodeFormRef.value)
|
|
||||||
return Promise.all([
|
return Promise.all([
|
||||||
nodeCascaderRef.value.validate(),
|
nodeCascaderRef.value.validate(),
|
||||||
DatasetNodeFormRef.value?.validate()
|
DatasetNodeFormRef.value?.validate()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user