Commit 9b7de110 by 姜雷

生日为空时不处理日期

parent 15efa8c8
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="sex" :formatter="getSexValue" label="性别" min-width="50"> <el-table-column prop="sex" :formatter="getSexValue" label="性别" min-width="50">
</el-table-column> </el-table-column>
<el-table-column prop="birthday" :formatter="(c,r,val) => $formatDate(new Date(val),'yyyy-MM-dd')" label="出生年月" min-width="80"> <el-table-column prop="birthday" :formatter="(c,r,val) => val ? $formatDate(new Date(val),'yyyy-MM-dd') : ''" label="出生年月" min-width="80">
</el-table-column> </el-table-column>
<el-table-column prop="cellphone" label="手机号" min-width="100"> <el-table-column prop="cellphone" label="手机号" min-width="100">
</el-table-column> </el-table-column>
......
...@@ -23,6 +23,7 @@ export const constantRouterMap = [ ...@@ -23,6 +23,7 @@ export const constantRouterMap = [
name: 'home', name: 'home',
redirect: 'home', redirect: 'home',
meta: { title: '首页', icon: 'example' }, meta: { title: '首页', icon: 'example' },
hidden: true,
children: [ children: [
{ {
path: 'home', path: 'home',
......
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