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