mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26: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);
|
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 {
|
/*export default {
|
||||||
portalPageList,
|
portalPageList,
|
||||||
|
|||||||
@@ -125,7 +125,7 @@
|
|||||||
v-model:visible="courseDialogVisible"
|
v-model:visible="courseDialogVisible"
|
||||||
:title="null"
|
:title="null"
|
||||||
:footer="null"
|
:footer="null"
|
||||||
:closable="false"
|
:closable="true"
|
||||||
wrapClassName="courseDialog"
|
wrapClassName="courseDialog"
|
||||||
width="850px"
|
width="850px"
|
||||||
>
|
>
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
import { reactive, toRefs, ref } from "vue";
|
import { reactive, toRefs, ref } from "vue";
|
||||||
import { message } from "ant-design-vue";
|
import { message } from "ant-design-vue";
|
||||||
// import { apiCourseTag } from "@/api/courseTag.js";
|
// 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";
|
import moment from "moment";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@@ -577,8 +577,26 @@ export default {
|
|||||||
// if (res.status === 200) {
|
// if (res.status === 200) {
|
||||||
// console.log("导出标签成功", res.data.data);
|
// 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) {
|
} catch (error) {
|
||||||
message.error('导出标签失败');
|
message.error('导出失败');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -607,6 +625,7 @@ export default {
|
|||||||
unbindCurrentTag,
|
unbindCurrentTag,
|
||||||
formatDate,
|
formatDate,
|
||||||
exportTag,
|
exportTag,
|
||||||
|
exportTagFile,
|
||||||
portalPageList,
|
portalPageList,
|
||||||
changeTagPublic,
|
changeTagPublic,
|
||||||
changeTagHot,
|
changeTagHot,
|
||||||
|
|||||||
Reference in New Issue
Block a user