居民信息管理
This commit is contained in:
parent
53fac9423c
commit
994f45ae96
|
@ -1,24 +1,24 @@
|
|||
<script>
|
||||
export default {
|
||||
name: 'MenuItem',
|
||||
name: "MenuItem",
|
||||
functional: true,
|
||||
props: {
|
||||
icon: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: ""
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
default: ""
|
||||
}
|
||||
},
|
||||
render(h, context) {
|
||||
const { icon, title } = context.props
|
||||
const vnodes = []
|
||||
const { icon, title } = context.props;
|
||||
const vnodes = [];
|
||||
|
||||
if (icon) {
|
||||
if (icon.includes('el-icon')) {
|
||||
vnodes.push(<i class={[icon, 'sub-el-icon']} />)
|
||||
if (icon.includes("el-icon")) {
|
||||
vnodes.push(<i class={[icon, "sub-el-icon"]} />);
|
||||
// icon_menu_statistical
|
||||
} else {
|
||||
vnodes.push(
|
||||
|
@ -28,20 +28,18 @@ export default {
|
|||
// >
|
||||
// <svg-icon icon-class={icon} />
|
||||
// </div>
|
||||
<i
|
||||
class={['icon_menu_' + icon, 'icon_menu']}
|
||||
></i>
|
||||
)
|
||||
<i class={["icon_menu_" + icon, "icon_menu"]}></i>
|
||||
);
|
||||
// vnodes.push(<svg-icon icon-class={icon}/>)
|
||||
}
|
||||
}
|
||||
|
||||
if (title) {
|
||||
vnodes.push(<span slot='title'>{title}</span>)
|
||||
}
|
||||
return vnodes
|
||||
vnodes.push(<span slot="title">{title}</span>);
|
||||
}
|
||||
return vnodes;
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
@ -61,6 +59,9 @@ export default {
|
|||
.icon_menu_workBook {
|
||||
background: url("./img/icon_workBook.png") no-repeat;
|
||||
}
|
||||
.icon_menu_jmInfo {
|
||||
background: url("./img/icon_jmInfo.png") no-repeat;
|
||||
}
|
||||
.sub-el-icon {
|
||||
color: currentColor;
|
||||
width: 1em;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
|
@ -165,7 +165,7 @@ export const constantRoutes = [
|
|||
redirect: "/residentInformation/list",
|
||||
meta: {
|
||||
title: "居民信息管理",
|
||||
icon: "list",
|
||||
icon: "jmInfo",
|
||||
roles: ["ESIDENT_ADMIN"]
|
||||
},
|
||||
children: [
|
||||
|
@ -175,7 +175,7 @@ export const constantRoutes = [
|
|||
name: "residentInformationList",
|
||||
meta: {
|
||||
title: "居民信息列表",
|
||||
icon: "list",
|
||||
icon: "jmInfo",
|
||||
affix: true,
|
||||
parentTitle: "居民信息管理"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue