From 7de835dea145fe8229f5f0100e2a90094e6d5b22 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期五, 07 二月 2025 18:49:38 +0800
Subject: [PATCH] 改bug

---
 admin/src/views/contract/components/terminateLease.vue |   30 +++++++++++++++++++++++-------
 1 files changed, 23 insertions(+), 7 deletions(-)

diff --git a/admin/src/views/contract/components/terminateLease.vue b/admin/src/views/contract/components/terminateLease.vue
index b4e60cb..0f0fd5d 100644
--- a/admin/src/views/contract/components/terminateLease.vue
+++ b/admin/src/views/contract/components/terminateLease.vue
@@ -68,7 +68,7 @@
                 </div>
             </div>
             <div class="title">
-                <span>閫�绉熶俊鎭�</span>
+                <span>璐﹀崟缁撶畻</span>
                 <div style="display: flex; align-items: center;">
                     <el-button type="primary" @click="addZD">娣诲姞鏀舵</el-button>
                     <el-button type="primary" @click="addFK">娣诲姞浠樻</el-button>
@@ -86,12 +86,19 @@
                 <el-table-column
                     width="100"
                     label="璐圭敤绫诲瀷">
-                    <template slot-scope="{row}">
-                        <span v-if="row.costType === 0">绉熻祦璐�</span>
-                        <span v-if="row.costType === 1">鐗╀笟璐�</span>
-                        <span v-if="row.costType === 4">姘寸數璐�</span>
-                        <span v-if="row.costType === 5">鏉傞」璐�</span>
-                        <span v-if="row.costType === 6">鍏朵粬</span>
+                    <template slot-scope="scope">
+                        <div style="display: flex; align-items: center;">
+                            <span v-if="scope.row.costType === 0">绉熻祦璐�</span>
+                            <span v-if="scope.row.costType === 1">鐗╀笟璐�</span>
+                            <span v-if="scope.row.costType === 4">姘寸數璐�</span>
+                            <span v-if="scope.row.costType === 5">鏉傞」璐�</span>
+                            <span v-if="scope.row.costType === 6">鍏朵粬</span>
+                            <i class="el-icon-delete"
+                               style="color: red; margin-left: 10px; font-size: 18px; cursor: pointer;"
+                               @click="deleRow(scope.$index)"
+                               v-if="scope.row.date && scope.row.date.length !==0">
+                            </i>
+                        </div>
                     </template>
                 </el-table-column>
                 <el-table-column
@@ -269,6 +276,10 @@
         this.getUser()
         this.changeBtDate(this.form.btDate)
         this.visible = true
+      },
+      deleRow(index) {
+        this.info.terminateList.splice(index, 1)
+        this.countData()
       },
       getDayTime () {
         const today = new Date();
@@ -463,6 +474,11 @@
             flex-direction: column;
             border-bottom: 1px solid #ececec;
             margin-bottom: 15px;
+            position: sticky;
+            top: 0;
+            left: 0;
+            z-index: 999;
+            background: #ffffff;
             span {
                 color: black;
                 font-size: 16px;

--
Gitblit v1.9.3