jiangyy 3 years ago
parent
commit
3357761a01
  1. 16
      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

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

@ -366,6 +366,10 @@ export default {
source: {//manage visiual source: {//manage visiual
type: String, type: String,
default: 'manage' default: 'manage'
},
icResiUserId: {
type: String,
default: ''
} }
}, },
@ -457,7 +461,7 @@ export default {
this.customerId = localStorage.getItem("customerId"); this.customerId = localStorage.getItem("customerId");
this.getGridList(); this.getGridList();
this.getDemandOptions(); this.getDemandOptions();
this.getDemandUserList(); await this.getDemandUserList();
this.getServiceuserList(); this.getServiceuserList();
this.getDictOptions(); this.getDictOptions();
if (this.formType === 'add') { if (this.formType === 'add') {
@ -468,7 +472,6 @@ export default {
this.pageLoading = true; this.pageLoading = true;
}, },
@ -796,6 +799,15 @@ 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') {
this.demandUserList.forEach((item) => {
if (item.demandUserId == this.icResiUserId)
this.selectDemandUser = item.label;
});
this.form.demandUserId = this.icResiUserId
}
} }
}) })
.catch(() => { .catch(() => {

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

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

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

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

Loading…
Cancel
Save