From 8d558cb173873004cd8a0d6c12f37865f03d7a4f Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 22 十月 2025 10:32:15 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue | 226 ++++++++++++++++++++++++++++++++++++++------------------
1 files changed, 153 insertions(+), 73 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
index 3c31f30..3193359 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
@@ -24,6 +24,8 @@
<el-button type="danger" v-on:click="submit" plain style="margin-left: 50px">鍒濆鍖�</el-button>
+
+
</div>
<div>
@@ -50,6 +52,9 @@
<div style="margin-top: 30px;">
<el-button type="danger" v-on:click="InReset" plain style="margin-left: 50px">涓�閿浣嶏紙鍏ュ簱绔級</el-button>
<el-button type="danger" v-on:click="OutReset" plain style="margin-left: 50px">涓�閿浣嶏紙鍑哄簱绔級</el-button>
+
+ <el-button type="danger" v-on:click="Outtouchstart" plain style="margin-left: 50px">涓�閿惎鍔�(鍑哄簱绔�)</el-button>
+ <el-button type="danger" v-on:click="Outbuttonpause" plain style="margin-left: 50px">涓�閿殏鍋滐紙鍑哄簱绔級</el-button>
</div>
<div style="margin-top: 30px;">
@@ -81,6 +86,29 @@
</div>
+ <div>
+ <div class="container">
+ <label>AGV璁惧鍚嶇О</label>
+ <el-select placeholder="璇烽�夋嫨鐗╂枡鐘舵��" v-model="DeviceName3">
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV110" value="RGV110" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV112" value="RGV112" />
+ <el-option label="(鍑哄簱)瀛愯溅锛歊GV111" value="RGV111" />
+ <el-option label="(鍑哄簱)瀛愯溅锛歊GV116" value="RGV116" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV114" value="RGV114" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV115" value="RGV115" />
+ <el-option label="(鍑哄簱)RGV118" value="RGV118" />
+ <el-option label="姣嶈溅锛歊GV109" value="RGV109" />
+ <el-option label="姣嶈溅锛歊GV108" value="RGV108" />
+ <el-option label="姣嶈溅锛歊GV105" value="RGV105" />
+ <el-option label="姣嶈溅锛歊GV103" value="RGV103" />
+
+ <el-option label="瀛愯溅锛歊GV104" value="RGV104" />
+ <el-option label="瀛愯溅锛歊GV107" value="RGV107" />
+ </el-select>
+ </div>
+ <label>鎶ヨ淇℃伅锛� {{ baojlabel }}</label>
+ <el-button type="danger" v-on:click="ReadAlarm" plain style="margin-left: 50px">璇诲彇鎶ヨ淇℃伅</el-button>
+ </div>
</template>
<script>
@@ -92,98 +120,150 @@
data() {
return {
//鍒濆鍖朢GV
- DeviceName:"",
- DBType:"",
- WriteRGVvalue:"",
+ DeviceName: "",
+ DBType: "",
+ WriteRGVvalue: "",
//鎵嬪姩涓嬪彂rgv鐩爣鍦板潃锛岃繘琛岀Щ鍔╮gv
- DeviceName2:"",
- WritergvAddres:""
+ DeviceName2: "",
+ WritergvAddres: "",
+
+ //鎶ヨ淇℃伅鑾峰彇
+ DeviceName3: "",
+ baojlabel:""
};
},
methods: {
+
submit() {
var param = {
- DelKeys: [this.DeviceName,this.DBType,this.WriteRGVvalue],
- Extra: true
- }
- this.http
- .post("api/RgvOperation/WriteInitialization", param, "鏁版嵁澶勭悊涓�...")
- .then((x) => {
- if (x.status) {
- this.$Message.success('鎴愬姛.');
- this.$parent.refresh();
- } else {
- return this.$Message.error(x.message);
- }
- });
+ DelKeys: [this.DeviceName, this.DBType, this.WriteRGVvalue],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteInitialization", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
},
- submitRGVw(){
+ submitRGVw() {
var param = {
- DelKeys: [this.DeviceName,this.DBType,this.WriteRGVvalue],
- Extra: true
- }
- this.http
- .post("api/RgvOperation/WriteRGVmokuai", param, "鏁版嵁澶勭悊涓�...")
- .then((x) => {
- if (x.status) {
- this.$Message.success('鎴愬姛.');
- this.$parent.refresh();
- } else {
- return this.$Message.error(x.message);
- }
- });
+ DelKeys: [this.DeviceName, this.DBType, this.WriteRGVvalue],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteRGVmokuai", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
},
submit2() {
var param = {
- DelKeys: [this.DeviceName2,this.WritergvAddres],
- Extra: true
- }
- this.http
- .post("api/RgvOperation/ManualmovementRGV", param, "鏁版嵁澶勭悊涓�...")
- .then((x) => {
- if (x.status) {
- this.$Message.success('鎴愬姛.');
- this.$parent.refresh();
- } else {
- return this.$Message.error(x.message);
- }
- });
+ DelKeys: [this.DeviceName2, this.WritergvAddres],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/ManualmovementRGV", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+ ReadAlarm() {
+ var param = {
+ DelKeys: [this.DeviceName3],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/ReadAlarminformation", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.baojlabel=x.data;
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+ Outtouchstart() {
+ var param = {
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteOuttouchstart", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+ Outbuttonpause() {
+ var param = {
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteOutbuttonpause", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
},
- InReset(){
+ InReset() {
var param = {
- DelKeys: [],
- Extra: true
- }
- this.http
- .post("api/RgvOperation/WriteInReset", {}, "鏁版嵁澶勭悊涓�...")
- .then((x) => {
- if (x.status) {
- this.$Message.success('鎴愬姛.');
- this.$parent.refresh();
- } else {
- return this.$Message.error(x.message);
- }
- });
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteInReset", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
},
- OutReset(){
+ OutReset() {
var param = {
- DelKeys: [],
- Extra: true
- }
- this.http
- .post("api/RgvOperation/WriteOutReset", {}, "鏁版嵁澶勭悊涓�...")
- .then((x) => {
- if (x.status) {
- this.$Message.success('鎴愬姛.');
- this.$parent.refresh();
- } else {
- return this.$Message.error(x.message);
- }
- });
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteOutReset", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
}
},
--
Gitblit v1.9.3