Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
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
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
9f19ba1c
Commit
9f19ba1c
authored
7 years ago
by
赵帅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情
parent
956fa0dd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
HmComplexDetail.vue
src/views/haomo/components/details/HmComplexDetail.vue
+2
-2
index.vue
src/views/haomo/components/details/index.vue
+3
-3
No files found.
src/views/haomo/components/details/HmComplexDetail.vue
View file @
9f19ba1c
...
...
@@ -58,7 +58,7 @@
/*
* 在详情页需要传入用户的id用来带出用户信息
* */
user
Id
:
{
table
Id
:
{
type
:
String
,
required
:
true
}
...
...
@@ -137,7 +137,7 @@
self
.
list
=
resp
.
data
// 匹配需要展示的用户
_
.
each
(
self
.
list
,
function
(
item
)
{
if
(
item
.
id
===
self
.
user
Id
)
{
if
(
item
.
id
===
self
.
table
Id
)
{
self
.
detail
=
item
}
})
...
...
This diff is collapsed.
Click to expand it.
src/views/haomo/components/details/index.vue
View file @
9f19ba1c
<
template
>
<div>
<hm-complex-detail
:schema=
"schema['HmUser']"
:
userId=
"user
Id"
>
<hm-complex-detail
:schema=
"schema['HmUser']"
:
tableId=
"table
Id"
>
</hm-complex-detail>
<hm-complex-detail
:schema=
"schema['HmUser']"
:
userId=
"user
Id"
:columns=
"showUserColumns"
>
<hm-complex-detail
:schema=
"schema['HmUser']"
:
tableId=
"table
Id"
:columns=
"showUserColumns"
>
</hm-complex-detail>
</div>
</
template
>
...
...
@@ -30,7 +30,7 @@
},
created
()
{
this
.
schema
=
schema
this
.
user
Id
=
'0e26566e953449a7a7500c34be39fd26'
this
.
table
Id
=
'0e26566e953449a7a7500c34be39fd26'
},
methods
:
{}
}
...
...
This diff is collapsed.
Click to expand it.
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