jiangyy 3 years ago
parent
commit
3357761a01
  1. 18
      src/views/modules/communityService/measure/info.vue
  2. 6
      src/views/modules/visual/command/cpts/demandInfo.vue
  3. 6
      src/views/modules/visual/command/index.vue

18
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(() => {

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

@ -15,6 +15,7 @@
<demand-info-origin ref="demandEditForm"
:source="'visiual'"
:formType="'add'"
:icResiUserId="icResiUserId"
@handleClose="handleClose"
@handleOk="handleOk"
@dialogOk="handleEditSuccess" />
@ -34,7 +35,10 @@ import demandInfoOrigin from "@/views/modules/communityService/measure/info";
export default {
name: "dialogInfo",
props: {
icResiUserId: {
type: String,
required: 'true'
},
},
components: {

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

@ -168,6 +168,7 @@
<demand-info v-if="pageType==='create-demand'"
ref="eleEditForm"
:icResiUserId="icResiUserId"
@handleClose="handleClose" />
<qsydw v-if="pageType==='qsydw'"
@ -380,6 +381,7 @@ export default {
searchResult: iniSearchResult(),
pageType: '',
icResiUserId:'',
};
},
@ -405,8 +407,7 @@ export default {
methods: {
handleClickDotBtn (type, info) {
debugger
type="create-service"
// debugger
this.pageType = type
if (type == "create-service") {
//
@ -416,6 +417,7 @@ export default {
//
} else if (type == "create-demand") {
//
this.icResiUserId = info.icResiUserId
}
},

Loading…
Cancel
Save