From 6ea024a43db456b7e3520d35771c12e2c4d5c7ea Mon Sep 17 00:00:00 2001 From: YTD <1158283261@qq.com> Date: Thu, 27 Apr 2023 09:12:32 +0800 Subject: [PATCH] =?UTF-8?q?2023-4-27=E5=AD=97=E6=AE=B5=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue | 7 +++++-- .../org/jeecg/modules/demo/functionx/entity/Functionx.java | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue index ed3dd6d..c3dc185 100644 --- a/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue +++ b/ant-design-vue-jeecg/src/views/fieldx/FieldxList.vue @@ -248,6 +248,7 @@ column: 'createTime', order: 'asc', }, + tableName:'', } }, @@ -290,10 +291,11 @@ //新增触发事件 added(event) { const {type, row, column, value, target} = event - this.tableid = this.model.id + console.log(event,"-------") + target.setValues([{ rowKey: row.id, - values: {tableId_dictText: this.model.tableName} + values: {tableId_dictText: this.tableName} }]) }, //数据发生变化时事件 即 编辑 时同步保存 @@ -342,6 +344,7 @@ //console.log(topicid); this.queryParam.tableId = this.model.id; this.tableid = this.model.id + this.tableName=this.model.tableName; //console.log(this.queryParam.topicid); this.loadData(); }, diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/entity/Functionx.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/entity/Functionx.java index 652c5ef..7e94f07 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/entity/Functionx.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/functionx/entity/Functionx.java @@ -88,8 +88,8 @@ public class Functionx implements Serializable { @ApiModelProperty(value = "用户角色") private java.lang.String userRole; /**责任人*/ - @Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username") - @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username") + @Excel(name = "责任人", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "id") + @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id") @ApiModelProperty(value = "责任人") private java.lang.String managerUsers; /**任务等级*/