Commit d6979563 authored by nature2104's avatar nature2104

lov组件修改

parent 2f60ffcd
/**
* @Author think
* @Date 7/20/21 4:06 PM
*/
<template>
<section class="h-collapse">
</section>
</template>
<script>
export default {
name: "Collapse",
props:{
title:{
type:String,
default:'',
request:true
}
}
data () {
return {}
},
methods: {},
}
</script>
<style scoped lang="less">
</style>
......@@ -225,8 +225,16 @@ export default {
headers: headers,
}).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&t=${Math.random()}`
let queryUrl = res.queryUrl
if (queryUrl.indexOf('organizationId') !== -1) {
queryUrl = queryUrl.replace('{organizationId}', tenantId)
}
let lovUrl
if (queryUrl.indexOf('?') !== -1) {
lovUrl = `${process.env.VUE_APP_API_HOST}${queryUrl}&lovCode=${this.lovCode}&page=0&size=99&t=${Math.random()}`
} else {
lovUrl = `${process.env.VUE_APP_API_HOST}${queryUrl}?lovCode=${this.lovCode}&page=0&size=99&t=${Math.random()}`
}
axios.get(lovUrl, {
headers: headers,
}).then((res) => {
......
......@@ -540,7 +540,7 @@ export default {
code: 'bp_type',
object: {},
returnItem: function (index, obj, child) {
console.log('index:' + index + ',object:' + vum.toJson(obj) + ',:child' + vum.toJson(child))
console.log('index:' + index + ',object:' + JSON.stringify(obj) + ',:child' + JSON.stringify(child))
},
})
},
......@@ -574,7 +574,7 @@ export default {
code: 'bp_type',
object: {},
returnItem: function (index, obj, child) {
console.log('index:' + index + ',object:' + vum.toJson(obj) + ',:child' + vum.toJson(child))
console.log('index:' + index + ',object:' + JSON.stringify(obj) + ',:child' + JSON.stringify(child))
},
})
},
......@@ -621,7 +621,7 @@ export default {
code: 'bp_type',
object: {},
returnItem: function (index, obj, child) {
console.log('index:' + index + ',object:' + vum.toJson(obj) + ',:child' + vum.toJson(child))
console.log('index:' + index + ',object:' + JSON.stringify(obj) + ',:child' + JSON.stringify(child))
},
})
},
......
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