From fde3e7218c81dd80e78ca0c52a95a1138df7aeee Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 30 三月 2026 13:31:00 +0800
Subject: [PATCH] 华玺砂浆app 1.部署修改
---
src/pages/inspectionUpload/index.vue | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 57 insertions(+), 3 deletions(-)
diff --git a/src/pages/inspectionUpload/index.vue b/src/pages/inspectionUpload/index.vue
index ee907f0..e1ee016 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">
<!-- 鐢熶骇宸℃鍒楄〃 -->
@@ -51,8 +64,7 @@
<view class="detail-item">
<text class="detail-label">宸℃鐘舵��</text>
<view class="detail-value">
- <uni-tag v-if="item.fileStatus==2" text="宸插畬鎴�" size="small" type="success" inverted></uni-tag>
- <uni-tag v-else-if="item.fileStatus==1" text="宸℃涓�" size="small" type="primary" inverted></uni-tag>
+ <uni-tag v-if="item.status=='宸插贰妫�'" text="宸插贰妫�" size="small" type="success" inverted></uni-tag>
<uni-tag v-else="" text="鏈贰妫�" size="small" type="warning" inverted></uni-tag>
</view>
</view>
@@ -320,6 +332,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 +450,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 +2119,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