From 3a9a4a6d1c3b481be184e1713fee113498c77c74 Mon Sep 17 00:00:00 2001 From: qsh <> Date: Tue, 21 Oct 2025 16:23:14 +0800 Subject: [PATCH] sc --- src/views/Clue/Pool/ClueEnroll.vue | 50 ++++++++++++++++++------------ 1 file changed, 31 insertions(+), 19 deletions(-) diff --git a/src/views/Clue/Pool/ClueEnroll.vue b/src/views/Clue/Pool/ClueEnroll.vue index 6721c82..2e4b132 100644 --- a/src/views/Clue/Pool/ClueEnroll.vue +++ b/src/views/Clue/Pool/ClueEnroll.vue @@ -301,7 +301,9 @@ - 提 交 + + 提 交 + @@ -321,6 +323,7 @@ import { getSimpleFieldList } from '@/api/clue/orderField' import { formatDate } from '@/utils/formatTime' import { getDictOptions } from '@/utils/dict' import { componentMap } from '@/components/Form/src/componentMap' +import { useUserStore } from '@/store/modules/user' const form = ref({}) @@ -337,6 +340,7 @@ const formLoading = ref(false) const route = useRoute() const message = useMessage() // 消息弹窗 +const userStore = useUserStore() const showSchema = ref([]) @@ -350,24 +354,32 @@ onMounted(() => { // 这里可以调用API获取会议详情数据 getClueRemarkByRemarkId({ remarkId: route.params.id }).then((response) => { remarkInfo.value = response - resetForm() - getOptions() - getDiyFields() - ClueApi.getClue(remarkInfo.value.clueId).then((data) => { - info.value = { ...data, ...data.diyParams, signInfo: remarkInfo.value.signInfo } - let str = '' - if (!remarkInfo.value.remarkContent.includes(data.name)) { - // 提示姓名不一致 - str += '学员姓名不一致' - } - if (!remarkInfo.value.remarkContent.includes(data.phone)) { - // 提示姓名不一致 - str += '手机号不一致' - } - if (str.length) { - message.warning(`请注意:${str}`) - } - }) + if ( + userStore.getUser?.id != remarkInfo.value.remarkUser && + userStore.getUser?.id != remarkInfo.value.followUser + ) { + message.error('无权限操作该登记页面!') + return + } else { + resetForm() + getOptions() + getDiyFields() + ClueApi.getClue(remarkInfo.value.clueId).then((data) => { + info.value = { ...data, ...data.diyParams, signInfo: remarkInfo.value.signInfo } + let str = '' + if (!remarkInfo.value.remarkContent.includes(data.name)) { + // 提示姓名不一致 + str += '学员姓名不一致' + } + if (!remarkInfo.value.remarkContent.includes(data.phone)) { + // 提示姓名不一致 + str += '手机号不一致' + } + if (str.length) { + message.warning(`请注意:${str}`) + } + }) + } }) } else { // 关闭网页