From d453ec37c57ebd0a8b357b9e2867450d5280754d Mon Sep 17 00:00:00 2001
From: lijinyu <3023846734@qq.com>
Date: Thu, 20 Jul 2023 19:04:10 +0800
Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E5=9D=97=E7=AE=A1=E7=90=86=E5=AF=BC?=
=?UTF-8?q?=E5=85=A5=E5=8A=9F=E8=83=BD=E4=BA=A4=E4=BA=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/modulex/ModulexList.vue | 80 ++++++++-----
.../views/modulex/modules/ModulexImport.vue | 28 +++--
.../src/views/task/modules/TaskForm.vue | 6 +
.../modulex/controller/ModulexController.java | 64 ++++++++++
.../service/impl/ModulexServiceImpl.java | 109 +-----------------
.../src/main/resources/application-dev.yml | 4 +-
6 files changed, 146 insertions(+), 145 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
index 36588e9..c065d43 100644
--- a/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
+++ b/ant-design-vue-jeecg/src/views/modulex/ModulexList.vue
@@ -71,29 +71,29 @@
新增
-
导入模块
-
-
- 当前状态:{{ ModalData.status }}
- 总记录数:{{ ModalData.records }}
- 已上传:{{ ModalData.uploaded }}
-
-
- 导入模块
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
导入模块
+
导入功能
@@ -443,7 +443,8 @@ export default {
deleteBatch: "/modulex/modulex/deleteBatch",
exportXlsUrl: "/modulex/modulex/exportXls",
importExcelUrlf: "fieldx/fieldx/importExcel",
- importExcelUrl: "modulex/modulex/importExcel",
+ modelImportExcelUrl: "modulex/modulex/importExcel",
+ modelDownExcelUrl: "modulex/modulex/templateExcel",
functionImportExcelUrl: "/functionx/functionx/importExcel",
tablexImportExcelUrl: "tablex/tablex/importExcel",
tablexDownExcelUrl: "tablex/tablex/templateExcel",
@@ -469,8 +470,11 @@ export default {
/* this.showProcess()*/
},
computed: {
- importExcelUrl: function () {
- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
+ modelImportExcelUrl: function () {
+ return `${window._CONFIG['domianURL']}/${this.url.modelImportExcelUrl}`
+ },
+ modelDownExcelUrl: function () {
+ return `${window._CONFIG['domianURL']}/${this.url.modelDownExcelUrl}`
},
importExcelUrlf: function () {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrlf}`
@@ -509,6 +513,30 @@ export default {
downUrl: this.tablexDownExcelUrl
}
},
+ modelData: function () {
+ return {
+ note: ['上级模块名称(非必填): 添加一级模块不用填,添加二级模块要填',
+ '项目名称(必填): 从已存在的项目中选',
+ '中文名称(必填): 相同上级的模块不能重名',
+ '英文名称(必填): 中文名称的英文名称',
+ '模块编码(必填): 项目编码+模块缩写',
+ '责任人(非必填): 模块的开发任务可以分配给1个或多个人员',
+ '任务等级(必填): 值: 1、2、3、4、5',
+ '开发状态(必填):值: 未发布、已发布、开发中、已完成、已撤回、已取消',
+ '任务时长(必填): 单位小时: 等于下级模块时长的和;默认1(小时)',
+ '实际时长(必填): 单位小时;最小0.1小时;默认16',
+ '关联实体(非必填): 关联实体表;关联的是该模块管理的实体',
+ '模块状态(必填): 可填入值为正常、停用、废弃',
+ '版本状态(必填): 可填入值为当前、历史',
+ '版本号: 请填写小与五位数的正整数'
+ ],
+ title: '导入模块',
+ uploadUrl: this.modelImportExcelUrl,
+ downUrl: "temp/2.xls",
+ downName: "mokua.xls"
+
+ }
+ },
ruleData: function () {
return {
note: ['对应模块(必填):填写正确的模块名称',
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 cb26dfe..6202cf9 100644
--- a/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue
+++ b/ant-design-vue-jeecg/src/views/modulex/modules/ModulexImport.vue
@@ -56,7 +56,7 @@