From dbf42739ca357a22c952c512e045b6df97e8da51 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Fri, 25 Jun 2021 17:39:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=80=E6=8C=82=E8=BD=BD=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=A0=87=E7=AD=BE=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/main.js | 7 +++++-- ruoyi-ui/src/views/system/dict/data.vue | 5 ----- ruoyi-ui/src/views/system/dict/index.vue | 5 ----- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 0fd52ced..4acdcb96 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -19,9 +19,11 @@ 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" -// 头部标签插件 +// 字典标签组件 +import DictTag from '@/components/DictTag' +// 头部标签组件 import VueMeta from 'vue-meta' // 全局方法挂载 @@ -48,6 +50,7 @@ Vue.prototype.msgInfo = function (msg) { } // 全局组件挂载 +Vue.component('DictTag', DictTag) Vue.component('Pagination', Pagination) Vue.component('RightToolbar', RightToolbar) diff --git a/ruoyi-ui/src/views/system/dict/data.vue b/ruoyi-ui/src/views/system/dict/data.vue index 6d3fb41b..cc3b0226 100644 --- a/ruoyi-ui/src/views/system/dict/data.vue +++ b/ruoyi-ui/src/views/system/dict/data.vue @@ -184,14 +184,9 @@