mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
Merge branch 'master-20251023-tag' into test1024
This commit is contained in:
@@ -30,8 +30,8 @@ export const searchTags = (params = {}) => http.post(`/admin/courseTag/searchTag
|
||||
//编辑课程:创建标签(与当前课程关联)
|
||||
export const createTag = (params = {}) => http.post(`/admin/courseTag/createTag`, params);
|
||||
|
||||
//获取最新前10个热点标签
|
||||
export const getHotTagList = (params = {}) => http.post(`/admin/courseTag/getHotTagList`, params);
|
||||
//导出
|
||||
export const exportTagFile = (params = {}) => http.post(`/admin/courseTag/exportTag`, params);
|
||||
|
||||
/*export default {
|
||||
portalPageList,
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
v-model:visible="courseDialogVisible"
|
||||
:title="null"
|
||||
:footer="null"
|
||||
:closable="false"
|
||||
:closable="true"
|
||||
wrapClassName="courseDialog"
|
||||
width="850px"
|
||||
>
|
||||
@@ -193,7 +193,7 @@
|
||||
import { reactive, toRefs, ref } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
// import { apiCourseTag } from "@/api/courseTag.js";
|
||||
import { portalPageList ,changeTagPublic,changeTagHot,showCourseByTag,unbindCourseTagRelation,searchTags,createTag } from "../../api/courseTag.js";
|
||||
import { portalPageList ,changeTagPublic,changeTagHot,showCourseByTag,unbindCourseTagRelation,searchTags,createTag,exportTagFile } from "../../api/courseTag.js";
|
||||
import moment from "moment";
|
||||
|
||||
export default {
|
||||
@@ -577,8 +577,26 @@ export default {
|
||||
// if (res.status === 200) {
|
||||
// console.log("导出标签成功", res.data.data);
|
||||
// }
|
||||
const params = {
|
||||
pageNo: state.searchParam.pageNo,
|
||||
pageSize: state.searchParam.pageSize,
|
||||
id: state.searchParam.id || null,
|
||||
tagName: state.searchParam.tagName || null,
|
||||
isHot: state.searchParam.isHot || null,
|
||||
isPublic: state.searchParam.isPublic || null,
|
||||
orders: state.searchParam.order || null
|
||||
};
|
||||
exportTagFile(params).then ((res) => {
|
||||
console.log("导出 结果 : ",res);
|
||||
if (res.status === 200) {
|
||||
state.tableData = res.data.data.records || [];
|
||||
state.tableDataTotal = res.data.data.total || 0;
|
||||
}else {
|
||||
message.error('导出失败');
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
message.error('导出标签失败');
|
||||
message.error('导出失败');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -607,6 +625,7 @@ export default {
|
||||
unbindCurrentTag,
|
||||
formatDate,
|
||||
exportTag,
|
||||
exportTagFile,
|
||||
portalPageList,
|
||||
changeTagPublic,
|
||||
changeTagHot,
|
||||
|
||||
Reference in New Issue
Block a user