From c4fb53431f2ea25fc3336cde5c64e238171e30bb Mon Sep 17 00:00:00 2001 From: mqh <1571896045@qq.com> Date: Thu, 20 Jul 2023 14:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=AF=BC=E5=85=A5=E5=AE=9E?= =?UTF-8?q?=E4=BD=93=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modulex/ModulexList.vue | 89 +- .../views/modulex/modules/ModulexImport.vue | 99 +-- .../tablex/controller/TablexController.java | 795 +++++++++--------- 3 files changed, 498 insertions(+), 485 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue index 74f3755..2692368 100644 --- a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue +++ b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue @@ -124,26 +124,28 @@ - 导入实体 - - -

当前状态:{{ ModalData.status }}

-

总记录数:{{ ModalData.records }}

-

已上传:{{ ModalData.uploaded }}

- -
+ 导入实体 + + + 返回 @@ -484,6 +486,7 @@ export default { importExcelUrl: "modulex/modulex/importExcel", functionImportExcelUrl: "/functionx/functionx/importExcel", tablexImportExcelUrl: "tablex/tablex/importExcel", + tablexDownExcelUrl: "tablex/tablex/templateExcel", ruleImportExcelUrl: "rulex/rulex/importExcel", exportxsxl: "modulex/modulex/exportxsxl" }, @@ -502,7 +505,7 @@ export default { this.loginRole(usercode) //console.log('userole1',this.userRole1) this.getSuperFieldList() - this.showProcess() + /* this.showProcess()*/ }, computed: { importExcelUrl: function () { @@ -521,32 +524,48 @@ export default { tablexImportExcelUrl: function () { return `${window._CONFIG['domianURL']}/${this.url.tablexImportExcelUrl}`; }, + tablexDownExcelUrl: function () { + return `${window._CONFIG['domianURL']}/${this.url.tablexDownExcelUrl}`; + }, ruleImportExcelUrl: function () { return `${window._CONFIG['domianURL']}/${this.url.ruleImportExcelUrl}` }, }, methods: { - - showModalImport() { - this.$refs.moduleximport.edit(this.ModalData); - // this.$refs.moduleximport.title = "测试页面111111"; - this.$refs.moduleximport.disableSubmit = false; - }, // 显示进度 - showProcess() { + showProcess(type) { + let data = { + uploadUrl: '', + downUrl: '', + title: '', + note: [] + } + switch (type) { + case 1: { + data.note = ['对应模块id(必填):填写正确的模块名称', + '中文名称(必填):与模块名称相同。', + '英文名称(必填):与模块名称相同,写模块名称的英文名称。', + '结构图(选填):类图或E-R图,可以为空,不填写。', + '实体状态:可填入值为[正常、停用、废弃],若不填写,默认为“正常”状态。', + '版本状态: 可填入值为[当前、历史],若不填写,默认为“当前”状态', + '版本号:请填写小与五位数的正整数' + ] + data.title = '导入实体' + data.uploadUrl = this.tablexImportExcelUrl + data.downUrl = this.tablexDownExcelUrl + break; + } + default: { + return + } + } let userId = store.getters.userInfo.id let base_url = window._CONFIG['domianURL'] base_url = base_url.replace('http', 'ws') let ws = new WebSocket(`${base_url}/uploadProcess/${userId}`) - this.$refs.moduleximport.show(this.tablexImportExcelUrl,''); + this.$refs.moduleximport.show(data); ws.onmessage = (e) => { - // this.ModalData = JSON.parse(e.data) this.$refs.moduleximport.edit(JSON.parse(e.data)); - // if (JSON.parse(e.data).isVisible === 'false') { - // this.$refs.moduleximport.close(); - // // this.getList() - // console.log("重新获取列表") - // } } }, // 多选框的事件回调 diff --git a/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue b/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue index 85c8496..cb26dfe 100644 --- a/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue +++ b/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue @@ -24,50 +24,26 @@ - - -
-

当前状态:{{ ModalData.status }}

-

总记录数:{{ ModalData.records }}

-

已上传:{{ ModalData.uploaded }}

- -
- - - - - - - - - - - - - - - - - - - + +

当前状态:{{ ModalData.status }}

+

总记录数:{{ ModalData.records }}

+

已上传:{{ ModalData.uploaded }}

+ +
+ + {{ index + 1 }} . {{ item @@ -80,7 +56,7 @@