Admin
2025-12-02 9e42f0dafa019f5ecf6b0ff425ecb966b002171e
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<template style="width:1700px;height:650px">
  <el-card class="card">
    <el-card class="box-card" style="height:90px">
      <el-descriptions title="" :column="7" border>
        <el-descriptions-item label="禁用" label-align="right" align="center">
          <el-button size="small" type="info"></el-button>
        </el-descriptions-item>
        <el-descriptions-item label="自动模式" label-align="right" align="center">
          <el-button size="small" type="primary"></el-button>
        </el-descriptions-item>
        <el-descriptions-item label="手动模式" label-align="right" align="center">
          <el-button size="small" type="default"></el-button>
        </el-descriptions-item>
        <!-- <el-descriptions-item label="运行中" label-align="right" align="center">
          <el-button size="small" type="success"  ></el-button>
        </el-descriptions-item> -->
        <el-descriptions-item label="PLC离线" label-align="right" align="center">
          <el-button size="small" style="background-color:#111111"></el-button>
        </el-descriptions-item>
        <el-descriptions-item label="PLC报警" label-align="right" align="center">
          <el-button size="small" type="danger"></el-button>
        </el-descriptions-item>
        <el-descriptions-item label="WCS调度" label-align="right" align="center">
          <el-button size="small" id="openService" @click="OpenService"
            type="primary">{{buttonText}}</el-button>
        </el-descriptions-item>
      </el-descriptions>
    </el-card>
  </el-card>
 
  <!-- <el-button style="width:200px;height:70px;margin-top:100px;margin-left:100px" type="success" size="big" @click="checkToNormalModel">切换到正常模式</el-button>
 
 
  <el-button style="width:200px;height:70px;margin-top:100px;margin-left:100px" type="danger" size="big" @click="checkToEmergeModel">切换到应急模式</el-button> -->
 
</template>
 
<script>
import { ElNotification } from 'element-plus';
export default {
  data() {
    return {
      buttonText: '开启服务',
    };
  },
  methods: {
    //开启服务
    OpenService() {
      this.http
        .post('/api/ToVueMonitor/AllStationData', null, null)
        .then((x) => {
          if (x.status === true) {
            this.$Message.success('成功');
            this.treeData = x.data;
          } else {
            this.$Message.error(x.message);
          }
        });
    },
    //关闭服务
    closeService() {},
    //检查服务状态
    checkServiceState() {},
 
    handleNodeClick(data) {
      console.log(data);
    },
 
    //切换到正常模式
    // checkToNormalModel(){
    //   var para = {
    //     MainData:
    //       {
    //         model:"normal",
    //       },
    //   };
 
    //   this.http.post("/api/ToVueMonitor/ChangeInboundLineModel",para,"模式切换中...").then(x=>{
    //     if(x.status===true){
    //       this.$Message.success("已切换到正常模式");
    //       this.taskBeginingDatas.model = false;
    //     } else {
    //         this.$Message.error(x.message);
    //     }
    //   })
    // },
 
    // //切换到应急模式
    // checkToEmergeModel(){
    //   var para = {
    //     MainData:
    //       {
    //         model:"emerge",
    //       },
    //   };
 
    //   this.http.post("/api/ToVueMonitor/ChangeInboundLineModel",para,"模式切换中...").then(x=>{
    //     if(x.status===true){
    //       this.$Message.success("已切换到应急模式");
    //       this.taskBeginingDatas.model = false;
    //     } else {
    //         this.$Message.error(x.message);
    //     }
    //   })
    // }
  },
  created() {
    //this.signalR();
    // this.checkServiceState();
  },
};
</script>
 
<style>
.buttongroup {
  display: block;
}
.volbutton {
  display: block;
}
.topLine {
  margin-left: 156px;
}
.stack1 {
  width: 551px;
  position: relative;
  left: 525px;
  top: -286px;
}
.stack1_rover {
  width: 246px;
  color: #ffffff;
  background-color: #409eff;
}
.stack2 {
  width: 551px;
  position: relative;
  left: -37px;
  top: -178px;
}
.stack3 {
  width: 551px;
  position: relative;
  left: 514px;
  top: -102px;
}
 
.rgvStyle {
  width: 71px;
  margin-top: 70px;
  height: 255px;
  font-size: 15pt;
  color: #ffffff;
  background-color: #409eff;
}
 
.scrollbar-demo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin: 10px;
  text-align: center;
  border-radius: 4px;
  background: var(--el-color-primary-light-9);
  color: var(--el-color-primary);
}
 
.my_box {
  /* background-color:#909090; */
  /* border-radius:2px; */
  /* margin-left: 5px;
    margin-right: 5px; */
  background: linear-gradient(
      to top right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 1, 0, 0) calc(50% - 1px),
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 1, 0) calc(50% + 1px),
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to bottom right,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0) calc(50% - 1px),
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0) calc(50% + 1px),
      rgba(0, 0, 0, 0) 100%
    );
  border: 1px solid;
  border-color: #909090;
  width: 18px;
  height: 18px;
}
 
.card {
  overflow-y: auto; /* 开启滚动显示溢出内容   overflow-x: scroll; */
  overflow-x: auto;
}
 
.hangche {
  /* background-image: linear-gradient(135deg, #95bdf4af 10%, #2f62fc); */
  background-image: url('https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimages.mfcad.com%2Ftuzhi%2F2021%2F02%2F07%2F1612707837720.jpg%40%21water-w2020.jpg&refer=http%3A%2F%2Fimages.mfcad.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1664003264&t=2cf65de7918b4a3a786a08eb5cb29814');
  background-size: 100% 100%;
}
</style>