优化审批流程,提升用户体验,提高操作效率。

This commit is contained in:
zmj 2024-05-30 18:09:20 +08:00
parent ac65b2f2c4
commit 80e119478b
2 changed files with 6 additions and 8 deletions

View File

@ -14,7 +14,7 @@
<el-table-column label="备注" prop="remarks" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }">
<el-button type="primary" link @click="handDetail(row.id)">
<el-button type="primary" link @click="handDetail(row)">
详情
</el-button>
</template>
@ -26,7 +26,7 @@
</div>
</el-card>
<detailPopup v-if="showDetail" ref="detailRef" @success="showDetail = false, getLists()"
@close="showDetail = false, getLists()" />
@close="showDetail = false, getLists()" :typeName="typeName" />
</div>
</template>
@ -34,8 +34,6 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiOaoaApproveCopy } from '@/api/oa_Initiate'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import detailPopup from '@/views/oa_Initiate/detail.vue'
import { apiOaoaApproveDetail } from "@/api/oa_Initiate"
@ -49,6 +47,7 @@ const queryParams = reactive({
title: '',
status: ''
})
const typeName = ref('')
//
const selectData = ref<any[]>([])
@ -67,8 +66,9 @@ const { pager, getLists, resetParams, resetPage } = usePaging({
params: queryParams
})
const handDetail = async (id: any) => {
let res = await apiOaoaApproveDetail({ id })
const handDetail = async (row: any) => {
typeName.value = row.type_name
let res = await apiOaoaApproveDetail({ id: row.id })
showDetail.value = true
await nextTick()
detailRef.value?.open()

View File

@ -47,8 +47,6 @@
import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiOaoaApprovelst } from '@/api/oa_Initiate'
import { timeFormat } from '@/utils/util'
import feedback from '@/utils/feedback'
import detailPopup from '@/views/oa_Initiate/detail.vue'
import { apiOaoaApproveDetail } from "@/api/oa_Initiate"