Browse Source

全局挂载字典标签组件

tags/v3.1.0
RuoYi 3 years ago
parent
commit
dbf42739ca
  1. 7
      ruoyi-ui/src/main.js
  2. 5
      ruoyi-ui/src/views/system/dict/data.vue
  3. 5
      ruoyi-ui/src/views/system/dict/index.vue

7
ruoyi-ui/src/main.js

@ -19,9 +19,11 @@ import { getDicts } from "@/api/system/dict/data"; @@ -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) { @@ -48,6 +50,7 @@ Vue.prototype.msgInfo = function (msg) {
}
// 全局组件挂载
Vue.component('DictTag', DictTag)
Vue.component('Pagination', Pagination)
Vue.component('RightToolbar', RightToolbar)

5
ruoyi-ui/src/views/system/dict/data.vue

@ -184,14 +184,9 @@ @@ -184,14 +184,9 @@
<script>
import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data";
import { listType, getType } from "@/api/system/dict/type";
// 使
import DictTag from '@/components/DictTag'
export default {
name: "Data",
components: {
DictTag
},
data() {
return {
//

5
ruoyi-ui/src/views/system/dict/index.vue

@ -193,14 +193,9 @@ @@ -193,14 +193,9 @@
<script>
import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type";
// 使
import DictTag from '@/components/DictTag'
export default {
name: "Dict",
components: {
DictTag
},
data() {
return {
//

Loading…
Cancel
Save