diff --git a/packages/2.0.5/AppCodeGeneration/components/Add.vue b/packages/2.0.5/AppCodeGeneration/components/Add.vue index 555744e8..44f54322 100644 --- a/packages/2.0.5/AppCodeGeneration/components/Add.vue +++ b/packages/2.0.5/AppCodeGeneration/components/Add.vue @@ -37,7 +37,7 @@ @@ -120,9 +120,9 @@ title="选择网格" :visible.sync="showGrid" :destroyOnClose="true" - @close="showGrid = false" - @onConfirm="getCheckedTree" - width="720px"> + @close="showGrid = false" + @onConfirm="getCheckedTree" + width="720px">
{ for (var p in e){ if (item === p) { @@ -226,7 +228,6 @@ export default { }) const idNumberInfo = this.idCardNoUtil.getIdCardInfo(e.idNumber) - this.formData.resident_id = e.id this.$set(this.formData, 'birthDate', idNumberInfo.birthday) this.formData.photo = e.photo ? [{ url: e.photo @@ -237,10 +238,10 @@ export default { if (gird.length) { this.girdName = gird[0].girdName - this.formData.gird_id = gird[0].id + this.formData[this.gridFieldName] = gird[0].id } else { this.girdName = '' - this.formData.gird_id = '' + this.formData[this.gridFieldName] = '' } this.showGrid = false