From a8d61e10b6abe80b2ab72d845b39744b4510d467 Mon Sep 17 00:00:00 2001 From: xiangcongshuai Date: Thu, 4 Jul 2024 09:08:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/knowledgeCentre/approval/index.vue | 61 +++++++++++++------ .../compontents/TransferRecords.vue | 12 +++- .../submission/MainTemplate.vue | 10 ++- .../knowledgeCentre/submission/add/index.vue | 1 + .../knowledgeCentre/submission/edit/index.vue | 1 + 5 files changed, 64 insertions(+), 21 deletions(-) diff --git a/src/views/knowledgeCentre/approval/index.vue b/src/views/knowledgeCentre/approval/index.vue index 156d22f..46afedf 100644 --- a/src/views/knowledgeCentre/approval/index.vue +++ b/src/views/knowledgeCentre/approval/index.vue @@ -21,6 +21,7 @@ const loading = ref(false); const seachForm = reactive({ title: "", submittedDeptId: "", + publishDeptId: "", processStatus: "1", baseId: "", publishDateBegin: "", @@ -120,11 +121,7 @@ const columns: TableColumnList = [ } ]; const router = useRouter(); -const dataList = ref([ - { - title: "企业职工退休网上办理" - } -]); +const dataList = ref([]); const getData = async () => { if (seachForm.time && seachForm.time.length > 0) { seachForm.publishDateBegin = seachForm.time[0]; @@ -159,23 +156,25 @@ const search = () => { const reset = () => { clearObject(seachForm); + seachForm.processStatus = "1"; search(); }; -const handleCommand = command => { - console.log("Command", command); -}; +// const handleCommand = command => { +// console.log("Command", command); +// }; const changeStatus = item => { seachForm.processStatus = item.id; search(); }; -const add = () => { - router.push("/knowledgeCentre/addSubmission"); -}; const openRecords = row => { - TransferRecordRef.value.open(row.id, row.title); + if (seachForm.processStatus === "1") { + TransferRecordRef.value.open(row.knowledgeId, row.title); + } else { + TransferRecordRef.value.openApproval(row); + } }; const openDetails = row => { - DetailsRef.value.open(row); + DetailsRef.value.open(row.knowledgeId); }; const getDepartmentList = async () => { const res: any = await queryDeptManageList({ @@ -247,12 +246,12 @@ onMounted(() => { + > { /> + { > + + + + { @page-current-change="handleCurrentChange" >