- 新增房屋
@@ -162,6 +163,7 @@ let loading // 加载动画
export default {
data () {
return {
+ source: 'tree',//来源
importRoomLoading: false,
total: 0,
pageSize: 20,
@@ -236,6 +238,7 @@ export default {
async loadTable (source, treeObj, ownerName, ownerPhone, rentFlag) {
+ this.source = source
this.tableLoading = true
if (source === 'tree') {//来源于tree,查询数据清空
@@ -299,7 +302,7 @@ export default {
this.formShow = true
this.$nextTick(() => {
- this.$refs.ref_form.initForm('detail', row.houseId, this.agencyObj)
+ this.$refs.ref_form.initForm('detail', row, this.agencyObj)
})
},
@@ -317,7 +320,7 @@ export default {
this.formTitle = '修改房屋'
this.formShow = true
this.$nextTick(() => {
- this.$refs.ref_form.initForm('edit', row.houseId, this.agencyObj)
+ this.$refs.ref_form.initForm('edit', row, this.agencyObj)
})
},