From afbdf5c7f1ef1d33ae4f48b37c48d6c8ce944935 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=8E=E5=BC=BA?= <1206709430@qq.com>
Date: Thu, 4 Mar 2021 00:29:18 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF-=E6=9D=83=E9=99=90=E3=80=81?=
=?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=B1=95=E7=A4=BA=E5=AE=8C=E5=96=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dvadmin-ui/src/main.js | 6 ++++++
dvadmin-ui/src/views/permission/dept/index.vue | 13 +++++++++----
dvadmin-ui/src/views/permission/menu/index.vue | 7 ++++++-
dvadmin-ui/src/views/permission/post/index.vue | 7 ++++++-
dvadmin-ui/src/views/permission/role/index.vue | 13 +++++++++----
dvadmin-ui/src/views/permission/user/index.vue | 1 +
dvadmin-ui/src/views/system/config/index.vue | 6 +++++-
dvadmin-ui/src/views/system/dict/data.vue | 7 ++++++-
dvadmin-ui/src/views/system/dict/index.vue | 9 +++++++--
dvadmin-ui/src/views/system/savefile/index.vue | 8 +++++++-
10 files changed, 62 insertions(+), 15 deletions(-)
diff --git a/dvadmin-ui/src/main.js b/dvadmin-ui/src/main.js
index 5668d91..9e7542a 100755
--- a/dvadmin-ui/src/main.js
+++ b/dvadmin-ui/src/main.js
@@ -31,6 +31,12 @@ Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectDictLabels = selectDictLabels
Vue.prototype.download = download
Vue.prototype.handleTree = handleTree
+Vue.prototype.hasPermi = function (values) {
+ const permissions = store.getters && store.getters.permissions
+ return permissions.some(permission => {
+ return "*:*:*" === permission || values.includes(permission)
+ })
+};
Vue.prototype.msgSuccess = function (msg) {
this.$message({ showClose: true, message: msg, type: "success" });
diff --git a/dvadmin-ui/src/views/permission/dept/index.vue b/dvadmin-ui/src/views/permission/dept/index.vue
index d28ab0d..5c44e90 100755
--- a/dvadmin-ui/src/views/permission/dept/index.vue
+++ b/dvadmin-ui/src/views/permission/dept/index.vue
@@ -47,20 +47,25 @@
default-expand-all
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
>
-
+
-
+
{{ parseTime(scope.row.update_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
-
-
+
+
@@ -118,12 +118,17 @@
>
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+
-
+
@@ -129,7 +129,12 @@
{{ parseTime(scope.row.create_datetime) }}
-
+
{{ parseTime(scope.row.create_datetime) }}
-
+