|
@@ -212,7 +212,7 @@ const getExamName = computed(() => {
|
|
|
|
|
|
|
|
const state = reactive<State>({
|
|
const state = reactive<State>({
|
|
|
keyWord: "",
|
|
keyWord: "",
|
|
|
- checkList: ["group"],
|
|
|
|
|
|
|
+ checkList: [],
|
|
|
tableHeight: 1000, //表格高度
|
|
tableHeight: 1000, //表格高度
|
|
|
tableData: [],
|
|
tableData: [],
|
|
|
staticHeaderData: [],
|
|
staticHeaderData: [],
|
|
@@ -257,6 +257,14 @@ const GetStudentTranscriptTitle = async () => {
|
|
|
res.data?.title?.dynamicsHeaderData?.groupDataTitle || [];
|
|
res.data?.title?.dynamicsHeaderData?.groupDataTitle || [];
|
|
|
state.scoreDataTitleData =
|
|
state.scoreDataTitleData =
|
|
|
res.data?.title?.dynamicsHeaderData?.scoreDataTitle || [];
|
|
res.data?.title?.dynamicsHeaderData?.scoreDataTitle || [];
|
|
|
|
|
+ let checkList = [];
|
|
|
|
|
+ if(state.groupDataTitleData.length){
|
|
|
|
|
+ checkList.push('group');
|
|
|
|
|
+ }
|
|
|
|
|
+ if(state.scoreDataTitleData.length){
|
|
|
|
|
+ checkList.push('question');
|
|
|
|
|
+ }
|
|
|
|
|
+ state.checkList = checkList.length?[checkList[0]]:[];
|
|
|
}
|
|
}
|
|
|
} catch (err) {
|
|
} catch (err) {
|
|
|
console.error("获取表头失败:", err);
|
|
console.error("获取表头失败:", err);
|
|
@@ -351,7 +359,6 @@ const ExportExcel = () => {
|
|
|
if (state.checkList.includes("question")) {
|
|
if (state.checkList.includes("question")) {
|
|
|
params.dynamicsHeaderDataMap.scoreDataTitle = state.scoreDataTitleData;
|
|
params.dynamicsHeaderDataMap.scoreDataTitle = state.scoreDataTitleData;
|
|
|
}
|
|
}
|
|
|
- console.log(state.checkList);
|
|
|
|
|
// 3. 调用通用下载方法,并在完成后重置加载状态
|
|
// 3. 调用通用下载方法,并在完成后重置加载状态
|
|
|
downloadExcel(studentTranscriptExcel, params).finally(() => {
|
|
downloadExcel(studentTranscriptExcel, params).finally(() => {
|
|
|
reportModuleRef.value?.SetExportLoading?.(false);
|
|
reportModuleRef.value?.SetExportLoading?.(false);
|
|
@@ -420,6 +427,7 @@ const HandleResize = throttle(() => {
|
|
|
// 初始化
|
|
// 初始化
|
|
|
const PageInit = () => {
|
|
const PageInit = () => {
|
|
|
state.pageInfo.pageNum = 1;
|
|
state.pageInfo.pageNum = 1;
|
|
|
|
|
+ state.checkList = [];
|
|
|
GetStudentTranscriptTitle();
|
|
GetStudentTranscriptTitle();
|
|
|
GetTableCount();
|
|
GetTableCount();
|
|
|
GetTableData(true);
|
|
GetTableData(true);
|