- 新增房屋
@@ -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,查询数据清空
@@ -272,8 +275,8 @@ export default {
this.total = data.total
this.validTableDataNum = 0
data.list.forEach(item => {
- item.houseNameShow = item.neighborHoodName + item.buildingName + item.unitNum + '单元' + item.doorName
- item.unitNumShow = item.unitNum + '单元'
+ item.houseNameShow = item.neighborHoodName + item.buildingName + item.unitNum + item.doorName
+
if (item.agencyId === this.staffAgencyId) {
item.showBtn = true
this.validTableDataNum++
@@ -298,6 +301,7 @@ export default {
this.formTitle = '房屋详情'
this.formShow = true
this.$nextTick(() => {
+
this.$refs.ref_form.initForm('detail', row, this.agencyObj)
})
},
@@ -307,6 +311,7 @@ export default {
this.formTitle = '新增房屋'
this.formShow = true
this.$nextTick(() => {
+ console.log(this.agencyObj)
this.$refs.ref_form.initForm('add', null, this.agencyObj)
})
},
diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue
index 099b694e7..6db09b136 100644
--- a/src/views/pages/login.vue
+++ b/src/views/pages/login.vue
@@ -213,7 +213,7 @@ export default {
//没有客户,提示无法登录
this.$message.error("账号不存在");
this.endLoading();
- } else if (data.length === 10) {
+ } else if (data.length === 1) {
this.selectCustomer(data[0]);
} else {
this.endLoading();