From e3c46c339fbf5d6562e1a91263f20b9510133d7e Mon Sep 17 00:00:00 2001
From: 670788339 <670788339@qq.com>
Date: Fri, 24 Oct 2025 16:01:50 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=89=8D=E5=8F=B0=E5=85=AC?=
=?UTF-8?q?=E5=85=B1=E6=98=BE=E7=A4=BA=E7=AD=9B=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/tag/TagManage.vue | 65 ++++++++++++++++++++++++++++++++++---
1 file changed, 61 insertions(+), 4 deletions(-)
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
};
}
};