|
@@ -74,6 +74,7 @@ export default {
|
|
|
[
|
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
|
{ label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
+ { label: '移除所属房源', func: this.removeHandle, btnType: 'danger' },
|
|
|
]
|
|
|
}
|
|
|
]
|
|
@@ -90,6 +91,16 @@ export default {
|
|
|
})
|
|
|
}, null, true)
|
|
|
},
|
|
|
+ removeHandle(row) {
|
|
|
+ this.$msg(`确认移除${row.sale_name}所有的房源吗?`, 'confirm', () => {
|
|
|
+ this.$api.user.admsaleuserresign({
|
|
|
+ id: row.id
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已移出!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
openPopup(row) {
|
|
|
if (row && row.id) {
|
|
|
this.curObj = row
|