|
|
|
@ -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) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|