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

This commit is contained in:
zmj 2024-05-30 17:43:56 +08:00
parent cdd069cf61
commit ac65b2f2c4
4 changed files with 12 additions and 9 deletions

View File

@ -33,9 +33,9 @@ const getNums = async () => {
} }
setInterval(() => { // setInterval(() => {
getNums() // getNums()
}, 10000); // }, 10000);
getNums() getNums()
</script> </script>

View File

@ -27,7 +27,7 @@
<el-table-column label="审批状态" prop="check_status_text" show-overflow-tooltip /> <el-table-column label="审批状态" prop="check_status_text" 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>
@ -39,7 +39,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>
@ -55,6 +55,7 @@ import { apiOaoaApproveDetail } from "@/api/oa_Initiate"
const detailRef = ref(null) const detailRef = ref(null)
// //
const showDetail = ref(false) const showDetail = ref(false)
const typeName = ref('')
// //
@ -80,8 +81,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

@ -104,6 +104,7 @@ const handleEdit = async (id: any, cate = '', extend = '') => {
} }
} }
const handDetail = async (row: any, data = {}) => { const handDetail = async (row: any, data = {}) => {
typeName.value = row.type_name typeName.value = row.type_name
let res = await apiOaoaApproveDetail({ id: row.id }) let res = await apiOaoaApproveDetail({ id: row.id })

View File

@ -17,9 +17,9 @@
<el-table-column label="消息主题" prop="title" show-overflow-tooltip /> <el-table-column label="消息主题" prop="title" show-overflow-tooltip />
<el-table-column label="消息内容" prop="content" show-overflow-tooltip /> <el-table-column label="消息内容" prop="content" show-overflow-tooltip />
<el-table-column label="是否已读" prop="is_read" show-overflow-tooltip /> <el-table-column label="是否已读" prop="is_read" show-overflow-tooltip />
<el-table-column label="阅读时间" prop="read_time" show-overflow-tooltip> <el-table-column label="阅读时间" show-overflow-tooltip>
<template #default="{ row }"> <template #default="{ row }">
{{ timeFormat(row.read_time, 'yyyy-mm-dd hh:MM') }} {{ row.read_time == 0 ? '' : timeFormat(row.read_time, 'yyyy-mm-dd hh:MM') }}
</template> </template>
</el-table-column> </el-table-column>