From 803248ca22b55a1e18dea657e406e2468947ca2a Mon Sep 17 00:00:00 2001 From: g7hoo Date: Thu, 1 Sep 2022 10:11:00 +0800 Subject: [PATCH] add icons dialog --- TODO.md | 5 +- src/views/modules/monitoring/icons-dialog.vue | 594 ++++++++++++++++++ src/views/modules/sys/dict-type.vue | 20 +- 3 files changed, 616 insertions(+), 3 deletions(-) create mode 100644 src/views/modules/monitoring/icons-dialog.vue diff --git a/TODO.md b/TODO.md index d17c7cb..ff9b76b 100644 --- a/TODO.md +++ b/TODO.md @@ -2,5 +2,6 @@ 1. 按钮加权限 2. 国际化 -3. 表格高度 -4. 表格时间格式修改 √ \ No newline at end of file +3. 表格高度 √ +4. 表格时间格式修改 √ +5. icon列表 √ \ No newline at end of file diff --git a/src/views/modules/monitoring/icons-dialog.vue b/src/views/modules/monitoring/icons-dialog.vue new file mode 100644 index 0000000..1aba2bb --- /dev/null +++ b/src/views/modules/monitoring/icons-dialog.vue @@ -0,0 +1,594 @@ + + + + + diff --git a/src/views/modules/sys/dict-type.vue b/src/views/modules/sys/dict-type.vue index c6e67f7..3213955 100644 --- a/src/views/modules/sys/dict-type.vue +++ b/src/views/modules/sys/dict-type.vue @@ -17,6 +17,9 @@ {{ $t('deleteBatch') }} + + 所有图标 + @@ -48,6 +51,8 @@ + + @@ -56,6 +61,7 @@ import mixinViewModule from '@/mixins/view-module' import AddOrUpdate from './dict-type-add-or-update' import { addDynamicRoute } from '@/router' +import IconsDialog from '@/views/modules/monitoring/icons-dialog.vue' export default { mixins: [mixinViewModule], data() { @@ -66,6 +72,7 @@ export default { deleteURL: '/sys/dict/type', deleteIsBatch: true }, + displayIcon: false, dataForm: { id: '0', dictName: '', @@ -74,9 +81,20 @@ export default { } }, components: { - AddOrUpdate + AddOrUpdate, + IconsDialog }, methods: { + // + showIcons() { + this.displayIcon = true + this.$nextTick(() => { + this.$refs.iconRef.init() + }) + }, + handleDestory() { + this.displayIcon = false + }, // 子级 childHandle(row) { // 路由参数