|
|
|
@ -16,7 +16,7 @@ const params = ref({ |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 7, |
|
|
|
|
// username: 'qiuqiu', |
|
|
|
|
userId: userStore.userInfo.id, |
|
|
|
|
userId: userStore.userInfo.id ?? 3, |
|
|
|
|
assessmenttype: '', |
|
|
|
|
category: '', |
|
|
|
|
nature: '', |
|
|
|
@ -38,7 +38,7 @@ watch(() => userStore.userInfo.id, (newVal) => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
if (userStore.userInfo.id) getCourseList() |
|
|
|
|
if (params.value.userId) getCourseList() |
|
|
|
|
}) |
|
|
|
|
const total = ref(0) |
|
|
|
|
const loading = ref(false) |
|
|
|
@ -74,10 +74,10 @@ const onGetCourseObject = async (id: any) => { |
|
|
|
|
|
|
|
|
|
function toPath(item: any) { |
|
|
|
|
$router.push({ |
|
|
|
|
path:'/roadbedRecommendation', |
|
|
|
|
query:{ |
|
|
|
|
isCourse:'true', |
|
|
|
|
id:item.id |
|
|
|
|
path: '/roadbedRecommendation', |
|
|
|
|
query: { |
|
|
|
|
isCourse: 'true', |
|
|
|
|
id: item.id |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|