Commit 95761fe9 authored by nature's avatar nature

hzero下拉框组件

parent ffb55d2a
......@@ -209,7 +209,7 @@ export default {
getLovCode () {
let vm = this
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 = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + window.localStorage.access_token,
......@@ -219,7 +219,7 @@ export default {
}).then((res) => {
if (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, {
headers: headers,
}).then((res) => {
......@@ -235,13 +235,14 @@ export default {
getLookUpCode () {
let vm = this
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, {
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + window.localStorage.access_token,
},
}).then((res) => {
debugger
if (Array.isArray(res)) {
vm.arrayList = 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