|
@@ -517,7 +517,7 @@ const getnextdata = (page: number) => {
|
|
|
searchForm.value["createBy"]=useUserStore().userId;
|
|
|
delete searchForm.value.status;
|
|
|
}
|
|
|
- if(userroles.indexOf("superadmin")!=-1){
|
|
|
+ if(JSON.stringify(userroles).indexOf("admin")!=-1){
|
|
|
delete searchForm.value.createBy
|
|
|
}
|
|
|
|
|
@@ -541,7 +541,7 @@ onMounted(() => {
|
|
|
if(route.query.status!=undefined){
|
|
|
status.value = route.query.status+""
|
|
|
}
|
|
|
- if(userroles.indexOf("superadmin")!=-1){
|
|
|
+ if(JSON.stringify(userroles).indexOf("admin")!=-1){
|
|
|
isnormal = true
|
|
|
status.value ="1";
|
|
|
}
|