|
|
@ -14,6 +14,9 @@ import { LearningRecordsControllerService } from '../../../generated/services/Le |
|
|
|
import { CourseResourceControllerService } from '../../../generated/services/CourseResourceControllerService' |
|
|
|
import { CourseResourceControllerService } from '../../../generated/services/CourseResourceControllerService' |
|
|
|
|
|
|
|
|
|
|
|
import resourceAdd from './componse/resourceAdd.vue' |
|
|
|
import resourceAdd from './componse/resourceAdd.vue' |
|
|
|
|
|
|
|
import useUserStore from '@/store/modules/user' |
|
|
|
|
|
|
|
import { onMounted } from 'vue' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const total = ref(0) |
|
|
|
const total = ref(0) |
|
|
|
const pptresourceList = ref([]) |
|
|
|
const pptresourceList = ref([]) |
|
|
@ -77,10 +80,14 @@ const onDeleteResource = async (ids) => { |
|
|
|
ElMessage({ type: 'success', message: '删除成功' }) |
|
|
|
ElMessage({ type: 'success', message: '删除成功' }) |
|
|
|
getpptresourceList() |
|
|
|
getpptresourceList() |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const userStore = useUserStore() |
|
|
|
|
|
|
|
onMounted(()=>{ |
|
|
|
|
|
|
|
userStore.getUserInfo() |
|
|
|
|
|
|
|
}) |
|
|
|
const param = ref({ |
|
|
|
const param = ref({ |
|
|
|
coursesId: '', |
|
|
|
coursesId: '', |
|
|
|
userId: '1', |
|
|
|
coursesName: '', |
|
|
|
|
|
|
|
userId: userStore.data.id, |
|
|
|
open: '1', |
|
|
|
open: '1', |
|
|
|
download: '0', |
|
|
|
download: '0', |
|
|
|
content: '', |
|
|
|
content: '', |
|
|
@ -91,6 +98,7 @@ const param = ref({ |
|
|
|
const generateRecords = async (rescource) => { |
|
|
|
const generateRecords = async (rescource) => { |
|
|
|
param.value.content = rescource.img |
|
|
|
param.value.content = rescource.img |
|
|
|
param.value.coursesId = rescource.id.toString() |
|
|
|
param.value.coursesId = rescource.id.toString() |
|
|
|
|
|
|
|
param.value.coursesName = rescource.name |
|
|
|
await LearningRecordsControllerService.saveRecordsUsingPost1(param.value) |
|
|
|
await LearningRecordsControllerService.saveRecordsUsingPost1(param.value) |
|
|
|
// console.log(param) |
|
|
|
// console.log(param) |
|
|
|
} |
|
|
|
} |
|
|
|