From 720e0926fa1c94b952c26e111206c5d6e1ed5ba2 Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 21 四月 2026 15:59:49 +0800
Subject: [PATCH] Merge branch 'master' of http://47.97.1.152:5880/r/zy-wcs-master

---
 src/main/webapp/components/MapCanvas.js |   83 ++++++++++++++++++-----------------------
 1 files changed, 37 insertions(+), 46 deletions(-)

diff --git a/src/main/webapp/components/MapCanvas.js b/src/main/webapp/components/MapCanvas.js
index f4fc487..1022c1d 100644
--- a/src/main/webapp/components/MapCanvas.js
+++ b/src/main/webapp/components/MapCanvas.js
@@ -255,53 +255,10 @@
         'site-run-block': 0xe69138,
         'site-error': 0xDB2828
       },
-      fakeOperationVisible: false,
-      tickerMap: new Map()
-    };
+      fakeOperationVisible: false
+    }
   },
-  mounted() {
-    this.DEVICE_MAP = {
-      crn: {
-        createTexture: this.createCrnTexture,
-        graphics: this.graphicsCrn,
-        emitName: 'crn-click',
-        pixiMap: this.pixiCrnMap,
-        type: 'crn',
-        idName: 'crnId',
-        statusInfo: {
-          name: 'crnStatus',
-          getStatus: this.getCrnStatusColor,
-          updateTextureColor: this.updateCrnTextureColor
-        }
-      },
-      dualcrn: {
-        createTexture: this.createCrnTexture,
-        graphics: this.graphicsCrn,
-        emitName: 'dual-crn-click',
-        pixiMap: this.pixiDualCrnMap,
-        type: 'dualCrn',
-        idName: 'crnId',
-        statusInfo: {
-          name: 'crnStatus',
-          getStatus: this.getCrnStatusColor,
-          updateTextureColor: this.updateCrnTextureColor
-        }
-      },
-      rgv: {
-        createTexture: this.createRgvTexture,
-        graphics: this.graphicsRgv,
-        emitName: 'rgv-click',
-        pixiMap: this.pixiRgvMap,
-        type: 'rgv',
-        idName: 'rgvNo',
-        statusInfo: {
-          name: 'rgvStatus',
-          getStatus: this.getRgvStatusColor,
-          updateTextureColor: this.updateRgvTextureColor
-        }
-      }
-    };
-    this.DEVICE_MAP.dualCrn = this.DEVICE_MAP.dualcrn;
+    mounted() {
     this.currentLev = this.lev || 1;
     this.createMap();
     this.startContainerResizeObserve();
@@ -3366,6 +3323,40 @@
       }
       window.open(url, '_blank');
     },
+    loadFakeProcessStatus() {
+      if (typeof window === 'undefined' || typeof $ === 'undefined' || typeof baseUrl === 'undefined') {
+        this.fakeOperationVisible = false;
+        return;
+      }
+      $.ajax({
+        url: baseUrl + '/openapi/getFakeSystemRunStatus',
+        method: 'get',
+        success: function (res) {
+          const data = res && res.data ? res.data : null;
+          this.fakeOperationVisible = !!(data && data.isFake);
+        }.bind(this),
+        error: function () {
+          this.fakeOperationVisible = false;
+        }.bind(this)
+      });
+    },
+    openFakeOperationConfigPage() {
+      if (typeof window === 'undefined' || !this.fakeOperationVisible) { return; }
+      const url = (typeof baseUrl !== 'undefined' ? baseUrl : '') + '/views/watch/fakeOperationConfig.html';
+      const layerInstance = (window.top && window.top.layer) || window.layer;
+      if (layerInstance && typeof layerInstance.open === 'function') {
+        layerInstance.open({
+          type: 2,
+          title: '浠跨湡鎿嶄綔',
+          maxmin: true,
+          area: ['1180px', '820px'],
+          shadeClose: false,
+          content: url
+        });
+        return;
+      }
+      window.open(url, '_blank');
+    },
     parseRotation(value) {
       const num = parseInt(value, 10);
       if (!isFinite(num)) {

--
Gitblit v1.9.1