Commit 956fa0dd authored by 赵帅's avatar 赵帅

codeing

parent 1426ae64
<template> <template>
<el-row type="flex"> <el-row type="flex">
<el-col :span="24" class="detail-content"> <el-col :span="24" class="detail-content">
<h2 class="title" v-if="title">{{title}}</h2>
<el-form :data="detail" label-width="110px" status-icon style="width:80%;margin:0 auto"> <el-form :data="detail" label-width="110px" status-icon style="width:80%;margin:0 auto">
<el-form-item v-for="(column,index) in showColumns" :key="index" :label="column.name"> <el-form-item v-for="(column,index) in showColumns" :key="index" :label="column.name">
<div>{{detail[column.codeCamel]}}</div> <div>{{detail[column.codeCamel]}}</div>
...@@ -60,14 +59,7 @@ ...@@ -60,14 +59,7 @@
* 在详情页需要传入用户的id用来带出用户信息 * 在详情页需要传入用户的id用来带出用户信息
* */ * */
userId: { userId: {
type: null, type: String,
required: true
},
/*
* 标题
* */
title: {
type: null,
required: true required: true
} }
}, },
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<hm-complex-detail :schema="schema['HmUser']" :userId="userId"> <hm-complex-detail :schema="schema['HmUser']" :userId="userId">
</hm-complex-detail> </hm-complex-detail>
<hm-complex-detail :schema="schema['HmUser']" :userId="userId" :columns="showUserColumns" :title="title"> <hm-complex-detail :schema="schema['HmUser']" :userId="userId" :columns="showUserColumns">
</hm-complex-detail> </hm-complex-detail>
</div> </div>
</template> </template>
...@@ -31,7 +31,6 @@ ...@@ -31,7 +31,6 @@
created() { created() {
this.schema = schema this.schema = schema
this.userId = '0e26566e953449a7a7500c34be39fd26' this.userId = '0e26566e953449a7a7500c34be39fd26'
this.title = '详情页面'
}, },
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