tangning 3 anni fa
parent
commit
e45218a4e7
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      src/views/product/firmware/index.vue

+ 7 - 2
src/views/product/firmware/index.vue

@@ -1,7 +1,7 @@
 <template>
 <template>
   <PageWrapper contentBackground>
   <PageWrapper contentBackground>
     <template #footer>
     <template #footer>
-      <a-tabs v-model:type="searchInfo.type" @change="tabChange">
+      <a-tabs v-model:activeKey="searchInfo.type" @change="tabChange">
         <a-tab-pane key="1" :tab="t('routes.product.type.1')" />
         <a-tab-pane key="1" :tab="t('routes.product.type.1')" />
         <a-tab-pane key="2" :tab="t('routes.product.type.2')" />
         <a-tab-pane key="2" :tab="t('routes.product.type.2')" />
         <a-tab-pane key="3" :tab="t('routes.product.type.3')" />
         <a-tab-pane key="3" :tab="t('routes.product.type.3')" />
@@ -97,13 +97,18 @@
         formConfig: searchForm,
         formConfig: searchForm,
         showTableSetting: true,
         showTableSetting: true,
         rowKey: 'id',
         rowKey: 'id',
-        searchInfo:searchInfo,
         fetchSetting: {
         fetchSetting: {
           pageField: 'pageNum',
           pageField: 'pageNum',
           sizeField: 'pageSize',
           sizeField: 'pageSize',
           listField: 'list',
           listField: 'list',
           totalField: 'total',
           totalField: 'total',
         },
         },
+        searchInfo:searchInfo,
+        // beforeFetch:(T)=>{
+        //   T.type = searchInfo.type
+        //   console.log('beforeFetch',T,searchInfo)
+        //   return T
+        // },
         actionColumn: {
         actionColumn: {
           width: 180,
           width: 180,
           title: '操作',
           title: '操作',