From 8067580e8c5868b21815aee65ad3da742e9bec90 Mon Sep 17 00:00:00 2001 From: Taric Xin Date: Tue, 22 Feb 2022 20:32:04 +0800 Subject: [PATCH] ediut --- .../components/cart-config/cart-config.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts b/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts index cca76f95..94379427 100644 --- a/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts +++ b/src/app/routes/sys-setting/components/cart-config/cart-config.component.ts @@ -79,7 +79,7 @@ export class CartConfigComponent implements OnInit { columns: STColumn[] = [ { title: '车型', index: 'itemValue', iif: () => this.tabType === 1 }, { title: '车长', index: 'itemValue', iif: () => this.tabType === 2 }, - { title: '物品名称', index: 'itemValue', iif: () => this.tabType === 3 }, + { title: '物品名称', index: 'name', iif: () => this.tabType === 3 }, { title: '启用状态', className: 'text-center', @@ -125,7 +125,7 @@ export class CartConfigComponent implements OnInit { Object.assign(params, { dictKey: 'car:length', itemValue: this.sf?.value.params2 }); break; case 3: - Object.assign(params, { configFullKey: 'ban.goods.name', itemValue: this.sf?.value.params3 }); + Object.assign(params, { configFullKey: 'ban.goods.name', name: this.sf?.value.params3 }); break; default: @@ -156,7 +156,7 @@ export class CartConfigComponent implements OnInit { configAction(item?: any) { const modal = this.nzModalService.create({ nzContent: CartConfigActionModalComponent, - nzComponentParams: item ? { i: { ...item }, configType: this.tabType } : { i: { id: 0 }, configType: this.tabType }, + nzComponentParams: item ? { i: { ...item,itemValue:item.name }, configType: this.tabType } : { i: { id: 0 }, configType: this.tabType }, nzFooter: null }); modal.afterClose.subscribe(res => {