人员选择器需求调整
This commit is contained in:
@@ -351,6 +351,27 @@ const store = new Vuex.Store({
|
||||
})
|
||||
})
|
||||
},
|
||||
selectPrivilegedContact(state, params) {
|
||||
return new Promise(resolve => {
|
||||
state.dispatch("injectJWeixin", "selectPrivilegedContact").then(() => {
|
||||
setTimeout(() => {
|
||||
let sdk = typeof wx?.invoke == 'function' ? wx : jWeixin
|
||||
sdk?.invoke("selectEnterpriseContact", {
|
||||
fromDepartmentId: -1,
|
||||
mode: "multi",
|
||||
...params
|
||||
}, res => {
|
||||
if (res.err_msg == "selectPrivilegedContact:ok") {
|
||||
if (typeof res.result == 'string') {
|
||||
res.result = JSON.parse(res.result)
|
||||
}
|
||||
resolve(res.result)
|
||||
}
|
||||
})
|
||||
}, 500)
|
||||
})
|
||||
})
|
||||
},
|
||||
},
|
||||
getters: {
|
||||
getDict: state => key => {
|
||||
|
||||
Reference in New Issue
Block a user