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

codeing

parent 1426ae64
<template>
<el-row type="flex">
<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-item v-for="(column,index) in showColumns" :key="index" :label="column.name">
<div>{{detail[column.codeCamel]}}</div>
......@@ -60,14 +59,7 @@
* 在详情页需要传入用户的id用来带出用户信息
* */
userId: {
type: null,
required: true
},
/*
* 标题
* */
title: {
type: null,
type: String,
required: true
}
},
......
......@@ -2,7 +2,7 @@
<div>
<hm-complex-detail :schema="schema['HmUser']" :userId="userId">
</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>
</div>
</template>
......@@ -31,7 +31,6 @@
created() {
this.schema = schema
this.userId = '0e26566e953449a7a7500c34be39fd26'
this.title = '详情页面'
},
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