正在显示
3 个修改的文件
包含
5 行增加
和
12 行删除
| @@ -18,9 +18,11 @@ import { getDicts } from "@/api/system/dict/data"; | @@ -18,9 +18,11 @@ import { getDicts } from "@/api/system/dict/data"; | ||
| 18 | import { getConfigKey } from "@/api/system/config"; | 18 | import { getConfigKey } from "@/api/system/config"; |
| 19 | import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi"; | 19 | import { parseTime, resetForm, addDateRange, selectDictLabel, selectDictLabels, download, handleTree } from "@/utils/ruoyi"; |
| 20 | import Pagination from "@/components/Pagination"; | 20 | import Pagination from "@/components/Pagination"; |
| 21 | -// 自定义表格工具扩展 | 21 | +// 自定义表格工具组件 |
| 22 | import RightToolbar from "@/components/RightToolbar" | 22 | import RightToolbar from "@/components/RightToolbar" |
| 23 | -// 头部标签插件 | 23 | +// 字典标签组件 |
| 24 | +import DictTag from '@/components/DictTag' | ||
| 25 | +// 头部标签组件 | ||
| 24 | import VueMeta from 'vue-meta' | 26 | import VueMeta from 'vue-meta' |
| 25 | 27 | ||
| 26 | // 全局方法挂载 | 28 | // 全局方法挂载 |
| @@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) { | @@ -47,6 +49,7 @@ Vue.prototype.msgInfo = function (msg) { | ||
| 47 | } | 49 | } |
| 48 | 50 | ||
| 49 | // 全局组件挂载 | 51 | // 全局组件挂载 |
| 52 | +Vue.component('DictTag', DictTag) | ||
| 50 | Vue.component('Pagination', Pagination) | 53 | Vue.component('Pagination', Pagination) |
| 51 | Vue.component('RightToolbar', RightToolbar) | 54 | Vue.component('RightToolbar', RightToolbar) |
| 52 | 55 |
| @@ -185,14 +185,9 @@ | @@ -185,14 +185,9 @@ | ||
| 185 | <script> | 185 | <script> |
| 186 | import { listData, getData, delData, addData, updateData, exportData } from "@/api/system/dict/data"; | 186 | import { listData, getData, delData, addData, updateData, exportData } from "@/api/system/dict/data"; |
| 187 | import { listType, getType } from "@/api/system/dict/type"; | 187 | import { listType, getType } from "@/api/system/dict/type"; |
| 188 | -// 字典标签组件(使用频繁可在全局挂载) | ||
| 189 | -import DictTag from '@/components/DictTag' | ||
| 190 | 188 | ||
| 191 | export default { | 189 | export default { |
| 192 | name: "Data", | 190 | name: "Data", |
| 193 | - components: { | ||
| 194 | - DictTag | ||
| 195 | - }, | ||
| 196 | data() { | 191 | data() { |
| 197 | return { | 192 | return { |
| 198 | // 遮罩层 | 193 | // 遮罩层 |
| @@ -194,14 +194,9 @@ | @@ -194,14 +194,9 @@ | ||
| 194 | 194 | ||
| 195 | <script> | 195 | <script> |
| 196 | import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type"; | 196 | import { listType, getType, delType, addType, updateType, exportType, refreshCache } from "@/api/system/dict/type"; |
| 197 | -// 字典标签组件(使用频繁可在全局挂载) | ||
| 198 | -import DictTag from '@/components/DictTag' | ||
| 199 | 197 | ||
| 200 | export default { | 198 | export default { |
| 201 | name: "Dict", | 199 | name: "Dict", |
| 202 | - components: { | ||
| 203 | - DictTag | ||
| 204 | - }, | ||
| 205 | data() { | 200 | data() { |
| 206 | return { | 201 | return { |
| 207 | // 遮罩层 | 202 | // 遮罩层 |
-
请 注册 或 登录 后发表评论