jiangyy 3 years ago
parent
commit
dbe2179327
  1. 16
      src/views/modules/communityService/measure/info.vue
  2. 7
      src/views/modules/visual/command/cpts/demandInfo.vue
  3. 4
      src/views/modules/visual/command/index.vue

16
src/views/modules/communityService/measure/info.vue

@ -370,6 +370,10 @@ export default {
icResiUserId: {
type: String,
default: ''
},
selGridId: {
type: String,
default: ''
}
},
@ -469,7 +473,7 @@ export default {
} else {
this.getInfo();
}
this.pageLoading = true;
@ -799,14 +803,16 @@ export default {
} else {
console.log("获取查询详情成功", res.data);
this.demandUserList = res.data;
// debugger
if(this.icResiUserId && this.formType==='add') {
this.demandUserList.forEach((item) => {
if (this.icResiUserId && this.formType === 'add') {
this.demandUserList.forEach((item) => {
if (item.demandUserId == this.icResiUserId)
this.selectDemandUser = item.label;
});
this.form.demandUserId = this.icResiUserId
this.form.gridId = this.selGridId
}
}
})

7
src/views/modules/visual/command/cpts/demandInfo.vue

@ -16,6 +16,7 @@
:source="'visiual'"
:formType="'add'"
:icResiUserId="icResiUserId"
:selGridId="selGridId"
@handleClose="handleClose"
@handleOk="handleOk"
@dialogOk="handleEditSuccess" />
@ -35,7 +36,11 @@ import demandInfoOrigin from "@/views/modules/communityService/measure/info";
export default {
name: "dialogInfo",
props: {
icResiUserId: {
icResiUserId: {
type: String,
required: 'true'
},
selGridId: {
type: String,
required: 'true'
},

4
src/views/modules/visual/command/index.vue

@ -398,6 +398,7 @@ export default {
pageType: '',
icResiUserId: '',
selGridId: '',
eventId: '',
enterpriseId: '',
};
@ -425,7 +426,7 @@ export default {
methods: {
handleClickDotBtn (type, info) {
// debugger
this.pageType = type
if (type == "create-service") {
//
@ -438,6 +439,7 @@ export default {
} else if (type == "create-demand") {
//
this.icResiUserId = info.icResiUserId
this.selGridId = info.gridId
} else if (type == "watch-xuncha") {
this.enterpriseId = info.enterpriseId

Loading…
Cancel
Save