Map filename added
This commit is contained in:
@@ -1,14 +1,25 @@
|
||||
<template>
|
||||
<Sidebar :visible="sidebarState" :closeIcon="'pi pi-angle-right'" :modal="false" position="right" :dismissable="false" class="!w-[360px]" @hide="hide" @show="show">
|
||||
<Sidebar :visible="sidebarState" :closeIcon="'pi pi-angle-right'" :modal="false" position="right" :dismissable="false"
|
||||
class="!w-[360px]" @hide="hide" @show="show">
|
||||
<template #header>
|
||||
<ul class="flex space-x-4 pl-4">
|
||||
<li class="h1 border-r-2 border-neutral-300 pr-4 cursor-pointer hover:text-neutral-900 hover:duration-700" @click="switchTab('summary')" :class="tab === 'summary'? 'text-neutral-900': ''">Summary</li>
|
||||
<li class="h1 border-r-2 border-neutral-300 pr-4 cursor-pointer hover:text-neutral-900 hover:duration-700" @click="switchTab('insight')" :class="tab === 'insight'? 'text-neutral-900': ''">Insight</li>
|
||||
<li class="h1 border-r-2 border-neutral-300 pr-4 cursor-pointer hover:text-neutral-900 hover:duration-700"
|
||||
@click="switchTab('summary')" :class="tab === 'summary'? 'text-neutral-900': ''">Summary</li>
|
||||
<li class="h1 border-r-2 border-neutral-300 pr-4 cursor-pointer hover:text-neutral-900 hover:duration-700"
|
||||
@click="switchTab('insight')" :class="tab === 'insight'? 'text-neutral-900': ''">Insight</li>
|
||||
</ul>
|
||||
</template>
|
||||
<!-- header: summary -->
|
||||
<div v-if="tab === 'summary'">
|
||||
<!-- Stats -->
|
||||
<ul class="pb-4 border-b border-neutral-300">
|
||||
<li>
|
||||
<p class="h2">{{ i18next.t("Map.FileName") }}</p>
|
||||
<div class="flex justify-between items-center">
|
||||
<span>{{ currentMapFile }}</span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="pb-4 border-b border-neutral-300">
|
||||
<li>
|
||||
<p class="h2">Cases</p>
|
||||
@@ -209,8 +220,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { computed, } from 'vue';
|
||||
import PageAdmin from '@/stores/pageAdmin';
|
||||
import { getTimeLabel } from '@/module/timeLabel.js';
|
||||
import getMoment from 'moment';
|
||||
import i18next from '@/i18n/i18n';
|
||||
|
||||
export default {
|
||||
props:{
|
||||
@@ -227,6 +241,16 @@ export default {
|
||||
required: false,
|
||||
}
|
||||
},
|
||||
setup(){
|
||||
const pageAdmin = PageAdmin();
|
||||
|
||||
const currentMapFile = computed(() => pageAdmin.currentMapFile);
|
||||
|
||||
return {
|
||||
currentMapFile,
|
||||
i18next,
|
||||
};
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
tab: 'summary',
|
||||
|
||||
Reference in New Issue
Block a user