|
|
@ -4,19 +4,26 @@ import { ref } from 'vue' |
|
|
|
|
|
|
|
|
|
|
|
import { ElMessageBox, ElMessage } from 'element-plus' |
|
|
|
import { ElMessageBox, ElMessage } from 'element-plus' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
import { useRouter } from 'vue-router' |
|
|
|
|
|
|
|
import useUserStore from '@/store/modules/user' |
|
|
|
|
|
|
|
import { onMounted } from 'vue' |
|
|
|
//导入接口 |
|
|
|
//导入接口 |
|
|
|
import { LearningRecordsControllerService } from '../../../generated/services/LearningRecordsControllerService' |
|
|
|
import { LearningRecordsControllerService } from '../../../generated/services/LearningRecordsControllerService' |
|
|
|
const total = ref(0) |
|
|
|
const total = ref(0) |
|
|
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
const recordList = ref([]) |
|
|
|
const recordList = ref([]) |
|
|
|
const selectedIds = ref([]) |
|
|
|
const selectedIds = ref([]) |
|
|
|
const loading = ref(false) |
|
|
|
const loading = ref(false) |
|
|
|
const showCheckbox = ref(false) |
|
|
|
const showCheckbox = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(()=>{ |
|
|
|
|
|
|
|
userStore.getUserInfo() |
|
|
|
|
|
|
|
}) |
|
|
|
const params = ref({ |
|
|
|
const params = ref({ |
|
|
|
// pagesize: '10', |
|
|
|
// pagesize: '10', |
|
|
|
// pagenum: '1', |
|
|
|
// pagenum: '1', |
|
|
|
userId: '1', |
|
|
|
userId: userStore.data.id, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
console.log(userStore.data.id); |
|
|
|
//获取浏览记录列表 |
|
|
|
//获取浏览记录列表 |
|
|
|
const getrecordList = async () => { |
|
|
|
const getrecordList = async () => { |
|
|
|
//console.log(1111111) |
|
|
|
//console.log(1111111) |
|
|
|