This commit is contained in:
Taric Xin
2022-02-22 20:32:04 +08:00
parent 0e687a4c68
commit 8067580e8c

View File

@ -79,7 +79,7 @@ export class CartConfigComponent implements OnInit {
columns: STColumn[] = [ columns: STColumn[] = [
{ title: '车型', index: 'itemValue', iif: () => this.tabType === 1 }, { title: '车型', index: 'itemValue', iif: () => this.tabType === 1 },
{ title: '车长', index: 'itemValue', iif: () => this.tabType === 2 }, { title: '车长', index: 'itemValue', iif: () => this.tabType === 2 },
{ title: '物品名称', index: 'itemValue', iif: () => this.tabType === 3 }, { title: '物品名称', index: 'name', iif: () => this.tabType === 3 },
{ {
title: '启用状态', title: '启用状态',
className: 'text-center', className: 'text-center',
@ -125,7 +125,7 @@ export class CartConfigComponent implements OnInit {
Object.assign(params, { dictKey: 'car:length', itemValue: this.sf?.value.params2 }); Object.assign(params, { dictKey: 'car:length', itemValue: this.sf?.value.params2 });
break; break;
case 3: 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; break;
default: default:
@ -156,7 +156,7 @@ export class CartConfigComponent implements OnInit {
configAction(item?: any) { configAction(item?: any) {
const modal = this.nzModalService.create({ const modal = this.nzModalService.create({
nzContent: CartConfigActionModalComponent, 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 nzFooter: null
}); });
modal.afterClose.subscribe(res => { modal.afterClose.subscribe(res => {