提交 4d8bb2d7 authored 作者: wangjiahao's avatar wangjiahao

refactor: 国际化

上级 f20b58df
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
:options="options" :options="options"
:load-options="loadData" :load-options="loadData"
style="width: 200px" style="width: 200px"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</div> </div>
</template> </template>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
> >
<el-row> <el-row>
<el-form ref="form" size="mini" label-width="70px"> <el-form ref="form" size="mini" label-width="70px">
<el-form-item :label="$t('panel.is_enable')"> <el-form-item :label="$t('panel.enable_jump')">
<el-switch v-model="linkInfo.enable" size="mini" /> <el-switch v-model="linkInfo.enable" size="mini" />
<span v-show="linkInfo.enable" style="color: #909399; font-size: 8px;margin-left: 3px"> <span v-show="linkInfo.enable" style="color: #909399; font-size: 8px;margin-left: 3px">
Tips:{{ $t('panel.link_open_tips') }} Tips:{{ $t('panel.link_open_tips') }}
......
...@@ -343,7 +343,12 @@ export default { ...@@ -343,7 +343,12 @@ export default {
}, },
ukey_title: 'API Keys', ukey_title: 'API Keys',
thumbnail: 'thumbnail', thumbnail: 'thumbnail',
confirm_delete: 'Confirm delete' confirm_delete: 'Confirm delete',
treeselect: {
no_children_text: 'No sub-options.',
no_options_text: 'No options available.',
no_results_text: 'No results found...'
}
}, },
documentation: { documentation: {
documentation: 'Documentation', documentation: 'Documentation',
...@@ -1437,7 +1442,7 @@ export default { ...@@ -1437,7 +1442,7 @@ export default {
open_mode: 'Open Model', open_mode: 'Open Model',
new_window: 'New Window', new_window: 'New Window',
now_window: 'Now Window', now_window: 'Now Window',
hyperLinks: 'hyperlinks', hyperLinks: 'target address',
link_open_tips: 'Open When Panel Not In Edit Status', link_open_tips: 'Open When Panel Not In Edit Status',
data_loading: 'Data Loading...', data_loading: 'Data Loading...',
export_loading: 'Export Loading...', export_loading: 'Export Loading...',
......
差异被折叠。
...@@ -344,7 +344,12 @@ export default { ...@@ -344,7 +344,12 @@ export default {
}, },
ukey_title: 'API Keys', ukey_title: 'API Keys',
thumbnail: '缩略图', thumbnail: '缩略图',
confirm_delete: '确认删除' confirm_delete: '确认删除',
treeselect: {
no_children_text: '没有子节点',
no_options_text: '没有可用选项',
no_results_text: '没有匹配的结果'
}
}, },
documentation: { documentation: {
documentation: '文档', documentation: '文档',
...@@ -1449,7 +1454,7 @@ export default { ...@@ -1449,7 +1454,7 @@ export default {
open_mode: '打开方式', open_mode: '打开方式',
new_window: '新开页面', new_window: '新开页面',
now_window: '当前页面', now_window: '当前页面',
hyperLinks: '超链接', hyperLinks: '目标地址',
link_open_tips: '仪表板非编辑状态可打开链接', link_open_tips: '仪表板非编辑状态可打开链接',
data_loading: '数据准备中...', data_loading: '数据准备中...',
export_loading: '导出中...', export_loading: '导出中...',
......
...@@ -195,6 +195,9 @@ ...@@ -195,6 +195,9 @@
:options="chartGroupTreeAvailable" :options="chartGroupTreeAvailable"
:normalizer="normalizer" :normalizer="normalizer"
:placeholder="$t('chart.select_group')" :placeholder="$t('chart.select_group')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
......
...@@ -232,6 +232,9 @@ ...@@ -232,6 +232,9 @@
:normalizer="normalizer" :normalizer="normalizer"
@input="calcData" @input="calcData"
@deselect="calcData" @deselect="calcData"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</span> </span>
</el-row> </el-row>
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,9 @@
:disable-branch-nodes="true" :disable-branch-nodes="true"
:normalizer="normalizer" :normalizer="normalizer"
:placeholder="$t('panel.select_jump_panel')" :placeholder="$t('panel.select_jump_panel')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
style="margin-right: 10px" style="margin-right: 10px"
@select="panelNodeClick" @select="panelNodeClick"
@input="inputVal" @input="inputVal"
......
...@@ -96,6 +96,9 @@ ...@@ -96,6 +96,9 @@
:load-options="loadMenus" :load-options="loadMenus"
style="width: 450px;" style="width: 450px;"
:placeholder="$t('menu.parent_category')" :placeholder="$t('menu.parent_category')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</el-form-item> </el-form-item>
</el-form> </el-form>
......
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
:load-options="loadDepts" :load-options="loadDepts"
:auto-load-root-options="false" :auto-load-root-options="false"
:placeholder="$t('user.choose_org')" :placeholder="$t('user.choose_org')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
@open="filterData" @open="filterData"
/> />
</el-form-item> </el-form-item>
......
...@@ -34,6 +34,9 @@ ...@@ -34,6 +34,9 @@
:load-options="loadDepts" :load-options="loadDepts"
:auto-load-root-options="false" :auto-load-root-options="false"
:placeholder="$t('user.choose_org')" :placeholder="$t('user.choose_org')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
@open="filterData" @open="filterData"
/> />
</el-form-item> </el-form-item>
......
...@@ -107,6 +107,9 @@ ...@@ -107,6 +107,9 @@
:load-options="loadDepts" :load-options="loadDepts"
style="width: 430px" style="width: 430px"
:placeholder="$t('user.choose_org')" :placeholder="$t('user.choose_org')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</el-form-item> </el-form-item>
<el-form-item style="margin-bottom: 0;" :label="$t('commons.role')" prop="roleIds"> <el-form-item style="margin-bottom: 0;" :label="$t('commons.role')" prop="roleIds">
......
...@@ -33,6 +33,9 @@ ...@@ -33,6 +33,9 @@
:load-options="loadDepts" :load-options="loadDepts"
:auto-load-root-options="false" :auto-load-root-options="false"
:placeholder="$t('user.choose_org')" :placeholder="$t('user.choose_org')"
:noChildrenText="$t('commons.treeselect.no_children_text')"
:noOptionsText="$t('commons.treeselect.no_options_text')"
:noResultsText="$t('commons.treeselect.no_results_text')"
/> />
</el-form-item> </el-form-item>
<el-form-item :label="$t('commons.role')" prop="roleIds"> <el-form-item :label="$t('commons.role')" prop="roleIds">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论