解决长者审核历史能看到其他老人信息bug

This commit is contained in:
1378012178@qq.com 2026-02-04 13:40:39 +08:00
parent 167032e32f
commit cc7d04826e
2 changed files with 12 additions and 4 deletions

View File

@ -62,7 +62,8 @@ import JInput from "/@/components/Form/src/jeecg/components/JInput.vue";
const props = defineProps({ const props = defineProps({
querySign: { type: String, default: '' }, querySign: { type: String, default: '' },
sndjDicts: null sndjDicts: null,
guardianOpenId:'-1',
}); });
const formRef = ref(); const formRef = ref();
const queryParam = reactive<any>({}); const queryParam = reactive<any>({});
@ -84,6 +85,7 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
}, },
beforeFetch: async (params) => { beforeFetch: async (params) => {
queryParam.modifyType = props.querySign queryParam.modifyType = props.querySign
queryParam.guardianOpenId = props.guardianOpenId
queryParam.modifyStatus = '2,3' queryParam.modifyStatus = '2,3'
return Object.assign(params, queryParam); return Object.assign(params, queryParam);
}, },

View File

@ -55,10 +55,13 @@
:bodyStyle="{ padding: '14px' }" @close="handleAuditHisCancel"> :bodyStyle="{ padding: '14px' }" @close="handleAuditHisCancel">
<a-tabs v-model:activeKey="auditHisActiveKey" @change="auditHisTabChanged"> <a-tabs v-model:activeKey="auditHisActiveKey" @change="auditHisTabChanged">
<a-tab-pane key="zz" tab="长者审核历史"> <a-tab-pane key="zz" tab="长者审核历史">
<ElderAuditHistoryList ref="elderHisRef" :querySign="'zz'" :sndjDicts="sndjDicts"></ElderAuditHistoryList> <ElderAuditHistoryList ref="elderHisRef" :querySign="'zz'" :sndjDicts="sndjDicts"
:guardianOpenId="guardianOpenId"></ElderAuditHistoryList>
</a-tab-pane> </a-tab-pane>
<a-tab-pane key="jhr" tab="监护人审核历史"> <a-tab-pane key="jhr" tab="监护人审核历史">
<ElderAuditHistoryList ref="jhrHisRef" :querySign="'jhr'" :sndjDicts="sndjDicts"></ElderAuditHistoryList> <ElderAuditHistoryList ref="jhrHisRef" :querySign="'jhr'" :sndjDicts="sndjDicts"
:guardianOpenId="guardianOpenId">
</ElderAuditHistoryList>
</a-tab-pane> </a-tab-pane>
</a-tabs> </a-tabs>
<template #footer> <template #footer>
@ -100,6 +103,7 @@ const elderUpInfoVisible = ref<boolean>(false);
const emit = defineEmits(['register', 'success']); const emit = defineEmits(['register', 'success']);
const detailSign = ref('') const detailSign = ref('')
const izAudit = ref(false) const izAudit = ref(false)
const guardianOpenId = ref()
/** /**
* 新增 * 新增
*/ */
@ -269,11 +273,13 @@ function chooseHlry(elderInfo) {
} }
/** /**
* 关闭审核历史 * 查看审核历史
*/ */
function showAuditHis(record) { function showAuditHis(record) {
guardianOpenId.value = '-1'
auditHisActiveKey.value = 'zz' auditHisActiveKey.value = 'zz'
auditHisVisible.value = true auditHisVisible.value = true
guardianOpenId.value = record.guardianOpenId
nextTick(() => { nextTick(() => {
if (!!elderHisRef.value) { if (!!elderHisRef.value) {
elderHisRef.value.reload() elderHisRef.value.reload()