From e5e76412f1a20e8aed95614cbd7bf2b638cda2cc Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期三, 11 三月 2026 13:30:31 +0800
Subject: [PATCH] 1

---
 open-rcs/components/content/content-interface-word.html |  136 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 135 insertions(+), 1 deletions(-)

diff --git a/open-rcs/components/content/content-interface-word.html b/open-rcs/components/content/content-interface-word.html
index a3a0e67..e85c46c 100644
--- a/open-rcs/components/content/content-interface-word.html
+++ b/open-rcs/components/content/content-interface-word.html
@@ -1029,11 +1029,14 @@
 </div>
 
 <script>
+    // API閰嶇疆鏁版嵁
+    let apiConfigs = [];
+
     // 鍔ㄦ�佸姞杞紸PI閰嶇疆骞舵覆鏌撴帴鍙e唴瀹�
     function loadApiConfigs() {
         try {
             // 鐩存帴瀹氫箟API閰嶇疆鏁版嵁锛岄伩鍏岰ORS閿欒
-            const apiConfigs = [
+            apiConfigs = [
                 {
                     "apiId": "api-task-create",
                     "name": "鐢熸垚浠诲姟鍗�",
@@ -1385,6 +1388,132 @@
                             "code": 200,
                             "message": "浼樺厛绾ц皟鏁存垚鍔�",
                             "timestamp": 1671526800000
+                        }
+                    }
+                },
+                {
+                    "apiId": "api-cv-getError",
+                    "name": "杈撻�佺嚎寮傚父淇℃伅鎺ュ彛",
+                    "description": "杈撻�佺嚎寮傚父淇℃伅鎺ュ彛",
+                    "isCommon": false,
+                    "method": "POST",
+                    "url": "/station/getError",
+                    "menu": {
+                        "category": "杈撻�佺嚎寮傚父淇℃伅鎺ュ彛",
+                        "order": 6
+                    },
+                    "request": {
+                        "parameters": [
+                            {
+                                "name": "staNo",
+                                "type": "string",
+                                "required": true,
+                                "description": "绔欑偣缂栧彿",
+                                "default": "1001"
+                            }
+                        ],
+                        "example": {
+                            "staNo": "1001"
+                        }
+                    },
+                    "response": {
+                        "parameters": [
+                            {
+                                "name": "code",
+                                "type": "integer",
+                                "description": "杩斿洖缂栧彿锛�200琛ㄧず鎴愬姛锛�1~N琛ㄧず澶辫触"
+                            },
+                            {
+                                "name": "message",
+                                "type": "string",
+                                "description": "杩斿洖娑堟伅锛岃姹傛垚鍔熻〃绀烘垚鍔燂紝鍐呭涓鸿缁嗙殑閿欒鎻忚堪"
+                            },
+                            {
+                                "name": "data",
+                                "type": "object",
+                                "description": "杩斿洖鐨勬暟鎹粨鏋�"
+                            },
+                            {
+                                "name": "timestamp",
+                                "type": "integer",
+                                "description": "鏃堕棿鎴�"
+                            }
+                        ],
+                        "example": {
+                            "code": 200,
+                            "message": "璇锋眰鎴愬姛",
+                            "timestamp": 1671526800000,
+                            "data": [
+                                {
+                                    "staNo": "1001",
+                                    "plcDesc": "鏈変换鍔℃棤璐ф晠闅�",
+                                    "error": "鏈変换鍔℃棤璐ф晠闅�"
+                                },
+                                {
+                                    "staNo": "1001",
+                                    "plcDesc": "鍗犱綅瓒呮椂",
+                                    "error": "鍗犱綅瓒呮椂"
+                                }
+                            ]
+                        }
+                    }
+                },
+                {
+                    "apiId": "api-cv-getTaskNo",
+                    "name": "杈撻�佺嚎鐨勪换鍔″彿鏌ヨ鎺ュ彛",
+                    "description": "杈撻�佺嚎鐨勪换鍔″彿鏌ヨ鎺ュ彛",
+                    "isCommon": false,
+                    "method": "POST",
+                    "url": "/station/getTaskNo",
+                    "menu": {
+                        "category": "杈撻�佺嚎鐨勪换鍔″彿鏌ヨ鎺ュ彛",
+                        "order": 7
+                    },
+                    "request": {
+                        "parameters": [
+                            {
+                                "name": "staNo",
+                                "type": "string",
+                                "required": true,
+                                "description": "绔欑偣缂栧彿",
+                                "default": "1001"
+                            }
+                        ],
+                        "example": {
+                            "staNo": "1001"
+                        }
+                    },
+                    "response": {
+                        "parameters": [
+                            {
+                                "name": "code",
+                                "type": "integer",
+                                "description": "杩斿洖缂栧彿锛�200琛ㄧず鎴愬姛锛�1~N琛ㄧず澶辫触"
+                            },
+                            {
+                                "name": "message",
+                                "type": "string",
+                                "description": "杩斿洖娑堟伅锛岃姹傛垚鍔熻〃绀烘垚鍔燂紝鍐呭涓鸿缁嗙殑閿欒鎻忚堪"
+                            },
+                            {
+                                "name": "data",
+                                "type": "object",
+                                "description": "杩斿洖鐨勬暟鎹粨鏋�"
+                            },
+                            {
+                                "name": "timestamp",
+                                "type": "integer",
+                                "description": "鏃堕棿鎴�"
+                            }
+                        ],
+                        "example": {
+                            "code": 200,
+                            "message": "璇锋眰鎴愬姛",
+                            "timestamp": 1671526800000,
+                            "data": {
+                                    "taskNo": "2121swasasas"
+                                }
+
                         }
                     }
                 }
@@ -1843,6 +1972,11 @@
             if (section) {
                 section.scrollIntoView({ behavior: 'smooth' });
             }
+        } else if (event.data.type === 'getApiConfigs') {
+            event.source.postMessage({
+                type: 'apiConfigs',
+                data: apiConfigs
+            }, '*');
         }
     });
 </script>

--
Gitblit v1.9.1