From d5a7019a83a88564d266fe4fa50782052c38c7a4 Mon Sep 17 00:00:00 2001 From: cl <418351270@qq.com> Date: 星期六, 03 八月 2024 14:48:17 +0800 Subject: [PATCH] 修改采集参数 --- jcdm-ui/src/views/main/cfkb/Instructions/index.vue | 2 +- jcdm-ui/src/views/main/kb/stationTerminal/index.vue | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/jcdm-ui/src/views/main/cfkb/Instructions/index.vue b/jcdm-ui/src/views/main/cfkb/Instructions/index.vue index 80e636b..f6f7955 100644 --- a/jcdm-ui/src/views/main/cfkb/Instructions/index.vue +++ b/jcdm-ui/src/views/main/cfkb/Instructions/index.vue @@ -277,7 +277,7 @@ }, content: '', activeName: 'first', - url: "ws://192.168.2.76:8080/websocket/message/", + url: "ws://192.168.20.250:8080/websocket/message/", message: "", text_content: "", ws: null, diff --git a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue index 37712ce..5a26a9f 100644 --- a/jcdm-ui/src/views/main/kb/stationTerminal/index.vue +++ b/jcdm-ui/src/views/main/kb/stationTerminal/index.vue @@ -9,7 +9,7 @@ <el-col :span="17"> <el-card shadow="never"> <span class="head-font">鐗╂枡缂栫爜 : </span> - <el-input style="width: 50%" v-model="materialCode" @change="handleEnter" placeholder="璇锋壂鎻忕墿鏂欑紪鐮�"></el-input> + <el-input style="width: 50%" ref="inputData" v-model="materialCode" @change="handleEnter" @keyup="handleEnter" placeholder="璇锋壂鎻忕墿鏂欑紪鐮�"></el-input> <el-button type="primary" style="float: right" icon="el-icon-search" @click="serialLink">涓插彛杩炴帴</el-button> <el-button @click="clearClick" style="float: right" type="danger" >娓呴櫎</el-button> </el-card> @@ -201,7 +201,7 @@ release: 0 //鍏佽鏀捐 }, content: '', - url: "ws://10.103.210.248:8080/websocket/message/", + url: "ws://192.168.20.250:8080/websocket/message/", passingStationForm: {}, originalArray: [], @@ -209,6 +209,9 @@ activeName: 'first', } + }, + mounted() { + this.setFocus() }, beforeDestroy() { this.exit(); @@ -222,6 +225,11 @@ }, }, methods: { + setFocus(){ + this.$nextTick(()=>{ + this.$refs.inputData.focus() + }) + }, changeMenu(tab, event) { console.log(tab, event); }, -- Gitblit v1.9.3