菜单路由

This commit is contained in:
姚亚男
2021-09-18 14:46:44 +08:00
parent 141f733972
commit 8e84d2d1ef
21 changed files with 376 additions and 60 deletions
+12
View File
@@ -0,0 +1,12 @@
/* 引入 icon class 文件 */
@import "./iconfont.css";
/* 设置使用字体的优先级 anticon 高 */
:global(.anticon) { /* :global() 是为了覆盖全局class .anticon 的样式 */
&:before {
font-family: "anticon", "anticon-jeecg" !important;
/* 默认样式是这样
font-family: "anticon" !important;
*/
}
}
+47
View File
@@ -0,0 +1,47 @@
@font-face {
font-family: "anticon-jeecg"; /* Project id 2798517 */
src: url('iconfont.woff2?t=1631613073967') format('woff2'),
url('iconfont.woff?t=1631613073967') format('woff'),
url('iconfont.ttf?t=1631613073967') format('truetype');
}
.anticon-jeecg {
font-family: "anticon-jeecg" !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticonmeeting:before {
content: "\e60f";
}
.anticonproject:before {
content: "\e609";
}
.anticonpack:before {
content: "\e60a";
}
.anticonmember:before {
content: "\e60b";
}
.anticondata-network-disk:before {
content: "\e60c";
}
.anticonfinancial:before {
content: "\e60e";
}
.anticoncontract:before {
content: "\e608";
}
.anticoncompany:before {
content: "\e607";
}
File diff suppressed because one or more lines are too long
+65
View File
@@ -0,0 +1,65 @@
{
"id": "2798517",
"name": "zx-project",
"font_family": "anticon-jeecg",
"css_prefix_text": "anticon",
"description": "",
"glyphs": [
{
"icon_id": "24340808",
"name": "cus_meeting",
"font_class": "meeting1",
"unicode": "e60f",
"unicode_decimal": 58895
},
{
"icon_id": "24340604",
"name": "cus_project",
"font_class": "project",
"unicode": "e609",
"unicode_decimal": 58889
},
{
"icon_id": "24340605",
"name": "cus_pack",
"font_class": "pack",
"unicode": "e60a",
"unicode_decimal": 58890
},
{
"icon_id": "24340606",
"name": "cus_member",
"font_class": "member",
"unicode": "e60b",
"unicode_decimal": 58891
},
{
"icon_id": "24340607",
"name": "cus_data-network-disk",
"font_class": "data-network-disk",
"unicode": "e60c",
"unicode_decimal": 58892
},
{
"icon_id": "24340609",
"name": "cus_financial",
"font_class": "financial",
"unicode": "e60e",
"unicode_decimal": 58894
},
{
"icon_id": "24337509",
"name": "cus_contract",
"font_class": "contract",
"unicode": "e608",
"unicode_decimal": 58888
},
{
"icon_id": "24337464",
"name": "cus_company",
"font_class": "company",
"unicode": "e607",
"unicode_decimal": 58887
}
]
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
View File
@@ -97,6 +97,7 @@ export default {
// render
renderItem (menu) {
if (!menu.hidden) {
return menu.children && !menu.alwaysShow ? this.renderSubMenu(menu) : this.renderMenuItem(menu)
}
@@ -146,6 +147,10 @@ export default {
)
},
renderIcon (icon) {
if (icon !== 'none' && icon !== undefined && icon.indexOf('cus_') !== -1) {
let className = `anticon-jeecg anticon${icon.substr(4)}`
return <i class={className} style='margin-right: 8px'></i>
}
if (icon === 'none' || icon === undefined) {
return null
}
+1 -1
View File
@@ -187,7 +187,7 @@
},
toMyAnnouncement(){
this.$router.push({
path: '/isps/userAnnouncement'
path: '/system/userAnnouncementList'
})
},
modalFormOk(){