diff --git a/admin/src/views/student/freshman/stuRegistration.admission/edit.vue b/admin/src/views/student/freshman/stuRegistration.admission/edit.vue new file mode 100644 index 00000000..e5e7b85b --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.admission/edit.vue @@ -0,0 +1,198 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.admission/index.vue b/admin/src/views/student/freshman/stuRegistration.admission/index.vue new file mode 100644 index 00000000..ff91817f --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.admission/index.vue @@ -0,0 +1,227 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.enrollment/edit.vue b/admin/src/views/student/freshman/stuRegistration.enrollment/edit.vue new file mode 100644 index 00000000..29509bca --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.enrollment/edit.vue @@ -0,0 +1,220 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.enrollment/index.vue b/admin/src/views/student/freshman/stuRegistration.enrollment/index.vue new file mode 100644 index 00000000..41c699a5 --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.enrollment/index.vue @@ -0,0 +1,227 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.payment/edit.vue b/admin/src/views/student/freshman/stuRegistration.payment/edit.vue new file mode 100644 index 00000000..12660817 --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.payment/edit.vue @@ -0,0 +1,217 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.payment/index.vue b/admin/src/views/student/freshman/stuRegistration.payment/index.vue new file mode 100644 index 00000000..97e4dc3f --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.payment/index.vue @@ -0,0 +1,227 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.registration/edit.vue b/admin/src/views/student/freshman/stuRegistration.registration/edit.vue new file mode 100644 index 00000000..766840a8 --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.registration/edit.vue @@ -0,0 +1,218 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration.registration/index.vue b/admin/src/views/student/freshman/stuRegistration.registration/index.vue new file mode 100644 index 00000000..1663c113 --- /dev/null +++ b/admin/src/views/student/freshman/stuRegistration.registration/index.vue @@ -0,0 +1,227 @@ + + diff --git a/admin/src/views/student/freshman/stuRegistration/edit.vue b/admin/src/views/student/freshman/stuRegistration/edit.vue index 5356094f..3e692da6 100644 --- a/admin/src/views/student/freshman/stuRegistration/edit.vue +++ b/admin/src/views/student/freshman/stuRegistration/edit.vue @@ -107,6 +107,7 @@ import { stuRegistrationEdit } from '@/api/stuRegistration' import Popup from '@/components/popup/index.vue' +import useUserStore from '@/stores/modules/user' import feedback from '@/utils/feedback' defineProps({ dictData: { @@ -115,6 +116,7 @@ defineProps({ } }) const emit = defineEmits(['success', 'close']) +const userStore = useUserStore() const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') @@ -232,9 +234,27 @@ const handleSubmit = async () => { const open = (type = 'add') => { mode.value = type + console.log('当前权限:', userStore.perms) + console.log('getFetchFun', getFetchFun()) popupRef.value?.open() } +const getFetchFun = () => { + const { perms } = userStore + if (perms.includes('stuRegistration/list')) { + return 5 + } else if (perms.includes('stuRegistration/list.enrollment')) { + return 2 + } else if (perms.includes('stuRegistration/list.payment')) { + return 3 + } else if (perms.includes('stuRegistration/list.registration')) { + return 4 + } else if (perms.includes('stuRegistration/list.admission')) { + return 1 + } + return 0 +} + const setFormData = async (data: Record) => { for (const key in formData) { if (data[key] != null && data[key] != undefined) { diff --git a/admin/src/views/student/freshman/stuRegistration/index.vue b/admin/src/views/student/freshman/stuRegistration/index.vue index cde6746d..6fe38678 100644 --- a/admin/src/views/student/freshman/stuRegistration/index.vue +++ b/admin/src/views/student/freshman/stuRegistration/index.vue @@ -99,7 +99,6 @@ /> -