i18n
This commit is contained in:
parent
2f003a1d74
commit
695d1a9932
|
@ -31,6 +31,8 @@ export default {
|
|||
'role': 'Role',
|
||||
'personal_info': 'Personal Info',
|
||||
'status': 'Enable/Disable',
|
||||
'show_all': 'Show All',
|
||||
'report': 'Report',
|
||||
},
|
||||
workspace: {
|
||||
'create': 'Create Workspace',
|
||||
|
@ -136,6 +138,7 @@ export default {
|
|||
'connect_timeout': 'Timeout to establish a connection',
|
||||
'custom_http_code': 'Custom HTTP response success status code',
|
||||
'separated_by_commas': 'Separated by commas',
|
||||
'create': 'Create Test',
|
||||
},
|
||||
i18n: {
|
||||
'home': 'Home',
|
||||
|
|
|
@ -31,6 +31,8 @@ export default {
|
|||
'role': '角色',
|
||||
'personal_info': '个人信息',
|
||||
'status': '启用/禁用',
|
||||
'show_all': '显示全部',
|
||||
'report': '报告',
|
||||
},
|
||||
workspace: {
|
||||
'create': '创建工作空间',
|
||||
|
@ -137,6 +139,7 @@ export default {
|
|||
'connect_timeout': '建立连接超时时间',
|
||||
'custom_http_code': '自定义 HTTP 响应成功状态码',
|
||||
'separated_by_commas': '按逗号分隔',
|
||||
'create': '创建测试',
|
||||
},
|
||||
i18n: {
|
||||
'home': '首页',
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<ms-top-menus/>
|
||||
</el-col>
|
||||
<el-col :span="14">
|
||||
<ms-user/>
|
||||
<ms-user/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row id="header-bottom" type="flex" justify="space-between" align="middle">
|
||||
|
@ -18,7 +18,7 @@
|
|||
<el-col :span="4">
|
||||
<el-row type="flex" justify="center" align="middle">
|
||||
<router-link to="/createTest" v-permission="['test_user','test_manager']">
|
||||
<el-button type="primary" size="small">创建测试</el-button>
|
||||
<el-button type="primary" size="small">{{$t('load_test.create')}}</el-button>
|
||||
</router-link>
|
||||
</el-row>
|
||||
</el-col>
|
||||
|
@ -58,8 +58,7 @@
|
|||
});
|
||||
},
|
||||
components: {MsWebSocket, MsUser, MsMenus, MsView, MsTopMenus},
|
||||
methods: {
|
||||
}
|
||||
methods: {}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -5,36 +5,36 @@
|
|||
{{ $t("i18n.home") }}
|
||||
</el-menu-item>
|
||||
<el-submenu index="3" popper-class="submenu" v-permission="['test_manager']">
|
||||
<template slot="title">项目</template>
|
||||
<template slot="title">{{$t('commons.project')}}</template>
|
||||
<ms-recent-project/>
|
||||
<el-divider/>
|
||||
<el-menu-item index="/project/all">
|
||||
<font-awesome-icon :icon="['fa', 'list-ul']"/>
|
||||
<span style="padding-left: 5px;">显示全部</span>
|
||||
<span style="padding-left: 5px;">{{$t('commons.show_all')}}</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/project/create">
|
||||
<el-button type="text">创建项目</el-button>
|
||||
<el-button type="text">{{$t('project.create')}}</el-button>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="4" popper-class="submenu" v-permission="['test_manager', 'test_user']">
|
||||
<template slot="title">测试</template>
|
||||
<template slot="title">{{$t('commons.test')}}</template>
|
||||
<ms-recent-test-plan/>
|
||||
<el-divider/>
|
||||
<el-menu-item index="/loadtest/all">
|
||||
<font-awesome-icon :icon="['fa', 'list-ul']"/>
|
||||
<span style="padding-left: 5px;">所有测试</span>
|
||||
<span style="padding-left: 5px;">{{$t('commons.show_all')}}</span>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/createTest">
|
||||
<el-button type="text">创建测试</el-button>
|
||||
<el-button type="text">{{$t('load_test.create')}}</el-button>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
<el-submenu index="5" popper-class="submenu" v-permission="['test_manager', 'test_user', 'test_viewer']">
|
||||
<template slot="title">报告</template>
|
||||
<template slot="title">{{$t('commons.report')}}</template>
|
||||
<ms-recent-report/>
|
||||
<el-divider/>
|
||||
<el-menu-item index="/report/all">
|
||||
<font-awesome-icon :icon="['fa', 'list-ul']"/>
|
||||
<span style="padding-left: 5px;">显示全部</span>
|
||||
<span style="padding-left: 5px;">{{$t('commons.show_all')}}</span>
|
||||
</el-menu-item>
|
||||
</el-submenu>
|
||||
</el-menu>
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
text-color="#fff">
|
||||
<el-submenu index="1" popper-class="submenu"
|
||||
v-permission="['org_admin', 'test_manager', 'test_user', 'test_viewer']">
|
||||
<template slot="title">【组织】{{currentOrganizationName}}</template>
|
||||
<template slot="title">【{{$t('commons.organization')}}】{{currentOrganizationName}}</template>
|
||||
<label v-for="(item,index) in organizationList" :key="index">
|
||||
<el-menu-item @click="changeOrg(item)">{{item.name}}
|
||||
<i class="el-icon-check"
|
||||
|
@ -16,7 +16,7 @@
|
|||
</label>
|
||||
</el-submenu>
|
||||
<el-submenu index="2" popper-class="submenu" v-permission="['test_manager', 'test_user', 'test_viewer']">
|
||||
<template slot="title">【工作空间】{{currentWorkspaceName}}</template>
|
||||
<template slot="title">【{{$t('commons.workspace')}}】{{currentWorkspaceName}}</template>
|
||||
<label v-for="(item,index) in workspaceList" :key="index">
|
||||
<el-menu-item @click="changeWs(item)">
|
||||
{{item.name}}
|
||||
|
|
Loading…
Reference in New Issue