tangning 2 년 전
부모
커밋
9c361d522d
2개의 변경된 파일26개의 추가작업 그리고 26개의 파일을 삭제
  1. 1 1
      src/views/device/index.vue
  2. 25 25
      src/views/operate/caseList.vue

+ 1 - 1
src/views/device/index.vue

@@ -191,7 +191,7 @@ import { lte } from 'lodash';
           ifShow: true,
           fixed: 'right',
           flag: 'ACTION',
-          width: 160,
+          width: 180,
         },
       ];
       const searchForm: Partial<FormProps> = {

+ 25 - 25
src/views/operate/caseList.vue

@@ -168,31 +168,31 @@ export default defineComponent({
         dataIndex: 'sort',
         width: 80,
       },
-      {
-        title: '是否显示',
-        dataIndex: 'isShow',
-        ifShow: getCheckPerm('case-display'),
-        width: 80,
-        customRender: ({ record }) => {
-          if (!Reflect.has(record, 'pendingStatus')) {
-            record.pendingStatus = false;
-          }
-          return h(Switch, {
-            checked: record.isShow === 1,
-            checkedChildren: '是',
-            unCheckedChildren: '否',
-            loading: false,
-            onChange: async (checked: boolean) => {
-              record.pendingStatus = true;
-              const id: string = record.id || '';
-              const newStatus = checked ? 1 : 0;
-              Reflect.set(record, 'isShow', newStatus);
-              await caseReleaseApi({ id: id, isShow: newStatus });
-              createMessage.success(t('common.optSuccess'));
-              // reload()
-            },
-          });
-        },
+      // {
+      //   title: '是否显示',
+      //   dataIndex: 'isShow',
+      //   ifShow: getCheckPerm('case-display'),
+      //   width: 80,
+      //   customRender: ({ record }) => {
+      //     if (!Reflect.has(record, 'pendingStatus')) {
+      //       record.pendingStatus = false;
+      //     }
+      //     return h(Switch, {
+      //       checked: record.isShow === 1,
+      //       checkedChildren: '是',
+      //       unCheckedChildren: '否',
+      //       loading: false,
+      //       onChange: async (checked: boolean) => {
+      //         record.pendingStatus = true;
+      //         const id: string = record.id || '';
+      //         const newStatus = checked ? 1 : 0;
+      //         Reflect.set(record, 'isShow', newStatus);
+      //         await caseReleaseApi({ id: id, isShow: newStatus });
+      //         createMessage.success(t('common.optSuccess'));
+      //         // reload()
+      //       },
+      //     });
+      //   },
       },
     ];
     const searchForm: Partial<FormProps> = {