2023-01-29 10:17:49 +08:00
|
|
|
|
<!--
|
|
|
|
|
* @Author: Kane
|
|
|
|
|
* @Date: 2023-01-04 11:39:04
|
|
|
|
|
* @LastEditors: Kane
|
2023-02-04 01:19:18 +08:00
|
|
|
|
* @LastEditTime: 2023-02-04 01:09:49
|
|
|
|
|
* @FilePath: \IT工具综合平台\src\layout\components\Header.vue
|
2023-01-29 10:17:49 +08:00
|
|
|
|
* @Description:
|
|
|
|
|
*
|
|
|
|
|
* Copyright (c) ${2022} by Kane, All Rights Reserved.
|
|
|
|
|
-->
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app_banner no_select">
|
|
|
|
|
<span class="company_name">CPIC</span>
|
|
|
|
|
<div class="version_div">
|
|
|
|
|
<div>测试版</div>
|
|
|
|
|
<div>3.6.7 x64 Build 202208301257</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="buttons_div">
|
2023-02-04 01:19:18 +08:00
|
|
|
|
<User style="width: 25px; height; 25px; margin-right: 8px; cursor:pointer;" />
|
|
|
|
|
<SwitchButton style="width: 25px; height; 25px; margin-right: 8px; cursor:pointer;" @click="logout" />
|
2023-01-29 10:17:49 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
//import { ElMessage } from "element-plus";
|
|
|
|
|
import { Logout } from "../../utils/api/info/account";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "AppBanner",
|
2023-02-04 01:19:18 +08:00
|
|
|
|
data()
|
|
|
|
|
{
|
2023-01-29 10:17:49 +08:00
|
|
|
|
return {};
|
|
|
|
|
},
|
|
|
|
|
// created() {
|
|
|
|
|
// console.log("banner请求数据!");
|
|
|
|
|
// },
|
2023-02-04 01:19:18 +08:00
|
|
|
|
mounted()
|
|
|
|
|
{
|
2023-01-29 10:17:49 +08:00
|
|
|
|
//console.log("banner请求数据!");
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
2023-02-04 01:19:18 +08:00
|
|
|
|
logout()
|
|
|
|
|
{
|
2023-01-29 10:17:49 +08:00
|
|
|
|
this.$confirm("是否退出系统?", "请确认", {
|
|
|
|
|
confirmButtonText: "是",
|
|
|
|
|
cancelButtonText: "否",
|
|
|
|
|
type: "warning",
|
2023-02-04 01:19:18 +08:00
|
|
|
|
}).then(() =>
|
|
|
|
|
{
|
2023-01-29 10:17:49 +08:00
|
|
|
|
Logout();
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
|
|
|
|
.app_banner {
|
|
|
|
|
background-color: var(--banner-background-color);
|
|
|
|
|
color: #fff;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: left;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 0px 15px 0px 15px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.no_select {
|
|
|
|
|
-webkit-touch-callout: none;
|
|
|
|
|
-moz-user-select: none;
|
|
|
|
|
/*火狐*/
|
|
|
|
|
-webkit-user-select: none;
|
|
|
|
|
/*webkit浏览器*/
|
|
|
|
|
-ms-user-select: none;
|
|
|
|
|
/*IE10*/
|
|
|
|
|
-khtml-user-select: none;
|
|
|
|
|
/*早期浏览器*/
|
|
|
|
|
user-select: none;
|
|
|
|
|
}
|
|
|
|
|
|
2023-02-04 01:19:18 +08:00
|
|
|
|
.app_banner>*+* {
|
2023-01-29 10:17:49 +08:00
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.company_name {
|
|
|
|
|
font-size: 2rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.version_div {
|
|
|
|
|
font-size: 0.5rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.buttons_div {
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
padding-top: 5px;
|
|
|
|
|
/* border: 1px solid salmon; */
|
|
|
|
|
}
|
|
|
|
|
</style>
|