From 3286b2af0a85f46644bc09cfb16171f4d399890d Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期五, 19 四月 2024 17:13:25 +0800
Subject: [PATCH] 跟换所有页面的接口前缀

---
 src/views/supplierManage/outsourceSupplier/index.vue |   79 ++++++++++++++++++++++++---------------
 1 files changed, 49 insertions(+), 30 deletions(-)

diff --git a/src/views/supplierManage/outsourceSupplier/index.vue b/src/views/supplierManage/outsourceSupplier/index.vue
index bb006b4..9b597f7 100644
--- a/src/views/supplierManage/outsourceSupplier/index.vue
+++ b/src/views/supplierManage/outsourceSupplier/index.vue
@@ -1,19 +1,21 @@
 <template>
-  <d2-container>
-    <template slot="header">
-      <div class="top">
-        <SearchCommonView
+  <div class="outsource-supplier-manage">
+    <div class="filter">
+      <div class="filter-card">
+        <CommonSearch
           :add-title="'鏂板浼佷笟'"
           :total-object="totalObject"
           :other-options="otherOptions"
           :placeholder="'璇疯緭鍏ュ悕绉�'"
           @addCommonClick="addEnterpriseClick"
           @searchClick="getEnterpriseList"
+          @clearClick="getEnterpriseList"
         />
       </div>
-    </template>
+    </div>
     <div class="content">
-      <div class="content-top">
+      <div class="body-card">
+      <div class="list-view">
         <TableCommonView ref="tableListRef" :table-list="tableList" @selTableCol="selTableCol">
           <template slot="tableButton">
             <el-table-column label="鎿嶄綔" width="160" fixed="right">
@@ -32,10 +34,11 @@
         <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
       </div>
     </div>
+    </div>
     <!-- <div class="overSpread" v-show="isopen || isCreateShop"></div> -->
     <!-- 娣诲姞/缂栬緫澶囦欢 -->
     <AddEnterprise ref="add" :showList="showList" :titleName="titleName" :editRow="editRow" @shutdown="shutdown" />
-  </d2-container>
+  </div>
 </template>
 
 <script>
@@ -241,7 +244,7 @@
     },
     // 鎼滅储瑙﹀彂
     async getEnterpriseList(val) {
-      this.searchParam.keyword = val
+      this.searchParam.keyword = val?val:''
       this.pagerOptions.currPage = 1
       this.getData()
     },
@@ -307,36 +310,52 @@
 </script>
 
 <style lang="scss" scoped>
-.top {
-  width: 100%;
-  height: 61px;
-  display: flex;
-  align-items: center;
-  .fon_weight {
-    font-size: 28px;
-    height: 32px;
-  }
-  .top_right_bottom {
-    font-size: 14px;
-    line-height: 20px;
-    color: #000;
-    opacity: 0.6;
-    margin-top: 9px;
-    font-family: "PingFangSC-Medium," sans-serif;
+.outsource-supplier-manage{
+  height: 100%;
+  overflow: hidden;
+  .filter {
+    height: 80px;
+    display: flex;
+    align-items: center;
+    padding: 12px 20px 0 20px;
+    &-card {
+      height: 80px;
+      display: flex;
+      align-items: center;
+      box-sizing: border-box;
+      padding: 10px 20px;
+      flex: 1;
+      border-radius: 12px;
+      background-color: #fff;
+    }
   }
 }
+
 .el-button {
   font-family: "PingFangSC";
 }
 .content {
-  width: 100%;
-  height: calc(100% - 30px);
-  background: #fff;
+  // width: 100%;
+  height: calc(100% - 92px);
   border-radius: 12px;
   box-sizing: border-box;
-  .content-top {
-    height: calc(100% - 60px);
-  }
+  padding: 10px 20px;
+  .body-card {
+      background-color: #fff;
+      border-radius: 12px;
+      height: 100%;
+      overflow: hidden;
+    }
+  .list-view {
+      height: calc(100% - 60px);
+      overflow: hidden;
+    }
+    .btn-pager {
+      display: flex;
+      .page {
+        margin-left: auto;
+      }
+    }
 }
 ::v-deep {
   .el-table {

--
Gitblit v1.8.0