- {resource.type === 1 && resource.short.type === 1 && (
- <>
-
-
- {name(resource)}
-
-
- {resource.resource_no}
-
-
-
- 到期时间:
- {format(resource.short.expire_at, 'yyyy-MM-dd HH:mm')}
-
- {intlFormatDistance(resource.short.expire_at, new Date())}
-
- >
- )}
- {resource.type === 1 && resource.short.type === 2 && (
- <>
-
-
- {name(resource)}
-
-
- {resource.resource_no}
-
-
-
- 提取数量:
- {resource.short.used}
- {' '}
- /
- {resource.short.quota}
-
-
- 剩余
- {resource.short.quota - resource.short.used}
-
-
- >
- )}
- {resource.type === 2 && resource.long.type === 1 && (
- <>
-
-
- {name(resource)}
-
-
- {resource.resource_no}
-
-
-
- 到期时间:
- {format(resource.long.expire_at, 'yyyy-MM-dd HH:mm')}
-
- {intlFormatDistance(resource.long.expire_at, new Date())}
-
- >
- )}
- {resource.type === 2 && resource.long.type === 2 && (
- <>
-
-
- {name(resource)}
-
-
- {resource.resource_no}
-
-
-
- 提取数量:
- {resource.long.used}
- {' '}
- /
- {resource.long.quota}
-
-
- 剩余
- {resource.long.quota - resource.long.used}
-
-
- >
- )}
-
-