diff --git a/src/main/resources/templates/pages/material/material-out.html b/src/main/resources/templates/pages/material/material-out.html index 80ebda2d..449f303b 100644 --- a/src/main/resources/templates/pages/material/material-out.html +++ b/src/main/resources/templates/pages/material/material-out.html @@ -235,6 +235,7 @@ page: true, skin: 'line', done: function (res, curr, count) { + bindTableToolbarFunction(); let display = $("#display").val(); if ("inline-block" === display) { if (flagForRelod) { @@ -245,8 +246,6 @@ } } - bindTableToolbarFunction(); - } diff --git a/target/classes/templates/pages/depository/table-stock.html b/target/classes/templates/pages/depository/table-stock.html index 70ab7478..3b3cdeb3 100644 --- a/target/classes/templates/pages/depository/table-stock.html +++ b/target/classes/templates/pages/depository/table-stock.html @@ -16,6 +16,7 @@
搜索信息
+
@@ -505,7 +506,8 @@ } if ("WebSocket" in window) { - socket = new WebSocket('ws://127.0.0.1:11111/webSocket/300450'); + let number = $("#number").val(); + socket = new WebSocket('ws://127.0.0.1:11111/webSocket/'+number); switch (socket.readyState) { case WebSocket.CONNECTING: // 连接中 diff --git a/target/classes/templates/pages/material/material-out.html b/target/classes/templates/pages/material/material-out.html index 9c24aa84..449f303b 100644 --- a/target/classes/templates/pages/material/material-out.html +++ b/target/classes/templates/pages/material/material-out.html @@ -17,6 +17,7 @@
+
搜索信息 @@ -234,6 +235,7 @@ page: true, skin: 'line', done: function (res, curr, count) { + bindTableToolbarFunction(); let display = $("#display").val(); if ("inline-block" === display) { if (flagForRelod) { @@ -241,12 +243,10 @@ let col = {field: 'price', width: 150, title: '物料单价'}; cols.splice(6, 0, col); table.reload('currentTableId', {cols: [cols]}); - bindTableToolbarFunction(); } } - } }); @@ -284,7 +284,8 @@ } if ("WebSocket" in window) { - socket = new WebSocket('ws://127.0.0.1:11111/webSocket/300450'); + let number = $("#number").val(); + socket = new WebSocket('ws://127.0.0.1:11111/webSocket/'+number); switch (socket.readyState) { case WebSocket.CONNECTING: // 连接中 diff --git a/target/classes/templates/pages/materialtype/materialType_view.html b/target/classes/templates/pages/materialtype/materialType_view.html index 03405edb..dd6f34dd 100644 --- a/target/classes/templates/pages/materialtype/materialType_view.html +++ b/target/classes/templates/pages/materialtype/materialType_view.html @@ -18,6 +18,7 @@
+
@@ -284,7 +285,8 @@ } if ("WebSocket" in window) { - socket = new WebSocket('ws://127.0.0.1:11111/webSocket/300450'); + let number = $("#number").val(); + socket = new WebSocket('ws://127.0.0.1:11111/webSocket/'+number); switch (socket.readyState) { case WebSocket.CONNECTING: // 连接中