From bcf74dfa254d842ff3527d44840b4172f879e55b Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期一, 29 七月 2024 10:28:41 +0800
Subject: [PATCH] refactor:合同扣分

---
 src/views/system/contract/contract/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/system/contract/contract/index.vue b/src/views/system/contract/contract/index.vue
index f2e4eee..57e22d0 100644
--- a/src/views/system/contract/contract/index.vue
+++ b/src/views/system/contract/contract/index.vue
@@ -474,11 +474,13 @@
     getRuleList(item) {
       getRuleListByContractId(item.id).then((response) => {
         this.ruleData = response.data;
-        this.ruleName = this.ruleData.map((item) => {
-          return item.ruleName;
-        });
-        this.ruleName = [...new Set(this.ruleName)];
-        console.log('this.ruleName', this.ruleName);
+        if (this.ruleData) {
+          this.ruleName = this.ruleData.map((item) => {
+            return item.ruleName;
+          });
+          this.ruleName = [...new Set(this.ruleName)];
+          console.log('this.ruleName', this.ruleName);
+        }
         this.form.id = item.id;
         this.contractInfo = item;
       });

--
Gitblit v1.8.0