|
@@ -21,6 +21,16 @@
|
|
|
<Menu v-if="topMenu" />
|
|
<Menu v-if="topMenu" />
|
|
|
</div>
|
|
</div>
|
|
|
<ul class="right-side">
|
|
<ul class="right-side">
|
|
|
|
|
+ <li>
|
|
|
|
|
+ <a-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ shape="round"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ @click="handleCheckInFun"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ $t('navbar.check.locale') }}
|
|
|
|
|
+ </a-button>
|
|
|
|
|
+ </li>
|
|
|
<li>
|
|
<li>
|
|
|
<a-tooltip :content="$t('settings.search')">
|
|
<a-tooltip :content="$t('settings.search')">
|
|
|
<a-button class="nav-btn" type="outline" :shape="'circle'">
|
|
<a-button class="nav-btn" type="outline" :shape="'circle'">
|
|
@@ -80,7 +90,7 @@
|
|
|
</a-button>
|
|
</a-button>
|
|
|
</a-tooltip>
|
|
</a-tooltip>
|
|
|
</li>
|
|
</li>
|
|
|
- <li>
|
|
|
|
|
|
|
+ <!-- <li>
|
|
|
<a-tooltip :content="$t('settings.navbar.alerts')">
|
|
<a-tooltip :content="$t('settings.navbar.alerts')">
|
|
|
<div class="message-box-trigger">
|
|
<div class="message-box-trigger">
|
|
|
<a-badge :count="9" dot>
|
|
<a-badge :count="9" dot>
|
|
@@ -106,7 +116,7 @@
|
|
|
<message-box />
|
|
<message-box />
|
|
|
</template>
|
|
</template>
|
|
|
</a-popover>
|
|
</a-popover>
|
|
|
- </li>
|
|
|
|
|
|
|
+ </li> -->
|
|
|
<li>
|
|
<li>
|
|
|
<a-tooltip
|
|
<a-tooltip
|
|
|
:content="
|
|
:content="
|
|
@@ -190,11 +200,12 @@
|
|
|
</a-dropdown>
|
|
</a-dropdown>
|
|
|
</li>
|
|
</li>
|
|
|
</ul>
|
|
</ul>
|
|
|
|
|
+ <CheckInPage v-model="showCheckInDialog"></CheckInPage>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script name="NavBar" lang="ts" setup>
|
|
<script name="NavBar" lang="ts" setup>
|
|
|
-import { computed, ref } from 'vue';
|
|
|
|
|
|
|
+import { computed, ref, shallowRef } from 'vue';
|
|
|
import { Message } from '@arco-design/web-vue';
|
|
import { Message } from '@arco-design/web-vue';
|
|
|
import { useDark, useToggle, useFullscreen } from '@vueuse/core';
|
|
import { useDark, useToggle, useFullscreen } from '@vueuse/core';
|
|
|
import { useAppStore, useUserStore } from '@/store';
|
|
import { useAppStore, useUserStore } from '@/store';
|
|
@@ -204,7 +215,7 @@ import useUser from '@/hooks/user';
|
|
|
import Menu from '@/components/menu/index.vue';
|
|
import Menu from '@/components/menu/index.vue';
|
|
|
import MessageBox from '../message-box/index.vue';
|
|
import MessageBox from '../message-box/index.vue';
|
|
|
import GlobalBreadcrumb from '../global-breadcrumb/index.vue';
|
|
import GlobalBreadcrumb from '../global-breadcrumb/index.vue';
|
|
|
-
|
|
|
|
|
|
|
+import CheckInPage from '@/components/business/CheckIn/index.vue';
|
|
|
const appStore = useAppStore();
|
|
const appStore = useAppStore();
|
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
|
const { logout } = useUser();
|
|
const { logout } = useUser();
|
|
@@ -228,6 +239,7 @@ const currentWidth = computed(() => {
|
|
|
let width = menuWidth.value - 12;
|
|
let width = menuWidth.value - 12;
|
|
|
return collapsed.value ? 'calc(100% - 38px)' : `calc(100% - ${width}px)`;
|
|
return collapsed.value ? 'calc(100% - 38px)' : `calc(100% - ${width}px)`;
|
|
|
});
|
|
});
|
|
|
|
|
+const showCheckInDialog = shallowRef<boolean>(false);
|
|
|
|
|
|
|
|
const isDark = useDark({
|
|
const isDark = useDark({
|
|
|
selector: 'body',
|
|
selector: 'body',
|
|
@@ -280,6 +292,9 @@ const toggleCollapse = () => {
|
|
|
setCollapse(!collapsed.value);
|
|
setCollapse(!collapsed.value);
|
|
|
// toggleWidth(collapsed.value);
|
|
// toggleWidth(collapsed.value);
|
|
|
};
|
|
};
|
|
|
|
|
+const handleCheckInFun = () => {
|
|
|
|
|
+ showCheckInDialog.value = true;
|
|
|
|
|
+};
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|