From 51dae0836f24fbd4b668d626f44e313f4892d5a2 Mon Sep 17 00:00:00 2001 From: long <18782126717@163.com> Date: Mon, 24 Oct 2022 23:21:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=85=B3=E8=81=94=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=9B=9E=E5=A1=AB=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/jeecg/HPlan.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/jeecg/HPlan.vue b/src/components/jeecg/HPlan.vue index a711ed1..7db7016 100644 --- a/src/components/jeecg/HPlan.vue +++ b/src/components/jeecg/HPlan.vue @@ -96,6 +96,7 @@ computed: { uniqGroupId() { if (this.groupId) { + console.log(this.groupId) let { groupId, code, field, orgFields, destFields } = this return `${groupId}_${code}_${field}_${orgFields}_${destFields}` } @@ -148,6 +149,7 @@ } }, callBack(rows) { + console.log(rows[0].id) // update--begin--autor:lvdandan-----date:20200630------for:多选时未带回多个值------ let orgFieldsArr = this.orgFields.split(',') let destFieldsArr = this.destFields.split(',') @@ -156,6 +158,7 @@ this.showText = '' resetText = true } + let res = {} if (orgFieldsArr.length > 0) { for (let i = 0; i < orgFieldsArr.length; i++) { @@ -180,15 +183,18 @@ } this.showText = tempText.join(",") } + this.showText =rows[0].id // update--end--autor:lvdandan-----date:20200630------for:多选时未带回多个值------ } if (this.triggerChange) { //v-dec时即triggerChange为true时 将整个对象给form页面 让他自己setFieldsValue - this.$emit('callback', res) + this.$emit('callback', rows[0].id) + console.log(1) } else { //v-model时 需要传一个参数field 表示当前这个字段 从而根据这个字段的顺序找到原始值 // this.$emit("input",row[orgFieldsArr[destFieldsArr.indexOf(this.field)]]) - this.$emit('input', this.showText, res) + this.$emit('input', this.showText, rows[0].id) + console.log(rows[0].id) } } }