From c83a74b9fcc81bd6a365315a7672333b2e766336 Mon Sep 17 00:00:00 2001 From: pengwei Date: Tue, 15 Jul 2025 16:42:53 +0800 Subject: [PATCH] =?UTF-8?q?fit:=E4=BC=98=E5=8C=96=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/negative/add.vue | 2 - src/views/mobileSupervise/Inspection.vue | 13 ++--- src/views/work/Query.vue | 74 +++++++++++++++++++++++- 3 files changed, 75 insertions(+), 14 deletions(-) diff --git a/src/components/negative/add.vue b/src/components/negative/add.vue index 95fb4d6..e82f8b0 100644 --- a/src/components/negative/add.vue +++ b/src/components/negative/add.vue @@ -714,8 +714,6 @@ watch(()=>reportData.value,(val)=>{ form.value.reportId = val; } },{deep:true,immediate:true}) - - const reportQuery = ref({ current: 1, size: 100, diff --git a/src/views/mobileSupervise/Inspection.vue b/src/views/mobileSupervise/Inspection.vue index 5152f69..c17615e 100644 --- a/src/views/mobileSupervise/Inspection.vue +++ b/src/views/mobileSupervise/Inspection.vue @@ -248,7 +248,6 @@ :auto-upload="true" :show-file-list="false" v-model:file-list="fileListData" - :on-success="managementSuccess" :on-progress="managementProgress" accept="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" @@ -1463,7 +1462,7 @@ - +
@@ -1801,6 +1800,7 @@ const taskSupTotal = ref(0) const taskSupData = ref([]) const taskLoading = ref(false) const riskDataCards = ref(null) +const changeCardIndex = ref(0) const showSupervise = async (row) => { const res = await getTaskManagementDetail(row.id); //获取重点人员列表 @@ -1814,11 +1814,9 @@ const showSupervise = async (row) => { const taskSupert = await getTaskSuprt(taskSupQuery.value); taskSupTotal.value = taskSupert.total; taskSupData.value = taskSupert.records; - console.log('taskSupData',taskSupData.value) } superviseRiskShow.value = true; } - /** * 获取重点人员督察记录列表 * */ @@ -1833,7 +1831,6 @@ const getTaskSupDataFun = async () => { taskLoading.value = false; } } -const changeCardIndex = ref(0) /** * 点击重点人员 * */ @@ -1850,9 +1847,6 @@ const handSupRiskCard = async (row,index)=>{ taskLoading.value = false; } } - - - /** * 重点督察人员前端列表 * */ @@ -2096,11 +2090,12 @@ const addSelfArray = () => { const temperancLoading = ref(false); +//上传成功 const managementSuccess = async (val) => { form.value.userList = val.data; temperancLoading.value = false; } - +//上传开始回调 const managementProgress = async (val) => { temperancLoading.value = true; } diff --git a/src/views/work/Query.vue b/src/views/work/Query.vue index 6ef6ad9..59ff297 100644 --- a/src/views/work/Query.vue +++ b/src/views/work/Query.vue @@ -631,10 +631,25 @@ trigger: ['blur'], }" > - + + + + + + @@ -780,6 +795,9 @@ + + + reportData.value,(val)=>{ + if(val){ + formData.value.reportNumber = reportList.value.find(s=>s.id == val).reportName; + formData.value.reportId = val; + } +},{deep:true,immediate:true}) +const reportQuery = ref({ + current: 1, + size: 100, + departBranch:false +}) +const reportList = ref([]); +const reportLoading = ref(false); +const getReportListDataFun =async (val=null)=>{ + reportLoading.value=true; + try{ + if(val){ + reportQuery.value.reportName = val; + }else{ + reportQuery.value.reportName =null; + } + const res = await getListData(reportQuery.value); + reportList.value=res.records; + console.log('reportList.value',reportList.value) + reportLoading.value=false; + }catch (e){ + reportLoading.value=false; + } +} +const reportFiles = computed(()=> { + if( formData.value.reportNumber){ + let data= reportList.value.find(s=>s.id === formData.value.reportId); + data = data?data:reportList.value.find(s=>s.reportNumber === formData.value.reportNumber); + console.log('data',data) + return data?.files; + }else{ + return [] + } + +}) + + +