mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
fix: 国际化
This commit is contained in:
parent
4ed736ae2e
commit
6c6b7d0504
@ -1815,7 +1815,8 @@ export default {
|
||||
can_be_uploaded: 'Only files in jar format can be uploaded',
|
||||
query_timeout: 'query timeout',
|
||||
add_data_source: 'add data source',
|
||||
delete_this_driver: 'Are you sure to delete this driver?'
|
||||
delete_this_driver: 'Are you sure to delete this driver?',
|
||||
basic_info: 'Basic Info'
|
||||
},
|
||||
pblink: {
|
||||
key_pwd: 'Please enter the password to open the link',
|
||||
|
@ -1815,7 +1815,8 @@ export default {
|
||||
can_be_uploaded: '僅支持上傳JAR格式的檔案',
|
||||
query_timeout: '査詢超時',
|
||||
add_data_source: '添加資料來源',
|
||||
delete_this_driver: '確定删除該驅動嗎?'
|
||||
delete_this_driver: '確定删除該驅動嗎?',
|
||||
basic_info: '基本信息'
|
||||
},
|
||||
pblink: {
|
||||
key_pwd: '請輸入密碼打開鏈接',
|
||||
|
@ -1815,7 +1815,8 @@ export default {
|
||||
can_be_uploaded: '仅支持上传JAR格式的文件',
|
||||
query_timeout: '查询超时',
|
||||
add_data_source: '添加数据源',
|
||||
delete_this_driver: '确定删除该驱动吗?'
|
||||
delete_this_driver: '确定删除该驱动吗?',
|
||||
basic_info: '基本信息'
|
||||
},
|
||||
pblink: {
|
||||
key_pwd: '请输入密码打开链接',
|
||||
|
@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<div class="de-ds-form" v-loading="formLoading">
|
||||
<div v-loading="formLoading" class="de-ds-form">
|
||||
<div class="de-ds-top">
|
||||
<span class="name">
|
||||
<i @click="logOutTips" class="el-icon-arrow-left"></i>
|
||||
<i class="el-icon-arrow-left" @click="logOutTips" />
|
||||
{{
|
||||
params &&
|
||||
params.id &&
|
||||
@ -17,15 +17,17 @@
|
||||
</span>
|
||||
<div class="apply">
|
||||
<template v-if="canEdit">
|
||||
<deBtn secondary @click="logOutTips"
|
||||
<deBtn
|
||||
secondary
|
||||
@click="logOutTips"
|
||||
>{{ $t('commons.cancel') }}
|
||||
</deBtn>
|
||||
<deBtn
|
||||
secondary
|
||||
v-if="
|
||||
formType === 'add' ||
|
||||
hasDataPermission('manage', params.privileges)
|
||||
"
|
||||
secondary
|
||||
@click="validaDatasource"
|
||||
>{{ $t('commons.validate') }}
|
||||
</deBtn>
|
||||
@ -72,7 +74,7 @@
|
||||
label-position="right"
|
||||
>
|
||||
<div class="de-row-rules">
|
||||
<span>基本信息</span>
|
||||
<span>{{ $t('datasource.basic_info') }}</span>
|
||||
</div>
|
||||
<el-form-item :label="$t('datasource.display_name')" prop="name">
|
||||
<el-input
|
||||
@ -83,9 +85,9 @@
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('commons.description')" prop="desc">
|
||||
<deTextarea
|
||||
class="w100-textarea"
|
||||
v-model="form.desc"
|
||||
></deTextarea>
|
||||
class="w100-textarea"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item
|
||||
@ -157,7 +159,6 @@ import deTextarea from '@/components/deCustomCm/deTextarea.vue'
|
||||
import msgCfm from '@/components/msgCfm'
|
||||
export default {
|
||||
name: 'DsForm',
|
||||
mixins: [msgCfm],
|
||||
components: {
|
||||
DsConfiguration,
|
||||
LayoutContent,
|
||||
@ -165,6 +166,7 @@ export default {
|
||||
PluginCom,
|
||||
deTextarea
|
||||
},
|
||||
mixins: [msgCfm],
|
||||
data() {
|
||||
return {
|
||||
disabled: false,
|
||||
@ -190,6 +192,7 @@ export default {
|
||||
{
|
||||
required: true,
|
||||
validator: this.nameRepeat,
|
||||
message: i18n.t('datasource.input_name'),
|
||||
trigger: 'blur'
|
||||
},
|
||||
{
|
||||
@ -416,7 +419,7 @@ export default {
|
||||
},
|
||||
getDatasourceDetail(id, showModel) {
|
||||
return getDatasourceDetail(id).then((res) => {
|
||||
this.params = {...res.data, showModel}
|
||||
this.params = { ...res.data, showModel }
|
||||
})
|
||||
},
|
||||
queryTreeDatas() {
|
||||
|
Loading…
Reference in New Issue
Block a user