From 19343abd84fe35b5f372eddc217bee09dfe2a528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=95=E9=87=91=E6=B3=BD?= <1098696801@qq.com> Date: Sat, 1 Jan 2022 21:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E6=90=9C=E7=B4=A2=EF=BC=8C?= =?UTF-8?q?=E8=8F=9C=E5=8D=95icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Psyduck/pd-table-column.vue | 1 + magic-boot-ui/src/icons/svg/dict.svg | 1 + magic-boot-ui/src/icons/svg/examples.svg | 1 + magic-boot-ui/src/icons/svg/home.svg | 1 + magic-boot-ui/src/icons/svg/menu.svg | 1 + magic-boot-ui/src/icons/svg/role.svg | 1 + magic-boot-ui/src/scripts/common.js | 8 +-- .../src/views/system/menu/menu-list.vue | 68 +++++++++++++++---- 8 files changed, 63 insertions(+), 19 deletions(-) create mode 100644 magic-boot-ui/src/icons/svg/dict.svg create mode 100644 magic-boot-ui/src/icons/svg/examples.svg create mode 100644 magic-boot-ui/src/icons/svg/home.svg create mode 100644 magic-boot-ui/src/icons/svg/menu.svg create mode 100644 magic-boot-ui/src/icons/svg/role.svg diff --git a/magic-boot-ui/src/components/Psyduck/pd-table-column.vue b/magic-boot-ui/src/components/Psyduck/pd-table-column.vue index 7c6b139..2b17896 100644 --- a/magic-boot-ui/src/components/Psyduck/pd-table-column.vue +++ b/magic-boot-ui/src/components/Psyduck/pd-table-column.vue @@ -29,6 +29,7 @@ + {{ scope.row[col.field] }} diff --git a/magic-boot-ui/src/icons/svg/dict.svg b/magic-boot-ui/src/icons/svg/dict.svg new file mode 100644 index 0000000..a5bd659 --- /dev/null +++ b/magic-boot-ui/src/icons/svg/dict.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magic-boot-ui/src/icons/svg/examples.svg b/magic-boot-ui/src/icons/svg/examples.svg new file mode 100644 index 0000000..c30cc01 --- /dev/null +++ b/magic-boot-ui/src/icons/svg/examples.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magic-boot-ui/src/icons/svg/home.svg b/magic-boot-ui/src/icons/svg/home.svg new file mode 100644 index 0000000..57cbfc4 --- /dev/null +++ b/magic-boot-ui/src/icons/svg/home.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magic-boot-ui/src/icons/svg/menu.svg b/magic-boot-ui/src/icons/svg/menu.svg new file mode 100644 index 0000000..b687061 --- /dev/null +++ b/magic-boot-ui/src/icons/svg/menu.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magic-boot-ui/src/icons/svg/role.svg b/magic-boot-ui/src/icons/svg/role.svg new file mode 100644 index 0000000..34cffeb --- /dev/null +++ b/magic-boot-ui/src/icons/svg/role.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/magic-boot-ui/src/scripts/common.js b/magic-boot-ui/src/scripts/common.js index c912ebc..e65d4df 100644 --- a/magic-boot-ui/src/scripts/common.js +++ b/magic-boot-ui/src/scripts/common.js @@ -121,12 +121,8 @@ common.objAssign = (obj1, obj2) => { } } -common.copyNewObject = (obj) => { - var newObj = {} - for (var key in obj) { - newObj[key] = obj[key] - } - return newObj +common.copyNew = (obj) => { + return JSON.parse(JSON.stringify(obj)) } common.getParam = (data) => { diff --git a/magic-boot-ui/src/views/system/menu/menu-list.vue b/magic-boot-ui/src/views/system/menu/menu-list.vue index db7d4b8..e63396c 100644 --- a/magic-boot-ui/src/views/system/menu/menu-list.vue +++ b/magic-boot-ui/src/views/system/menu/menu-list.vue @@ -1,17 +1,18 @@ - -