[FXI]在线管理列表函数打印

This commit is contained in:
huweihang
2025-12-10 10:48:46 +08:00
parent d125990697
commit 52d51a53fd

View File

@@ -427,7 +427,7 @@ import TopCourseSorter from '@/components/Course/TopCourseSorter.vue';
import apiResowner from '../../api/modules/resowner.js'; import apiResowner from '../../api/modules/resowner.js';
import apiType from '../../api/modules/type.js' import apiType from '../../api/modules/type.js'
import { courseType } from '../../utils/tools.js'; import { courseType } from '../../utils/tools.js';
import apiCourse from '../../api/modules/course.js'; import apiCourse from '@/api/modules/course.js';
// import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js'; // import {resOwnerIndexName,sysTypeIndexName} from '@/utils/type.js';
import { mapGetters, mapActions } from 'vuex'; import { mapGetters, mapActions } from 'vuex';
import apiUserbasic from "@/api/boe/userbasic.js" import apiUserbasic from "@/api/boe/userbasic.js"
@@ -1145,17 +1145,20 @@ export default {
if (!this.validateLearningTimeRange()) { if (!this.validateLearningTimeRange()) {
return; return;
} }
console.log('apiCourse', apiCourse)
const query = this.buildQueryParams(); const query = this.buildQueryParams();
apiCourse.managePage(query).then(rs => { apiCourse.managePage(query).then(rs => {
if (rs.status == 200) { if (rs.status == 200) {
this.pageData = rs.result.list ? rs.result.list : []; this.pageData = rs.result.list ? rs.result.list : [];
// this.pageData = rs.result.list;
this.page.count = rs.result.count; this.page.count = rs.result.count;
this.page.pageSize = rs.result.pageSize; this.page.pageSize = rs.result.pageSize;
} else { } else {
return this.$message.error(rs.message); return this.$message.error(rs.message);
} }
}) }).catch(err => {
console.error('查询课程列表失败:', err);
this.$message.error('查询失败,请稍后重试');
});
}, },
viewTopic(row) { viewTopic(row) {