diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index 84ae481..1ccf7f4 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -358,7 +358,7 @@ const total = ref(0) // 列表的总页数 const pageNo = ref(1) const calendar = ref() -const selectDate = (val: CalendarDateType) => { +const selectDate = async (val: CalendarDateType) => { if (!calendar.value) return calendar.value.selectDate(val) } @@ -389,8 +389,8 @@ const more = async () => { } /** 处理审批按钮 */ -const handleAudit = (row: any) => { - push({ +const handleAudit =async (row: any) => { + await push({ name: 'BpmProcessInstanceDetail', query: { id: row.processInstance.id @@ -398,8 +398,8 @@ const handleAudit = (row: any) => { }) } /** 处理审批按钮 */ -const handleAudit2 = (row: any) => { - push({ +const handleAudit2 =async (row: any) => { + await push({ name: 'BpmProcessInstanceDetail', query: { id: row.processInstanceId @@ -497,13 +497,13 @@ const dialogTitle = ref('') // 弹窗的标题 const openDialog = async (type:number,id?:number) => { dialogVisible.value = true dialogTitle.value = type===1?'公告':'通知' - resetForm() + await resetForm() if (id) { formData.value = await imgApi.getimg(id) } } /** 重置表单 */ -const resetForm = () => { +const resetForm = async () => { formData.value = { Id: undefined, newsName: undefined, @@ -595,23 +595,14 @@ const getAllApi = async () => { loading.value = false } -getAllApi() /** 初始化 **/ -onMounted(() => { - getList() +onMounted(async () => { + await getAllApi() + await getList() }) - -