From 8dc2373115429741463a66bb2cf54ce5141cafe3 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期一, 17 三月 2025 17:50:10 +0800
Subject: [PATCH] 1.来料检验搜索框
---
H5/LLJ/List.aspx | 20 +++++++++++++++++++-
H5/Js/LLJ/List.js | 16 ++++++++++++++--
2 files changed, 33 insertions(+), 3 deletions(-)
diff --git a/H5/Js/LLJ/List.js b/H5/Js/LLJ/List.js
index 661f5af..d961e1e 100644
--- a/H5/Js/LLJ/List.js
+++ b/H5/Js/LLJ/List.js
@@ -18,7 +18,9 @@
totalCount: 0,
checked: true,
- id:''
+ id: '',
+ searchKeyword: '', // 鎼滅储鍏抽敭璇�
+ originalData: [], // 淇濆瓨鍘熷鏁版嵁
}
},
mounted() {
@@ -30,6 +32,15 @@
this.onLoad();
},
methods: {
+
+ // 鏂板鎼滅储澶勭悊鏂规硶
+ handleSearch() {
+ this.pageIndex = 0;
+ this.data = [];
+ this.finished = false;
+ this.isSearching = true;
+ this.onLoad();
+ },
onLoad() {
@@ -50,7 +61,8 @@
pageIndex: that.pageIndex,
limit: that.limit,
createUser: that.userInfo.loginAccount,
- result: result
+ result: result,
+ keyword: that.searchKeyword.trim(), // 鏂板鎼滅储鍙傛暟
}, false)
.then(function (res) {
var json = res;
diff --git a/H5/LLJ/List.aspx b/H5/LLJ/List.aspx
index 73fac57..104ac62 100644
--- a/H5/LLJ/List.aspx
+++ b/H5/LLJ/List.aspx
@@ -5,6 +5,13 @@
.bg-info {
background-color: #fff;
}
+ .van-search {
+ padding: 10px;
+ background: #f7f8fa;
+ }
+ .van-search__action {
+ color: #1989fa; /* 璁剧疆瀛椾綋棰滆壊涓鸿摑鑹� */
+ }
</style>
@@ -16,6 +23,17 @@
left-arrow
@click-left="GoBack()"
></van-nav-bar>
+ <van-search
+ v-model="searchKeyword"
+ placeholder="杈撳叆鍗曞彿/鐗╂枡/渚涘簲鍟嗙瓑鎼滅储"
+ show-action
+ @search="handleSearch"
+ >
+ <template #action>
+ <%--<van-tag plain round type="primary" @click="handleSearch">鎼滅储</van-tag>--%>
+ <div @click="handleSearch">鎼滅储</div>
+ </template>
+ </van-search>
<div class ="content-wrapper">
<%-- <van-tabs v-model="current" @click="onClickTab">
<van-tab title="鏈楠�">--%>
@@ -108,5 +126,5 @@
<%--<comback ></comback>--%>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder4" Runat="Server">
- <script src="../Js/LLJ/List.js?<%=114 %>"></script>
+ <script src="../Js/LLJ/List.js?<%=115 %>"></script>
</asp:Content>
--
Gitblit v1.9.3