From 07d14cf6edbef9436aa5909bcb6b2329ecc6f9a2 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 14:44:44 +0800
Subject: [PATCH] 禅道bug

---
 src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue b/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
index f8d8476..5134cbc 100644
--- a/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
+++ b/src/views/hashrate/CameraManage/CameraRules/components/RuleItem.vue
@@ -78,9 +78,9 @@
         </template>
 
         <div class="empty" @dragover="dragover($event)" @drop="drop" v-else>
-          <img src="/images/hashrate/鏈厤缃畻娉曠┖椤甸潰.png" alt="" />
+          <img src="/images/hashrate/unSdk.png" alt="" />
           <div class="des">
-            鏆傛湭閰嶇疆绛栫暐锛岀偣鍑讳笂鏂规搷浣滈潰鏉挎寜閽紝浠庢搷浣滈潰鏉挎嫋鍒扮畻娉曞埌姝ゅ锛屽嵆鍙厤缃�
+            鏆傛湭閰嶇疆绛栫暐锛岀偣鍑讳笂鏂规搷浣滈潰鏉挎寜閽紝浠庢搷浣滈潰鏉挎嫋鍔ㄧ畻娉曞埌姝ゅ锛屽嵆鍙厤缃�
           </div>
         </div>
       </div>
@@ -192,9 +192,11 @@
     delSdk(index) {
       this.rule.rules.splice(index, 1);
 
-      if (this.rule.rules[index]) {
-        this.rule.rules[index].rule_with_pre = "";
+      if (this.rule.rules.length == 1) {
+        this.rule.rules[0].rule_with_pre = "";
       }
+
+      this.update();
 
       console.log(this.rule.rules);
     },
@@ -217,6 +219,7 @@
           }
         });
       } else {
+        delete this.rule.camera_polygons;
         saveLinkScene(this.rule).then((rsp) => {
           if (rsp && rsp.success) {
             this.$notify({

--
Gitblit v1.8.0