From 4c11e448f1d4b559251046687bce344fd2873228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 13 Aug 2021 11:30:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95?= =?UTF-8?q?=E6=9D=83=E9=99=90=EF=BC=8C=20=E6=96=B0=E5=A2=9E=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E6=9B=B4=E6=96=B0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/sys/app-version/appVersion.vue | 6 ++ .../src/views/sys/role-manage/roleManage.vue | 66 ++++++++++++++----- 2 files changed, 55 insertions(+), 17 deletions(-) diff --git a/manager/src/views/sys/app-version/appVersion.vue b/manager/src/views/sys/app-version/appVersion.vue index d6066b67..01cff6ab 100644 --- a/manager/src/views/sys/app-version/appVersion.vue +++ b/manager/src/views/sys/app-version/appVersion.vue @@ -39,6 +39,12 @@ 强制更新 非强制更新 + + 强制更新即为应用中必须更新此版本。不更新则无法继续使用App + + + 非强制更新为应用中推荐更新此版本。不更新还可以继续使用 + diff --git a/manager/src/views/sys/role-manage/roleManage.vue b/manager/src/views/sys/role-manage/roleManage.vue index 28c5cf6d..1dc5f3ae 100644 --- a/manager/src/views/sys/role-manage/roleManage.vue +++ b/manager/src/views/sys/role-manage/roleManage.vue @@ -31,7 +31,7 @@
- +
@@ -43,7 +43,7 @@ -
@@ -287,11 +287,6 @@ export default { display: "inline-block", cursor: "pointer", }, - on: { - click: () => { - data.checked = !data.checked; - }, - }, }, [ h("span", [ @@ -307,9 +302,29 @@ export default { }), h("span", data.title), h( - "span", - { class: { tips: true } }, - data.isSuper ? "操作权限" : "查看权限" + "Tag", + { + props: { + type: + data.isSuper == true + ? "red" + : data.isSuper == false + ? "default" + : "", + }, + style: { + "margin-left": "10px", + display: + data.isSuper == true || data.isSuper == false + ? "inline-block" + : "none", + }, + }, + data.isSuper == true + ? "操作权限" + : data.isSuper == false + ? "查看权限" + : "" ), ]), ] @@ -510,6 +525,24 @@ export default { // 菜单权限 async editPerm(v) { + + /** + * 点击菜单权限每次将赋值的isSuper数据给清空掉 + */ + this.permData.map((item) => { + item.children.length != 0 + ? item.children.map((child) => { + child.children.length != 0 + ? child.children.map((kid) => { + delete kid.isSuper; + }) + : ""; + delete child.isSuper; + }) + : ""; + delete item.isSuper; + }); + if (this.treeLoading) { this.$Message.warning("菜单权限数据加载中,请稍后点击查看"); return; @@ -524,9 +557,8 @@ export default { rolePerms = res.result; this.rolePermsWay = res.result; } - // 递归判断子节点 + // 递归判断子节点是否可以选中 this.checkPermTree(this.permData, rolePerms); - this.permModalVisible = true; }, // 递归判断子节点 @@ -576,8 +608,8 @@ export default { this.selectIsSuperModel = true; //打开选择权限 let selectedNodes = this.$refs.tree.getCheckedNodes(); let way = []; - selectedNodes.forEach((e) => { + let perm = { title: e.title, isSuper: e.isSuper, @@ -597,7 +629,7 @@ export default { if (res.success) { this.$Message.success("操作成功"); // 标记重新获取菜单数据 - this.$store.commit('setAdded', false); + this.$store.commit("setAdded", false); util.initRouter(this); this.getRoleList(); this.permModalVisible = false; @@ -609,7 +641,7 @@ export default { loadDepartment(item.id, { openDataFilter: false }).then((res) => { if (res.success) { res.result.forEach(function (e) { - e.selected = false; + e.checked = false; if (e.isParent) { e.loading = false; e.children = []; @@ -632,9 +664,9 @@ export default { let that = this; depData.forEach(function (p) { if (that.hasDepPerm(p, roleDepIds)) { - p.selected = true; + p.checked = true; } else { - p.selected = false; + p.checked = false; } }); }, From 9e4449257e19f98cb6dfcf55c0b18f28553f4de6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Fri, 13 Aug 2021 14:30:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E6=B5=81=E6=B0=B4=20=E5=BA=97=E9=93=BA=E5=B1=95=E7=A4=BA,?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90ui?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/views/order/flow/paymentLog.vue | 6 ++ .../setting-manage/setting/GOODS_SETTING.vue | 72 ++++++++++--------- 2 files changed, 43 insertions(+), 35 deletions(-) diff --git a/manager/src/views/order/flow/paymentLog.vue b/manager/src/views/order/flow/paymentLog.vue index 3c1886a6..92504fa7 100644 --- a/manager/src/views/order/flow/paymentLog.vue +++ b/manager/src/views/order/flow/paymentLog.vue @@ -64,6 +64,12 @@ export default { minWidth: 180, tooltip: true, }, + { + title: "店铺名称", + key: "storeName", + minWidth: 100, + tooltip: true, + }, { title: "支付方式", key: "paymentMethod", diff --git a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue index 310135df..86f3e9ba 100644 --- a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue @@ -8,21 +8,6 @@
-
- - - - px - - - - - - - px - - -
@@ -38,6 +23,21 @@
+
+ + + + px + + + + + + + px + + +
@@ -64,13 +64,14 @@