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

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

View File

@ -47,8 +47,6 @@
import { usePaging } from '@/hooks/usePaging' import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions' import { useDictData } from '@/hooks/useDictOptions'
import { apiOaoaApprovelst } from '@/api/oa_Initiate' 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 detailPopup from '@/views/oa_Initiate/detail.vue'
import { apiOaoaApproveDetail } from "@/api/oa_Initiate" import { apiOaoaApproveDetail } from "@/api/oa_Initiate"