济菏高速业务端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

191 lines
4.5 KiB

1 year ago
<template>
<div class="operations">
<div class="opCon">
<el-dropdown class="userBox">
<span class="user">
1 year ago
<img
class="icon head"
src="@/assets/jihe/images/user/author.png"
alt=""
/>
<p class="title">
<span class="txt">admin</span
><i class="menuIcon el-icon-arrow-down el-icon--right"></i>
</p>
1 year ago
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>
<router-link to="/user/profile">
<el-dropdown-item>个人中心</el-dropdown-item>
</router-link>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
1 year ago
<div class="config">
<img class="icon" src="@/assets/jihe/images/user/set.png" alt="" />
</div>
<div class="logout" @click="logout">
<img class="icon" src="@/assets/jihe/images/user/out.png" alt="" />
</div>
1 year ago
</div>
</div>
1 year ago
</template>
1 year ago
<script>
1 year ago
import { mapGetters } from "vuex";
import Breadcrumb from "@/components/Breadcrumb";
import Hamburger from "@/components/Hamburger";
import Screenfull from "@/components/Screenfull";
import SizeSelect from "@/components/SizeSelect";
import Search from "@/components/HeaderSearch";
import RuoYiGit from "@/components/RuoYi/Git";
1 year ago
// import BigScreen from '@/components/bigScreen'
1 year ago
import RuoYiDoc from "@/components/RuoYi/Doc";
1 year ago
export default {
data() {
return {
dialogShow: false,
warningList: [],
unReadWarningList: [],
warnTypes: [
1 year ago
{ value: 0, label: "遥测越限" },
{ value: 1, label: "遥信告警" },
{ value: 2, label: "通道告警" },
{ value: 3, label: "其他事项" },
1 year ago
],
dealStatuss: [
1 year ago
{ value: "", label: "全部" },
{ value: 0, label: "未处理" },
{ value: 1, label: "处理中" },
{ value: 2, label: "已处理" },
{ value: 3, label: "已忽略" },
1 year ago
],
// 总条数
total: 0,
// 查询参数
queryParams: {
pageNum: 1,
pageSize: 10,
1 year ago
deviceCode: "",
1 year ago
},
visible: false,
1 year ago
recordForm: {},
};
1 year ago
},
components: {
Breadcrumb,
Hamburger,
Screenfull,
SizeSelect,
Search,
RuoYiGit,
// BigScreen,
1 year ago
RuoYiDoc,
1 year ago
},
computed: {
1 year ago
...mapGetters(["sidebar", "avatar", "device"]),
1 year ago
setting: {
get() {
1 year ago
return this.$store.state.settings.showSettings;
1 year ago
},
set(val) {
1 year ago
this.$store.dispatch("settings/changeSetting", {
key: "showSettings",
value: val,
});
},
1 year ago
},
topNav: {
get() {
1 year ago
return this.$store.state.settings.topNav;
},
1 year ago
},
sideTheme: {
get() {
1 year ago
return this.$store.state.settings.sideTheme;
},
},
1 year ago
},
methods: {
toggleSideBar() {
1 year ago
this.$store.dispatch("app/toggleSideBar");
1 year ago
},
async logout() {
1 year ago
this.$confirm("确定注销并退出系统吗?", "提示", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
1 year ago
})
.then(() => {
1 year ago
this.$store.dispatch("LogOut").then(() => {
1 year ago
//location.href = '/index';
1 year ago
location.reload();
});
1 year ago
})
1 year ago
.catch(() => {});
},
},
};
1 year ago
</script>
<style lang="scss" scoped>
1 year ago
.operations {
display: flex;
justify-content: flex-end;
.opCon {
width: 100%;
max-width: 160px;
display: flex;
flex-direction: row;
height: 16px;
justify-content: space-between;
align-items: center;
.icon {
height: 16px;
width: 16px;
object-fit: contain;
cursor: pointer;
}
.userBox {
flex: 1;
.user {
display: flex;
flex-direction: row;
align-items: center;
cursor: pointer;
.head {
width: 16px;
}
.title {
flex: 1;
width: 0;
display: flex;
flex-direction: row;
color: #fff;
display: flex;
.txt {
flex: 1;
width: 0;
text-align: center;
white-space: nowrap;
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
}
.menuIcon {
line-height: 16px;
}
1 year ago
}
}
}
1 year ago
& > * {
padding: 0 5px;
border-right: 1px solid rgba($color: #fff, $alpha: 0.1);
&:last-child {
border: none;
}
1 year ago
}
}
}
</style>