This commit is contained in:
linfso 2024-05-15 13:41:09 +08:00
parent 807b018d34
commit 31dd18375d
2 changed files with 9 additions and 6 deletions

View File

@ -9,6 +9,8 @@
printerIsRead:打印机已经OK的信号 printerIsRead:打印机已经OK的信号
updatePrintStatus: 打印状态更新
*/ */
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
@ -16,8 +18,8 @@ import { getToken } from '@/utils/auth'
class TanexPrinterSdk { class TanexPrinterSdk {
VERSION="1.0.0" VERSION="1.0.0"
MAX_SENT_RETRY_COUNT = 9; MAX_SENT_RETRY_COUNT = 9;
// WS_URL = "ws://127.0.0.1:17080"; WS_URL = "ws://127.0.0.1:17080";
WS_URL = "ws://192.168.88.100:17080"; // WS_URL = "ws://192.168.88.100:17080";
AUTH_TOKEN=null; AUTH_TOKEN=null;
WS_INIT = 0; WS_INIT = 0;

View File

@ -153,18 +153,19 @@ export default {
this.queryParams.searchValue = null; this.queryParams.searchValue = null;
this.queryParams.pageNum = 1 this.queryParams.pageNum = 1
this.getList(); this.getList();
}, },
onclear(el){ onclear(el){
this.splaceholder = this.placeholder; this.splaceholder = this.placeholder;
this.slable = null; // this.slable = null;
this.svalue = null; // this.svalue = null;
this.queryParams.searchValue = null; // this.queryParams.searchValue = null;
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
this.$emit("input", this.svalue); this.$emit("input", this.svalue);
this.dispatch('ElFormItem', 'el.form.blur', [this.svalue]);
this.dispatch('ElFormItem', 'el.form.change', [this.svalue])
if(this.visible){ if(this.visible){
this.getList(); this.getList();