2024-03-14 03:30:18 +00:00
|
|
|
/** * Created by HaijunZhang on 2019/12/18. */
|
|
|
|
<template>
|
2025-06-03 01:44:58 +00:00
|
|
|
<a-layout-header class="common-header" :style="style" v-if="$route.name !== 'Designer'">
|
2024-03-14 03:30:18 +00:00
|
|
|
<div class="header-logo">
|
|
|
|
<img :src="pageConfigs.headerLogo" alt="" class="pull-left" />
|
|
|
|
</div>
|
|
|
|
<Divider class="split-line" type="vertical"></Divider>
|
2025-08-10 02:26:45 +00:00
|
|
|
<router-link to="/cop-web/task/history/list">
|
2024-03-14 03:30:18 +00:00
|
|
|
<HomeOutlined class="home-icon" />
|
|
|
|
</router-link>
|
|
|
|
<HeaderMenu :page-configs="pageConfigs"></HeaderMenu>
|
|
|
|
<RightContent />
|
|
|
|
</a-layout-header>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import RightContent from './rightContent.vue'
|
|
|
|
import HeaderMenu from './headerMenu.vue'
|
|
|
|
import { computed, defineComponent } from 'vue'
|
|
|
|
import { HomeOutlined } from '@ant-design/icons-vue'
|
|
|
|
import { Divider } from 'ant-design-vue'
|
|
|
|
import { useStore } from 'vuex'
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
|
|
components: {
|
|
|
|
RightContent,
|
|
|
|
Divider,
|
|
|
|
HeaderMenu,
|
2025-06-03 01:44:58 +00:00
|
|
|
HomeOutlined
|
2024-03-14 03:30:18 +00:00
|
|
|
},
|
|
|
|
setup() {
|
|
|
|
const store = useStore()
|
|
|
|
const pageConfigs = computed(() => store.getters.pageConfig)
|
|
|
|
const style = computed(() => {
|
|
|
|
return {
|
|
|
|
backgroundColor: pageConfigs.value.headerBgColour,
|
2025-06-03 01:44:58 +00:00
|
|
|
color: pageConfigs.value.headerFontColour
|
2024-03-14 03:30:18 +00:00
|
|
|
}
|
|
|
|
})
|
|
|
|
return {
|
|
|
|
pageConfigs,
|
2025-06-03 01:44:58 +00:00
|
|
|
style
|
2024-03-14 03:30:18 +00:00
|
|
|
}
|
2025-06-03 01:44:58 +00:00
|
|
|
}
|
2024-03-14 03:30:18 +00:00
|
|
|
})
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.common-header {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
-webkit-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
|
|
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
height: 50px !important;
|
|
|
|
font-size: 22px;
|
|
|
|
line-height: 50px;
|
|
|
|
padding: 0 0 0 10px;
|
|
|
|
overflow: hidden;
|
|
|
|
background: #2c2e3b;
|
|
|
|
color: #b9b9ba;
|
|
|
|
& ::v-deep .el-dropdown {
|
|
|
|
color: inherit !important;
|
|
|
|
}
|
|
|
|
.header-logo {
|
|
|
|
min-width: 120px;
|
|
|
|
max-width: 260px;
|
|
|
|
img {
|
|
|
|
height: 30px;
|
|
|
|
margin: 4.5px 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.home-icon {
|
|
|
|
font-size: 18px;
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
.split-line {
|
|
|
|
height: 20px;
|
|
|
|
margin-left: 30px;
|
|
|
|
margin-right: 15px;
|
|
|
|
border-color: #999999;
|
|
|
|
}
|
|
|
|
.toggle-class {
|
|
|
|
height: 50px;
|
|
|
|
line-height: 43px;
|
|
|
|
cursor: pointer;
|
|
|
|
margin-left: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|