解决冲突

This commit is contained in:
wangshiming
2022-04-27 17:13:38 +08:00
parent 5e66a30318
commit a484a928af

View File

@ -52,8 +52,8 @@ export class ParterLevelConfigListComponent implements OnInit {
title: '状态',
enum: [
{ label: '全部', value: '' },
{ label: '启用', value: '1' },
{ label: '禁用', value: '0' }
{ label: '启用', value: '0' },
{ label: '禁用', value: '1' }
],
ui: {
widget: 'select'
@ -96,7 +96,7 @@ export class ParterLevelConfigListComponent implements OnInit {
title: '状态',
index: 'stateLocked',
format: (item: any) => {
return item.stateLocked ? '用' : '用';
return item.stateLocked ? '用' : '用';
}
},
{
@ -110,12 +110,12 @@ export class ParterLevelConfigListComponent implements OnInit {
{
text: '禁用',
click: (_record, _modal, _instance) => this.stop(_record),
iif: item => item.stateLocked
iif: item => !item.stateLocked
},
{
text: '启用',
click: (_record, _modal, _instance) => this.restart(_record),
iif: item => !item.stateLocked
iif: item => item.stateLocked
}
]
}