Commit 150e7ba4 authored by 赵帅's avatar 赵帅

codeing

parent 35ae3924
...@@ -111,9 +111,10 @@ ...@@ -111,9 +111,10 @@
} else { } else {
self.showColumns = []; self.showColumns = [];
// 将字符串对象进行替换处理 // 将字符串对象进行替换处理
_.each(self.schema['columns'], function(column) { _.each(self.columns,function(item){
_.each(self.columns,function(item){ _.each(self.schema['columns'], function(column) {
if(column.codeCamel===item){ if(item===column.codeCamel){
console.log(item);
const tmp = JSON.parse(JSON.stringify(column)) const tmp = JSON.parse(JSON.stringify(column))
self.showColumns.push(tmp) self.showColumns.push(tmp)
} }
......
<template> <template>
<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">
</hm-complex-detail> </hm-complex-detail>
</div> </div>
......
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