提交 27a57a3e authored 作者: pengxiaohui's avatar pengxiaohui

合并冲突

...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
{ {
prop: 'created_by', prop: 'created_by',
label: '创建人', label: '创建人',
minWidth: '100px', // minWidth: '100px',
computed({ row }) { computed({ row }) {
return row.created_by.realname || row.created_by.nickname || row.created_by.username return row.created_by.realname || row.created_by.nickname || row.created_by.username
} }
......
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
{ {
prop: 'created_by', prop: 'created_by',
label: '创建人', label: '创建人',
minWidth: '100px', // minWidth: '100px',
computed({ row }) { computed({ row }) {
return row.created_by.realname || row.created_by.nickname || row.created_by.username return row.created_by.realname || row.created_by.nickname || row.created_by.username
} }
......
...@@ -44,14 +44,22 @@ export default { ...@@ -44,14 +44,22 @@ export default {
} }
}, },
columns: [ columns: [
{ label: '员工姓名', prop: 'sso_user.username', align: 'center' }, { label: '员工姓名', prop: 'sso_user.nickname', align: 'center' },
{
prop: 'sso_user',
label: '员工姓名',
// minWidth: '100px',
computed({ row }) {
return row.sso_user.realname || row.sso_user.nickname || row.sso_user.username
}
},
{ label: '手机号', prop: 'sso_user.mobile', align: 'center' }, { label: '手机号', prop: 'sso_user.mobile', align: 'center' },
{ label: '创建时间', prop: 'created_at', align: 'center' }, { label: '创建时间', prop: 'created_at', align: 'center' },
// { label: '创建人', prop: 'created_by.username', align: 'center' }, // { label: '创建人', prop: 'created_by.username', align: 'center' },
{ {
prop: 'created_by', prop: 'created_by',
label: '创建人', label: '创建人',
minWidth: '100px', // minWidth: '100px',
computed({ row }) { computed({ row }) {
return row.created_by.realname || row.created_by.nickname || row.created_by.username return row.created_by.realname || row.created_by.nickname || row.created_by.username
} }
......
...@@ -73,7 +73,7 @@ export default { ...@@ -73,7 +73,7 @@ export default {
{ {
prop: 'created_by', prop: 'created_by',
label: '创建人', label: '创建人',
minWidth: '100px', // minWidth: '100px',
computed({ row }) { computed({ row }) {
return row.created_by.realname || row.created_by.nickname || row.created_by.username return row.created_by.realname || row.created_by.nickname || row.created_by.username
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论