关于页
This commit is contained in:
parent
f83550044f
commit
8e8dbf5259
|
@ -11,6 +11,7 @@
|
||||||
"@ckeditor/ckeditor5-build-classic": "^18.0.0",
|
"@ckeditor/ckeditor5-build-classic": "^18.0.0",
|
||||||
"@ckeditor/ckeditor5-vue": "^1.0.1",
|
"@ckeditor/ckeditor5-vue": "^1.0.1",
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.26",
|
"@fortawesome/fontawesome-svg-core": "^1.2.26",
|
||||||
|
"@fortawesome/free-brands-svg-icons": "^5.13.0",
|
||||||
"@fortawesome/free-regular-svg-icons": "^5.12.0",
|
"@fortawesome/free-regular-svg-icons": "^5.12.0",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
||||||
"@fortawesome/vue-fontawesome": "^0.1.9",
|
"@fortawesome/vue-fontawesome": "^0.1.9",
|
||||||
|
|
|
@ -0,0 +1,109 @@
|
||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
:title="$t('commons.about_us')"
|
||||||
|
:visible.sync="dialogVisible"
|
||||||
|
width="20%">
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col >
|
||||||
|
<el-link :underline="false" :href="websiteUrl">
|
||||||
|
<img class="logo" src="../../../../assets/favicon-彩色.png"/>
|
||||||
|
</el-link>
|
||||||
|
<el-link class="url" :href="websiteUrl" >
|
||||||
|
<span>{{websiteUrl}}</span>
|
||||||
|
</el-link>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col>
|
||||||
|
<div class="github">
|
||||||
|
<el-link :underline="false" :href="githubUrl">
|
||||||
|
<font-awesome-icon class="github-icon" :icon="['fab', 'github-square']"/>
|
||||||
|
</el-link>
|
||||||
|
</div>
|
||||||
|
<el-link class="url" :href="githubUrl">
|
||||||
|
<span>{{githubUrl}}</span>
|
||||||
|
</el-link>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
<el-row>
|
||||||
|
<el-col class="version">
|
||||||
|
<span>版本:</span>
|
||||||
|
<span>{{version}}</span>
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
|
||||||
|
</el-dialog>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "AboutUs",
|
||||||
|
data() {
|
||||||
|
return{
|
||||||
|
dialogVisible: false,
|
||||||
|
githubUrl: 'https://github.com/metersphere/metersphere',
|
||||||
|
websiteUrl: 'https://github.com/metersphere/metersphere',
|
||||||
|
version: '1.0.1'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getVersion();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
open() {
|
||||||
|
this.dialogVisible = true;
|
||||||
|
},
|
||||||
|
getVersion() {
|
||||||
|
this.$get('/system/version', response => {
|
||||||
|
this.version = response.data;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
vertical-align:middle
|
||||||
|
}
|
||||||
|
|
||||||
|
.version {
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github-icon {
|
||||||
|
font-size: 20px;
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.github {
|
||||||
|
height: 30px;
|
||||||
|
width: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.el-row {
|
||||||
|
margin-bottom: 3%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo:hover{
|
||||||
|
color: deepskyblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
.url {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
|
@ -7,16 +7,21 @@
|
||||||
<el-dropdown-menu>
|
<el-dropdown-menu>
|
||||||
<el-dropdown-item command="personal">{{$t('commons.personal_information')}}</el-dropdown-item>
|
<el-dropdown-item command="personal">{{$t('commons.personal_information')}}</el-dropdown-item>
|
||||||
<el-dropdown-item command="logout">{{$t('commons.exit_system')}}</el-dropdown-item>
|
<el-dropdown-item command="logout">{{$t('commons.exit_system')}}</el-dropdown-item>
|
||||||
|
<el-dropdown-item command="about">{{$t('commons.about_us')}} <i class="el-icon-info"/></el-dropdown-item>
|
||||||
</el-dropdown-menu>
|
</el-dropdown-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<about-us ref="aboutUs"/>
|
||||||
</el-dropdown>
|
</el-dropdown>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {getCurrentUser} from "../../../../common/js/utils";
|
import {getCurrentUser} from "../../../../common/js/utils";
|
||||||
|
import AboutUs from "./AboutUs";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MsUser",
|
name: "MsUser",
|
||||||
|
components: {AboutUs},
|
||||||
computed: {
|
computed: {
|
||||||
currentUser: () => {
|
currentUser: () => {
|
||||||
return getCurrentUser();
|
return getCurrentUser();
|
||||||
|
@ -35,6 +40,9 @@
|
||||||
window.location.href = "/login";
|
window.location.href = "/login";
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "about":
|
||||||
|
this.$refs.aboutUs.open();
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
import {library} from '@fortawesome/fontawesome-svg-core'
|
import {library} from '@fortawesome/fontawesome-svg-core'
|
||||||
import {fas} from '@fortawesome/free-solid-svg-icons'
|
import {fas} from '@fortawesome/free-solid-svg-icons'
|
||||||
import {far} from '@fortawesome/free-regular-svg-icons'
|
import {far} from '@fortawesome/free-regular-svg-icons'
|
||||||
|
import { fab } from '@fortawesome/free-brands-svg-icons'
|
||||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
install(Vue) {
|
install(Vue) {
|
||||||
library.add(fas, far);
|
library.add(fas, far, fab);
|
||||||
Vue.component('font-awesome-icon', FontAwesomeIcon);
|
Vue.component('font-awesome-icon', FontAwesomeIcon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@ export default {
|
||||||
'organization': 'Organization',
|
'organization': 'Organization',
|
||||||
'setting': 'Setting',
|
'setting': 'Setting',
|
||||||
'project': 'Project',
|
'project': 'Project',
|
||||||
|
'about_us': 'About Us',
|
||||||
current_project: 'Current Project',
|
current_project: 'Current Project',
|
||||||
'name': 'Name',
|
'name': 'Name',
|
||||||
'description': 'Description',
|
'description': 'Description',
|
||||||
|
|
|
@ -4,6 +4,7 @@ export default {
|
||||||
'organization': '组织',
|
'organization': '组织',
|
||||||
'setting': '设置',
|
'setting': '设置',
|
||||||
'project': '项目',
|
'project': '项目',
|
||||||
|
'about_us': '关于',
|
||||||
current_project: '当前项目',
|
current_project: '当前项目',
|
||||||
'name': '名称',
|
'name': '名称',
|
||||||
'description': '描述',
|
'description': '描述',
|
||||||
|
|
|
@ -4,6 +4,7 @@ export default {
|
||||||
'organization': '組織',
|
'organization': '組織',
|
||||||
'setting': '設置',
|
'setting': '設置',
|
||||||
'project': '項目',
|
'project': '項目',
|
||||||
|
'about_us': '關於',
|
||||||
current_project: '當前項目',
|
current_project: '當前項目',
|
||||||
'name': '名稱',
|
'name': '名稱',
|
||||||
'description': '描述',
|
'description': '描述',
|
||||||
|
|
Loading…
Reference in New Issue