This commit is contained in:
王铜 2020-11-16 12:07:07 +08:00
parent 8189ec9381
commit abd981f612
9 changed files with 87 additions and 20 deletions

BIN
src/assets/polypoly.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -127,7 +127,7 @@ export default {
this.$message.error("账号或密码错误!"); this.$message.error("账号或密码错误!");
this.createCode(); this.createCode();
} finally { } finally {
this.spinning = false; this.spinning = false
} }
}, },
reset() { reset() {

View File

@ -1,33 +1,80 @@
<template> <template>
<a-layout> <a-layout>
<a-layout-header style="height:108px;"> <a-layout-header style="height: 110px;background:#04888A;">
<a-row style="height:38px;position:absolute; line-height:38px;top:70px;"> <a-row style="color:white"> 标题 </a-row>
<a-button type="primary"> <a-row>
主页 <a-menu v-model="current" mode="horizontal" theme="dark" @click="handleMenuClick">
</a-button> <a-menu-item key="map">
<a-button type="danger"> <icon-font type="wt-iconmap" />主页
查询 </a-menu-item>
</a-button> <a-sub-menu>
</a-row> <span slot="title" class="submenu-title-wrapper"
><icon-font type="wt-iconsearch" />数据查询</span
>
<a-menu-item-group title="Item 1">
<a-menu-item key="setting:1"> Option 1 </a-menu-item>
<a-menu-item key="setting:2"> Option 2 </a-menu-item>
</a-menu-item-group>
<a-menu-item-group title="Item 2">
<a-menu-item key="setting:3"> Option 3 </a-menu-item>
<a-menu-item key="setting:4"> Option 4 </a-menu-item>
</a-menu-item-group>
</a-sub-menu>
<a-menu-item key="analysis">
<icon-font type="wt-iconmap" />图形分析
</a-menu-item>
<a-menu-item key="admin" v-if="isAdmin">
<icon-font type="wt-iconmap" />后台管理
</a-menu-item>
</a-menu>
</a-row>
</a-layout-header> </a-layout-header>
<a-layout-content>Content</a-layout-content> <a-layout-content>
</a-layout-content>
</a-layout> </a-layout>
</template> </template>
<script> <script>
import IconFont from '@/components/icon'
import MapLayout from '@/components/map/Index'
import Search from '@/components/search/Index'
import Logs from '@/components/logs/Index'
import Admin from '@/components/admin/Index'
export default { export default {
components: {
'icon-font':IconFont,
// 'map':MapLayout,
// 'search':Search,
// 'logs':Logs,
// 'admin':Admin
},
data() { data() {
return {} return {
current:['map']
};
},
computed: {
isAdmin() {
return this.$store.getters.isSuper || this.$store.getters.isProject
}
},
methods: {
handleMenuClick({item, key, keyPath}) {
}
} }
} };
</script> </script>
<style> <style>
.ant-layout-header { .ant-layout-header {
height: 108px; height: 110px;
} }
.ant-layout-content { .ant-layout-content {
height: calc(100vh - 108px); height: calc(100vh - 110px);
} }
</style> </style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div></div>
</template> </template>
<script> <script>

View File

@ -0,0 +1,13 @@
<template>
<div></div>
</template>
<script>
export default {
}
</script>
<style>
</style>

View File

@ -0,0 +1,7 @@
import { Icon } from 'ant-design-vue';
const IconFont = Icon.createFromIconfontCN({
scriptUrl: '//at.alicdn.com/t/font_2205869_701srfkqc5.js', // generated by iconfont.cn
});
export default IconFont

View File

@ -1,5 +1,5 @@
<template> <template>
<div></div>
</template> </template>
<script> <script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div></div>
</template> </template>
<script> <script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div></div>
</template> </template>
<script> <script>