From 4e803c83cd736cb4eafc4b55c1cf0a286c0b0799 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B1=E5=B1=8B?= <3180483789@qq.com>
Date: Wed, 12 Jul 2023 11:19:54 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=AE=A1=E7=90=86=E6=96=B0?=
=?UTF-8?q?=E5=A2=9E?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../modules/RequirementItemForm.vue | 13 +-
.../src/views/task/modules/TaskForm.vue | 161 ++++++++++++------
.../org/jeecg/modules/task/entity/Task.java | 11 +-
3 files changed, 125 insertions(+), 60 deletions(-)
diff --git a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
index c5cf02f..3f2c72f 100644
--- a/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
+++ b/ant-design-vue-jeecg/src/views/requirementitem/modules/RequirementItemForm.vue
@@ -22,8 +22,7 @@
dest-fields="typeId,typeName"
code="typename"
:multi="multi"
- @input="popupCallback"
- />
+ @input="popupCallback"/>
@@ -48,11 +47,6 @@
-
-
-
-
-
@@ -76,6 +70,11 @@
+
+
+
+
+
diff --git a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
index f2212eb..4b216ed 100644
--- a/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
+++ b/ant-design-vue-jeecg/src/views/task/modules/TaskForm.vue
@@ -4,28 +4,60 @@
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
-
-
-
+
+
+
+
+
+
+
-
+
@@ -45,9 +77,8 @@
-
-
+
+
@@ -61,67 +92,69 @@
-
-
-
-
-
-
+
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
+
+
+
+
-
-
-
-
+
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
+
@@ -131,13 +164,6 @@
-
-
-
-
-
-
-
@@ -175,14 +201,48 @@ export default {
expectedDuration: 1,
// curryUserName: '',
},
+ // labelCol: {
+ // xs: {span: 24},
+ // sm: {span: 5},
+ // },
+ // wrapperCol: {
+ // xs: {span: 24},
+ // sm: {span: 16},
+ // },
labelCol: {
- xs: {span: 24},
- sm: {span: 5},
+ xs: {span: 23},
+ sm: {span: 6},
},
wrapperCol: {
xs: {span: 24},
sm: {span: 16},
},
+ // 任务层级 任务类型 任务状态
+ labelCol1: {
+ xs: {span: 24},
+ sm: {span: 3},
+ },
+ wrapperCol1: {
+ xs: {span: 24},
+ sm: {span: 21},
+ },
+ // 任务描述
+ labelCol2: {
+ xs: {span: 24},
+ sm: {span: 3},
+ },
+ wrapperCol2: {
+ xs: {span: 24},
+ sm: {span: 20},
+ },
+ labelCol3: {
+ xs: {span: 24},
+ sm: {span: 7},
+ },
+ wrapperCol3: {
+ xs: {span: 24},
+ sm: {span: 15},
+ },
confirmLoading: false,
validatorRules: {
taskName: [
@@ -242,6 +302,9 @@ export default {
this.modelDefault = JSON.parse(JSON.stringify(this.model));
},
methods: {
+ popupCallback(value,row){
+ this.model = Object.assign(this.model, row);
+ },
handleCheckChange(data, checked, tree) {
if (checked) {
this.currentNodeData.id = data.id
diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java
index ff02175..9e3220d 100644
--- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java
+++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/task/entity/Task.java
@@ -60,12 +60,15 @@ public class Task implements Serializable {
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@ApiModelProperty(value = "更新日期")
private java.util.Date updateTime;
- /**
- * 上级任务id
- */
- @Excel(name = "上级任务id", width = 15)
+ /**上级任务id*/
+ @Excel(name = "上级任务id", width = 15, dictTable = "task", dicText = "task_name", dicCode = "id")
+ @Dict(dictTable = "task", dicText = "task_name", dicCode = "id")
@ApiModelProperty(value = "上级任务id")
private java.lang.String upperId;
+ /**上级任务*/
+ @Excel(name = "上级任务", width = 15)
+ @ApiModelProperty(value = "上级任务")
+ private java.lang.String upperName;
/**
* 中文名称
*/