edit
This commit is contained in:
@ -22,8 +22,6 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
};
|
||||
@Input()
|
||||
configType: number = 1;
|
||||
@Input()
|
||||
params = {};
|
||||
dictKey = '';
|
||||
constructor(private modal: NzModalRef, public service: SystemService) {}
|
||||
|
||||
@ -72,7 +70,7 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
type: 'string',
|
||||
default: staff.itemValue
|
||||
},
|
||||
stateLocked: {
|
||||
statePaused: {
|
||||
type: 'string',
|
||||
title: '状态',
|
||||
enum: [
|
||||
@ -82,7 +80,7 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
ui: {
|
||||
widget: 'radio'
|
||||
} as SFRadioWidgetSchema,
|
||||
default: staff?.stateLocked || false
|
||||
default: staff?.statePaused || false
|
||||
}
|
||||
},
|
||||
required: ['itemValue']
|
||||
@ -93,7 +91,6 @@ export class CartConfigActionModalComponent implements OnInit {
|
||||
if (this.i.id === 0) {
|
||||
const params: any = {
|
||||
...this.sf.value,
|
||||
...this.params,
|
||||
dictKey: this.dictKey,
|
||||
itemData: this.sf.value.itemValue
|
||||
};
|
||||
|
||||
@ -82,7 +82,7 @@ export class CartConfigComponent implements OnInit {
|
||||
{
|
||||
title: '启用状态',
|
||||
className: 'text-center',
|
||||
index: 'stateLocked',
|
||||
index: 'statePaused',
|
||||
type: 'badge',
|
||||
badge: {
|
||||
false: { text: '启用', color: 'success' },
|
||||
@ -150,7 +150,7 @@ export class CartConfigComponent implements OnInit {
|
||||
nzContent: CartConfigActionModalComponent,
|
||||
nzComponentParams: item
|
||||
? { i: { ...item }, configType: this.tabType }
|
||||
: { i: { id: 0 }, configType: this.tabType, params: { itemKey: this.st.total + 1 } },
|
||||
: { i: { id: 0 }, configType: this.tabType },
|
||||
nzFooter: null
|
||||
});
|
||||
modal.afterClose.subscribe(res => {
|
||||
|
||||
Reference in New Issue
Block a user