tangning il y a 1 an
Parent
commit
6223df3e12
2 fichiers modifiés avec 24 ajouts et 23 suppressions
  1. 12 12
      src/views/account/product/data.tsx
  2. 12 11
      src/views/account/product/index.vue

+ 12 - 12
src/views/account/product/data.tsx

@@ -286,17 +286,17 @@ export const quanjSearchForm: Partial<FormProps> = {
         xxl: 7,
       },
     },
-    // {
-    //   field: 'snCode',
-    //   label: '作品码',
-    //   component: 'Input',
-    //   componentProps: {
-    //     maxLength: 100,
-    //   },
-    //   colProps: {
-    //     xl: 7,
-    //     xxl: 7,
-    //   },
-    // },
+    {
+      field: 'snCode',
+      label: '作品码',
+      component: 'Input',
+      componentProps: {
+        maxLength: 100,
+      },
+      colProps: {
+        xl: 7,
+        xxl: 7,
+      },
+    },
   ],
 };

+ 12 - 11
src/views/account/product/index.vue

@@ -257,15 +257,15 @@
         },
         schemas: getquanjingSchemas(),
       };
-      const searchForm: Partial<FormProps> = {
-        labelWidth: 100,
-        autoSubmitOnEnter: true,
-        autoAdvancedLine: 1,
-        actionColOptions: {
-          span: 24,
-        },
-        schemas: getviewSchemas(),
-      };
+      // const searchForm: Partial<FormProps> = {
+      //   labelWidth: 100,
+      //   autoSubmitOnEnter: true,
+      //   autoAdvancedLine: 1,
+      //   actionColOptions: {
+      //     span: 24,
+      //   },
+      //   schemas: searchForm,
+      // };
       const permissionStore = usePermissionStore();
       const { getCheckPerm } = permissionStore;
       const [registerPriority, { openModal: openPriorityModal }] = useModal();
@@ -278,12 +278,13 @@
         columns: getviewColumns(),
         searchInfo: { type: 1, userName },
         useSearchForm: true,
-        formConfig: searchForm,
+        formConfig: quanjSearchForm,
         showTableSetting: true,
         showIndexColumn: false,
         rowKey: 'num',
         beforeFetch: (T) => {
           loading.value = true;
+          T.type = 1;
           return T;
         },
         afterFetch: (T) => {
@@ -343,7 +344,7 @@
         searchInfo: { type: tableType, userName },
         showIndexColumn: false,
         useSearchForm: true,
-        formConfig: searchFormSs,
+        formConfig: quanjSearchForm,
         showTableSetting: true,
         beforeFetch: (T) => {
           loading.value = true;