Quellcode durchsuchen

fix: 修改列表整体样式1

hanxiaohui vor 2 Monaten
Ursprung
Commit
9755116b36

+ 9 - 7
src/views/customer-manage/customer-black-list/index.vue

@@ -1,11 +1,13 @@
 <template>
-  <bs-table v-bind="tableOptions">
-    <template #searchRight>
-    </template>
-    <template #toolbarLeft>
-      <a-space> 累计客户 283|S级客户23|A级客户23|B级客户23|C级客户23|未合作客户23|黑名单客户23 </a-space>
-    </template>
-  </bs-table>
+  <BsPageWrapper>
+    <bs-table v-bind="tableOptions">
+      <template #searchRight>
+      </template>
+      <template #toolbarLeft>
+        <a-space> 累计客户 283|S级客户23|A级客户23|B级客户23|C级客户23|未合作客户23|黑名单客户23 </a-space>
+      </template>
+    </bs-table>
+  </BsPageWrapper>
 </template>
 
 <script setup lang="jsx">

+ 3 - 3
src/views/customer-manage/customer-management/index.vue

@@ -1,5 +1,5 @@
 <template>
-  <div class="customer-management">
+  <BsPageWrapper class="customer-management">
     <a-tabs v-model:activeKey="activeKey" class="tabs">
       <a-tab-pane v-for="(item, index) in tabsOptions" :key="index">
         <template #tab>
@@ -11,7 +11,7 @@
       </a-tab-pane>
     </a-tabs>
     <bs-table v-bind="tableOptions"></bs-table>
-  </div>
+  </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive, h, onMounted, watch } from 'vue';
@@ -81,7 +81,7 @@ const {
   tableOptions: {
     url: '/supports/customer/queryPage',
     gridOptions: {
-      height: 600,
+      height: 750,
       loading: false,
       data: [],
       columns: [

+ 9 - 7
src/views/customer-manage/customer-public-sea/index.vue

@@ -1,11 +1,13 @@
 <template>
-  <bs-table v-bind="tableOptions">
-    <template #toolbarLeft>
-      <a-space>
-        公海客户: 218位
-      </a-space>
-    </template>
-  </bs-table>
+  <BsPageWrapper>
+    <bs-table v-bind="tableOptions">
+      <template #toolbarLeft>
+        <a-space>
+          公海客户: 218位
+        </a-space>
+      </template>
+    </bs-table>
+  </BsPageWrapper>
 </template>
 
 <script setup lang="jsx">

+ 8 - 13
src/views/customer-manage/service-provider-customer-review/index.vue

@@ -1,9 +1,11 @@
 <template>
-  <bs-table v-bind="tableOptions">
-    <template #toolbarLeft>
-      <a-space> 待审核客户 3 |审核中客户 23 </a-space>
-    </template>
-  </bs-table>
+  <BsPageWrapper>
+    <bs-table v-bind="tableOptions">
+      <template #toolbarLeft>
+        <a-space> 待审核客户 3 |审核中客户 23 </a-space>
+      </template>
+    </bs-table>
+  </BsPageWrapper>
 </template>
 <script setup>
 import { ref, reactive } from 'vue';
@@ -151,8 +153,8 @@ const {
           },
         },
       ],
+      data:generateReviewCustomerData(),
     },
-    data:generateReviewCustomerData(),
     searchConfig: {
       enabled: true,
       fieldSpan: 4,
@@ -189,13 +191,6 @@ const {
         fetchTableData();
       },
     },
-    pagerConfig: {
-      enabled: true,
-      pageSize: 10,
-      pageNum: 1,
-      total: 0,
-      isFixed: false,
-    },
     toolbarConfig: {
       onRefresh() {
         fetchTableData();

+ 2 - 2
src/views/market-manage/activity-manage/activity-management/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="activity-management">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
             <template #searchRight>
                 <div>
@@ -9,7 +9,7 @@
                 </div>
             </template>
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"

+ 3 - 12
src/views/market-manage/service-provider-manage/certified-service-provider/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="certified-service-provider">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
             <template #searchRight>
                 <div>
@@ -9,7 +9,7 @@
                 </div>
             </template>
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"
@@ -147,8 +147,8 @@ const {
                     },
                 },
             ],
+            data: generateMockData(),
         },
-        data:generateMockData(),
         searchConfig: {
             enabled: true,
             fieldSpan: 4,
@@ -180,15 +180,6 @@ const {
                 },
             ],
         },
-        pagerConfig: {
-            enabled: true,
-            pageSize: 10,
-            pageNum: 1,
-            total: 0,
-            // isFixed: false
-        },
-        toolbarConfig: {
-        },
         tableSearchBeforeBiz() {
             const searchParams = getValue('searchConfig.data');
             setValue('searchConfig.data', { ...searchParams, bizModel: 'STORE-0' });

+ 2 - 2
src/views/market-manage/service-provider-manage/quit-service-provider/index.vue

@@ -1,8 +1,8 @@
 <template>
-    <div class="quit-service-provider">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"

+ 3 - 13
src/views/market-manage/service-provider-manage/service-provider-audit/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="service-provider-review">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
             <template #searchRight>
                 <div>
@@ -9,7 +9,7 @@
                 </div>
             </template>
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"
@@ -169,9 +169,9 @@ const {
                     },
                 },
             ],
+            data:generateMockData(),
         },
         searchConfig: {
-            enabled: true,
             fieldSpan: 4,
             fields: [
                 {
@@ -201,16 +201,6 @@ const {
                 },
             ],
         },
-        pagerConfig: {
-            enabled: true,
-            pageSize: 10,
-            pageNum: 1,
-            total: 0,
-            // isFixed: false
-        },
-        toolbarConfig: {
-        },
-        data:generateMockData(),
         tableSearchBeforeBiz() {
             const searchParams = getValue('searchConfig.data');
             setValue('searchConfig.data', { ...searchParams, bizModel: 'AUDIT' });

+ 3 - 13
src/views/market-manage/service-provider-manage/service-provider-recommend/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="service-provider-recommend">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
             <!-- <template #searchRight>
                 <div>
@@ -9,7 +9,7 @@
                 </div>
             </template> -->
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"
@@ -57,7 +57,6 @@ const {
     getTablePropsValue: getValue,
 } = useBsTable({
     tableOptions: {
-        // url: '/supports/provider/queryPage',
         gridOptions: {
             loading: false,
             columns: [
@@ -167,8 +166,8 @@ const {
                     },
                 },
             ],
+            data: generateMockData(),
         },
-        data:generateMockData(),
         searchConfig: {
             enabled: true,
             fieldSpan: 4,
@@ -200,15 +199,6 @@ const {
                 },
             ],
         },
-        pagerConfig: {
-            enabled: true,
-            pageSize: 10,
-            pageNum: 1,
-            total: 0,
-            // isFixed: false
-        },
-        toolbarConfig: {
-        },
         tableSearchBeforeBiz() {
             const searchParams = getValue('searchConfig.data');
             setValue('searchConfig.data', { ...searchParams, bizModel: 'REFERRAL' });

+ 4 - 13
src/views/market-manage/service-provider-manage/service-provider-review/index.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="service-provider-review">
+    <BsPageWrapper>
         <bs-table v-bind="tableOptions">
             <template #searchRight>
                 <div>
@@ -9,7 +9,7 @@
                 </div>
             </template>
         </bs-table>
-    </div>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive, onMounted, nextTick } from "vue"
@@ -55,7 +55,7 @@ const {
     getTablePropsValue: getValue,
 } = useBsTable({
     tableOptions: {
-        url: '/supports/provider/queryPage',
+        // url: '/supports/provider/queryPage',
         gridOptions: {
             loading: false,
             columns: [
@@ -165,8 +165,8 @@ const {
                     },
                 },
             ],
+            data:generateMockData(),
         },
-        data:generateMockData(),
         searchConfig: {
             enabled: true,
             fieldSpan: 4,
@@ -198,15 +198,6 @@ const {
                 },
             ],
         },
-        pagerConfig: {
-            enabled: true,
-            pageSize: 10,
-            pageNum: 1,
-            total: 0,
-            // isFixed: false
-        },
-        toolbarConfig: {
-        },
         tableSearchBeforeBiz() {
             const searchParams = getValue('searchConfig.data');
             setValue('searchConfig.data', { ...searchParams, bizModel: 'INTERVIEW' });

+ 5 - 16
src/views/market-manage/service-provider-manage/unqualified-service-provider/index.vue

@@ -1,9 +1,7 @@
 <template>
-    <div class="unqualified-service-provider">
-        <bs-table v-bind="tableOptions">
-
-        </bs-table>
-    </div>
+    <BsPageWrapper>
+        <bs-table v-bind="tableOptions"></bs-table>
+    </BsPageWrapper>
 </template>
 <script setup lang="jsx">
 import { ref, reactive } from "vue"
@@ -160,8 +158,9 @@ const {
                     },
                 },
             ],
+            data:generateMockData(),
         },
-        data:generateMockData(),
+
         searchConfig: {
             enabled: true,
             fieldSpan: 4,
@@ -192,16 +191,6 @@ const {
                     },
                 },
             ],
-        },
-        pagerConfig: {
-            enabled: true,
-            pageSize: 10,
-            pageNum: 1,
-            total: 0,
-            // isFixed: false
-        },
-        toolbarConfig: {
-
         },
         tableSearchBeforeBiz() {
             const searchParams = getValue('searchConfig.data');