From 81c6619b04d95e849daf9bcd0b2f2e74c862d842 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 2 Mar 2023 10:35:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=99=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppCooperationPropaganda/addPropaganda.vue | 2 +- .../huizhili/AppCooperationPropaganda/scopedSelect.vue | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) 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) => {