56 lines
1.4 KiB
Vue
56 lines
1.4 KiB
Vue
<script setup lang="ts">
|
|
import { ref } from 'vue';
|
|
import index from './components/check/index.vue'
|
|
import manage from './pages/manage.vue'
|
|
const selectedKeys1 = ref (['1']);
|
|
let activeItem = ref(1);
|
|
|
|
const handleSelectd= (e: any) => {
|
|
console.log('click ', e);
|
|
activeItem.value = e.key;
|
|
};
|
|
</script>
|
|
<template>
|
|
<a-layout class="container">
|
|
<a-layout-header class="header">
|
|
<div class="logo" />
|
|
<a-menu
|
|
v-model:selectedKeys="selectedKeys1"
|
|
theme="dark"
|
|
mode="horizontal"
|
|
:style="{ lineHeight: '64px' }"
|
|
@select="handleSelectd"
|
|
>
|
|
<a-menu-item key="1">发票查验</a-menu-item>
|
|
<a-menu-item key="2">发票管理</a-menu-item>
|
|
<a-menu-item key="3">发票复验</a-menu-item>
|
|
<a-menu-item key="4">发票统计</a-menu-item>
|
|
</a-menu>
|
|
</a-layout-header>
|
|
<a-layout-content style="padding: 0 10px">
|
|
<a-layout style="padding: 24px 0; background: #fff">
|
|
<index v-if="activeItem == 1" />
|
|
<manage v-if="activeItem == 2" />
|
|
</a-layout>
|
|
</a-layout-content>
|
|
|
|
</a-layout>
|
|
</template>
|
|
|
|
<style scoped>
|
|
#components-layout-demo-top-side .logo {
|
|
float: left;
|
|
height: 31px;
|
|
margin: 16px 24px 16px 0;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.ant-row-rtl #components-layout-demo-top-side .logo {
|
|
float: right;
|
|
margin: 16px 0 16px 24px;
|
|
}
|
|
.container {
|
|
height: 100%;
|
|
}
|
|
</style>
|