diff --git a/src/views/haomo/components/details/HmComplexDetail.vue b/src/views/haomo/components/details/HmComplexDetail.vue
index 55abddf52e97dd209b48bd6a565cd03faf2e4a51..d7d11c636aa46295f7340802d2187626149fd90e 100644
--- a/src/views/haomo/components/details/HmComplexDetail.vue
+++ b/src/views/haomo/components/details/HmComplexDetail.vue
@@ -32,6 +32,32 @@
         type: Object,
         required: true
       },
+      /**
+       * 指定要显示的列。默认为根据schema得到的所有列。完整示例为:
+       *  [
+       *    {
+       *      "name": "姓名",
+       *      "code": "username",
+       *      "render": function(value){
+       *        return "<a href='value'></a>"
+       *      }
+       *    },
+       *    "mobile",
+       *    "sexual"
+       *  ]
+       */
+      columns: {
+        type: Array,
+        required: false,
+        validator: function(value) {
+          if (typeof value !== 'object') {
+            console.warn(`传入的columns不符合要求,必须是数组`)
+            return false
+          }
+
+          return true
+        }
+      },
       /*
       * 在详情页需要传入用户的id用来带出用户信息
       * */
@@ -52,17 +78,51 @@
     filters: {
     },
     created() {
-      this.init()
       this.getList()
+      this.init()
     },
     methods: {
-      init() {
+      validate() {
         const self = this
-        _.each(self.schema['columns'], function(column) {
-          const tmp = JSON.parse(JSON.stringify(column))
-          self.showColumns.push(tmp)
-        })
+        // this.columns数组元素本身必须是string或者object. 且必须是schema中定义的列
+        // 由于vue中不允许通过其他的props来验证当前props,只能在created里进行调用
+        _.each(self.columns, function(item) {
+          if (!item) {
+            return 0
+          }
 
+          if (typeof item !== 'string' && typeof item !== 'object') {
+            console.error(`传入的columns不符合要求,数组元素必须是字符串或对象`)
+          }
+          if (typeof item === 'string' && !_.keyBy(self.schema['columns'], 'code')[item.toUpperCase()]) {
+            console.error(`传入的columns不符合要求,字符串元素[${item}]必须是schema中定义的列[code]`)
+          }
+          if (typeof item === 'object' && !_.keyBy(self.schema['columns'], 'code')[item['code'].toUpperCase()]) {
+            console.error(`传入的columns不符合要求,元素的code属性[${item['code']}]必须是schema中定义的列[code]`)
+          }
+        })
+      },
+      init() {
+        const self = this
+        console.log(self.schema);
+        // 处理要显示的列
+        if (!self.columns || !self.columns.length) {
+          _.each(self.schema['columns'], function(column) {
+            const tmp = JSON.parse(JSON.stringify(column))
+            self.showColumns.push(tmp)
+          })
+        } else {
+          self.showColumns = [];
+          // 将字符串对象进行替换处理
+          _.each(self.schema['columns'], function(column) {
+            _.each(self.columns,function(item){
+              if(column.codeCamel===item){
+                const tmp = JSON.parse(JSON.stringify(column))
+                self.showColumns.push(tmp)
+              }
+            })
+          })
+        }
         if (!request.defaults.baseURL) {
           request.defaults.baseURL = '/org/api'
         }
diff --git a/src/views/haomo/components/details/index.vue b/src/views/haomo/components/details/index.vue
index 1fd4a705274888749a97055a3ca89a981c0afea6..86493bfc79f580c14e9f26087a44bd8fd72256fc 100644
--- a/src/views/haomo/components/details/index.vue
+++ b/src/views/haomo/components/details/index.vue
@@ -1,6 +1,6 @@
 <template>
   <div>
-    <hm-complex-detail :schema="schema['HmUser']" :userId="userId">
+    <hm-complex-detail :schema="schema['HmUser']" :userId="userId" :columns="showUserColumns">
     </hm-complex-detail>
   </div>
 </template>
@@ -18,7 +18,9 @@
       'hm-complex-detail': HmComplexDetail
     },
     data() {
-      return {}
+      return {
+        showUserColumns: ['mobile', 'loginid']
+      }
     },
     computed: {
     },