自动化立体仓库 - WMS系统
*
lsh
2025-11-25 bba6f8c28e9bf689b1a80e5d750a417682d6cfbb
src/main/webapp/views/deviceOperate/rgvOperate.html
@@ -5,6 +5,7 @@
    <meta charset="UTF-8">
    <title>RGV设备</title>
    <link rel="stylesheet" href="../../static/css/element.css">
    <link rel="stylesheet" href="../../static/css/element-ui.css">
    <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../static/js/common.js"></script>
    <script type="text/javascript" src="../../static/js/vue.min.js"></script>
@@ -104,6 +105,7 @@
    var app = new Vue({
        el: '#app',
        data: {
            baseUrlWcs: "http://127.0.0.1:9090/zzgtwcs",
            tableData: [],
            taskAllData: [],
            currentRow: null,
@@ -145,17 +147,13 @@
            },
            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')
                    },
                    data: {rgvNo: index},
                    method: 'POST',
                    xhrFields: {
                        withCredentials: true // 重要:允许携带凭证
                    },
                    success: function (res) {
                        that.taskAllData = res.data
                    }
@@ -165,14 +163,11 @@
                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
                    },
                    method: 'GET',
                    xhrFields: {
                        withCredentials: true // 关键:允许携带凭证
                    },
                    success: function (res) {
                        // console.log("✅ 请求成功,响应数据:", res);
                        if (res.code === 200) {
@@ -220,22 +215,18 @@
            },
            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')
                        },
                        data: this.formParam,
                        method: 'POST',
                        xhrFields: {
                            withCredentials: true // 重要:允许携带凭证
                        },
                        success: function (res) {
                            if (res.code == 200) {
                                that.$message({