|
@@ -49,7 +49,7 @@ export const columns: BasicColumn[] = [
|
|
title: '状态',
|
|
title: '状态',
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
width: 80,
|
|
width: 80,
|
|
- ifShow:getCheckPerm('role-enable'),
|
|
|
|
|
|
+ // ifShow:getCheckPerm('spares-status'),
|
|
customRender: ({ record }) => {
|
|
customRender: ({ record }) => {
|
|
if (!Reflect.has(record, 'pendingStatus')) {
|
|
if (!Reflect.has(record, 'pendingStatus')) {
|
|
record.pendingStatus = false;
|
|
record.pendingStatus = false;
|
|
@@ -58,6 +58,7 @@ export const columns: BasicColumn[] = [
|
|
checked: record.status === 0,
|
|
checked: record.status === 0,
|
|
checkedChildren: '启用',
|
|
checkedChildren: '启用',
|
|
unCheckedChildren: '禁用',
|
|
unCheckedChildren: '禁用',
|
|
|
|
+ disabled:!getCheckPerm('spares-status'),
|
|
loading: false,
|
|
loading: false,
|
|
onChange: async (checked: boolean) => {
|
|
onChange: async (checked: boolean) => {
|
|
record.pendingStatus = true;
|
|
record.pendingStatus = true;
|