工作空间国际化 0.1
This commit is contained in:
parent
5371e09c23
commit
194f8fa372
|
@ -1,4 +1,13 @@
|
||||||
const en_US = {
|
const en_US = {
|
||||||
|
commons: {
|
||||||
|
'workspace': 'Workspace',
|
||||||
|
'name': 'Name',
|
||||||
|
'description': 'Description',
|
||||||
|
'save': 'Save'
|
||||||
|
},
|
||||||
|
workspace: {
|
||||||
|
'create': 'Create Workspace',
|
||||||
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
'home': 'Home',
|
'home': 'Home',
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
const zh_CN = {
|
const zh_CN = {
|
||||||
|
commons: {
|
||||||
|
'workspace': '工作空间',
|
||||||
|
'name': '名称',
|
||||||
|
'description': '描述',
|
||||||
|
'save': '保存'
|
||||||
|
},
|
||||||
|
workspace: {
|
||||||
|
'create': '创建工作空间',
|
||||||
|
},
|
||||||
i18n: {
|
i18n: {
|
||||||
'home': '首页',
|
'home': '首页',
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<div slot="header">
|
<div slot="header">
|
||||||
<el-row type="flex" justify="space-between" align="middle">
|
<el-row type="flex" justify="space-between" align="middle">
|
||||||
<span class="title">
|
<span class="title">
|
||||||
工作空间
|
{{$t('commons.workspace')}}
|
||||||
<ms-create-box :tips="btnTips" :exec="create"/>
|
<ms-create-box :tips="btnTips" :exec="create"/>
|
||||||
</span>
|
</span>
|
||||||
<span class="search">
|
<span class="search">
|
||||||
|
@ -14,8 +14,8 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
</div>
|
</div>
|
||||||
<el-table :data="items" style="width: 100%">
|
<el-table :data="items" style="width: 100%">
|
||||||
<el-table-column prop="name" label="名称"/>
|
<el-table-column prop="name" :label="$t('commons.name')"/>
|
||||||
<el-table-column prop="description" label="描述"/>
|
<el-table-column prop="description" :label="$t('commons.description')"/>
|
||||||
<el-table-column>
|
<el-table-column>
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button @click="edit(scope.row)" type="primary" icon="el-icon-edit" size="mini" circle/>
|
<el-button @click="edit(scope.row)" type="primary" icon="el-icon-edit" size="mini" circle/>
|
||||||
|
@ -42,17 +42,17 @@
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-dialog title="创建工作空间" :visible.sync="createVisible" width="30%">
|
<el-dialog :title="$t('workspace.create')" :visible.sync="createVisible" width="30%">
|
||||||
<el-form :model="form" :rules="rules" ref="form" label-position="left" label-width="100px" size="small">
|
<el-form :model="form" :rules="rules" ref="form" label-position="left" label-width="100px" size="small">
|
||||||
<el-form-item label="名称" prop="name">
|
<el-form-item :label="$t('commons.name')" prop="name">
|
||||||
<el-input v-model="form.name" autocomplete="off"/>
|
<el-input v-model="form.name" autocomplete="off"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="描述">
|
<el-form-item :label="$t('commons.description')">
|
||||||
<el-input type="textarea" v-model="form.description"></el-input>
|
<el-input type="textarea" v-model="form.description"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<span slot="footer" class="dialog-footer">
|
<span slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="submit('form')" size="medium">创建</el-button>
|
<el-button type="primary" @click="submit('form')" size="medium">{{$t('commons.save')}}</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue