优化审批流程,提升用户体验,提高操作效率。
This commit is contained in:
parent
cdd069cf61
commit
ac65b2f2c4
@ -33,9 +33,9 @@ const getNums = async () => {
|
||||
|
||||
}
|
||||
|
||||
setInterval(() => {
|
||||
getNums()
|
||||
}, 10000);
|
||||
// setInterval(() => {
|
||||
// getNums()
|
||||
// }, 10000);
|
||||
getNums()
|
||||
|
||||
</script>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<el-table-column label="审批状态" prop="check_status_text" 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>
|
||||
@ -39,7 +39,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>
|
||||
|
||||
@ -55,6 +55,7 @@ import { apiOaoaApproveDetail } from "@/api/oa_Initiate"
|
||||
const detailRef = ref(null)
|
||||
// 是否显示编辑框
|
||||
const showDetail = ref(false)
|
||||
const typeName = ref('')
|
||||
|
||||
|
||||
// 查询条件
|
||||
@ -80,8 +81,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()
|
||||
|
@ -104,6 +104,7 @@ const handleEdit = async (id: any, cate = '', extend = '') => {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
const handDetail = async (row: any, data = {}) => {
|
||||
typeName.value = row.type_name
|
||||
let res = await apiOaoaApproveDetail({ id: row.id })
|
||||
|
@ -17,9 +17,9 @@
|
||||
<el-table-column label="消息主题" prop="title" 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="read_time" show-overflow-tooltip>
|
||||
<el-table-column label="阅读时间" show-overflow-tooltip>
|
||||
<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>
|
||||
|
||||
</el-table-column>
|
||||
|
Loading…
x
Reference in New Issue
Block a user