dev #41
|
|
@ -16,3 +16,9 @@ VITE_API_USERCENTER_URL = "https://dca.w.23544.com:8843/api"
|
|||
# VITE_API_BASEURL = "https://learn-archives-admin-dev.23544.com/api"
|
||||
# #数据中心后台地址
|
||||
# VITE_API_USERCENTER_URL = "https://dca.w.23544.com:8843/api"
|
||||
|
||||
|
||||
# 接口地址
|
||||
# VITE_API_BASEURL = "https://learn-archives-admin.23544.com/api"
|
||||
# #数据中心后台地址
|
||||
# VITE_API_USERCENTER_URL = "https://dcb.23544.com/api"
|
||||
|
|
|
|||
|
|
@ -204,7 +204,7 @@ export interface Position {
|
|||
subjectName: string;
|
||||
positionType: number;
|
||||
positionLevel: number;
|
||||
status: boolean;
|
||||
status: number;
|
||||
classList?: ComboModel[];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -649,7 +649,7 @@ const fetchFormData = async () => {
|
|||
}
|
||||
let sInfo = await StudentInfo(props.id);
|
||||
positionList.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.filter((s: Position) => s.enable && s.status == 1)
|
||||
.map((s: Position) => {
|
||||
if (s.positionLevel > 2)
|
||||
s.grade = (s.gradeLevel ?? s.grade[0]) + s.graduationYear + "届";
|
||||
|
|
@ -680,12 +680,6 @@ const fetchFormData = async () => {
|
|||
positionList: positionList.value,
|
||||
...sInfo.data,
|
||||
});
|
||||
positionList.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.map((s: Position) => {
|
||||
s.grade = (s.gradeLevel ?? s.grade[0]) + s.graduationYear + "届";
|
||||
return s;
|
||||
});
|
||||
PositionFormIds.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.map((s: any) => s.id);
|
||||
|
|
|
|||
|
|
@ -638,7 +638,7 @@ const PositionsSort = (arr: Position[]) => {
|
|||
return 1;
|
||||
}
|
||||
});
|
||||
return arr.filter((s) => s.enable);
|
||||
return arr.filter((s) => s.enable && s.status == 1);
|
||||
};
|
||||
|
||||
const handleReloadPaged = (event?: any, searchUnUse?: boolean) => {
|
||||
|
|
|
|||
|
|
@ -493,7 +493,7 @@ const fetchFormData = () => {
|
|||
}
|
||||
|
||||
positionList.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.filter((s: Position) => s.enable && s.status == 1)
|
||||
.map((s: Position) => {
|
||||
if (s.positionLevel > 2)
|
||||
s.grade = (s.gradeLevel ?? s.grade[0]) + s.graduationYear + "届";
|
||||
|
|
@ -522,13 +522,6 @@ const fetchFormData = () => {
|
|||
pointPenSN: res.data.pointPenSN,
|
||||
positionList: positionList.value ?? [],
|
||||
});
|
||||
positionList.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.map((s: Position) => {
|
||||
if (s.positionLevel > 2)
|
||||
s.grade = (s.gradeLevel ?? s.grade[0]) + s.graduationYear + "届";
|
||||
return s;
|
||||
});
|
||||
PositionFormIds.value = res.data.positions
|
||||
.filter((s: Position) => s.enable)
|
||||
.map((s: any) => s.id);
|
||||
|
|
|
|||
|
|
@ -618,7 +618,7 @@ const PositionsSort = (arr: Position[]) => {
|
|||
return 1;
|
||||
}
|
||||
});
|
||||
return arr.filter((s) => s.enable);
|
||||
return arr.filter((s) => s.enable && s.status == 1);
|
||||
};
|
||||
|
||||
function searchReload() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue