96 lines
1.5 KiB
TypeScript
96 lines
1.5 KiB
TypeScript
import { h } from 'vue';
|
|
import { ElAvatar, ElTag } from 'element-plus';
|
|
|
|
export const columns = [
|
|
{
|
|
type: 'selection',
|
|
},
|
|
{
|
|
label: 'ID',
|
|
prop: 'id',
|
|
width: 100,
|
|
},
|
|
{
|
|
label: '租户名称',
|
|
prop: 'name',
|
|
width: 150,
|
|
},
|
|
{
|
|
label: '租户编码',
|
|
prop: 'code',
|
|
},
|
|
{
|
|
label: '统一社会信用代码',
|
|
prop: 'license',
|
|
width: 160,
|
|
},
|
|
{
|
|
label: '用户限额',
|
|
prop: 'number',
|
|
},
|
|
{
|
|
label: '租户人数',
|
|
prop: 'userNum',
|
|
},
|
|
{
|
|
label: '到期时间',
|
|
prop: 'expireTime',
|
|
width: 180,
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
prop: 'contactUser',
|
|
width:140
|
|
},
|
|
{
|
|
label: '联系人电话',
|
|
prop: 'contactMobile',
|
|
width:140
|
|
},
|
|
{
|
|
label: '联系人姓名',
|
|
prop: 'contactUser',
|
|
width:140
|
|
},
|
|
{
|
|
label: '联系人邮箱',
|
|
prop: 'contactEmail',
|
|
width:200
|
|
},
|
|
{
|
|
label: '租户网址',
|
|
prop: 'contactSite',
|
|
width:140,
|
|
render(record) {
|
|
return h('a', {
|
|
href: record.row.contactSite,
|
|
target:"_blank"
|
|
}, "点击查看网址");
|
|
},
|
|
},
|
|
{
|
|
label: '状态',
|
|
prop: 'status',
|
|
render(record) {
|
|
return h(
|
|
ElTag,
|
|
{
|
|
type: record.row.status ==1 ? 'success' : 'danger',
|
|
},
|
|
{
|
|
default: () => (record.row.status ==1 ? '正常' : '禁用'),
|
|
},
|
|
);
|
|
},
|
|
},
|
|
{
|
|
label: '创建人',
|
|
prop: 'createUser',
|
|
},
|
|
{
|
|
label: '创建时间',
|
|
prop: 'createTime',
|
|
width: 180,
|
|
},
|
|
];
|