From 8e2a3bde018d84c7316d78939b022a93841ff5b9 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期三, 04 九月 2024 01:35:20 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/system/contract/contract/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/system/contract/contract/index.vue b/src/views/system/contract/contract/index.vue
index f2e4eee..320f5dd 100644
--- a/src/views/system/contract/contract/index.vue
+++ b/src/views/system/contract/contract/index.vue
@@ -31,7 +31,7 @@
           plain
           icon="el-icon-plus"
           size="mini"
-          v-hasPermi="['system:contract:import']"
+          v-hasPermi="['system:contract:add']"
           @click="handleImport"
           >鏂板</el-button
         >
@@ -115,6 +115,7 @@
                   </el-tooltip>
                 </div>
               </span>
+              <el-empty v-if="moneyRules.length == 0" :image-size="100" />
             </div>
           </el-collapse-item>
           <el-form-item label="鍚堝悓闄勪欢" prop="attachment" class="top">
@@ -474,11 +475,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