|
@@ -75,9 +75,10 @@ export default {
|
|
|
{ label: '更新时间', prop: 'update_at' },
|
|
|
{ label: '创建人', prop: 'sale_name' },
|
|
|
{ label: '创建时间', prop: 'create_at' },
|
|
|
- { label: '操作', width: 160, type: 'handle2', operations:
|
|
|
+ { label: '操作', width: 220, type: 'handle2', operations:
|
|
|
[
|
|
|
{ label: '编辑', func: this.openPopup, btnType: 'primary' },
|
|
|
+ { label: '删除', func: this.delHandle, btnType: 'danger' },
|
|
|
{ labelFor: 'hide_status', disabled: true, func: this.statusHandle, hide: 'nosys',
|
|
|
labelConfig: {
|
|
|
texts: {
|
|
@@ -118,17 +119,16 @@ export default {
|
|
|
// this.fetchData()
|
|
|
// })
|
|
|
// },
|
|
|
- // delHandle(row) {
|
|
|
- // this.$msg(`您确定要删除该楼盘吗?`, 'confirm', () => {
|
|
|
- // this.$api.house.admoldhousedel({
|
|
|
- // id: row.id,
|
|
|
- // status: 2
|
|
|
- // }).then(data => {
|
|
|
- // this.$msgs(`已删除!`)
|
|
|
- // this.fetchData()
|
|
|
- // })
|
|
|
- // }, null, true)
|
|
|
- // },
|
|
|
+ delHandle(row) {
|
|
|
+ this.$msg(`您确定要删除该房源吗?`, 'confirm', () => {
|
|
|
+ this.$api.house.admeshousedel({
|
|
|
+ id: row.id,
|
|
|
+ }).then(data => {
|
|
|
+ this.$msgs(`已删除!`)
|
|
|
+ this.fetchData()
|
|
|
+ })
|
|
|
+ }, null, true)
|
|
|
+ },
|
|
|
openPopup(row) {
|
|
|
if (row && row.id) {
|
|
|
this.curObj = row
|