|
|
@ -470,9 +470,6 @@ export default { |
|
|
|
fileFormData.append('orgId', this.agencyObj.id);//filename是键,file是值,就是要传的文件,test.zip是要传的文件名 |
|
|
|
fileFormData.append('orgType', this.agencyObj.level === 'grid' ? 'grid' : 'agency');//filename是键,file是值,就是要传的文件,test.zip是要传的文件名 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (type === 'community') { |
|
|
|
this.$refs['upload_community'].clearFiles() |
|
|
|
url = '/gov/org/icneighborhood/neighborhoodimport' |
|
|
@ -493,16 +490,11 @@ export default { |
|
|
|
(data, rspMsg) => { |
|
|
|
this.endLoading() |
|
|
|
if (data.code === 0 || data.code > 8000) { |
|
|
|
// this.$message({ |
|
|
|
// type: "success", |
|
|
|
// message: "导入成功" |
|
|
|
// }); |
|
|
|
this.$message.success(rspMsg) |
|
|
|
this.$emit('refreshTree') |
|
|
|
this.loadTable() |
|
|
|
} else { |
|
|
|
this.$message.error(rspMsg) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
this.showMessage(rspMsg) |
|
|
|
}, |
|
|
|
(rspMsg, data) => { |
|
|
|
this.endLoading() |
|
|
@ -510,9 +502,17 @@ export default { |
|
|
|
}, { headers: { 'Content-Type': 'multipart/form-data' } }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showMessage (msg) { |
|
|
|
this.$alert(msg, '操作结果', { |
|
|
|
confirmButtonText: '关闭', |
|
|
|
callback: action => { |
|
|
|
this.$emit('refreshTree') |
|
|
|
this.loadTable() |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleSizeChange (val) { |
|
|
|
this.pageSize = val |
|
|
|
this.pageNo = 1 |
|
|
|