Browse Source

购房管理

shibei_master
wanggongfeng 3 years ago
parent
commit
5684b272a1
  1. 50
      src/views/modules/plugins/change/changedeath.vue
  2. 28
      src/views/modules/plugins/change/changerelocation.vue
  3. 3
      src/views/modules/plugins/rent/renthouseForm.vue

50
src/views/modules/plugins/change/changedeath.vue

@ -30,7 +30,7 @@
placeholder="请输入手机">
</el-input>
</el-form-item>
<el-form-item label="迁入死亡名单时间"
<el-form-item label="死亡时间"
prop="startTime">
<el-date-picker v-model="timeRange"
type="daterange"
@ -141,7 +141,8 @@ export default {
},
timeRange: '',
dataForm: {
id: ''
id: '',
name: ''
},
//
showedPeopleMoreInfo: false,
@ -169,34 +170,31 @@ export default {
methods: {
exportHandle () {
const url = this.mixinViewModuleOptions.exportURL
this.$http({
this.$http({
method: 'GET',
url,
responseType: 'blob',
data: this.formData
params: this.dataForm
}).then(res => {
// this.download(res.data, title + '.xls')
if (res.headers["content-disposition"]) {
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
console.log('filename', fileName)
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
var url = window.URL.createObjectURL(blob)
var aLink = document.createElement('a')
aLink.style.display = 'none'
aLink.href = url
aLink.setAttribute('download', fileName)
document.body.appendChild(aLink)
aLink.click()
document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob
} else this.$message.error('下载失败')
}).catch(err => {
console.log('err', err)
return this.$message.error('网络错误')
})
.then(res => {
// this.download(res.data, title + '.xls')
if (res.headers["content-disposition"]) {
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
console.log('filename', fileName)
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
var url = window.URL.createObjectURL(blob)
var aLink = document.createElement('a')
aLink.style.display = 'none'
aLink.href = url
aLink.setAttribute('download', fileName)
document.body.appendChild(aLink)
aLink.click()
document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob
} else this.$message.error('下载失败')
})
.catch(err => {
console.log('err', err)
return this.$message.error('网络错误')
})
},
resetForm(formName) {
for(const n in this.dataForm) {

28
src/views/modules/plugins/change/changerelocation.vue

@ -274,6 +274,34 @@ export default {
}
},
methods: {
exportHandle () {
const url = this.mixinViewModuleOptions.exportURL
this.$http({
method: 'GET',
url,
responseType: 'blob',
params: this.dataForm
}).then(res => {
// this.download(res.data, title + '.xls')
if (res.headers["content-disposition"]) {
let fileName = window.decodeURI(res.headers["content-disposition"].split(";")[1].split("=")[1])
console.log('filename', fileName)
let blob = new Blob([res.data], { type: 'application/vnd.ms-excel' })
var url = window.URL.createObjectURL(blob)
var aLink = document.createElement('a')
aLink.style.display = 'none'
aLink.href = url
aLink.setAttribute('download', fileName)
document.body.appendChild(aLink)
aLink.click()
document.body.removeChild(aLink) //
window.URL.revokeObjectURL(url) //blob
} else this.$message.error('下载失败')
}).catch(err => {
console.log('err', err)
return this.$message.error('网络错误')
})
},
async handleLook (row) {
if(row.agencyId !== ''){
const url = '/gov/org/grid/griddetail'

3
src/views/modules/plugins/rent/renthouseForm.vue

@ -292,6 +292,7 @@ export default {
this.houseType = this.dataForm.houseType
this.purpose = this.dataForm.purpose
this.rentFlag = parseInt(this.dataForm.rentFlag)
this.dataForm.needUpdate = false
} else {
@ -497,7 +498,7 @@ export default {
let url = ''
if (this.formType === 'add') {
url = '/pli/power/rentHouse/'
url = '/pli/power/rentHouse/save'
} else {
url = '/gov/org/house/houseupdate'
this.dataForm.houseId = this.houseId

Loading…
Cancel
Save