全局挂载字典标签组件
This commit is contained in:
		
							parent
							
								
									57f56c2769
								
							
						
					
					
						commit
						dbf42739ca
					
				| @ -19,9 +19,11 @@ import { getDicts } from "@/api/system/dict/data"; | |||||||
| import { getConfigKey } from "@/api/system/config"; | import { getConfigKey } from "@/api/system/config"; | ||||||
| import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; | import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, handleTree } from "@/utils/ruoyi"; | ||||||
| import Pagination from "@/components/Pagination"; | import Pagination from "@/components/Pagination"; | ||||||
| // 自定义表格工具扩展
 | // 自定义表格工具组件
 | ||||||
| import RightToolbar from "@/components/RightToolbar" | import RightToolbar from "@/components/RightToolbar" | ||||||
| // 头部标签插件
 | // 字典标签组件
 | ||||||
|  | import DictTag from '@/components/DictTag' | ||||||
|  | // 头部标签组件
 | ||||||
| import VueMeta from 'vue-meta' | import VueMeta from 'vue-meta' | ||||||
| 
 | 
 | ||||||
| // 全局方法挂载
 | // 全局方法挂载
 | ||||||
| @ -48,6 +50,7 @@ Vue.prototype.msgInfo = function (msg) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // 全局组件挂载
 | // 全局组件挂载
 | ||||||
|  | Vue.component('DictTag', DictTag) | ||||||
| Vue.component('Pagination', Pagination) | Vue.component('Pagination', Pagination) | ||||||
| Vue.component('RightToolbar', RightToolbar) | Vue.component('RightToolbar', RightToolbar) | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -184,14 +184,9 @@ | |||||||
| <script> | <script> | ||||||
| import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data"; | import { listData, getData, delData, addData, updateData } from "@/api/system/dict/data"; | ||||||
| import { listType, getType } from "@/api/system/dict/type"; | import { listType, getType } from "@/api/system/dict/type"; | ||||||
| // 字典标签组件(使用频繁可在全局挂载) |  | ||||||
| import DictTag from '@/components/DictTag' |  | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|   name: "Data", |   name: "Data", | ||||||
|   components: { |  | ||||||
|     DictTag |  | ||||||
|   }, |  | ||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
|       // 遮罩层 |       // 遮罩层 | ||||||
|  | |||||||
| @ -193,14 +193,9 @@ | |||||||
| 
 | 
 | ||||||
| <script> | <script> | ||||||
| import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"; | import { listType, getType, delType, addType, updateType, refreshCache } from "@/api/system/dict/type"; | ||||||
| // 字典标签组件(使用频繁可在全局挂载) |  | ||||||
| import DictTag from '@/components/DictTag' |  | ||||||
| 
 | 
 | ||||||
| export default { | export default { | ||||||
|   name: "Dict", |   name: "Dict", | ||||||
|   components: { |  | ||||||
|     DictTag |  | ||||||
|   }, |  | ||||||
|   data() { |   data() { | ||||||
|     return { |     return { | ||||||
|       // 遮罩层 |       // 遮罩层 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 RuoYi
						RuoYi