From a422300cc173ed7553bba188652bb353a92badc4 Mon Sep 17 00:00:00 2001 From: Siyu Kong Date: Thu, 23 Mar 2023 10:45:40 +0800 Subject: [PATCH 01/29] =?UTF-8?q?chore:=20=E8=BF=87=E6=BB=A4ide=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 0b05e6a6..3efc9c52 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ dist-ssr /dist* *-lock.* pnpm-debug + +.idea +.history \ No newline at end of file From ca4bdb4639eccc7b1b01fc6c44cc42659bc01047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=92=B1=E5=93=A5=E4=B8=B6?= <385454831@qq.com> Date: Sat, 25 Mar 2023 11:33:40 +0800 Subject: [PATCH 02/29] =?UTF-8?q?=E9=87=8D=E6=9E=84VUE3=E3=80=90=E7=AB=99?= =?UTF-8?q?=E5=86=85=E4=BF=A1=E6=B6=88=E6=81=AF=E8=AE=B0=E5=BD=95=E3=80=91?= =?UTF-8?q?=EF=BC=9A1=E3=80=81=E8=A1=A8=E6=A0=BC=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=87=AA=E9=80=82=E5=BA=94=E9=AB=98=E5=BA=A6=EF=BC=88=E7=AE=80?= =?UTF-8?q?=E5=8D=95=E5=AE=9E=E7=8E=B0=EF=BC=892=E3=80=81=E6=88=91?= =?UTF-8?q?=E7=9A=84=E7=AB=99=E5=86=85=E4=BF=A1=E6=AF=8F=E6=9D=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=E5=88=86=E4=B8=BA=E6=9F=A5=E9=98=85=EF=BC=88=E6=9C=AA?= =?UTF-8?q?=E8=AF=BB=E7=8A=B6=E6=80=81=EF=BC=89=E5=92=8C=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=88=E5=B7=B2=E8=AF=BB=E7=8A=B6=E6=80=81=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/notify/message/detail.vue | 64 +++++ src/views/system/notify/message/index.vue | 258 +++++++++++++---- .../system/notify/message/message.data.ts | 101 ------- src/views/system/notify/my/detail.vue | 46 ++++ src/views/system/notify/my/index.vue | 260 +++++++++++++++--- src/views/system/notify/my/my.data.ts | 58 ---- 6 files changed, 540 insertions(+), 247 deletions(-) create mode 100644 src/views/system/notify/message/detail.vue delete mode 100644 src/views/system/notify/message/message.data.ts create mode 100644 src/views/system/notify/my/detail.vue delete mode 100644 src/views/system/notify/my/my.data.ts diff --git a/src/views/system/notify/message/detail.vue b/src/views/system/notify/message/detail.vue new file mode 100644 index 00000000..0b146113 --- /dev/null +++ b/src/views/system/notify/message/detail.vue @@ -0,0 +1,64 @@ + + diff --git a/src/views/system/notify/message/index.vue b/src/views/system/notify/message/index.vue index 93a8ed68..06f98c62 100644 --- a/src/views/system/notify/message/index.vue +++ b/src/views/system/notify/message/index.vue @@ -1,67 +1,217 @@ diff --git a/src/views/system/notify/message/message.data.ts b/src/views/system/notify/message/message.data.ts deleted file mode 100644 index 665311d2..00000000 --- a/src/views/system/notify/message/message.data.ts +++ /dev/null @@ -1,101 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', // 默认的主键ID - primaryTitle: '编号', // 默认显示的值 - primaryType: 'id', // 默认为seq,序号模式 - action: true, - actionWidth: '200', // 3个按钮默认200,如有删减对应增减即可 - columns: [ - { - title: '用户编号', - field: 'userId', - isSearch: true - }, - { - title: '用户类型', - field: 'userType', - dictType: DICT_TYPE.USER_TYPE, - dictClass: 'string', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '模版编号', - field: 'templateId' - }, - { - title: '模板编码', - field: 'templateCode', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '发送人名称', - field: 'templateNickname', - table: { - width: 120 - } - }, - { - title: '模版内容', - field: 'templateContent', - table: { - width: 200 - } - }, - { - title: '模版类型', - field: 'templateType', - dictType: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE, - dictClass: 'number', - isSearch: true, - table: { - width: 80 - } - }, - { - title: '模版参数', - field: 'templateParams', - isTable: false - }, - { - title: '是否已读', - field: 'readStatus', - dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, - dictClass: 'boolean', - table: { - width: 80 - } - }, - { - title: '阅读时间', - field: 'readTime', - formatter: 'formatDate', - table: { - width: 180 - } - }, - { - title: '创建时间', - field: 'createTime', - isForm: false, - formatter: 'formatDate', - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - }, - table: { - width: 180 - } - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/system/notify/my/detail.vue b/src/views/system/notify/my/detail.vue new file mode 100644 index 00000000..ea9ae961 --- /dev/null +++ b/src/views/system/notify/my/detail.vue @@ -0,0 +1,46 @@ + + diff --git a/src/views/system/notify/my/index.vue b/src/views/system/notify/my/index.vue index 9f3e9b10..d889e184 100644 --- a/src/views/system/notify/my/index.vue +++ b/src/views/system/notify/my/index.vue @@ -1,58 +1,250 @@ + diff --git a/src/views/system/notify/my/my.data.ts b/src/views/system/notify/my/my.data.ts deleted file mode 100644 index 103ed8ef..00000000 --- a/src/views/system/notify/my/my.data.ts +++ /dev/null @@ -1,58 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', - primaryTitle: ' ', - primaryType: 'checkbox', - action: true, - actionWidth: '200', // 3个按钮默认200,如有删减对应增减即可 - columns: [ - { - title: '发送人名称', - field: 'templateNickname', - table: { - width: 120 - } - }, - { - title: '发送时间', - field: 'createTime', - isForm: false, - formatter: 'formatDate', - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - }, - table: { - width: 180 - } - }, - { - title: '类型', - field: 'templateType', - dictType: DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE, - dictClass: 'number', - table: { - width: 80 - } - }, - { - title: '内容', - field: 'templateContent' - }, - { - title: '是否已读', - field: 'readStatus', - dictType: DICT_TYPE.INFRA_BOOLEAN_STRING, - dictClass: 'boolean', - table: { - width: 80 - }, - isSearch: true - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) From 6c12505771580d5c912dc5ce6a7da11f3f3fbd65 Mon Sep 17 00:00:00 2001 From: gexinzhineng/gxzn27 <1348660141@qq.com> Date: Sat, 25 Mar 2023 15:31:29 +0800 Subject: [PATCH 03/29] =?UTF-8?q?=E5=8A=A8=E6=80=81=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E9=80=89=E6=8B=A9select=E5=87=BA=E9=94=99bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/formCreate/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/formCreate/index.ts b/src/plugins/formCreate/index.ts index 69816d8a..0d72048e 100644 --- a/src/plugins/formCreate/index.ts +++ b/src/plugins/formCreate/index.ts @@ -10,6 +10,8 @@ import { ElTransfer, ElAlert, ElTabs, + ElTable, + ElTableColumn, ElTabPane } from 'element-plus' @@ -27,6 +29,8 @@ const components = [ ElTransfer, ElAlert, ElTabs, + ElTable, + ElTableColumn, ElTabPane ] From ed5990f22921e06abbe3e146f4566becdb9e663d Mon Sep 17 00:00:00 2001 From: wuxiran Date: Mon, 27 Mar 2023 03:18:25 +0800 Subject: [PATCH 04/29] =?UTF-8?q?1=E3=80=81=E5=BE=AE=E4=BF=A1=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=96=B0vue3.=E8=A6=96=E9=A0=BB=E7=B5=84?= =?UTF-8?q?=E4=BB=B6=E6=9B=B4=E6=96=B0=E4=BD=BF=E7=94=A8video.js=206.0.0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E3=80=82=202=E3=80=81=E7=9B=AE=E5=89=8Dmp?= =?UTF-8?q?=E4=B8=AD=E8=A6=96=E9=A0=BB=E7=B5=84=E4=BB=B6=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E7=B0=A1=E5=96=AE=E7=9A=84=E4=BD=BF=E7=94=A8=E4=BA=86=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 + src/views/mp/components/wx-reply/main.vue | 1246 ++++++++--------- .../mp/components/wx-video-play/main.vue | 142 +- .../mp/components/wx-voice-play/main.vue | 1 + src/views/mp/freePublish/index.vue | 21 +- src/views/mp/message/index.vue | 12 +- src/views/mp/tag/index.vue | 17 +- 7 files changed, 719 insertions(+), 722 deletions(-) diff --git a/package.json b/package.json index 8f1d24e7..683d09eb 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@form-create/designer": "^3.1.0", "@form-create/element-ui": "^3.1.17", "@iconify/iconify": "^3.1.0", + "@videojs-player/vue": "^1.0.0", "@vueuse/core": "^9.13.0", "@wangeditor/editor": "^5.1.23", "@wangeditor/editor-for-vue": "^5.1.10", @@ -58,6 +59,7 @@ "qs": "^6.11.1", "steady-xml": "^0.1.0", "url": "^0.11.0", + "video.js": "^8.0.4", "vue": "3.2.47", "vue-i18n": "9.2.2", "vue-router": "^4.1.6", diff --git a/src/views/mp/components/wx-reply/main.vue b/src/views/mp/components/wx-reply/main.vue index 57a3cd84..a151b252 100644 --- a/src/views/mp/components/wx-reply/main.vue +++ b/src/views/mp/components/wx-reply/main.vue @@ -1,634 +1,634 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - +--> + // 创建 tempObjItem 对象,并设置对应的值 + let tempObjItem = {} + tempObjItem.type = this.objData.type + if (this.objData.type === 'news') { + tempObjItem.articles = item.content.newsItem + this.objData.articles = item.content.newsItem + } else if (this.objData.type === 'music') { + // 音乐需要特殊处理,因为选择的是图片的缩略图 + tempObjItem.thumbMediaId = item.mediaId + this.objData.thumbMediaId = item.mediaId + tempObjItem.thumbMediaUrl = item.url + this.objData.thumbMediaUrl = item.url + // title、introduction、musicUrl、hqMusicUrl:从 objData 到 tempObjItem,避免上传素材后,被覆盖掉 + tempObjItem.title = this.objData.title || '' + tempObjItem.introduction = this.objData.introduction || '' + tempObjItem.musicUrl = this.objData.musicUrl || '' + tempObjItem.hqMusicUrl = this.objData.hqMusicUrl || '' + } else if (this.objData.type === 'image' || this.objData.type === 'voice') { + tempObjItem.mediaId = item.mediaId + this.objData.mediaId = item.mediaId + tempObjItem.url = item.url + this.objData.url = item.url + tempObjItem.name = item.name + this.objData.name = item.name + } else if (this.objData.type === 'video') { + tempObjItem.mediaId = item.mediaId + this.objData.mediaId = item.mediaId + tempObjItem.url = item.url + this.objData.url = item.url + tempObjItem.name = item.name + this.objData.name = item.name + // title、introduction:从 item 到 tempObjItem,因为素材里有 title、introduction + if (item.title) { + this.objData.title = item.title || '' + tempObjItem.title = item.title || '' + } + if (item.introduction) { + this.objData.description = item.introduction || '' // 消息使用的是 description,素材使用的是 introduction,所以转换下 + tempObjItem.description = item.introduction || '' + } + } else if (this.objData.type === 'text') { + this.objData.content = item.content || '' + } + // 最终设置到临时缓存 + this.tempObj.set(this.objData.type, tempObjItem) + }, + openMaterial() { + if (this.objData.type === 'news') { + this.dialogNewsVisible = true + } else if (this.objData.type === 'image') { + this.dialogImageVisible = true + } else if (this.objData.type === 'voice') { + this.dialogVoiceVisible = true + } else if (this.objData.type === 'video') { + this.dialogVideoVisible = true + } else if (this.objData.type === 'music') { + this.dialogThumbVisible = true + } + }, + closeMaterial() { + this.dialogNewsVisible = false + this.dialogImageVisible = false + this.dialogVoiceVisible = false + this.dialogVideoVisible = false + this.dialogThumbVisible = false + }, + deleteObj() { + if (this.objData.type === 'news') { + this.$delete(this.objData, 'articles') + } else if (this.objData.type === 'image') { + this.objData.mediaId = null + this.$delete(this.objData, 'url') + this.objData.name = null + } else if (this.objData.type === 'voice') { + this.objData.mediaId = null + this.$delete(this.objData, 'url') + this.objData.name = null + } else if (this.objData.type === 'video') { + this.objData.mediaId = null + this.$delete(this.objData, 'url') + this.objData.name = null + this.objData.title = null + this.objData.description = null + } else if (this.objData.type === 'music') { + this.objData.thumbMediaId = null + this.objData.thumbMediaUrl = null + this.objData.title = null + this.objData.description = null + this.objData.musicUrl = null + this.objData.hqMusicUrl = null + } else if (this.objData.type === 'text') { + this.objData.content = null + } + // 覆盖缓存 + this.tempObj.set(this.objData.type, Object.assign({}, this.objData)) + }, + /** + * 输入时,缓存每次 objData 到 tempObj 中 + * + * why?不确定为什么 v-model="objData.content" 不能自动缓存,所以通过这样的方式 + */ + inputContent(str) { + // 覆盖缓存 + this.tempObj.set(this.objData.type, Object.assign({}, this.objData)) + } + } +} + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/src/views/mp/components/wx-video-play/main.vue b/src/views/mp/components/wx-video-play/main.vue index 880d10f8..7679a70a 100644 --- a/src/views/mp/components/wx-video-play/main.vue +++ b/src/views/mp/components/wx-video-play/main.vue @@ -8,110 +8,84 @@ 存在的问题:mediaId 有效期是 3 天,超过时间后无法播放 2)重构后的做法:后端接收到微信公众号的视频消息后,将视频消息的 media_id 的文件内容保存到文件服务器中,这样前端可以直接使用 URL 播放。 ② 体验优化:弹窗关闭后,自动暂停视频的播放 + --> - diff --git a/src/views/mp/components/wx-voice-play/main.vue b/src/views/mp/components/wx-voice-play/main.vue index 3260fc05..9ec8e2e9 100644 --- a/src/views/mp/components/wx-voice-play/main.vue +++ b/src/views/mp/components/wx-voice-play/main.vue @@ -25,6 +25,7 @@ diff --git a/src/views/infra/job/JobLogView.vue b/src/views/infra/job/JobLogView.vue new file mode 100644 index 00000000..c66e0d80 --- /dev/null +++ b/src/views/infra/job/JobLogView.vue @@ -0,0 +1,74 @@ + + diff --git a/src/views/infra/job/form.vue b/src/views/infra/job/form.vue new file mode 100644 index 00000000..24488fd7 --- /dev/null +++ b/src/views/infra/job/form.vue @@ -0,0 +1,172 @@ + + diff --git a/src/views/infra/job/index.vue b/src/views/infra/job/index.vue index 613f84c4..702b31fe 100644 --- a/src/views/infra/job/index.vue +++ b/src/views/infra/job/index.vue @@ -1,243 +1,175 @@ + diff --git a/src/views/infra/job/job.data.ts b/src/views/infra/job/job.data.ts deleted file mode 100644 index 38761cd7..00000000 --- a/src/views/infra/job/job.data.ts +++ /dev/null @@ -1,69 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' -const { t } = useI18n() // 国际化 -// 表单校验 -export const rules = reactive({ - name: [required], - handlerName: [required], - cronExpression: [required], - retryCount: [required], - retryInterval: [required] -}) -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', - primaryType: 'id', - primaryTitle: '任务编号', - action: true, - actionWidth: '280px', - columns: [ - { - title: '任务名称', - field: 'name', - isSearch: true - }, - { - title: t('common.status'), - field: 'status', - dictType: DICT_TYPE.INFRA_JOB_STATUS, - dictClass: 'number', - isForm: false, - isSearch: true - }, - { - title: '处理器的名字', - field: 'handlerName', - isSearch: true - }, - { - title: '处理器的参数', - field: 'handlerParam', - isTable: false - }, - { - title: 'CRON 表达式', - field: 'cronExpression' - }, - { - title: '后续执行时间', - field: 'nextTimes', - isTable: false, - isForm: false - }, - { - title: '重试次数', - field: 'retryCount', - isTable: false - }, - { - title: '重试间隔', - field: 'retryInterval', - isTable: false - }, - { - title: '监控超时时间', - field: 'monitorTimeout', - isTable: false - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/infra/job/jobLog.data.ts b/src/views/infra/job/jobLog.data.ts deleted file mode 100644 index ccca3d08..00000000 --- a/src/views/infra/job/jobLog.data.ts +++ /dev/null @@ -1,75 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' -// 国际化 -const { t } = useI18n() -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', - primaryType: 'id', - primaryTitle: '日志编号', - action: true, - columns: [ - { - title: '任务编号', - field: 'jobId', - isSearch: true - }, - { - title: '处理器的名字', - field: 'handlerName', - isSearch: true - }, - { - title: '处理器的参数', - field: 'handlerParam' - }, - { - title: '第几次执行', - field: 'executeIndex' - }, - { - title: '开始执行时间', - field: 'beginTime', - formatter: 'formatDate', - table: { - slots: { - default: 'beginTime_default' - } - }, - search: { - show: true, - itemRender: { - name: 'XDataPicker' - } - } - }, - { - title: '结束执行时间', - field: 'endTime', - formatter: 'formatDate', - isTable: false, - search: { - show: true, - itemRender: { - name: 'XDataPicker' - } - } - }, - { - title: '执行时长', - field: 'duration', - table: { - slots: { - default: 'duration_default' - } - } - }, - { - title: t('common.status'), - field: 'status', - dictType: DICT_TYPE.INFRA_JOB_LOG_STATUS, - dictClass: 'number', - isSearch: true - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/infra/job/utils.ts b/src/views/infra/job/utils.ts new file mode 100644 index 00000000..a3774f22 --- /dev/null +++ b/src/views/infra/job/utils.ts @@ -0,0 +1,44 @@ +export const parseTime = (time) => { + if (!time) { + return null + } + const format = '{y}-{m}-{d} {h}:{i}:{s}' + let date + if (typeof time === 'object') { + date = time + } else { + if (typeof time === 'string' && /^[0-9]+$/.test(time)) { + time = parseInt(time) + } else if (typeof time === 'string') { + time = time + .replace(new RegExp(/-/gm), '/') + .replace('T', ' ') + .replace(new RegExp(/\.[\d]{3}/gm), '') + } + if (typeof time === 'number' && time.toString().length === 10) { + time = time * 1000 + } + date = new Date(time) + } + const formatObj = { + y: date.getFullYear(), + m: date.getMonth() + 1, + d: date.getDate(), + h: date.getHours(), + i: date.getMinutes(), + s: date.getSeconds(), + a: date.getDay() + } + const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => { + let value = formatObj[key] + // Note: getDay() returns 0 on Sunday + if (key === 'a') { + return ['日', '一', '二', '三', '四', '五', '六'][value] + } + if (result.length > 0 && value < 10) { + value = '0' + value + } + return value || 0 + }) + return time_str +} diff --git a/src/views/infra/job/view.vue b/src/views/infra/job/view.vue new file mode 100644 index 00000000..d195e0e3 --- /dev/null +++ b/src/views/infra/job/view.vue @@ -0,0 +1,89 @@ + + From f33935868db6ce4afda865aa712fcc595e53c00d Mon Sep 17 00:00:00 2001 From: dlarmor <121919810@qq.com> Date: Mon, 27 Mar 2023 14:06:30 +0800 Subject: [PATCH 06/29] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A?= =?UTF-8?q?=E5=9F=BA=E7=A1=80=E8=AE=BE=E6=96=BD=20->=20=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/codegen/index.ts | 22 +- src/api/infra/codegen/types.ts | 2 +- src/locales/zh-CN.ts | 3 +- src/views/infra/codegen/EditTable.vue | 95 +++-- .../codegen/components/BasicInfoForm.vue | 220 +++------- .../codegen/components/CloumInfoForm.vue | 137 ------- .../codegen/components/ColumInfoForm.vue | 157 ++++++++ .../codegen/components/GenerateInfoForm.vue | 379 ++++++++++++++++++ .../infra/codegen/components/ImportTable.vue | 110 ++--- .../infra/codegen/components/Preview.vue | 65 +-- src/views/infra/codegen/components/index.ts | 5 +- src/views/infra/codegen/index.vue | 261 +++++++++--- 12 files changed, 966 insertions(+), 490 deletions(-) delete mode 100644 src/views/infra/codegen/components/CloumInfoForm.vue create mode 100644 src/views/infra/codegen/components/ColumInfoForm.vue create mode 100644 src/views/infra/codegen/components/GenerateInfoForm.vue diff --git a/src/api/infra/codegen/index.ts b/src/api/infra/codegen/index.ts index 54f00ff0..993bd552 100644 --- a/src/api/infra/codegen/index.ts +++ b/src/api/infra/codegen/index.ts @@ -2,56 +2,56 @@ import request from '@/config/axios' import type { CodegenUpdateReqVO, CodegenCreateListReqVO } from './types' // 查询列表代码生成表定义 -export const getCodegenTablePageApi = (params) => { +export const getCodegenTablePage = (params) => { return request.get({ url: '/infra/codegen/table/page', params }) } // 查询详情代码生成表定义 -export const getCodegenTableApi = (id: number) => { +export const getCodegenTable = (id: number) => { return request.get({ url: '/infra/codegen/detail?tableId=' + id }) } // 新增代码生成表定义 -export const createCodegenTableApi = (data: CodegenCreateListReqVO) => { +export const createCodegenTable = (data: CodegenCreateListReqVO) => { return request.post({ url: '/infra/codegen/create', data }) } // 修改代码生成表定义 -export const updateCodegenTableApi = (data: CodegenUpdateReqVO) => { +export const updateCodegenTable = (data: CodegenUpdateReqVO) => { return request.put({ url: '/infra/codegen/update', data }) } // 基于数据库的表结构,同步数据库的表和字段定义 -export const syncCodegenFromDBApi = (id: number) => { +export const syncCodegenFromDB = (id: number) => { return request.put({ url: '/infra/codegen/sync-from-db?tableId=' + id }) } // 基于 SQL 建表语句,同步数据库的表和字段定义 -export const syncCodegenFromSQLApi = (id: number, sql: string) => { +export const syncCodegenFromSQL = (id: number, sql: string) => { return request.put({ url: '/infra/codegen/sync-from-sql?tableId=' + id + '&sql=' + sql }) } // 预览生成代码 -export const previewCodegenApi = (id: number) => { +export const previewCodegen = (id: number) => { return request.get({ url: '/infra/codegen/preview?tableId=' + id }) } // 下载生成代码 -export const downloadCodegenApi = (id: number) => { +export const downloadCodegen = (id: number) => { return request.download({ url: '/infra/codegen/download?tableId=' + id }) } // 获得表定义 -export const getSchemaTableListApi = (params) => { +export const getSchemaTableList = (params) => { return request.get({ url: '/infra/codegen/db/table/list', params }) } // 基于数据库的表结构,创建代码生成器的表定义 -export const createCodegenListApi = (data) => { +export const createCodegenList = (data) => { return request.post({ url: '/infra/codegen/create-list', data }) } // 删除代码生成表定义 -export const deleteCodegenTableApi = (id: number) => { +export const deleteCodegenTable = (id: number) => { return request.delete({ url: '/infra/codegen/delete?tableId=' + id }) } diff --git a/src/api/infra/codegen/types.ts b/src/api/infra/codegen/types.ts index be6a66ed..e4e78843 100644 --- a/src/api/infra/codegen/types.ts +++ b/src/api/infra/codegen/types.ts @@ -52,7 +52,7 @@ export type CodegenPreviewVO = { code: string } export type CodegenUpdateReqVO = { - table: CodegenTableVO + table: CodegenTableVO | any columns: CodegenColumnVO[] } export type CodegenCreateListReqVO = { diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index 6f46f1ab..ea1392c4 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -298,7 +298,8 @@ export default { typeUpdate: '字典类型编辑', dataCreate: '字典数据新增', dataUpdate: '字典数据编辑', - fileUpload: '上传文件' + fileUpload: '上传文件', + back: '返回' }, dialog: { dialog: '弹窗', diff --git a/src/views/infra/codegen/EditTable.vue b/src/views/infra/codegen/EditTable.vue index 820d23ca..34ba3bd6 100644 --- a/src/views/infra/codegen/EditTable.vue +++ b/src/views/infra/codegen/EditTable.vue @@ -1,67 +1,74 @@ diff --git a/src/views/infra/codegen/components/BasicInfoForm.vue b/src/views/infra/codegen/components/BasicInfoForm.vue index 2009553f..21b280ee 100644 --- a/src/views/infra/codegen/components/BasicInfoForm.vue +++ b/src/views/infra/codegen/components/BasicInfoForm.vue @@ -1,183 +1,93 @@ diff --git a/src/views/infra/codegen/components/CloumInfoForm.vue b/src/views/infra/codegen/components/CloumInfoForm.vue deleted file mode 100644 index 5a60c546..00000000 --- a/src/views/infra/codegen/components/CloumInfoForm.vue +++ /dev/null @@ -1,137 +0,0 @@ - - diff --git a/src/views/infra/codegen/components/ColumInfoForm.vue b/src/views/infra/codegen/components/ColumInfoForm.vue new file mode 100644 index 00000000..33d29978 --- /dev/null +++ b/src/views/infra/codegen/components/ColumInfoForm.vue @@ -0,0 +1,157 @@ + + diff --git a/src/views/infra/codegen/components/GenerateInfoForm.vue b/src/views/infra/codegen/components/GenerateInfoForm.vue new file mode 100644 index 00000000..9a64c800 --- /dev/null +++ b/src/views/infra/codegen/components/GenerateInfoForm.vue @@ -0,0 +1,379 @@ + + diff --git a/src/views/infra/codegen/components/ImportTable.vue b/src/views/infra/codegen/components/ImportTable.vue index 38a81541..7eebbe65 100644 --- a/src/views/infra/codegen/components/ImportTable.vue +++ b/src/views/infra/codegen/components/ImportTable.vue @@ -1,9 +1,8 @@ + diff --git a/src/views/infra/codegen/components/index.ts b/src/views/infra/codegen/components/index.ts index b84c5a03..71d0587f 100644 --- a/src/views/infra/codegen/components/index.ts +++ b/src/views/infra/codegen/components/index.ts @@ -1,5 +1,6 @@ import BasicInfoForm from './BasicInfoForm.vue' -import CloumInfoForm from './CloumInfoForm.vue' +import ColumInfoForm from './ColumInfoForm.vue' +import GenerateInfoForm from './GenerateInfoForm.vue' import ImportTable from './ImportTable.vue' import Preview from './Preview.vue' -export { BasicInfoForm, CloumInfoForm, ImportTable, Preview } +export { BasicInfoForm, ColumInfoForm, GenerateInfoForm, ImportTable, Preview } diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 8337d2d4..591f99d3 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -1,56 +1,124 @@ + + diff --git a/src/views/mp/components/wx-msg/main.vue b/src/views/mp/components/wx-msg/main.vue index b514a73e..215b4f97 100644 --- a/src/views/mp/components/wx-msg/main.vue +++ b/src/views/mp/components/wx-msg/main.vue @@ -6,7 +6,7 @@ ② 代码优化,补充注释,提升阅读性 --> - diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index e811475f..1651f97a 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -127,21 +127,13 @@ - - - - + @@ -149,16 +141,15 @@ - From 7587acedb0e7ccbc3993acaf694b50f69a66b66f Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 28 Mar 2023 07:45:18 +0800 Subject: [PATCH 13/29] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=AE=9E=E4=BE=8B=E7=9A=84=E8=AF=A6=E6=83=85?= =?UTF-8?q?=EF=BC=88=E6=B5=81=E7=A8=8B=E4=BB=BB=E5=8A=A1=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bpm/processInstance/detail/index.vue | 184 +++++++++--------- 1 file changed, 95 insertions(+), 89 deletions(-) diff --git a/src/views/bpm/processInstance/detail/index.vue b/src/views/bpm/processInstance/detail/index.vue index 54296389..3a48b3b3 100644 --- a/src/views/bpm/processInstance/detail/index.vue +++ b/src/views/bpm/processInstance/detail/index.vue @@ -97,9 +97,9 @@ From ddd6bbbee1718a12b1af0b32dc4ac088e90d4e26 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Tue, 28 Mar 2023 07:51:46 +0800 Subject: [PATCH 14/29] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A?= =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=AE=9E=E4=BE=8B=E7=9A=84=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E7=9A=84=E7=9B=AE=E5=BD=95=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{create.vue => create/index.vue} | 34 +++---------------- .../{ => create}/process.create.ts | 0 .../detail/ProcessInstanceBpmnViewer.vue | 8 +++-- 3 files changed, 9 insertions(+), 33 deletions(-) rename src/views/bpm/processInstance/{create.vue => create/index.vue} (84%) rename src/views/bpm/processInstance/{ => create}/process.create.ts (100%) diff --git a/src/views/bpm/processInstance/create.vue b/src/views/bpm/processInstance/create/index.vue similarity index 84% rename from src/views/bpm/processInstance/create.vue rename to src/views/bpm/processInstance/create/index.vue index b6fc0f49..023788c3 100644 --- a/src/views/bpm/processInstance/create.vue +++ b/src/views/bpm/processInstance/create/index.vue @@ -37,31 +37,20 @@ /> - -
- 流程图 -
- - -
+ + - - diff --git a/src/views/bpm/processInstance/process.create.ts b/src/views/bpm/processInstance/create/process.create.ts similarity index 100% rename from src/views/bpm/processInstance/process.create.ts rename to src/views/bpm/processInstance/create/process.create.ts diff --git a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue index a06ac368..3a3e244b 100644 --- a/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue +++ b/src/views/bpm/processInstance/detail/ProcessInstanceBpmnViewer.vue @@ -40,9 +40,11 @@ const activityList = ref([]) // 任务列表 /** 初始化 */ onMounted(async () => { - activityList.value = await ActivityApi.getActivityList({ - processInstanceId: props.id - }) + if (props.id) { + activityList.value = await ActivityApi.getActivityList({ + processInstanceId: props.id + }) + } }) diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index ce034c4e..641f8bd4 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -269,6 +269,7 @@ import type { ElTree } from 'element-plus' import { handleTree, defaultProps } from '@/utils/tree' // 原vue3版本api方法都是Api结尾觉得见名知义,个人觉得这个可以形成规范 +// TODO 使用 DeptApi 这种形式哈 import { getSimpleDeptList as getSimpleDeptListApi } from '@/api/system/dept' import { getSimplePostList as getSimplePostListApi, PostVO } from '@/api/system/post' import { DICT_TYPE, getDictOptions } from '@/utils/dict' @@ -279,16 +280,15 @@ import { updateUserStatusApi, UserVO } from '@/api/system/user' -import { parseTime } from './utils' -import AddForm from './AddForm.vue' -import ImportForm from './ImportForm.vue' -import RoleForm from './RoleForm.vue' +import { parseTime } from './utils' // TODO 可以使用 formatTime 里的方法 +import AddForm from './AddForm.vue' // TODO 改成 UserForm +import ImportForm from './ImportForm.vue' // TODO 改成 UserImportForm +import RoleForm from './RoleForm.vue' // TODO 改成 UserAssignRoleForm import { getUserApi, getUserPageApi } from '@/api/system/user' import { getSimpleRoleList as getSimpleRoleListApi } from '@/api/system/role' import { listUserRolesApi } from '@/api/system/permission' import { CommonStatusEnum } from '@/utils/constants' import download from '@/utils/download' - const message = useMessage() // 消息弹窗 const { t } = useI18n() // 国际化 @@ -304,10 +304,11 @@ const queryParams = reactive({ const showSearch = ref(true) const showAddDialog = ref(false) -// 数据字典- +// 数据字典- // TODO 可以直接 vue 那 getIntDictOptions,这样一方面少个变量,也可以 getIntDictOptions const statusDictDatas = getDictOptions(DICT_TYPE.COMMON_STATUS) // ========== 创建部门树结构 ========== +// TODO 要不把部门树拆成一个左侧的组件,然后点击后触发 handleDeptNodeClick const deptName = ref('') watch( () => deptName.value, @@ -375,6 +376,7 @@ const resetQuery = () => { // 添加或编辑 const addEditFormRef = ref() // 添加用户 +// TODO 可以参考别的模块哈,openForm;然后 tree 和 position 可以里面在加载下,让组件自己维护自己哈。 const handleAdd = () => { addEditFormRef?.value.resetForm() // 获得下拉数据 @@ -389,6 +391,7 @@ const handleImport = () => { } // 用户导出 +// TODO 改成 await 的风格; const exportLoading = ref(false) const handleExport = () => { message @@ -432,6 +435,7 @@ const handleCommand = (command: string, index: number, row: UserVO) => { } // 用户状态修改 +// TODO 改成 await 的风格; const handleStatusChange = (row: UserVO) => { let text = row.status === CommonStatusEnum.ENABLE ? '启用' : '停用' message @@ -466,6 +470,7 @@ const handleUpdate = (row: UserVO) => { } // 删除用户 +// TODO 改成 await 的风格; const handleDelete = (row: UserVO) => { const ids = row.id message @@ -481,6 +486,7 @@ const handleDelete = (row: UserVO) => { } // 重置密码 +// TODO 改成 await 的风格; const handleResetPwd = (row: UserVO) => { message.prompt('请输入"' + row.username + '"的新密码', t('common.reminder')).then(({ value }) => { resetUserPwdApi(row.id, value) From 17ef65df06ee091554a502c33f4e2069216b67d7 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 29 Mar 2023 00:01:39 +0800 Subject: [PATCH 26/29] =?UTF-8?q?=E5=90=8C=E6=AD=A5=20master=20=E6=9C=80?= =?UTF-8?q?=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/axios/request.ts | 50 ------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 src/config/axios/request.ts diff --git a/src/config/axios/request.ts b/src/config/axios/request.ts deleted file mode 100644 index d65842c2..00000000 --- a/src/config/axios/request.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { service } from './service' - -import { config } from './config' - -const { default_headers } = config - -const request = (option: any) => { - const { url, method, params, data, headersType, responseType } = option - return service({ - url: url, - method, - params, - data, - responseType: responseType, - headers: { - 'Content-Type': headersType || default_headers - } - }) -} -export default { - get: async (option: any) => { - const res = await request({ method: 'GET', ...option }) - return res as unknown as T - }, - post: async (option: any) => { - const res = await request({ method: 'POST', ...option }) - return res as unknown as T - }, - delete: async (option: any) => { - const res = await request({ method: 'DELETE', ...option }) - return res as unknown as T - }, - put: async (option: any) => { - const res = await request({ method: 'PUT', ...option }) - return res as unknown as T - }, - patch: async (option: any) => { - const res = await request({ method: 'PATCH', ...option }) - return res as unknown as T - }, - download: async (option: any) => { - const res = await request({ method: 'GET', responseType: 'blob', ...option }) - return res as unknown as Promise - }, - upload: async (option: any) => { - option.headersType = 'multipart/form-data' - const res = await request({ method: 'POST', ...option }) - return res as unknown as Promise - } -} From 76c5c7c1de79517f4585af16eb48a0f854366f77 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 29 Mar 2023 09:09:34 +0800 Subject: [PATCH 27/29] =?UTF-8?q?REVIEW=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/codegen/index.ts | 70 ++++++++++++++- src/api/infra/codegen/types.ts | 61 ------------- src/locales/zh-CN.ts | 3 +- src/views/infra/codegen/EditTable.vue | 2 +- src/views/infra/codegen/codegen.data.ts | 53 ----------- src/views/infra/codegen/index.vue | 112 ++++++++++++------------ 6 files changed, 128 insertions(+), 173 deletions(-) delete mode 100644 src/api/infra/codegen/types.ts delete mode 100644 src/views/infra/codegen/codegen.data.ts diff --git a/src/api/infra/codegen/index.ts b/src/api/infra/codegen/index.ts index 993bd552..64701efe 100644 --- a/src/api/infra/codegen/index.ts +++ b/src/api/infra/codegen/index.ts @@ -1,8 +1,74 @@ import request from '@/config/axios' -import type { CodegenUpdateReqVO, CodegenCreateListReqVO } from './types' + +export type CodegenTableVO = { + id: number + tableId: number + isParentMenuIdValid: boolean + dataSourceConfigId: number + scene: number + tableName: string + tableComment: string + remark: string + moduleName: string + businessName: string + className: string + classComment: string + author: string + createTime: Date + updateTime: Date + templateType: number + parentMenuId: number +} + +export type CodegenColumnVO = { + id: number + tableId: number + columnName: string + dataType: string + columnComment: string + nullable: number + primaryKey: number + autoIncrement: string + ordinalPosition: number + javaType: string + javaField: string + dictType: string + example: string + createOperation: number + updateOperation: number + listOperation: number + listOperationCondition: string + listOperationResult: number + htmlType: string +} + +export type DatabaseTableVO = { + name: string + comment: string +} + +export type CodegenDetailVO = { + table: CodegenTableVO + columns: CodegenColumnVO[] +} + +export type CodegenPreviewVO = { + filePath: string + code: string +} + +export type CodegenUpdateReqVO = { + table: CodegenTableVO | any + columns: CodegenColumnVO[] +} + +export type CodegenCreateListReqVO = { + dataSourceConfigId: number + tableNames: string[] +} // 查询列表代码生成表定义 -export const getCodegenTablePage = (params) => { +export const getCodegenTablePage = (params: PageParam) => { return request.get({ url: '/infra/codegen/table/page', params }) } diff --git a/src/api/infra/codegen/types.ts b/src/api/infra/codegen/types.ts deleted file mode 100644 index e4e78843..00000000 --- a/src/api/infra/codegen/types.ts +++ /dev/null @@ -1,61 +0,0 @@ -export type CodegenTableVO = { - id: number - tableId: number - isParentMenuIdValid: boolean - dataSourceConfigId: number - scene: number - tableName: string - tableComment: string - remark: string - moduleName: string - businessName: string - className: string - classComment: string - author: string - createTime: Date - updateTime: Date - templateType: number - parentMenuId: number -} - -export type CodegenColumnVO = { - id: number - tableId: number - columnName: string - dataType: string - columnComment: string - nullable: number - primaryKey: number - autoIncrement: string - ordinalPosition: number - javaType: string - javaField: string - dictType: string - example: string - createOperation: number - updateOperation: number - listOperation: number - listOperationCondition: string - listOperationResult: number - htmlType: string -} -export type DatabaseTableVO = { - name: string - comment: string -} -export type CodegenDetailVO = { - table: CodegenTableVO - columns: CodegenColumnVO[] -} -export type CodegenPreviewVO = { - filePath: string - code: string -} -export type CodegenUpdateReqVO = { - table: CodegenTableVO | any - columns: CodegenColumnVO[] -} -export type CodegenCreateListReqVO = { - dataSourceConfigId: number - tableNames: string[] -} diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts index ea1392c4..6f46f1ab 100644 --- a/src/locales/zh-CN.ts +++ b/src/locales/zh-CN.ts @@ -298,8 +298,7 @@ export default { typeUpdate: '字典类型编辑', dataCreate: '字典数据新增', dataUpdate: '字典数据编辑', - fileUpload: '上传文件', - back: '返回' + fileUpload: '上传文件' }, dialog: { dialog: '弹窗', diff --git a/src/views/infra/codegen/EditTable.vue b/src/views/infra/codegen/EditTable.vue index 34ba3bd6..79922ffc 100644 --- a/src/views/infra/codegen/EditTable.vue +++ b/src/views/infra/codegen/EditTable.vue @@ -16,7 +16,7 @@ {{ t('action.save') }} - {{ t('action.back') }} + 返回 diff --git a/src/views/infra/codegen/codegen.data.ts b/src/views/infra/codegen/codegen.data.ts deleted file mode 100644 index f3723a35..00000000 --- a/src/views/infra/codegen/codegen.data.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' -const { t } = useI18n() // 国际化 - -// 表单校验 -export const rules = reactive({ - title: [required], - type: [required], - status: [required] -}) - -// CrudSchema -const crudSchemas = reactive({ - primaryKey: 'id', - primaryType: 'seq', - action: true, - actionWidth: '400px', - columns: [ - { - title: '表名称', - field: 'tableName', - isSearch: true - }, - { - title: '表描述', - field: 'tableComment', - isSearch: true - }, - { - title: '实体', - field: 'className', - isSearch: true - }, - { - title: t('common.createTime'), - field: 'createTime', - formatter: 'formatDate', - isForm: false, - search: { - show: true, - itemRender: { - name: 'XDataTimePicker' - } - } - }, - { - title: t('common.updateTime'), - field: 'updateTime', - formatter: 'formatDate', - isForm: false - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index 591f99d3..b975779a 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -1,13 +1,20 @@ From d5f3f0add1f91982402bdf2dd6508cfc08b70123 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Wed, 29 Mar 2023 13:57:16 +0800 Subject: [PATCH 28/29] =?UTF-8?q?REVIEW=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/codegen/EditTable.vue | 56 +++++++++-------- src/views/infra/config/config.data.ts | 90 --------------------------- 2 files changed, 31 insertions(+), 115 deletions(-) delete mode 100644 src/views/infra/config/config.data.ts diff --git a/src/views/infra/codegen/EditTable.vue b/src/views/infra/codegen/EditTable.vue index 79922ffc..714b2761 100644 --- a/src/views/infra/codegen/EditTable.vue +++ b/src/views/infra/codegen/EditTable.vue @@ -1,5 +1,5 @@ diff --git a/src/views/infra/codegen/components/Preview.vue b/src/views/infra/codegen/PreviewCode.vue similarity index 100% rename from src/views/infra/codegen/components/Preview.vue rename to src/views/infra/codegen/PreviewCode.vue diff --git a/src/views/infra/codegen/components/index.ts b/src/views/infra/codegen/components/index.ts index 71d0587f..1634a76f 100644 --- a/src/views/infra/codegen/components/index.ts +++ b/src/views/infra/codegen/components/index.ts @@ -1,6 +1,4 @@ import BasicInfoForm from './BasicInfoForm.vue' import ColumInfoForm from './ColumInfoForm.vue' import GenerateInfoForm from './GenerateInfoForm.vue' -import ImportTable from './ImportTable.vue' -import Preview from './Preview.vue' -export { BasicInfoForm, ColumInfoForm, GenerateInfoForm, ImportTable, Preview } +export { BasicInfoForm, ColumInfoForm, GenerateInfoForm } diff --git a/src/views/infra/codegen/index.vue b/src/views/infra/codegen/index.vue index b975779a..64a270e5 100644 --- a/src/views/infra/codegen/index.vue +++ b/src/views/infra/codegen/index.vue @@ -135,16 +135,17 @@ - + - +