From a4a654d4c91536af578eed50c75bf42ec16880af Mon Sep 17 00:00:00 2001
From: dshclm <3321914460@qq.com>
Date: Tue, 6 Aug 2024 11:03:06 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
 .../property/propertychange/changeproperty.html       | 11 ++++++++---
 .../property/propertydestory/list/property.html       |  2 +-
 2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ruoyi-admin/src/main/resources/templates/system/property/propertychange/changeproperty.html b/ruoyi-admin/src/main/resources/templates/system/property/propertychange/changeproperty.html
index 587be9b1..e3863132 100644
--- a/ruoyi-admin/src/main/resources/templates/system/property/propertychange/changeproperty.html
+++ b/ruoyi-admin/src/main/resources/templates/system/property/propertychange/changeproperty.html
@@ -93,8 +93,13 @@
                     align: 'center',
                     formatter: function(value, row, index) {
                         var actions = [];
-                        actions.push('变更 ');
-                        actions.push('报废');
+                        if (row.destoryState !== ''){
+                            actions.push('变更 ');
+                            actions.push('报废');
+                        }else{
+                            actions.push('变更 ');
+                            actions.push('报废');
+                        }
                         return actions.join('');
                     }
                 }]
@@ -115,4 +120,4 @@
     }