diff --git a/src/views/modules/communityService/measure/info.vue b/src/views/modules/communityService/measure/info.vue index 6fa66fcb..21f6a18a 100644 --- a/src/views/modules/communityService/measure/info.vue +++ b/src/views/modules/communityService/measure/info.vue @@ -366,6 +366,10 @@ export default { source: {//展示来源:manage 管理平台 visiual 可视化平台 type: String, default: 'manage' + }, + icResiUserId: { + type: String, + default: '' } }, @@ -457,7 +461,7 @@ export default { this.customerId = localStorage.getItem("customerId"); this.getGridList(); this.getDemandOptions(); - this.getDemandUserList(); + await this.getDemandUserList(); this.getServiceuserList(); this.getDictOptions(); if (this.formType === 'add') { @@ -465,8 +469,7 @@ export default { } else { this.getInfo(); } - - + this.pageLoading = true; @@ -796,6 +799,15 @@ export default { } else { console.log("获取查询详情成功", res.data); this.demandUserList = res.data; + // debugger + if(this.icResiUserId && this.formType==='add') { + this.demandUserList.forEach((item) => { + + if (item.demandUserId == this.icResiUserId) + this.selectDemandUser = item.label; + }); + this.form.demandUserId = this.icResiUserId + } } }) .catch(() => { diff --git a/src/views/modules/visual/command/cpts/demandInfo.vue b/src/views/modules/visual/command/cpts/demandInfo.vue index 720ed982..bac6c9b0 100644 --- a/src/views/modules/visual/command/cpts/demandInfo.vue +++ b/src/views/modules/visual/command/cpts/demandInfo.vue @@ -15,6 +15,7 @@ @@ -34,7 +35,10 @@ import demandInfoOrigin from "@/views/modules/communityService/measure/info"; export default { name: "dialogInfo", props: { - + icResiUserId: { + type: String, + required: 'true' + }, }, components: { diff --git a/src/views/modules/visual/command/index.vue b/src/views/modules/visual/command/index.vue index d767c545..e2d2072c 100644 --- a/src/views/modules/visual/command/index.vue +++ b/src/views/modules/visual/command/index.vue @@ -168,6 +168,7 @@