From bba6f8c28e9bf689b1a80e5d750a417682d6cfbb Mon Sep 17 00:00:00 2001
From: lsh <lsh@163.com>
Date: 星期二, 25 十一月 2025 09:16:22 +0800
Subject: [PATCH] *

---
 src/main/webapp/views/deviceOperate/rgvOperate.html |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/views/deviceOperate/rgvOperate.html b/src/main/webapp/views/deviceOperate/rgvOperate.html
index 3b1fe34..e9b8c3a 100644
--- a/src/main/webapp/views/deviceOperate/rgvOperate.html
+++ b/src/main/webapp/views/deviceOperate/rgvOperate.html
@@ -105,6 +105,7 @@
     var app = new Vue({
         el: '#app',
         data: {
+            baseUrlWcs: "http://127.0.0.1:9090/zzgtwcs",
             tableData: [],
             taskAllData: [],
             currentRow: null,
@@ -146,9 +147,8 @@
             },
             getTaskAllData(index) {
                 let that = this;
-                var baseUrl = 'http://127.0.0.1:9090/zzgtwcs';
                 $.ajax({
-                    url: baseUrl + "/rgv/task/cache/all",
+                    url: that.baseUrlWcs + "/rgv/task/cache/all",
                     headers: {
                         'token': localStorage.getItem('token')
                     },
@@ -163,7 +163,7 @@
                 let that = this;
                 // console.log("鉁� 鍑嗗璇锋眰:");
                 $.ajax({
-                    url: "http://127.0.0.1:9090/zzgtwcs/rgv/status/all",
+                    url: that.baseUrlWcs + "/rgv/status/all",
                     headers: {
                         'token': localStorage.getItem('token') || '' // 纭繚token涓嶄负null
                     },
@@ -215,14 +215,13 @@
             },
             requestOperate(method) {
                 let that = this
-                var baseUrl = 'http://127.0.0.1:9090/zzgtwcs';
                 that.$confirm('姝ゆ搷浣滃瓨鍦ㄩ闄╋紝鏄惁缁х画','鎻愮ず',{
                     confirmButtonText: '纭畾',
                     cancelButtonText: '鍙栨秷',
                     type: 'warning'
                 }).then(()=>{
                     $.ajax({
-                        url: baseUrl + "/rgv/run/"+method,
+                        url: that.baseUrlWcs + "/rgv/run/"+method,
                         headers: {
                             'token': localStorage.getItem('token')
                         },

--
Gitblit v1.9.1