Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
hls-easy-ui
Commits
95761fe9
Commit
95761fe9
authored
Apr 21, 2021
by
nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hzero下拉框组件
parent
ffb55d2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
index.vue
packages/components/Select/index.vue
+4
-3
No files found.
packages/components/Select/index.vue
View file @
95761fe9
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment