@@ -136,8 +150,8 @@
*现居住地:
@@ -339,7 +353,8 @@
},
mapform: [],
form: {
- infotext: '',
+ infotext: '',
+ street:'',
name: '',
nation: '',
sex: "",
@@ -377,7 +392,8 @@
disabilitytypeList: [],
disabilitylevelList: [],
educationList: [],
- relationList: []
+ relationList: [],
+ streetList:[]
}
}
@@ -399,7 +415,6 @@
},
mapform(newVal){
if(newVal){
- console.log(newVal)
this.form.longitude = newVal[0]
this.form.latitude = newVal[1]
this.form.reside = newVal[2]
@@ -409,11 +424,10 @@
methods: {
async getLabel() {
let numbers = {
- number:['sexList','marryList','disabilitylevelList','disabilitytypeList','educationList','relationList']
+ number:['streetList','sexList','marryList','disabilitylevelList','disabilitytypeList','educationList','relationList']
}
const res = await getparameter(numbers);
for(var k of res){
- console.log(k)
for(var m in this.lists){
if(m==k.number){
this.lists[m] = k.detail
@@ -427,7 +441,8 @@
table_name: this.tableName
})
this.form = {
- infotext: '',
+ infotext: '',
+ street:res?.street,
name: res?.name,
nation: res?.nation,
sex: res?.sex,
@@ -464,7 +479,6 @@
submit(val) {
- console.log(this.form)
// return
if (this.type === 'add') {
save({
diff --git a/src/views/record/index.vue b/src/views/record/index.vue
index 838415a..cbf1aae 100644
--- a/src/views/record/index.vue
+++ b/src/views/record/index.vue
@@ -9,9 +9,10 @@