自动化立体仓库 - WMS系统
#
zzgtfwq
2 天以前 4654f843e10a00044778efe04f961d6541e33105
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>
@@ -145,17 +146,13 @@
            },
            getTaskAllData(index) {
                let that = this;
                var baseUrl = 'http://127.0.0.1:9090/zzgtwcs';
                $.ajax({
                    url: baseUrl + "/rgv/task/cache/all",
                    url: 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 +162,11 @@
                let that = this;
                // console.log("✅ 准备请求:");
                $.ajax({
                    url: "http://127.0.0.1:9090/zzgtwcs/rgv/status/all",
                    url: 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 +214,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: 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({