人员选择器增加可选自己
This commit is contained in:
@@ -63,11 +63,11 @@ const store = new Vuex.Store({
|
|||||||
},
|
},
|
||||||
redirectCode(state, url = location.href) {
|
redirectCode(state, url = location.href) {
|
||||||
let REDIRECT_URI = encodeURIComponent(url),
|
let REDIRECT_URI = encodeURIComponent(url),
|
||||||
corpid = state.corpId
|
corpid = state.corpId
|
||||||
const redirectTo = cid => {
|
const redirectTo = cid => {
|
||||||
location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect'
|
location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base#wechat_redirect'
|
||||||
.replace(/CORPID/g, cid)
|
.replace(/CORPID/g, cid)
|
||||||
.replace(/REDIRECT_URI/g, REDIRECT_URI)
|
.replace(/REDIRECT_URI/g, REDIRECT_URI)
|
||||||
}
|
}
|
||||||
if (corpid) {
|
if (corpid) {
|
||||||
redirectTo(corpid)
|
redirectTo(corpid)
|
||||||
@@ -227,16 +227,16 @@ const store = new Vuex.Store({
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
return http.post("/app/wxcp/wxuser/getUserInfoByToken")
|
return http.post("/app/wxcp/wxuser/getUserInfoByToken")
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
state.commit("setOpenUser", res.data)
|
state.commit("setOpenUser", res.data)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
agentSign(state, params) {
|
agentSign(state, params) {
|
||||||
let url = window.location.href,
|
let url = window.location.href,
|
||||||
{corpId, suiteId} = state.state.config
|
{corpId, suiteId} = state.state.config
|
||||||
if (agentSignURL == url) {
|
if (agentSignURL == url) {
|
||||||
return Promise.resolve()
|
return Promise.resolve()
|
||||||
} else {
|
} else {
|
||||||
@@ -358,6 +358,7 @@ const store = new Vuex.Store({
|
|||||||
let sdk = typeof wx?.invoke == 'function' ? wx : jWeixin
|
let sdk = typeof wx?.invoke == 'function' ? wx : jWeixin
|
||||||
sdk?.invoke("selectEnterpriseContact", {
|
sdk?.invoke("selectEnterpriseContact", {
|
||||||
fromDepartmentId: -1,
|
fromDepartmentId: -1,
|
||||||
|
selectedContextContact: 1,
|
||||||
mode: "multi",
|
mode: "multi",
|
||||||
...params
|
...params
|
||||||
}, res => {
|
}, res => {
|
||||||
|
|||||||
Reference in New Issue
Block a user