From a767b0a14c4d7b1c7fdc22bfc859613e3154920c Mon Sep 17 00:00:00 2001 From: lb Date: Tue, 15 Nov 2022 11:31:38 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=B3=BB=E7=BB=9F=E7=AE=A1=E7=90=86ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/UserPage/=.svg | 14 ++++ src/views/UserPage/TestMenuItem.vue | 107 ++++++++++++++++++++++++---- src/views/UserPage/TestTree.vue | 79 +++++++++++++++----- src/views/UserPage/o.svg | 11 +++ src/views/UserPage/usermanage.vue | 98 ++++++++++++++++++------- 5 files changed, 255 insertions(+), 54 deletions(-) create mode 100644 src/views/UserPage/=.svg create mode 100644 src/views/UserPage/o.svg diff --git a/src/views/UserPage/=.svg b/src/views/UserPage/=.svg new file mode 100644 index 0000000..7e816f6 --- /dev/null +++ b/src/views/UserPage/=.svg @@ -0,0 +1,14 @@ + + + 菜单 + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/UserPage/TestMenuItem.vue b/src/views/UserPage/TestMenuItem.vue index 5df477e..56f1c70 100644 --- a/src/views/UserPage/TestMenuItem.vue +++ b/src/views/UserPage/TestMenuItem.vue @@ -1,22 +1,101 @@ @@ -25,12 +104,12 @@ export default { name: 'TestMenuItem', props: { level: { - type: String, + type: Number, default: 1 }, index: { - type: Number, - default: 0 + type: String, + default: '' }, menuItem: { default: () => ({}) @@ -45,7 +124,11 @@ export default { }, created() {}, mounted() {}, - methods: {} + methods: { + constructIndex(menuItem) { + return menuItem.id + '$--$' + menuItem.name + } + } } diff --git a/src/views/UserPage/TestTree.vue b/src/views/UserPage/TestTree.vue index 2cb9f40..b0ee9e3 100644 --- a/src/views/UserPage/TestTree.vue +++ b/src/views/UserPage/TestTree.vue @@ -27,10 +27,11 @@ 合肥新能源工厂 -
- -