居民信息管理

This commit is contained in:
jiangrui 2021-04-21 14:07:36 +08:00
parent 53fac9423c
commit 994f45ae96
3 changed files with 18 additions and 17 deletions

View File

@ -1,24 +1,24 @@
<script> <script>
export default { export default {
name: 'MenuItem', name: "MenuItem",
functional: true, functional: true,
props: { props: {
icon: { icon: {
type: String, type: String,
default: '' default: ""
}, },
title: { title: {
type: String, type: String,
default: '' default: ""
} }
}, },
render(h, context) { render(h, context) {
const { icon, title } = context.props const { icon, title } = context.props;
const vnodes = [] const vnodes = [];
if (icon) { if (icon) {
if (icon.includes('el-icon')) { if (icon.includes("el-icon")) {
vnodes.push(<i class={[icon, 'sub-el-icon']} />) vnodes.push(<i class={[icon, "sub-el-icon"]} />);
// icon_menu_statistical // icon_menu_statistical
} else { } else {
vnodes.push( vnodes.push(
@ -28,20 +28,18 @@ export default {
// > // >
// <svg-icon icon-class={icon} /> // <svg-icon icon-class={icon} />
// </div> // </div>
<i <i class={["icon_menu_" + icon, "icon_menu"]}></i>
class={['icon_menu_' + icon, 'icon_menu']} );
></i>
)
// vnodes.push(<svg-icon icon-class={icon}/>) // vnodes.push(<svg-icon icon-class={icon}/>)
} }
} }
if (title) { if (title) {
vnodes.push(<span slot='title'>{title}</span>) vnodes.push(<span slot="title">{title}</span>);
} }
return vnodes return vnodes;
} }
} };
</script> </script>
<style scoped> <style scoped>
@ -58,9 +56,12 @@ export default {
.icon_menu_convenience { .icon_menu_convenience {
background: url("./img/icon_convenience.png") no-repeat; background: url("./img/icon_convenience.png") no-repeat;
} }
.icon_menu_workBook{ .icon_menu_workBook {
background: url("./img/icon_workBook.png") no-repeat; background: url("./img/icon_workBook.png") no-repeat;
} }
.icon_menu_jmInfo {
background: url("./img/icon_jmInfo.png") no-repeat;
}
.sub-el-icon { .sub-el-icon {
color: currentColor; color: currentColor;
width: 1em; width: 1em;

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -165,7 +165,7 @@ export const constantRoutes = [
redirect: "/residentInformation/list", redirect: "/residentInformation/list",
meta: { meta: {
title: "居民信息管理", title: "居民信息管理",
icon: "list", icon: "jmInfo",
roles: ["ESIDENT_ADMIN"] roles: ["ESIDENT_ADMIN"]
}, },
children: [ children: [
@ -175,7 +175,7 @@ export const constantRoutes = [
name: "residentInformationList", name: "residentInformationList",
meta: { meta: {
title: "居民信息列表", title: "居民信息列表",
icon: "list", icon: "jmInfo",
affix: true, affix: true,
parentTitle: "居民信息管理" parentTitle: "居民信息管理"
} }