mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix: 【国际化】数据源国际化
This commit is contained in:
parent
64a9083872
commit
5c66b3d935
@ -84,28 +84,28 @@ const configRules = {
|
||||
'configuration.initialPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.initial_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.initial_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.minPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.min_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.min_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.maxPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.max_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.max_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.queryTimeout': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.query_timeout'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.query_timeout'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
]
|
||||
|
@ -287,28 +287,28 @@ const setRules = () => {
|
||||
'configuration.initialPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.initial_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.initial_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.minPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.min_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.min_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.maxPoolSize': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.max_pool_size'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.max_pool_size'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
'configuration.queryTimeout': [
|
||||
{
|
||||
required: true,
|
||||
message: t('common.inputText') + t('datasource.query_timeout'),
|
||||
message: t('common.inputText') + ' ' + t('datasource.query_timeout'),
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
@ -1014,7 +1014,7 @@ defineExpose({
|
||||
step-strictly
|
||||
class="text-left"
|
||||
:min="0"
|
||||
:placeholder="t('common.inputText') + t('datasource.port')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.port')"
|
||||
controls-position="right"
|
||||
type="number"
|
||||
/>
|
||||
@ -1036,7 +1036,7 @@ defineExpose({
|
||||
v-if="form.type === 'presto'"
|
||||
>
|
||||
<el-select
|
||||
:placeholder="t('common.inputText') + t('datasource.auth_method')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.auth_method')"
|
||||
v-model="form.configuration.authMethod"
|
||||
class="de-select"
|
||||
>
|
||||
@ -1054,7 +1054,7 @@ defineExpose({
|
||||
v-if="form.type === 'presto'"
|
||||
>
|
||||
<el-input
|
||||
:placeholder="t('common.inputText') + t('datasource.client_principal')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.client_principal')"
|
||||
v-model="form.configuration.username"
|
||||
autocomplete="off"
|
||||
/>
|
||||
@ -1065,7 +1065,7 @@ defineExpose({
|
||||
v-if="form.type === 'presto'"
|
||||
>
|
||||
<CustomPassword
|
||||
:placeholder="t('common.inputText') + t('datasource.keytab_Key_path')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.keytab_Key_path')"
|
||||
show-password
|
||||
type="password"
|
||||
v-model="form.configuration.password"
|
||||
@ -1087,14 +1087,14 @@ defineExpose({
|
||||
</el-form-item>
|
||||
<el-form-item :label="t('datasource.user_name')" v-if="form.type !== 'presto'">
|
||||
<el-input
|
||||
:placeholder="t('common.inputText') + t('datasource.user_name')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.user_name')"
|
||||
v-model="form.configuration.username"
|
||||
autocomplete="off"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="t('datasource.password')" v-if="form.type !== 'presto'">
|
||||
<CustomPassword
|
||||
:placeholder="t('common.inputText') + t('datasource.password')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.password')"
|
||||
show-password
|
||||
type="password"
|
||||
v-model="form.configuration.password"
|
||||
@ -1142,7 +1142,7 @@ defineExpose({
|
||||
v-if="form.configuration.urlType !== 'jdbcUrl' && form.type !== 'es'"
|
||||
>
|
||||
<el-input
|
||||
:placeholder="t('common.inputText') + t('datasource.extra_params')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.extra_params')"
|
||||
v-model="form.configuration.extraParams"
|
||||
autocomplete="off"
|
||||
/>
|
||||
@ -1184,13 +1184,13 @@ defineExpose({
|
||||
class="text-left"
|
||||
:min="0"
|
||||
:max="65535"
|
||||
:placeholder="t('common.inputText') + t('datasource.port')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.port')"
|
||||
controls-position="right"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item :label="t('datasource.user_name')" prop="configuration.sshUserName">
|
||||
<el-input
|
||||
:placeholder="t('common.inputText') + t('datasource.user_name')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.user_name')"
|
||||
v-model="form.configuration.sshUserName"
|
||||
autocomplete="off"
|
||||
:maxlength="255"
|
||||
@ -1208,7 +1208,7 @@ defineExpose({
|
||||
prop="configuration.sshPassword"
|
||||
>
|
||||
<CustomPassword
|
||||
:placeholder="t('common.inputText') + t('datasource.password')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.password')"
|
||||
show-password
|
||||
type="password"
|
||||
v-model="form.configuration.sshPassword"
|
||||
@ -1234,7 +1234,7 @@ defineExpose({
|
||||
v-if="form.configuration.sshType === 'sshkey'"
|
||||
>
|
||||
<CustomPassword
|
||||
:placeholder="t('common.inputText') + t('datasource.password')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.password')"
|
||||
show-password
|
||||
type="password"
|
||||
v-model="form.configuration.sshKeyPassword"
|
||||
@ -1268,7 +1268,7 @@ defineExpose({
|
||||
v-model="form.configuration.initialPoolSize"
|
||||
controls-position="right"
|
||||
autocomplete="off"
|
||||
:placeholder="t('common.inputText') + t('datasource.initial_pool_size')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.initial_pool_size')"
|
||||
type="number"
|
||||
:min="0"
|
||||
/>
|
||||
@ -1283,7 +1283,7 @@ defineExpose({
|
||||
v-model="form.configuration.minPoolSize"
|
||||
controls-position="right"
|
||||
autocomplete="off"
|
||||
:placeholder="t('common.inputText') + t('datasource.min_pool_size')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.min_pool_size')"
|
||||
type="number"
|
||||
:min="0"
|
||||
/>
|
||||
@ -1300,7 +1300,7 @@ defineExpose({
|
||||
v-model="form.configuration.maxPoolSize"
|
||||
controls-position="right"
|
||||
autocomplete="off"
|
||||
:placeholder="t('common.inputText') + t('datasource.max_pool_size')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.max_pool_size')"
|
||||
type="number"
|
||||
:min="0"
|
||||
/>
|
||||
@ -1315,7 +1315,7 @@ defineExpose({
|
||||
v-model="form.configuration.queryTimeout"
|
||||
controls-position="right"
|
||||
autocomplete="off"
|
||||
:placeholder="t('common.inputText') + t('datasource.query_timeout')"
|
||||
:placeholder="t('common.inputText') + ' ' + t('datasource.query_timeout')"
|
||||
type="number"
|
||||
:min="0"
|
||||
/>
|
||||
|
@ -1453,7 +1453,7 @@ const getMenuList = (val: boolean) => {
|
||||
<template v-if="slotProps.active">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="12">
|
||||
<BaseInfoItem :label="t('auth.datasource') + t('common.name')">{{
|
||||
<BaseInfoItem :label="t('auth.datasource') + ' ' + t('common.name')">{{
|
||||
nodeInfo.name
|
||||
}}</BaseInfoItem>
|
||||
</el-col>
|
||||
|
Loading…
Reference in New Issue
Block a user