|
@@ -3,11 +3,11 @@
|
|
|
<a-layout-header class="m-layout-header"
|
|
<a-layout-header class="m-layout-header"
|
|
|
@contextmenu.prevent>
|
|
@contextmenu.prevent>
|
|
|
<div>
|
|
<div>
|
|
|
- <img src="../assets/images/logoHeader.png"/>
|
|
|
|
|
- <span>深圳市多元世纪信息技术股份有限公司</span>
|
|
|
|
|
|
|
+ <img src="../assets/images/logoHeader.png" />
|
|
|
|
|
+ <span>深圳市多元世纪信息技术股份有限公司</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="m-layout-header-right">
|
|
<div class="m-layout-header-right">
|
|
|
- <div>
|
|
|
|
|
|
|
+ <div @click="openDrawer">
|
|
|
<span>{{ username }},您好!</span>
|
|
<span>{{ username }},您好!</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="relative">
|
|
<div class="relative">
|
|
@@ -20,16 +20,15 @@
|
|
|
<!-- <a-icon type="search" /> -->
|
|
<!-- <a-icon type="search" /> -->
|
|
|
</div>
|
|
</div>
|
|
|
<div class="news-container">
|
|
<div class="news-container">
|
|
|
- <!-- <a-badge
|
|
|
|
|
- @click="chooseSetMenu('notice')">
|
|
|
|
|
|
|
+ <a-badge @click="openNotice">
|
|
|
<svg class="icon svg-icon"
|
|
<svg class="icon svg-icon"
|
|
|
aria-hidden="true">
|
|
aria-hidden="true">
|
|
|
<use xlink:href="#icon-xiaoxi"></use>
|
|
<use xlink:href="#icon-xiaoxi"></use>
|
|
|
</svg>
|
|
</svg>
|
|
|
- </a-badge> -->
|
|
|
|
|
|
|
+ </a-badge>
|
|
|
</div>
|
|
</div>
|
|
|
<div>
|
|
<div>
|
|
|
- <!-- <a-popover v-model:visible="visible"
|
|
|
|
|
|
|
+ <a-popover v-model:visible="visible"
|
|
|
trigger="click"
|
|
trigger="click"
|
|
|
placement="bottomRight">
|
|
placement="bottomRight">
|
|
|
<template #content>
|
|
<template #content>
|
|
@@ -42,7 +41,7 @@
|
|
|
<UserOutlined />
|
|
<UserOutlined />
|
|
|
</template>
|
|
</template>
|
|
|
</a-avatar>
|
|
</a-avatar>
|
|
|
- </a-popover> -->
|
|
|
|
|
|
|
+ </a-popover>
|
|
|
<Setting />
|
|
<Setting />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -79,6 +78,8 @@
|
|
|
</a-menu>
|
|
</a-menu>
|
|
|
</a-layout-sider>
|
|
</a-layout-sider>
|
|
|
<a-layout-content :style="{ background: '#0E0E0F', flex: 1 }">
|
|
<a-layout-content :style="{ background: '#0E0E0F', flex: 1 }">
|
|
|
|
|
+ <Drawer :title="'挂牌'"
|
|
|
|
|
+ :visible="visible"></Drawer>
|
|
|
<router-view />
|
|
<router-view />
|
|
|
</a-layout-content>
|
|
</a-layout-content>
|
|
|
</a-layout>
|
|
</a-layout>
|
|
@@ -93,6 +94,8 @@ import SecondMenu from '@/components/secondeMenu/index.vue';
|
|
|
import APP from '@/services';
|
|
import APP from '@/services';
|
|
|
import { initData } from '@/setup/methods/index';
|
|
import { initData } from '@/setup/methods/index';
|
|
|
import { useRouter } from 'vue-router';
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
+import { openModal } from '@/setup/controlModal/index';
|
|
|
|
|
+import Drawer from '@/components/drawer/index.vue';
|
|
|
|
|
|
|
|
// 菜单栏
|
|
// 菜单栏
|
|
|
const handleMenu = () => {
|
|
const handleMenu = () => {
|
|
@@ -189,11 +192,16 @@ const handleMenu = () => {
|
|
|
return { collapsed, selectedKeys, menuList, openKeys, collapse, menuClick, fontIcon };
|
|
return { collapsed, selectedKeys, menuList, openKeys, collapse, menuClick, fontIcon };
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+function testAction() {
|
|
|
|
|
+ const { openAction } = openModal('drawer');
|
|
|
|
|
+ return { openDrawer: openAction };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
// 设置
|
|
// 设置
|
|
|
const setFn = () => {
|
|
const setFn = () => {
|
|
|
const visible = ref<boolean>(false);
|
|
const visible = ref<boolean>(false);
|
|
|
const chooseSetupItem = ref<string>('');
|
|
const chooseSetupItem = ref<string>('');
|
|
|
- provide('setting', chooseSetupItem);
|
|
|
|
|
|
|
+ provide('ControlModal', chooseSetupItem);
|
|
|
const setMenu = [
|
|
const setMenu = [
|
|
|
// { name: '修改密码', path: 'password' },
|
|
// { name: '修改密码', path: 'password' },
|
|
|
// { name: '收货地址', path: 'addresss' },
|
|
// { name: '收货地址', path: 'addresss' },
|
|
@@ -202,8 +210,10 @@ const setFn = () => {
|
|
|
// { name: '关于我们', path: 'aboutUs' },
|
|
// { name: '关于我们', path: 'aboutUs' },
|
|
|
{ name: '退出', path: 'logout' },
|
|
{ name: '退出', path: 'logout' },
|
|
|
];
|
|
];
|
|
|
|
|
+ const { openAction } = openModal('logout');
|
|
|
function chooseSetMenu(path: string) {
|
|
function chooseSetMenu(path: string) {
|
|
|
- chooseSetupItem.value = path;
|
|
|
|
|
|
|
+ // chooseSetupItem.value = path;
|
|
|
|
|
+ openAction();
|
|
|
console.log(path);
|
|
console.log(path);
|
|
|
visible.value = false;
|
|
visible.value = false;
|
|
|
}
|
|
}
|
|
@@ -222,6 +232,11 @@ function setShowBottomPart(code: string): boolean {
|
|
|
const unShow = ['outaccount_status'];
|
|
const unShow = ['outaccount_status'];
|
|
|
return !unShow.includes(code);
|
|
return !unShow.includes(code);
|
|
|
}
|
|
}
|
|
|
|
|
+// 控制消息弹窗
|
|
|
|
|
+function controlNotice() {
|
|
|
|
|
+ const { openAction } = openModal('notice');
|
|
|
|
|
+ return { openNotice: openAction };
|
|
|
|
|
+}
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'layout-top',
|
|
name: 'layout-top',
|
|
|
components: {
|
|
components: {
|
|
@@ -229,10 +244,13 @@ export default defineComponent({
|
|
|
UserOutlined,
|
|
UserOutlined,
|
|
|
CapitalInfo,
|
|
CapitalInfo,
|
|
|
SecondMenu,
|
|
SecondMenu,
|
|
|
|
|
+ Drawer,
|
|
|
},
|
|
},
|
|
|
setup(props, context) {
|
|
setup(props, context) {
|
|
|
const { collapsed, selectedKeys, openKeys, menuList, collapse, menuClick, fontIcon } = handleMenu();
|
|
const { collapsed, selectedKeys, openKeys, menuList, collapse, menuClick, fontIcon } = handleMenu();
|
|
|
const router = useRouter();
|
|
const router = useRouter();
|
|
|
|
|
+ // 控制消息弹窗
|
|
|
|
|
+ const { openNotice } = controlNotice();
|
|
|
|
|
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
// 处理路由跳转到菜单栏里第一个对应的页面
|
|
// 处理路由跳转到菜单栏里第一个对应的页面
|
|
@@ -245,6 +263,9 @@ export default defineComponent({
|
|
|
router.push(code);
|
|
router.push(code);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ const { openDrawer } = testAction();
|
|
|
|
|
+
|
|
|
const { visible, setMenu, chooseSetMenu } = setFn();
|
|
const { visible, setMenu, chooseSetMenu } = setFn();
|
|
|
const username = APP.get('username');
|
|
const username = APP.get('username');
|
|
|
const { search } = onSearch();
|
|
const { search } = onSearch();
|
|
@@ -261,6 +282,10 @@ export default defineComponent({
|
|
|
setMenu,
|
|
setMenu,
|
|
|
chooseSetMenu,
|
|
chooseSetMenu,
|
|
|
fontIcon,
|
|
fontIcon,
|
|
|
|
|
+
|
|
|
|
|
+ openNotice,
|
|
|
|
|
+
|
|
|
|
|
+ openDrawer,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
@@ -280,11 +305,11 @@ export default defineComponent({
|
|
|
padding: 0 20px;
|
|
padding: 0 20px;
|
|
|
.flex();
|
|
.flex();
|
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
- img {
|
|
|
|
|
- margin-right: 16px;
|
|
|
|
|
- width: 20px;
|
|
|
|
|
- height: 20px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ img {
|
|
|
|
|
+ margin-right: 16px;
|
|
|
|
|
+ width: 20px;
|
|
|
|
|
+ height: 20px;
|
|
|
|
|
+ }
|
|
|
.searchInput.ant-input-affix-wrapper {
|
|
.searchInput.ant-input-affix-wrapper {
|
|
|
width: 240px;
|
|
width: 240px;
|
|
|
height: 30px;
|
|
height: 30px;
|