Commit 1426ae64 authored by 赵帅's avatar 赵帅

标题

parent 6fb4272f
<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">详情页面</h2>--> <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>
...@@ -62,13 +62,20 @@ ...@@ -62,13 +62,20 @@
userId: { userId: {
type: null, type: null,
required: true required: true
},
/*
* 标题
* */
title: {
type: null,
required: true
} }
}, },
data() { data() {
return { return {
list: null, list: null,
detail: null, detail: null,
showColumns: [] // 要显示的列数据 showColumns: [] // 要显示的列数据,
} }
}, },
computed: { computed: {
......
...@@ -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"> <hm-complex-detail :schema="schema['HmUser']" :userId="userId" :columns="showUserColumns" :title="title">
</hm-complex-detail> </hm-complex-detail>
</div> </div>
</template> </template>
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
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