diff --git a/src/views/tag/TagManage.vue b/src/views/tag/TagManage.vue
index 1015a958..b2c53a2f 100644
--- a/src/views/tag/TagManage.vue
+++ b/src/views/tag/TagManage.vue
@@ -32,6 +32,15 @@
allowClear
>
+
+
@@ -196,7 +208,8 @@ export default {
pageSize: 10,
id: "",
tagName: "",
- isHot: undefined
+ isHot: undefined,
+ isPublic: undefined
},
courseSearchParam: {
@@ -254,6 +267,34 @@ export default {
key: "isHot",
width: 220,
align: "center"
+ },
+ {
+ title: "创建人",
+ dataIndex: "sysCreateBy",
+ key: "sysCreateBy",
+ width: 220,
+ align: "center"
+ },
+ {
+ title: "创建时间",
+ dataIndex: "sysCreateTime",
+ key: "sysCreateTime",
+ width: 220,
+ align: "center"
+ },
+ {
+ title: "更新人",
+ dataIndex: "sysUpdateBy",
+ key: "sysUpdateBy",
+ width: 220,
+ align: "center"
+ },
+ {
+ title: "更新时间",
+ dataIndex: "sysUpdateTime",
+ key: "sysUpdateTime",
+ width: 220,
+ align: "center"
}
]);
@@ -311,6 +352,7 @@ export default {
// 获取标签列表
const getTagList = async () => {
+ console.log("获取标签列表");
state.tableLoading = true;
try {
const params = {
@@ -318,10 +360,12 @@ export default {
pageSize: state.searchParam.pageSize,
id: state.searchParam.id || undefined,
tagName: state.searchParam.tagName || undefined,
- isHot: state.searchParam.isHot || undefined
+ isHot: state.searchParam.isHot || undefined,
+ isPublic: state.searchParam.isPublic || undefined
};
-
+ console.log("获取标签列表 参数 : ",params);
const res = await apiCourseTag.portalPageList(params);
+ console.log("获取标签列表 结果 : ",res);
if (res.status === 200) {
state.tableData = res.result?.list || [];
state.tableDataTotal = res.result?.count || 0;
@@ -462,6 +506,18 @@ export default {
}
};
+ const exportTag = async () => {
+ console.log("调用导出标签接口");
+ try {
+ // const res = await apiCourseTag.exportTag();
+ // if (res.status === 200) {
+ // console.log("导出标签成功", res.data.data);
+ // }
+ } catch (error) {
+ message.error('导出标签失败');
+ }
+ };
+
// 日期格式化
const formatDate = (date) => {
return date ? moment(date).format('YYYY-MM-DD') : '';
@@ -484,7 +540,8 @@ export default {
closeCourseDialog,
changeCoursePagination,
unbindCurrentTag,
- formatDate
+ formatDate,
+ exportTag
};
}
};