|
@@ -445,7 +445,7 @@ const pdfviewshow = ref(false);
|
|
|
const route = useRoute();
|
|
|
|
|
|
var isnormal = false;
|
|
|
-if(userroles.indexOf("normaluser")!=-1){
|
|
|
+if(userroles.indexOf("superadmin")!=-1){
|
|
|
isnormal = true
|
|
|
}
|
|
|
|
|
@@ -483,12 +483,13 @@ const getnextdata = (page: number) => {
|
|
|
if(route.query.status){
|
|
|
searchForm.value["status"]=route.query.status;
|
|
|
}else{
|
|
|
- if(isnormal){
|
|
|
+ if(!isnormal){
|
|
|
searchForm.value["status"]="1";
|
|
|
}
|
|
|
}
|
|
|
if(route.fullPath.indexOf("add")!=-1){
|
|
|
searchForm.value["createBy"]=useUserStore().userId;
|
|
|
+ delete searchForm.value.status;
|
|
|
}
|
|
|
|
|
|
listArchives({ pageSize: 10, pageNum: page, ...searchForm.value }).then((res) => {
|