edit
This commit is contained in:
@ -78,7 +78,10 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
{ label: '停用', value: true }
|
||||
],
|
||||
ui: {
|
||||
widget: 'radio'
|
||||
widget: 'radio',
|
||||
visibleIf: {
|
||||
itemValue: (value: number) => this.configType !== 3
|
||||
}
|
||||
} as SFRadioWidgetSchema,
|
||||
default: staff?.statePaused || false
|
||||
}
|
||||
|
||||
@ -83,6 +83,7 @@ export class CartConfigComponent implements OnInit {
|
||||
{
|
||||
title: '启用状态',
|
||||
className: 'text-center',
|
||||
iif: () => this.tabType !== 3,
|
||||
index: 'statePaused',
|
||||
type: 'badge',
|
||||
badge: {
|
||||
@ -156,7 +157,9 @@ export class CartConfigComponent implements OnInit {
|
||||
configAction(item?: any) {
|
||||
const modal = this.nzModalService.create({
|
||||
nzContent: CartConfigActionModalComponent,
|
||||
nzComponentParams: item ? { i: { ...item,itemValue:item.name }, 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 => {
|
||||
|
||||
Reference in New Issue
Block a user