|
@@ -89,13 +89,21 @@ export default {
|
|
{ label: '一房一价编辑', func: this.openRPeditPopup, btnType: 'primary' },
|
|
{ label: '一房一价编辑', func: this.openRPeditPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
|
+ { label: '导出本单元', func: this.toExportExcel, btnType: 'primary' },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
-
|
|
|
|
|
|
+ toExportExcel (row) {
|
|
|
|
+ const token = window.sessionStorage.getItem('fp_token')
|
|
|
|
+ if (row && row.id) {
|
|
|
|
+ window.open(`https://api.honglouplus.com/adm/new/house/price/export?token=${encodeURIComponent(token)}&estate_id=${this.searchForm.estate_id}&building_id=${row.id}`)
|
|
|
|
+ } else {
|
|
|
|
+ window.open(`https://api.honglouplus.com/adm/new/house/price/export?token=${encodeURIComponent(token)}&estate_id=${this.searchForm.estate_id}`)
|
|
|
|
+ }
|
|
|
|
+ },
|
|
openRPPopup(str) {
|
|
openRPPopup(str) {
|
|
this.isRPShow = true
|
|
this.isRPShow = true
|
|
this.priceType = str
|
|
this.priceType = str
|