From 1bc9dc3ac0f81047f7ecfe3f039c984d9776e84a Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期二, 04 八月 2020 10:03:26 +0800
Subject: [PATCH] 移除算法商城场景配置相关方法及接口,处理iframe拖拽边界

---
 src/pages/algorithmManage/index/App.vue |   58 ++++------------------------------------------------------
 1 files changed, 4 insertions(+), 54 deletions(-)

diff --git a/src/pages/algorithmManage/index/App.vue b/src/pages/algorithmManage/index/App.vue
index 552369a..f220764 100644
--- a/src/pages/algorithmManage/index/App.vue
+++ b/src/pages/algorithmManage/index/App.vue
@@ -1554,21 +1554,7 @@
       // console.log(item, '淇敼鍚嶇О')
       this.$set(item, "isEdit", false);
     },
-    updateTemplates() {
-      getAllTemplate().then(rsp => {
-        if (rsp && rsp.success) {
-          this.sceneTemplates = rsp.data;
-          this.sceneTemplates.forEach(element => {
-            element.icon = [
-              "iconrenlianjiance",
-              "icongetijingzhi",
-              "iconchouyan-copy",
-              "iconrenshukouzhao"
-            ];
-          });
-        }
-      });
-    },
+    
     cleanTemplateForm() {
       this.appSceneForm.name = "";
       this.appSceneForm.desc = "";
@@ -1578,9 +1564,7 @@
       this.$refs.ruleEditor.cleanRule();
     },
     handleTabClick() {
-      if (this.activeName == "appScenarios") {
-        this.updateTemplates();
-      }
+     
     },
     handleCreateScene() {
       this.sceneDialogVisible = true;
@@ -1607,42 +1591,8 @@
       this.sceneDialogVisible = true;
       this.dialogTitle = '缂栬緫鍦烘櫙妯℃澘';
     },
-    handleDelScene(item) {
-      this.$confirm('姝ゆ搷浣滃皢鍒犻櫎璇ュ簲鐢ㄥ満鏅ā鏉�, 鏄惁缁х画?', '鎻愮ず', {
-        confirmButtonText: '纭畾',
-        cancelButtonText: '鍙栨秷',
-        type: 'warning'
-      }).then(() => {
-        deleteTemplate(item.id).then(res => {
-          if (res && res.success) {
-            this.updateTemplates();
-            this.$message({
-              type: 'success',
-              message: '鍒犻櫎鎴愬姛!'
-            });
-          }
-        })
-
-      }).catch(() => {
-        console.log('鍙栨秷鍒犻櫎');
-      });
-    },
-    handleSaveTemplate() {
-      let editorResp = this.$refs.ruleEditor.submitRule();
-      this.appSceneForm.rules = JSON.stringify(editorResp.rules);
-      this.appSceneForm.txt = editorResp.text;
-
-      saveTemplate(this.appSceneForm).then(rsp => {
-        if (rsp && rsp.success) {
-          this.$notify({
-            type: "success",
-            message: "妯℃澘鍒涘缓鎴愬姛"
-          });
-          this.updateTemplates();
-          this.sceneDialogVisible = false;
-        }
-      });
-    }
+   
+    
   }
 };
 </script>

--
Gitblit v1.8.0