diff --git a/src/api/safetyReview.js b/src/api/safetyReview.js index 78c6b2b..0888fec 100644 --- a/src/api/safetyReview.js +++ b/src/api/safetyReview.js @@ -87,3 +87,12 @@ export function checkStatus(query) { data: query }) } + +// 获取安全审查审批记录 +export function busReviewProblemRecordPage(query) { + return request({ + url: '/admin/busReviewProblemRecord/getBusReviewProblemRecordPage', + method: 'post', + data: query + }) +} diff --git a/src/views/safetyReview/dashboard/index.vue b/src/views/safetyReview/dashboard/index.vue index 012e964..0ba85d0 100644 --- a/src/views/safetyReview/dashboard/index.vue +++ b/src/views/safetyReview/dashboard/index.vue @@ -701,7 +701,7 @@ const initShunYi = () => { }) .attr('y', bbox.y + 30); - // 添加待审查图标 + // 添加待审查图标 true 需要审查 false不需要审查 if (!data.isChecked) { svg.append('image') .attr('xlink:href', iconShencha) diff --git a/src/views/safetyReview/examinerApproval/approvalForm.vue b/src/views/safetyReview/examinerApproval/approvalForm.vue index 35f45bc..27b992a 100644 --- a/src/views/safetyReview/examinerApproval/approvalForm.vue +++ b/src/views/safetyReview/examinerApproval/approvalForm.vue @@ -92,6 +92,31 @@ + +
审批记录
+
+ + + + + + + + + + + + +
@@ -137,7 +162,7 @@ import iconZip from '@/assets/images/iconZip.png' import iconMove from '@/assets/images/iconMove.png' import iconTxt from '@/assets/images/iconTxt.png' import iconPpt from '@/assets/images/iconPpt.png' -import { escBusReviewProblemDetail, checkStatus } from "@/api/safetyReview" +import { escBusReviewProblemDetail, checkStatus, busReviewProblemRecordPage } from "@/api/safetyReview" const router = useRouter() const route = useRoute() @@ -166,6 +191,7 @@ onMounted(() => { console.log('接收id', id) // detailForm.value.id = id getDetailInfo(id) + getReviewProblemRecord(id) } }); // 获取详情 @@ -179,6 +205,20 @@ const getDetailInfo = (id) => { } }) } +// 审批记录 +const tableData = ref([]) +// 获取审批记录 +const getReviewProblemRecord = (_id) => { + var queryParamsRecord = { + pageIndex: 1, + pageSize: 50, + reviewProblemId: _id + } + busReviewProblemRecordPage(queryParamsRecord).then(res => { + console.log('审批记录', res.data.list) + if (res.code == 200) tableData.value = res.data.list + }) +} // 审批状态改变 const handleApplyStateChange = (value) => { if (value == 2) detailForm.value.checkRemark = '通过' diff --git a/src/views/safetyReview/examinerApproval/detailForm.vue b/src/views/safetyReview/examinerApproval/detailForm.vue index fb48ea5..f1a3eff 100644 --- a/src/views/safetyReview/examinerApproval/detailForm.vue +++ b/src/views/safetyReview/examinerApproval/detailForm.vue @@ -92,29 +92,32 @@ - - + @@ -137,12 +140,12 @@ import iconZip from '@/assets/images/iconZip.png' import iconMove from '@/assets/images/iconMove.png' import iconTxt from '@/assets/images/iconTxt.png' import iconPpt from '@/assets/images/iconPpt.png' -import { escBusReviewProblemDetail } from "@/api/safetyReview" +import { escBusReviewProblemDetail, busReviewProblemRecordPage } from "@/api/safetyReview" const router = useRouter() const route = useRoute() const levelList = ref([ - { title: '高压安全审查', path: '/safetyReview' }, + { title: '高压安全审查', path: '/safetyReview' }, { title: '审核员审批', path: '/safetyReview/examinerApproval' }, { title: '问题详情', path: '/safetyReview/examinerViewProblem' } ]) @@ -166,6 +169,7 @@ onMounted(() => { console.log('接收id', id) // detailForm.value.id = id getDetailInfo(id) + getReviewProblemRecord(id) } }); // 获取详情 @@ -178,12 +182,26 @@ const getDetailInfo = (id) => { : [] } }) -} +} +// 审批记录 +const tableData = ref([]) +// 获取审批记录 +const getReviewProblemRecord = (_id) => { + var queryParamsRecord = { + pageIndex: 1, + pageSize: 50, + reviewProblemId: _id + } + busReviewProblemRecordPage(queryParamsRecord).then(res => { + console.log('审批记录', res.data.list) + if (res.code == 200) tableData.value = res.data.list + }) +} // 判断是否为图片文件 const isImageFile = (suffix) => { return ['jpeg', 'jpg', 'png'].includes(suffix?.toLowerCase()) } - +