From 7e827c55fa38991089d6d735f5f425b3e9cb96e1 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: Tue, 30 Jun 2026 16:46:08 +0800
Subject: [PATCH] 修改名称
---
src/views/onlineEducation/people/index.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/onlineEducation/people/index.vue b/src/views/onlineEducation/people/index.vue
index 93459d9..b592d8a 100644
--- a/src/views/onlineEducation/people/index.vue
+++ b/src/views/onlineEducation/people/index.vue
@@ -100,10 +100,11 @@
});
const { queryParams, total, dataList } = toRefs(data);
-
+const userType = ref()
onMounted(async ()=>{
const userInfo = JSON.parse(Cookies.get('userInfo'))
console.log("userInfo",userInfo)
+ userType.value = userInfo.userType
if(userInfo.userType === 0){
data.isAdmin = true;
}else {
@@ -129,8 +130,12 @@
const openDialog = (type, value) => {
if(type == 'add' && data.isAdmin){
- ElMessage.warning('监管部门请联系企业创建企业学员')
- }else{
+ ElMessage.warning('监管学院请联系企业创建企业学员')
+ }
+ // else if(userType.value !== 3 && (type == 'add' || type == 'edit')) {
+ // ElMessage.warning(' 只有实验室级用户才能新增和编辑')
+ // }
+ else{
dialogRef.value.openDialog(type, value);
}
--
Gitblit v1.9.2