2021-06-25 06:55:49 -07:00
|
|
|
<template>
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
2021-08-19 03:05:14 -07:00
|
|
|
<div v-if="! $root.isMobile" class="col-12 col-md-5 col-xl-4">
|
2022-04-30 05:33:54 -07:00
|
|
|
<div class="dropdown dropdown-create">
|
|
|
|
<button class="btn btn-primary mb-3 dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
|
|
|
<font-awesome-icon icon="plus" /> {{ $t("Create") }}
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
|
|
|
<li>
|
2022-04-30 05:57:08 -07:00
|
|
|
<button type="button" class="dropdown-item" @click="$router.push('/add')">
|
2022-04-30 05:33:54 -07:00
|
|
|
<font-awesome-icon icon="heartbeat" /> {{ $t("Monitor") }}
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
<li>
|
2022-04-30 05:57:08 -07:00
|
|
|
<button type="button" class="dropdown-item" @click="$router.push('/addMaintenance')">
|
2022-04-30 05:33:54 -07:00
|
|
|
<font-awesome-icon icon="exclamation-circle" /> {{ $t("Maintenance") }}
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2021-06-25 06:55:49 -07:00
|
|
|
</div>
|
2021-09-01 10:56:02 -07:00
|
|
|
<MonitorList :scrollbar="true" />
|
2021-06-25 06:55:49 -07:00
|
|
|
</div>
|
2021-08-19 03:05:14 -07:00
|
|
|
|
2021-08-29 11:22:49 -07:00
|
|
|
<div class="col-12 col-md-7 col-xl-8 mb-3">
|
2021-08-29 15:28:43 -07:00
|
|
|
<!-- Add :key to disable vue router re-use the same component -->
|
|
|
|
<router-view :key="$route.fullPath" />
|
2021-06-25 06:55:49 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
2021-08-19 03:05:14 -07:00
|
|
|
import MonitorList from "../components/MonitorList.vue";
|
2021-06-27 01:10:55 -07:00
|
|
|
|
2021-06-25 06:55:49 -07:00
|
|
|
export default {
|
|
|
|
components: {
|
2021-08-19 03:05:14 -07:00
|
|
|
MonitorList,
|
2021-06-25 06:55:49 -07:00
|
|
|
},
|
|
|
|
data() {
|
2022-04-13 09:30:32 -07:00
|
|
|
return {};
|
2021-06-25 06:55:49 -07:00
|
|
|
},
|
2022-04-13 09:30:32 -07:00
|
|
|
};
|
2021-06-25 06:55:49 -07:00
|
|
|
</script>
|
|
|
|
|
2021-08-07 22:47:29 -07:00
|
|
|
<style lang="scss" scoped>
|
2021-06-25 06:55:49 -07:00
|
|
|
.container-fluid {
|
2021-08-24 08:38:25 -07:00
|
|
|
width: 98%;
|
2021-06-25 06:55:49 -07:00
|
|
|
}
|
|
|
|
</style>
|