Commit 9f19ba1c authored by 赵帅's avatar 赵帅

详情

parent 956fa0dd
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
/* /*
* 在详情页需要传入用户的id用来带出用户信息 * 在详情页需要传入用户的id用来带出用户信息
* */ * */
userId: { tableId: {
type: String, type: String,
required: true required: true
} }
...@@ -137,7 +137,7 @@ ...@@ -137,7 +137,7 @@
self.list = resp.data self.list = resp.data
// 匹配需要展示的用户 // 匹配需要展示的用户
_.each(self.list, function(item) { _.each(self.list, function(item) {
if (item.id === self.userId) { if (item.id === self.tableId) {
self.detail = item self.detail = item
} }
}) })
......
<template> <template>
<div> <div>
<hm-complex-detail :schema="schema['HmUser']" :userId="userId"> <hm-complex-detail :schema="schema['HmUser']" :tableId="tableId">
</hm-complex-detail> </hm-complex-detail>
<hm-complex-detail :schema="schema['HmUser']" :userId="userId" :columns="showUserColumns"> <hm-complex-detail :schema="schema['HmUser']" :tableId="tableId" :columns="showUserColumns">
</hm-complex-detail> </hm-complex-detail>
</div> </div>
</template> </template>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
}, },
created() { created() {
this.schema = schema this.schema = schema
this.userId = '0e26566e953449a7a7500c34be39fd26' this.tableId = '0e26566e953449a7a7500c34be39fd26'
}, },
methods: {} methods: {}
} }
......
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