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

详情

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