mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 16:26:45 +08:00
修改到处逻辑
This commit is contained in:
@@ -75,7 +75,7 @@ export const getExquisiteCoursePage = (params) =>
|
|||||||
export const getExquisiteYearList = (params) =>
|
export const getExquisiteYearList = (params) =>
|
||||||
http.post("/quality/manage/createYearList", params)
|
http.post("/quality/manage/createYearList", params)
|
||||||
export const getExport = (params) =>
|
export const getExport = (params) =>
|
||||||
http.post("/quality/manage/export", params)
|
http.post("/quality/manage/export", params,{ responseType: 'blob' })
|
||||||
// 标记/导入标记
|
// 标记/导入标记
|
||||||
export const getMark = (params) =>
|
export const getMark = (params) =>
|
||||||
http.post("/quality/manage/mark", params)
|
http.post("/quality/manage/mark", params)
|
||||||
|
|||||||
@@ -656,8 +656,7 @@ export default defineComponent({
|
|||||||
// 全部导出
|
// 全部导出
|
||||||
const exportAll = async () => {
|
const exportAll = async () => {
|
||||||
try {
|
try {
|
||||||
await useDownload(
|
let res = await getExport(
|
||||||
"/xboe/m/boe/cases/quality/manage/export",
|
|
||||||
{
|
{
|
||||||
courseNameOrTeacherName: state.courseNameOrTeacherName,
|
courseNameOrTeacherName: state.courseNameOrTeacherName,
|
||||||
courseSource: state.courseSource,
|
courseSource: state.courseSource,
|
||||||
@@ -667,9 +666,15 @@ export default defineComponent({
|
|||||||
"精品课程导出",
|
"精品课程导出",
|
||||||
"xlsx"
|
"xlsx"
|
||||||
);
|
);
|
||||||
|
if (res.data.data.status == 200) {
|
||||||
|
message.success(res.data.data.message);
|
||||||
|
// 重新加载数据
|
||||||
|
getTableDate();
|
||||||
|
} else {
|
||||||
|
message.error(res.data.data.message);
|
||||||
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("导出失败:", error);
|
console.error("导出失败:", error);
|
||||||
message.error("导出失败");
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 导入标记
|
// 导入标记
|
||||||
|
|||||||
Reference in New Issue
Block a user