diff --git a/src/views/modules/portrayal/jumin/cpts/businessRecord.vue b/src/views/modules/portrayal/jumin/cpts/businessRecord.vue index 6cf0fc058..b2f6e980a 100644 --- a/src/views/modules/portrayal/jumin/cpts/businessRecord.vue +++ b/src/views/modules/portrayal/jumin/cpts/businessRecord.vue @@ -72,16 +72,8 @@ export default { }, //创建前 created() { - this.resiId = [this.userInfo.resiId]; - }, - async mounted() { - await this.getComplainList(); - await this.getShengList(); - await this.getShequList(); - await this.getshijianList(); - await this.getxuqiuList(); - await this.getfuwuList(); }, + mounted() {}, props: { userInfo: { type: Object, @@ -243,6 +235,7 @@ export default { }); }, getfuwuList() { + console.log(this.resiId); if (this.resiId.length == 0) { this.fuwuList = []; this.fuwuLabel = `社区服务(0)`; @@ -271,7 +264,19 @@ export default { //计算 computed: {}, //监听 - watch: {}, + watch: { + 'userInfo': { + handler(newVal, oldVal) { + this.resiId = [this.userInfo.baseInfoDto.resiId]; + this.getComplainList(); + this.getShengList(); + this.getfuwuList(); + this.getshijianList(); + this.getxuqiuList(); + }, + deep: true + } + }, };