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

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

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

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

@ -16,6 +16,7 @@
:source="'visiual'" :source="'visiual'"
:formType="'add'" :formType="'add'"
:icResiUserId="icResiUserId" :icResiUserId="icResiUserId"
:selGridId="selGridId"
@handleClose="handleClose" @handleClose="handleClose"
@handleOk="handleOk" @handleOk="handleOk"
@dialogOk="handleEditSuccess" /> @dialogOk="handleEditSuccess" />
@ -39,6 +40,10 @@ export default {
type: String, type: String,
required: 'true' required: 'true'
}, },
selGridId: {
type: String,
required: 'true'
},
}, },
components: { components: {

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

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

Loading…
Cancel
Save