|
@@ -0,0 +1,108 @@
|
|
|
+<template>
|
|
|
+ <div class="main">
|
|
|
+ <div class="topbar">
|
|
|
+ <div class="topbar-left"><b>工时统计</b></div>
|
|
|
+ <div class="topbar-right"><b>个人简要统计</b></div>
|
|
|
+ </div>
|
|
|
+ <div class="sidebar">
|
|
|
+ <Sidebar @set-content="setContent"></Sidebar>
|
|
|
+ </div>
|
|
|
+ <div class="content">
|
|
|
+ <PersonalCollected v-if="content === 1"></PersonalCollected>
|
|
|
+ <PersonalDetails v-if="content === 2"></PersonalDetails>
|
|
|
+ <DepartmentCollected v-if="content === 3"></DepartmentCollected>
|
|
|
+ <DepartmentDetails v-if="content === 4"></DepartmentDetails>
|
|
|
+ <Finance v-if="content === 5"></Finance>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import Sidebar from './Sidebar.vue';
|
|
|
+import PersonalCollected from './PersonalCollected.vue';
|
|
|
+import PersonalDetails from './PersonalDetails.vue';
|
|
|
+import DepartmentCollected from './DepartmentCollected.vue';
|
|
|
+import DepartmentDetails from './DepartmentDetails.vue';
|
|
|
+import Finance from './Finance.vue';
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: 'WorkingHours',
|
|
|
+ components: {
|
|
|
+ Sidebar,
|
|
|
+ PersonalCollected,
|
|
|
+ PersonalDetails,
|
|
|
+ DepartmentCollected,
|
|
|
+ DepartmentDetails,
|
|
|
+ Finance
|
|
|
+ },
|
|
|
+ props: {
|
|
|
+
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ content: 3,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ setContent(c) {
|
|
|
+ this.content = c;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+<style scoped>
|
|
|
+ .main {
|
|
|
+ width: 100%;
|
|
|
+ height: 100%;
|
|
|
+ }
|
|
|
+ .topbar {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 100%;
|
|
|
+ height: 7%;
|
|
|
+ }
|
|
|
+ .topbar-left {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 0;
|
|
|
+ width: 12%;
|
|
|
+ height: 100%;
|
|
|
+ color: white;
|
|
|
+ font-size: 1.2em;
|
|
|
+ background-color:#304156;
|
|
|
+ padding: 16px 16px;
|
|
|
+ border-bottom: 2px solid white;
|
|
|
+
|
|
|
+ }
|
|
|
+ .topbar-right {
|
|
|
+ position: absolute;
|
|
|
+ top: 0;
|
|
|
+ left: 12%;
|
|
|
+ width: 88%;
|
|
|
+ height: 100%;
|
|
|
+ font-size: 1.2em;
|
|
|
+ padding: 16px 16px;
|
|
|
+ border-bottom: 2px solid lightgrey;
|
|
|
+ }
|
|
|
+ .sidebar {
|
|
|
+ position: absolute;
|
|
|
+ top: 7%;
|
|
|
+ left: 0;
|
|
|
+ width: 12%;
|
|
|
+ height: 93%;
|
|
|
+
|
|
|
+ background-color:#304156;
|
|
|
+ }
|
|
|
+ .content {
|
|
|
+ position: absolute;
|
|
|
+ top: 7%;
|
|
|
+ left: 12%;
|
|
|
+ width: 88%;
|
|
|
+ height: 93%;
|
|
|
+ }
|
|
|
+</style>
|