@@ -1,10 +1,8 @@ | |||||
const deptId = 100 ; | const deptId = 100 ; | ||||
const severApi = 'http://192.168.31.107:8080'; | |||||
export default | export default | ||||
{ | { | ||||
deptId,//区县ID | deptId,//区县ID | ||||
severApi,//全局API | |||||
} | } | ||||
export const REGION = { | export const REGION = { | ||||
YI_LONG_XIAN: '仪陇', | YI_LONG_XIAN: '仪陇', | ||||
@@ -365,13 +365,13 @@ export default { | |||||
this.userForm.id = response.data.id; | this.userForm.id = response.data.id; | ||||
this.form.tableId = response.data.id; | this.form.tableId = response.data.id; | ||||
showUserImg(response.data.id).then(responseSecond => { | |||||
console.log(responseSecond) | |||||
this.form.files = responseSecond.data | |||||
for (var i = 0 ; i < responseSecond.data.length ; i++){ | |||||
this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) | |||||
} | |||||
}); | |||||
// showUserImg(response.data.id).then(responseSecond => { | |||||
// console.log(responseSecond) | |||||
// this.form.files = responseSecond.data | |||||
// for (var i = 0 ; i < responseSecond.data.length ; i++){ | |||||
// this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) | |||||
// } | |||||
// }); | |||||
}); | }); | ||||
}); | }); | ||||
}, | }, | ||||
@@ -138,7 +138,7 @@ export default { | |||||
}); | }); | ||||
showImg(response.data.id).then(responseSecond => { | showImg(response.data.id).then(responseSecond => { | ||||
for (var i = 0 ; i < responseSecond.data.length ; i++){ | for (var i = 0 ; i < responseSecond.data.length ; i++){ | ||||
this.fileList.push({url:this.global.severApi+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) | |||||
this.fileList.push({url:'/api'+responseSecond.data[i].fileUrl,id:responseSecond.data[i].id}) | |||||
} | } | ||||
}); | }); | ||||
}); | }); | ||||