From 6a5f753809f98278612d2fd03d7c93dbbc0e9069 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 19 三月 2026 09:35:16 +0800
Subject: [PATCH] 金鹰黄金app 1.巡检上传添加查询条件
---
src/pages/inspectionUpload/index.vue | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 56 insertions(+), 1 deletions(-)
diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index ee907f0..a810f06 100644
--- a/src/pages/inspectionUpload/index.vue
+++ b/src/pages/inspectionUpload/index.vue
@@ -3,6 +3,19 @@
<!-- 椤甸潰澶撮儴 -->
<PageHeader title="宸℃涓婁紶" @back="goBack" />
+ <!-- 鎼滅储鍖哄煙 -->
+ <view class="search-section">
+ <up-input
+ v-model="searchAll"
+ placeholder="璇疯緭鍏ヨ澶囧悕绉�"
+ prefixIcon="search"
+ border="surround"
+ :clearable="true"
+ @change="handleSearch"
+ @clear="handleClear"
+ ></up-input>
+ </view>
+
<!-- 鏁版嵁鍒楄〃 -->
<view class="table-section">
<!-- 鐢熶骇宸℃鍒楄〃 -->
@@ -320,6 +333,22 @@
// 寮傚父鐘舵��
const hasException = ref(null) // null: 鏈�夋嫨, true: 瀛樺湪寮傚父, false: 姝e父
+// 鎼滅储鐩稿叧
+const searchAll = ref('')
+
+const handleSearch = () => {
+ pagesPames.current = 1
+ taskTableData.value = []
+ getList()
+}
+
+const handleClear = () => {
+ searchAll.value = ''
+ pagesPames.current = 1
+ taskTableData.value = []
+ getList()
+}
+
// 涓婁紶閰嶇疆
const uploadConfig = {
action: "/file/upload",
@@ -422,7 +451,14 @@
// 璁剧疆鍙栨秷鏍囧織
isRequestCancelled = false
loading.value = true
- inspectionTaskList({...pagesPames}).then(res => {
+
+ // 鏋勫缓鏌ヨ鍙傛暟
+ const params = { ...pagesPames }
+ if (searchAll.value) {
+ params.searchAll = searchAll.value
+ }
+
+ inspectionTaskList(params).then(res => {
// 妫�鏌ョ粍浠舵槸鍚﹁繕瀛樺湪涓旇姹傛湭琚彇娑�
if (!isRequestCancelled) {
// 澶勭悊涓嶅悓鐨勬暟鎹粨鏋�
@@ -2084,4 +2120,23 @@
max-height: 60vh;
display: block;
}
+
+/* 鎼滅储鍖哄煙鏍峰紡 */
+.search-section {
+ padding: 15px 20px;
+ background: #fff;
+ border-bottom: 1px solid #f0f0f0;
+}
+
+:deep(.u-input) {
+ width: 100%;
+}
+
+:deep(.u-input__content) {
+ border-radius: 8px;
+}
+
+:deep(.u-input__content__field) {
+ font-size: 14px;
+}
</style>
\ No newline at end of file
--
Gitblit v1.9.3