Commit 95761fe9 authored by nature's avatar nature

hzero下拉框组件

parent ffb55d2a
...@@ -209,7 +209,7 @@ export default { ...@@ -209,7 +209,7 @@ export default {
getLovCode () { getLovCode () {
let vm = this let vm = this
const tenantId = localStorage.getItem('tenantId') const tenantId = localStorage.getItem('tenantId')
let url = `${process.env.VUE_APP_API_HOST}/hpfm/v1/${tenantId}/lov-view/info?viewCode=${vm.lovCode}` let url = `${process.env.VUE_APP_API_HOST}/hpfm/v1/${tenantId}/lov-view/info?viewCode=${vm.lovCode}&t=${new Date().getTime()}`
let headers = { let headers = {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer ' + window.localStorage.access_token, 'Authorization': 'Bearer ' + window.localStorage.access_token,
...@@ -219,7 +219,7 @@ export default { ...@@ -219,7 +219,7 @@ export default {
}).then((res) => { }).then((res) => {
if (res.queryUrl) { if (res.queryUrl) {
const queryUrl = res.queryUrl const queryUrl = res.queryUrl
let lovUrl = `${process.env.VUE_APP_API_HOST}${queryUrl}?lovCode=${this.lovCode}&page=0&size=99` let lovUrl = `${process.env.VUE_APP_API_HOST}${queryUrl}?lovCode=${this.lovCode}&page=0&size=99&t=${new Date().getTime()}`
axios.get(lovUrl, { axios.get(lovUrl, {
headers: headers, headers: headers,
}).then((res) => { }).then((res) => {
...@@ -235,13 +235,14 @@ export default { ...@@ -235,13 +235,14 @@ export default {
getLookUpCode () { getLookUpCode () {
let vm = this let vm = this
const tenantId = localStorage.getItem('tenantId') const tenantId = localStorage.getItem('tenantId')
let url = `${process.env.VUE_APP_API_HOST}/hpfm/v1/${tenantId}/lovs/data?lovCode=${vm.lookUpCode}` let url = `${process.env.VUE_APP_API_HOST}/hpfm/v1/${tenantId}/lovs/data?lovCode=${vm.lookUpCode}&t=${new Date().getTime()}`
axios.get(url, { axios.get(url, {
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'Authorization': 'Bearer ' + window.localStorage.access_token, 'Authorization': 'Bearer ' + window.localStorage.access_token,
}, },
}).then((res) => { }).then((res) => {
debugger
if (Array.isArray(res)) { if (Array.isArray(res)) {
vm.arrayList = res vm.arrayList = res
vm.getCodeName(res) vm.getCodeName(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment