From b70e8ad81e1daedbfb747c146b31afabe9a9d547 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 13 Aug 2020 14:11:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E5=8F=B3=E4=BE=A7=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=A0=8F=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/vm/vue/index-tree.vue.vm | 9 +---- .../src/main/resources/vm/vue/index.vue.vm | 9 +---- .../src/components/RightToolbar/index.vue | 37 +++++++++++++++++++ ruoyi-ui/src/main.js | 3 ++ ruoyi-ui/src/views/monitor/job/index.vue | 9 +---- ruoyi-ui/src/views/monitor/job/log.vue | 9 +---- ruoyi-ui/src/views/system/client/index.vue | 9 +---- ruoyi-ui/src/views/system/config/index.vue | 9 +---- ruoyi-ui/src/views/system/dept/index.vue | 9 +---- ruoyi-ui/src/views/system/dict/data.vue | 9 +---- ruoyi-ui/src/views/system/dict/index.vue | 9 +---- .../src/views/system/logininfor/index.vue | 9 +---- ruoyi-ui/src/views/system/menu/index.vue | 9 +---- ruoyi-ui/src/views/system/notice/index.vue | 11 +----- ruoyi-ui/src/views/system/operlog/index.vue | 9 +---- ruoyi-ui/src/views/system/post/index.vue | 9 +---- ruoyi-ui/src/views/system/role/index.vue | 9 +---- ruoyi-ui/src/views/system/user/index.vue | 9 +---- ruoyi-ui/src/views/tool/gen/index.vue | 9 +---- 19 files changed, 58 insertions(+), 137 deletions(-) create mode 100644 ruoyi-ui/src/components/RightToolbar/index.vue diff --git a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm index a6ae2026..2bdd6341 100644 --- a/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm +++ b/ruoyi-modules/ruoyi-gen/src/main/resources/vm/vue/index-tree.vue.vm @@ -66,14 +66,7 @@ v-hasPermi="['${moduleName}:${businessName}:add']" >新增 -
- - - - - - -
+ 导出 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/components/RightToolbar/index.vue b/ruoyi-ui/src/components/RightToolbar/index.vue new file mode 100644 index 00000000..6186638e --- /dev/null +++ b/ruoyi-ui/src/components/RightToolbar/index.vue @@ -0,0 +1,37 @@ + + diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 134d8c7c..42d1d308 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -21,6 +21,8 @@ import { getDicts } from "@/api/system/dict/data"; import { getConfigKey } from "@/api/system/config"; import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; import Pagination from "@/components/Pagination"; +//自定义表格工具扩展 +import RightToolbar from "@/components/RightToolbar" // 全局方法挂载 Vue.prototype.getDicts = getDicts @@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) { // 全局组件挂载 Vue.component('Pagination', Pagination) +Vue.component('RightToolbar', RightToolbar) Vue.use(permission) diff --git a/ruoyi-ui/src/views/monitor/job/index.vue b/ruoyi-ui/src/views/monitor/job/index.vue index f0f3e249..61ef9666 100644 --- a/ruoyi-ui/src/views/monitor/job/index.vue +++ b/ruoyi-ui/src/views/monitor/job/index.vue @@ -84,14 +84,7 @@ v-hasPermi="['monitor:job:query']" >日志 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/monitor/job/log.vue b/ruoyi-ui/src/views/monitor/job/log.vue index 33860f64..4fa106c1 100644 --- a/ruoyi-ui/src/views/monitor/job/log.vue +++ b/ruoyi-ui/src/views/monitor/job/log.vue @@ -90,14 +90,7 @@ v-hasPermi="['monitor:job:export']" >导出 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/client/index.vue b/ruoyi-ui/src/views/system/client/index.vue index 77374920..773d4e8a 100644 --- a/ruoyi-ui/src/views/system/client/index.vue +++ b/ruoyi-ui/src/views/system/client/index.vue @@ -46,14 +46,7 @@ v-hasPermi="['system:client:remove']" >删除 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/config/index.vue b/ruoyi-ui/src/views/system/config/index.vue index fccdc0fc..214bd835 100644 --- a/ruoyi-ui/src/views/system/config/index.vue +++ b/ruoyi-ui/src/views/system/config/index.vue @@ -97,14 +97,7 @@ v-hasPermi="['system:config:remove']" >清理缓存 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/dept/index.vue b/ruoyi-ui/src/views/system/dept/index.vue index d2b4418e..ae2aaaa8 100644 --- a/ruoyi-ui/src/views/system/dept/index.vue +++ b/ruoyi-ui/src/views/system/dept/index.vue @@ -36,14 +36,7 @@ v-hasPermi="['system:dept:add']" >新增 -
- - - - - - -
+ 导出 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/dict/index.vue b/ruoyi-ui/src/views/system/dict/index.vue index 656f1830..abd1dc8b 100644 --- a/ruoyi-ui/src/views/system/dict/index.vue +++ b/ruoyi-ui/src/views/system/dict/index.vue @@ -103,14 +103,7 @@ v-hasPermi="['system:dict:remove']" >清理缓存 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/logininfor/index.vue b/ruoyi-ui/src/views/system/logininfor/index.vue index 06ff9672..2cf52378 100644 --- a/ruoyi-ui/src/views/system/logininfor/index.vue +++ b/ruoyi-ui/src/views/system/logininfor/index.vue @@ -84,14 +84,7 @@ v-hasPermi="['system:logininfor:export']" >导出 -
- - - - - - -
+ diff --git a/ruoyi-ui/src/views/system/menu/index.vue b/ruoyi-ui/src/views/system/menu/index.vue index 6cf8d3bc..52f15a4f 100644 --- a/ruoyi-ui/src/views/system/menu/index.vue +++ b/ruoyi-ui/src/views/system/menu/index.vue @@ -36,14 +36,7 @@ v-hasPermi="['system:menu:add']" >新增 -
- - - - - - -
+ 删除 -
- - - - - - -
+ @@ -171,7 +164,7 @@ -