From d23ab1d66456d5dd8aa8645bb262deef4e70a9eb Mon Sep 17 00:00:00 2001 From: lkk <364857242@qq.com> Date: 星期五, 17 一月 2025 19:02:01 +0800 Subject: [PATCH] 2 --- src/views/sampling/sampling/index.vue | 49 ++++++++++--------------------------------------- 1 files changed, 10 insertions(+), 39 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 1db0d69..ab8a88c 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -324,26 +324,7 @@ /> </div> - <!-- 娣诲姞鎴栦慨鏀逛綋妫�閲囨牱绠$悊瀵硅瘽妗� --> - <!-- <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> - <el-form ref="form" :model="form" :rules="rules" label-width="80px"> - <el-form-item label="鐢宠鏃堕棿" prop="applicationTime"> - <el-date-picker clearable v-model="form.applicationTime" type="date" value-format="yyyy-MM-dd" - placeholder="璇烽�夋嫨鐢宠鏃堕棿"> - </el-date-picker> - </el-form-item> - <el-form-item label="椤圭洰id鐖堕」" prop="proId"> - <el-input v-model="form.proId" placeholder="璇疯緭鍏ラ」鐩甶d鐖堕」" /> - </el-form-item> - <el-form-item label="椤圭洰鍚嶇О" prop="proName"> - <el-input v-model="form.proName" placeholder="璇疯緭鍏ラ」鐩悕绉�" /> - </el-form-item> - </el-form> - <div slot="footer" class="dialog-footer"> - <el-button type="primary" @click="submitForm">纭� 瀹�</el-button> - <el-button @click="cancel">鍙� 娑�</el-button> - </div> - </el-dialog> --> + </div> </template> @@ -378,7 +359,7 @@ return { msg: "", getNumbr: null, - valueUrl: "ws://192.168.1.2:6789/websocket", + valueUrl: "ws://127.0.0.1:6789/websocket", webSocket: null, list: [], selectList: [], @@ -391,8 +372,8 @@ ids: [], // 缁戝畾鍗曢�夋寜閽� tjStatus: "1", - dayinData:[], - jsonObj:{}, + dayinData: [], + jsonObj: {}, // 闈炲崟涓鐢� single: true, @@ -971,10 +952,6 @@ this.ids = array.map((item) => item.id); }, - - // 纭畾鎸夐挳 - submitForm() {}, - buda() { var websocket = null; var url = this.valueUrl; @@ -991,9 +968,8 @@ }; websocket.onopen = () => { this.websocket = websocket; - // var list = this.selectList; - this.dayinData = this.selectList.map((item) => ({ - jyxh: item.jyxh , + this.dayinData = this.selectList.map((item) => ({ + jyxh: item.jyxh, proName: item.proName, cusName: item.cusName, cusSex: item.customer.cusSex, @@ -1001,8 +977,7 @@ cardId: item.cardId, tjTime: item.createTime, })); - console.log(this.dayinData,2222); - + console.log(this.dayinData, 2222); // 杩炴帴璁惧 this.jsonObj = { @@ -1014,17 +989,13 @@ var jStr = JSON.stringify(this.jsonObj); this.websocket.send(jStr); this.jsonObj = {}; - this.dialogVisible = false; + // this.dialogVisible = false; }; // this.getList(); }, // 纭閲囨牱 Confirmreceipt() { - console.log(this.selectList, 999); - - console.log(1111); - const loadingInstance = this.$loading({ lock: true, // 閿佸畾灞忓箷 text: "鍔犺浇涓�...", // 鍔犺浇鏂囨湰 @@ -1079,8 +1050,8 @@ websocket.onmessage = (event) => { var resultObj = eval("(" + event.data + ")"); console.log(resultObj, 9988); - }; - */ + }; */ + // this.Collection(); this.getList(); } else { -- Gitblit v1.8.0