From 4bd9ecdb092c88d050e58d5a150b62e5e90b65b0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期五, 14 三月 2025 16:10:14 +0800
Subject: [PATCH] 删除无用代码

---
 src/views/CNAS/externalService/serviceAndSupplyPro/component/ConsumableProject.vue |   85 ++++++++++++++++--------------------------
 1 files changed, 33 insertions(+), 52 deletions(-)

diff --git a/src/views/CNAS/externalService/serviceAndSupplyPro/component/ConsumableProject.vue b/src/views/CNAS/externalService/serviceAndSupplyPro/component/ConsumableProject.vue
index 1f2ed15..9dd50d2 100644
--- a/src/views/CNAS/externalService/serviceAndSupplyPro/component/ConsumableProject.vue
+++ b/src/views/CNAS/externalService/serviceAndSupplyPro/component/ConsumableProject.vue
@@ -1,51 +1,42 @@
 <template>
   <div>
-    <TableCard :showTitle="false">
-      <template slot="form">
-        <div class="action-box">
-          <div></div>
-          <div class="flex">
-            <el-button icon="el-icon-plus" size="small" type="primary" @click="showDialog">
-              娣诲姞椤圭洰
-            </el-button>
-            <el-button icon="el-icon-upload2" size="small" @click="exportExcel">
-              瀵煎嚭
-            </el-button>
-          </div>
-        </div>
+    <div class="flex">
+      <el-button icon="el-icon-plus" size="small" type="primary" @click="showDialog">
+        娣诲姞椤圭洰
+      </el-button>
+      <el-button icon="el-icon-upload2" size="small" @click="exportExcel">
+        瀵煎嚭
+      </el-button>
+    </div>
+    <limsTable
+      :column="columns"
+      :height="'25vh'"
+      :isSelection="true"
+      :table-data="tableData"
+      style="margin-top: 18px;"
+    >
+      <template v-slot:operation="scope">
+        <el-button size="small" type="text" @click="deleteData(scope.row)">鍒犻櫎</el-button>
       </template>
-      <template v-slot:table>
-        <limsTable
-          :column="columns"
-          :height="'25vh'"
-          :isSelection="true"
-          :table-data="tableData"
-          style="margin-top: 18px; padding: 0 15px;"
-        >
-          <template v-slot:operation="scope">
-            <el-button size="small" type="text" @click="deleteData(scope.row)">鍒犻櫎</el-button>
-          </template>
-        </limsTable>
-        <div class="pagination">
-          <div></div>
-          <el-pagination
-            :page-size="pagination.pageSize"
-            :page-sizes="[10, 20, 30, 40]"
-            :total="pagination.total"
-            layout="total, sizes, prev, pager, next, jumper"
-            @current-change="handleCurrent"
-            @size-change="handleSize"
-          >
-          </el-pagination>
-        </div>
-      </template>
-    </TableCard>
+    </limsTable>
+    <div class="pagination">
+      <div></div>
+      <el-pagination
+        background
+        :page-size="pagination.pageSize"
+        :page-sizes="[10, 20, 30, 40]"
+        :total="pagination.total"
+        layout="total, sizes, prev, pager, next, jumper"
+        @current-change="handleCurrent"
+        @size-change="handleSize"
+      >
+      </el-pagination>
+    </div>
     <AddProject ref="AddProjectRef" @submit="fetchData"/>
   </div>
 </template>
 
 <script>
-import TableCard from './index.vue';
 import limsTable from '@/components/Table/lims-table.vue'
 import Edit from "./Edit.vue"
 import AddProject from './AddProject.vue';
@@ -55,9 +46,7 @@
 } from "@/api/cnas/externalService/serviceAndSupplyPro/serviceAndSupplyPro";
 
 export default {
-  components: {
-    TableCard, limsTable, Edit, AddProject
-  },
+  components: {limsTable, Edit, AddProject},
   data() {
     return {
       columns: [
@@ -144,15 +133,7 @@
 
 <style scoped>
 .flex {
-  display: flex;
-}
-
-.action-box {
-  width: 100%;
-  padding-top: 10px;
-  display: flex;
-  align-items: center;
-  justify-content: space-between;
+  text-align: right;
 }
 
 .pagination {

--
Gitblit v1.9.3