From 8a67012ee8accc7e53928769c5bd6c5647765ac1 Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期一, 29 五月 2023 13:59:37 +0800 Subject: [PATCH] 库位地图-搜索后切换楼层保留搜索结果,重置搜索按钮 --- src/main/webapp/views/home/map.html | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/src/main/webapp/views/home/map.html b/src/main/webapp/views/home/map.html index 60d7273..d3254d6 100644 --- a/src/main/webapp/views/home/map.html +++ b/src/main/webapp/views/home/map.html @@ -482,6 +482,9 @@ <div> <button @click="init" class="layui-btn layui-btn-sm">鍒锋柊</button> </div> + <div style="margin-left: 10px;"> + <button @click="resetSearch" class="layui-btn layui-btn-sm">閲嶇疆</button> + </div> <div v-if="!locOutStatus" style="margin-left: 10px;"> <button @click="locOutStatus = true" class="layui-btn layui-btn-sm">鍑哄簱閫夋嫨</button> </div> @@ -689,6 +692,13 @@ deep: true, handler(val) { this.init() + if (this.searchMatnr != "" + || this.searchOrderNo != "" + || this.searchSpecs != "" + || this.searchMaktx != "" + || this.searchLocNo != "") { + this.searchLoc() + } } } }, @@ -709,6 +719,14 @@ this.getLocStsList();//鑾峰彇搴撲綅鐘舵�佸垪琛� }, + resetSearch(){ + this.searchMatnr = "" + this.searchOrderNo = "" + this.searchSpecs = "" + this.searchMaktx = "" + this.searchLocNo = "" + this.searchLoc() + }, printData() { this.mapData = JSON.stringify(this.map) }, -- Gitblit v1.9.1