|
@@ -86,7 +86,7 @@
|
|
title: '查看权限',
|
|
title: '查看权限',
|
|
dataIndex: 'lookAuth',
|
|
dataIndex: 'lookAuth',
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.lookAuth == 1 ? '不限时间' : record.lookAuth == 0 ? '无权' : !dayjs().isBefore(dayjs(record.lookEndTime)) ? '已过期' : `${dayjs(record.lookEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
|
|
|
|
+ return record.lookAuth == 1 ? '不限时间' : record.lookAuth == 0 ? '无权' : `${dayjs(record.lookEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
},
|
|
},
|
|
width: 150,
|
|
width: 150,
|
|
},
|
|
},
|
|
@@ -94,7 +94,7 @@
|
|
title: '编辑权限',
|
|
title: '编辑权限',
|
|
dataIndex: 'editAuth',
|
|
dataIndex: 'editAuth',
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
- return record.editAuth == 1 ? '不限时间' : record.editAuth == 0 ? '无权' : !dayjs().isBefore(dayjs(record.editEndTime)) ? '已过期' : `${dayjs(record.editEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
|
|
|
|
+ return record.editAuth == 1 ? '不限时间' : record.editAuth == 0 ? '无权' : `${dayjs(record.editEndTime).format('YYYY-MM-DD HH:mm')} 截止`;
|
|
},
|
|
},
|
|
width: 150,
|
|
width: 150,
|
|
},
|
|
},
|