diff --git a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue index 528f360e..d5b9fd92 100644 --- a/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue +++ b/src/project/huizhili/AppCooperationPropaganda/addPropaganda.vue @@ -539,7 +539,7 @@ export default { if(typeof res.result == 'string') { res.result = JSON.parse(res.result) } - this.form.examines = res.result.userList + this.form.examines = res.userList } }).catch((err) => { this.$u.toast(err) diff --git a/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue b/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue index d1065252..d16ea31b 100644 --- a/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue +++ b/src/project/huizhili/AppCooperationPropaganda/scopedSelect.vue @@ -92,20 +92,18 @@ export default { }, getDeptUser() { - // this.selectEnterpriseContact({ - wx.invoke("selectEnterpriseContact", { + this.selectEnterpriseContact({ fromDepartmentId: 0, // 从最上层开始 mode: "multi", // 多选 - type: ["department"], // 选部门 - selectedDepartmentIds: this.deptListArr?.map(e => e.id) // 已选部门ID列表。用于多次选人时可重入 + type: ["department"], + selectedDepartmentIds: this.deptListArr?.map(e => e.id) // 已选部门ID列表 }).then((res)=>{ console.log(res,'企微通讯录'); if(res.err_msg == "selectEnterpriseContact:ok") { if(typeof res.result == 'string') { res.result = JSON.parse(res.result) - //由于目前各个终端尚未完全兼容,需要开发者额外判断result类型以保证在各个终端的兼容性 } - this.deptListArr = res.result.departmentList + this.deptListArr = res.departmentList console.log(this.deptListArr, '111'); } }).catch((err) => {