tangning 2 سال پیش
والد
کامیت
697fa76450
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/views/spares/role.data.ts

+ 2 - 1
src/views/spares/role.data.ts

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