diff --git a/src/app/admin/coupon/printer-list/printer-list.component.html b/src/app/admin/coupon/printer-list/printer-list.component.html index bcc8a0d..76956a6 100644 --- a/src/app/admin/coupon/printer-list/printer-list.component.html +++ b/src/app/admin/coupon/printer-list/printer-list.component.html @@ -13,6 +13,7 @@ + @@ -32,14 +33,14 @@ 共计 {{total}} 条数据 - - 编码 - 名称 - 面额 - 库存 - 类型 - 有效天数 - + + 编码 + 名称 + 面额 + 库存 + 类型 + 有效天数 + @@ -49,8 +50,6 @@ {{ data.qty}} {{ data.bizType | scPrinter}} {{ data.validDate}} - - diff --git a/src/app/pipes/api-coupon/sc-printer.pipe.ts b/src/app/pipes/api-coupon/sc-printer.pipe.ts index bd45c31..a32b7a5 100644 --- a/src/app/pipes/api-coupon/sc-printer.pipe.ts +++ b/src/app/pipes/api-coupon/sc-printer.pipe.ts @@ -6,7 +6,7 @@ import { Pipe, PipeTransform } from '@angular/core'; export class ScPrinterPipe implements PipeTransform { transform(value: number): unknown { - switch (value) { + switch (Number(value)) { case 4001: return '油品券'; case 4002: