UNPKG

ems-basedata-wdz

Version:

ems-basedata by xianer

111 lines (110 loc) 2.5 kB
export default function(self) { return [ { title: self.$t('操作'), key: 'action', align: 'left', fixed: 'left', width: 100, render: (h, params) => { return h('RowTools', { props: { data: [ { text: self.$t('编辑'), type: 'icon', icon: 'icon iconfont iconbianji-hei', handle: () => { self.editRow(params.row); } }, { text: self.$t('删除'), type: 'icon', icon: 'icon iconfont iconchunseshanchu', handle: () => { self.deleteRow(params.row); } } ] } }); } }, { title: self.$t('员工工号'), align: 'left', resizable: true, key: 'empId', minWidth: 200, render: (h, params) => { return h( 'div', { attrs: { class: 'ivu-table-cell-ellipsis', title: params.row.empId } }, params.row.empId ); } }, { title: self.$t('LDAP账号'), align: 'left', resizable: true, key: 'ldapId', minWidth: 200, render: (h, params) => { return h( 'div', { attrs: { class: 'ivu-table-cell-ellipsis', title: params.row.ldapId } }, params.row.ldapId ); } }, { title: self.$t('员工姓名'), align: 'left', resizable: true, key: 'ldapName', minWidth: 200, render: (h, params) => { return h( 'div', { attrs: { class: 'ivu-table-cell-ellipsis', title: params.row.ldapName } }, params.row.ldapName ); } }, { title: self.$t('邮箱'), align: 'left', key: 'email', minWidth: 200, render: (h, params) => { return h( 'div', { attrs: { class: 'ivu-table-cell-ellipsis', title: params.row.email } }, params.row.email ); } } ]; }