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; /** * 中文名称 */