2022-03-29 16:30:25 +08:00
|
|
|
<template>
|
|
|
|
|
<div class="report">
|
2022-05-09 16:04:37 +08:00
|
|
|
<components class="report-item" :is="component"></components>
|
2022-03-29 16:30:25 +08:00
|
|
|
<div class="report-list">
|
|
|
|
|
<image @click="component = 'WorkReport'" :class="[component === 'WorkReport' ? 'active' : '']" src="./images/report1.png" />
|
2022-05-09 16:04:37 +08:00
|
|
|
<image @click="component = 'Daily'" :class="[component === 'Daily' ? 'active' : '']" src="./images/report4.png" />
|
|
|
|
|
<image @click="component = 'InspectLog'" :class="[component === 'InspectLog' ? 'active' : '']" src="./images/report2.png" />
|
|
|
|
|
<image @click="component = 'MeetingMminutes'" :class="[component === 'MeetingMminutes' ? 'active' : '']" src="./images/report3.png" />
|
2022-03-29 16:30:25 +08:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import Daily from './components/Daily'
|
|
|
|
|
import WorkReport from './components/WorkReport'
|
|
|
|
|
import InspectLog from './components/InspectLog'
|
|
|
|
|
import MeetingMminutes from './components/MeetingMminutes'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: 'Report',
|
|
|
|
|
|
|
|
|
|
appName: '工作汇报',
|
|
|
|
|
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
component: 'WorkReport'
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
components: {
|
|
|
|
|
Daily,
|
|
|
|
|
InspectLog,
|
|
|
|
|
WorkReport,
|
|
|
|
|
MeetingMminutes
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
onLoad () {
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.report {
|
2022-05-09 16:04:37 +08:00
|
|
|
height: 100vh;
|
|
|
|
|
|
2022-03-29 16:30:25 +08:00
|
|
|
* {
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-09 16:04:37 +08:00
|
|
|
.report-item {
|
|
|
|
|
min-height: calc(100% - 240px);
|
|
|
|
|
overflow-y: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-29 16:30:25 +08:00
|
|
|
.report-list {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
align-items: center;
|
|
|
|
|
height: 240px;
|
|
|
|
|
padding: 0 24px;
|
|
|
|
|
background: #FFFFFF;
|
|
|
|
|
|
|
|
|
|
image {
|
|
|
|
|
width: 156px;
|
|
|
|
|
height: 208px;
|
|
|
|
|
margin-right: 16px;
|
|
|
|
|
border: 4px solid transparent;
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
border: 4px solid #408EF6;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-09 16:04:37 +08:00
|
|
|
</style>
|