From 44f9bc00d4f990741bf46715b4de51faf005a45b Mon Sep 17 00:00:00 2001 From: qiuhongwu Date: Mon, 15 Jul 2024 09:37:35 +0800 Subject: [PATCH] =?UTF-8?q?app=20=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../productionReport/components/dataItem.vue | 17 ++++++++++++++--- .../productionReport-detail.vue | 4 ++-- .../components/detailPanel.vue | 4 ++-- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/mes-ui/uni-app/src/pages/productionReport/components/dataItem.vue b/mes-ui/uni-app/src/pages/productionReport/components/dataItem.vue index 06eca669..087fcf44 100644 --- a/mes-ui/uni-app/src/pages/productionReport/components/dataItem.vue +++ b/mes-ui/uni-app/src/pages/productionReport/components/dataItem.vue @@ -105,10 +105,21 @@ const onRefresherrefresh = async () => { // 关闭动画 isTriggered.value = false } -const searchVal = ref('') +const searchVal = ref() // const dataListDefault = ref([]) const handleSearch = async () => { + queryParams.projectSubCodeOrName=undefined const code = searchVal.value + + console.log('搜索',searchVal.value) + if (searchVal.value == '') { + searchVal.value = undefined + }else{ + queryParams.projectSubCodeOrName = code + } + queryParams.pageNo = 1 + queryParams.pageSize = 5 + dataList.value = [] queryParams.projectSubCodeOrName = code getListData() } @@ -194,10 +205,10 @@ const handleOk = async () => {