自动化立体仓库 - WCS系统
#
Junjie
2025-03-13 5dba0daf423f5b4e45b3bcdb55c7de51950dc277
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>穿梭车监控管理</title>
    <link rel="stylesheet" href="../static/vue/element/element.css">
    <link rel="stylesheet" href="../static/css/car_vue.css">
    <script src="../static/vue/js/vue.min.js"></script>
    <script src="../static/vue/element/element.js"></script>
    <style>
        .el-row {
            margin-bottom: 10px;
            &:last-child {
                margin-bottom: 0;
            }
        }
        .el-col {
            border-radius: 4px;
        }
        .bg-purple-dark {
            background: #99a9bf;
        }
        .bg-purple {
            background: #067af8;
        }
        .bg-purple-light {
            background: #ffffff;
        }
        .grid-content {
            border-radius: 4px;
            min-height: 230px;
        }
        .grid-content-bottom {
            border-radius: 4px;
            min-height: 176px;
        }
        .row-bg {
            padding: 10px 0;
            background-color: #f9fafc;
        }
    </style>
 
</head>
<body>
    <div id="container">
        <!--第一部分-->
        <el-row>
            <el-col :span="22" style="float: right" class="grid-content bg-purple-light">
                    <el-col :span="5" class="grid-content bg-purple-light">
                        <el-row>
                            <el-col :span="8" :offset="8" class="title">穿梭车位置</el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="20" :offset="2" class="title">
                                <lable>1#</lable>
                                <el-dropdown trigger="click" :hide-on-click="false">
                                    <el-button class="bg-orgin" @click="changePosition($event,1)">修改位置</el-button>
                                    <el-dropdown-menu>
                                        <el-dropdown-item><span>1</span><input type="text"></el-dropdown-item>
                                        <el-dropdown-item>2</el-dropdown-item>
                                        <el-dropdown-item>3</el-dropdown-item>
                                    </el-dropdown-menu>
                                </el-dropdown>
 
                                <el-button>所属堆垛机</el-button>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="20" :offset="2" class="title">
                                <lable>2#</lable>
                                <el-button @click="changePosition($event,2)">修改位置</el-button>
                                <el-button>所属堆垛机</el-button>
                            </el-col>
                        </el-row>
                        <el-row>
                            <el-col :span="20" :offset="2" class="title">
                                <lable>3#</lable>
                                <el-button @click="changePosition($event,3)">修改位置</el-button>
                                <el-button>所属堆垛机</el-button>
                            </el-col>
                        </el-row>
                    </el-col>
                    <el-col :span="19" class="grid-content bg-purple-dark">
 
                    </el-col>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="22" class="grid-content bg-purple-light" style="float: right"></el-col>
        </el-row>
        <el-row>
            <el-col :span="22" class="grid-content bg-purple-light" style="float: right"></el-col>
        </el-row>
        <el-row>
            <el-col :span="22" class="grid-content-bottom bg-purple-light" style="float: right"></el-col>
        </el-row>
    </div>
</body>
</html>
    <script>
        var app = new Vue({
            el: '#container',
            data: {
                message: 'btn'
            },
            methods: {
                changePosition(e,id) {
                    e.target.blur();
                    if(e.target.nodeName == "SPAN") {
                        e.target.parentNode.blur(); // 强制失焦
                    }
                    console.log(id)
                }
            }
        })
    </script>