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" >