fix:icon/filter/router...and some bugs (#451)

This commit is contained in:
dagongren
2024-03-29 10:50:14 +08:00
committed by GitHub
parent 8fc19d8b7c
commit 2a861250eb
7 changed files with 51 additions and 35 deletions

View File

@@ -17,25 +17,29 @@ export default {
getPropertyIcon(attr) {
switch (attr.value_type) {
case '0':
return 'icon-xianxing-shishu'
return 'duose-shishu'
case '1':
return 'icon-xianxing-fudianshu'
return 'duose-fudianshu'
case '2':
if (attr.is_password) {
return 'icon-xianxing-password'
return 'duose-password'
}
if (attr.is_link) {
return 'icon-xianxing-link'
return 'duose-link'
}
return 'icon-xianxing-wenben'
return 'duose-wenben'
case '3':
return 'icon-xianxing-datetime'
return 'duose-datetime'
case '4':
return 'icon-xianxing-date'
return 'duose-date'
case '5':
return 'icon-xianxing-time'
return 'duose-time'
case '6':
return 'icon-xianxing-json'
return 'duose-json'
case '7':
return 'duose-password'
case '8':
return 'duose-link'
}
},
},

View File

@@ -11,9 +11,9 @@
:key="route.name"
@click="() => handleClick(route)"
>
{{ $t(route.meta.title) }}
{{ route.meta.title }}
</span>
<a-popover v-model="visible" placement="bottom" trigger="click" overlayClassName="top-menu-dropdown">
<!-- <a-popover v-model="visible" placement="bottom" trigger="click" overlayClassName="top-menu-dropdown">
<template slot="content">
<div class="title">
更多应用
@@ -36,7 +36,7 @@
</div>
</template>
<span class="top-menu-icon"><gridSvg /></span>
</a-popover>
</a-popover> -->
</div>
</template>
@@ -49,18 +49,8 @@ export default {
components: { gridSvg, top_agent, top_acl },
data() {
return {
defaultShowRouteName: [
'dag',
'cmdb',
'itsm',
'ticket',
'monitor',
'calendar',
'datainsight',
'fullscreen',
'oneterm',
],
defaultUnShowRouteName: ['acl', 'agent'],
defaultShowRouteName: ['cmdb', 'acl'],
defaultUnShowRouteName: [],
routes: store.getters.appRoutes.filter((i) => !(i.meta || {}).hiddenInTopMenu),
current: store.getters.appRoutes[0].name,
visible: false,