BUG 30123
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
<div class="item" v-else-if="item.type == 'gird'">
|
||||
<span class="label"><span class="tips">{{ item.mustFill == 1 ? '*' : '' }}</span>{{ item.fieldName }}</span>
|
||||
<div class="value" flex>
|
||||
<AiPagePicker type="custom" @select="v=>handleSelectGird(v,item)" self :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiPagePicker type="custom" @select="v=>handleSelectGird(v,item)" :ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<AiMore v-model="formData[item.fieldDbName + '_name']" :placeholder="item.fieldTips"/>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
@@ -462,7 +462,7 @@ export default {
|
||||
return obj?.toString() || "-"
|
||||
},
|
||||
handleSelectGird(gird, item) {
|
||||
let info = gird?.[0] || {}
|
||||
let info = gird || {}
|
||||
this.formData[item.fieldDbName] = [info.id, info.girdName].join("_")
|
||||
this.formData[item.fieldDbName + "_name"] = info.girdName
|
||||
this.$forceUpdate()
|
||||
|
||||
@@ -10,7 +10,6 @@ let agentSignURL = "", apiList = []
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
token: "",
|
||||
corpId: "",
|
||||
openUser: {},
|
||||
user: {},
|
||||
config: {},
|
||||
@@ -65,7 +64,7 @@ const store = new Vuex.Store({
|
||||
},
|
||||
redirectCode(state, url = location.href) {
|
||||
let REDIRECT_URI = encodeURIComponent(url),
|
||||
corpid = state.corpId
|
||||
corpid = state.config.corpid
|
||||
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'
|
||||
.replace(/CORPID/g, cid)
|
||||
@@ -75,7 +74,7 @@ const store = new Vuex.Store({
|
||||
redirectTo(corpid)
|
||||
} else {
|
||||
store.dispatch("agentSign").then(() => {
|
||||
corpid = state.corpId
|
||||
corpid = state.config.corpid
|
||||
redirectTo(corpid)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user