103 lines
2.3 KiB
Vue
103 lines
2.3 KiB
Vue
<template>
|
|
<section id="content">
|
|
<div id="content-header">
|
|
<h1 :class="[darkMode ? 'h1-darkmode' : 'h1-lightmode']" id="page-name">Clients</h1>
|
|
</div>
|
|
<div id="content-body">
|
|
<ClientTable v-if="onCustomerlist"/>
|
|
<Client v-if="onCustomer"/>
|
|
<ClientQuickAccess v-if="onCustomer"/>
|
|
<ClientEmployeeList v-if="onEmployeelist"/>
|
|
<ClientEmployee v-if="onEmployee"/>
|
|
<ClientDepartmentList v-if="onDepartmentlist"/>
|
|
<ClientDepartment v-if="onDepartment"/>
|
|
<ClientDepartmentEmployeeList v-if="onDepartment"/>
|
|
</div>
|
|
</section>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
import { ref } from 'vue';
|
|
|
|
import ClientTable from "../components/server/ClientTable.vue";
|
|
import Client from "../components/server/Client.vue";
|
|
import ClientQuickAccess from "../components/server/ClientQuickAccess.vue";
|
|
import ClientEmployeeList from "../components/server/ClientEmployeeList.vue";
|
|
import ClientEmployee from "../components/server/ClientEmployee.vue";
|
|
import ClientDepartmentList from '~/components/server/ClientDepartmentList.vue';
|
|
import ClientDepartment from '~/components/server/ClientDepartment.vue';
|
|
import ClientDepartmentEmployeeList from '~/components/server/ClientDepartmentEmployeeList.vue';
|
|
|
|
definePageMeta({
|
|
layout: 'default',
|
|
title: 'Clients'
|
|
})
|
|
|
|
const darkMode = ref(true)
|
|
|
|
// to render the right components
|
|
const onCustomerlist = ref(true)
|
|
const onCustomer = ref(false)
|
|
const onEmployeelist = ref(false)
|
|
const onEmployee = ref(false)
|
|
const onDepartmentlist = ref(false)
|
|
const onDepartment = ref(false)
|
|
</script>
|
|
|
|
<script>
|
|
export default {
|
|
name: "ClientsPage",
|
|
}
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
#content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
float: left;
|
|
justify-content: stretch;
|
|
align-items: stretch;
|
|
width: 100%;
|
|
flex-grow: 1;
|
|
gap: 0.625rem;
|
|
padding: 0 1.25rem;
|
|
}
|
|
|
|
#content-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 3.125rem;
|
|
}
|
|
|
|
#page-name {
|
|
letter-spacing: 5%;
|
|
font: 400 1.5rem/125% Overpass, -apple-system, Roboto, Helvetica, sans-serif;
|
|
}
|
|
|
|
.h1-darkmode {
|
|
color: #fff;
|
|
}
|
|
|
|
.h1-lightmode {
|
|
color: #000;
|
|
}
|
|
|
|
#content-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 100%;
|
|
gap: 1.25rem;
|
|
margin-bottom: 0.625rem;
|
|
border-radius: 0.625rem;
|
|
}
|
|
</style> |