|
|
@ -377,10 +377,10 @@ export default { |
|
|
|
handleExportModule (type) { |
|
|
|
|
|
|
|
let title = '' |
|
|
|
let url = "/gov/org/neighborhood/exporttemplate" |
|
|
|
let url = "" |
|
|
|
if (type === 'building') { |
|
|
|
title = '楼宇导入模板' |
|
|
|
url = '/gov/org/neighborhood/exporttemplate' |
|
|
|
url = '/gov/org/building/exporttemplate' |
|
|
|
|
|
|
|
} else if (type === 'room') { |
|
|
|
title = '房屋导入模板' |
|
|
@ -449,7 +449,8 @@ export default { |
|
|
|
|
|
|
|
if (type === 'building') { |
|
|
|
this.$refs['upload_building'].clearFiles() |
|
|
|
url = 'http://192.168.51.26:8080/api/gov/org/building/buildingimport' |
|
|
|
// url = 'http://192.168.51.26:8080/api/gov/org/building/buildingimport' |
|
|
|
url = '/gov/org/building/buildingimport' |
|
|
|
|
|
|
|
|
|
|
|
} else if (type === 'room') { |
|
|
@ -458,12 +459,10 @@ export default { |
|
|
|
url = '/gov/org/house/houseimport' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.startLoading() |
|
|
|
window.app.ajax.post2(url, fileFormData, |
|
|
|
(data, rspMsg) => { |
|
|
|
|
|
|
|
this.endLoading() |
|
|
|
if (data.code === 0 || data.code > 8000) { |
|
|
|
// this.$message({ |
|
|
|
// type: "success", |
|
|
@ -477,7 +476,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
|
|
|
|
this.endLoading() |
|
|
|
this.$message.error(rspMsg) |
|
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
|
|
|
|
|