master
significative 2 months ago
parent 52161f7955
commit 46904b36c5
  1. 2
      teaching_integration_platform_template/src/store/module/user.ts
  2. 2
      teaching_integration_platform_template/src/views/course/index.vue
  3. 2
      teaching_integration_platform_template/src/views/home/index.vue
  4. 12
      teaching_integration_platform_template/src/views/professionalListProfile/index.vue

@ -4,7 +4,7 @@ import { ref, reactive } from 'vue'
const userStore = defineStore('userStore', () => { const userStore = defineStore('userStore', () => {
const userInfo = reactive<any>({}) const userInfo = reactive<any>({})
const isLogin = ref(false) const isLogin = ref(false)
const token = ref('eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ4aWFvMTExMSIsImNyZWF0ZWQiOjE3MjQ2NTQxNjMxMjIsImV4cCI6MTcyNTI1ODk2M30.uIEZhGG6-XGomV0aqpamOn54VxP4ItfM_ip9EgI0ohcYPyEnln6dXBoG8eVBNlbigglIjw5V1N5bHPdIAifeaA') const token = ref('')
userGetInfoService(token.value).then(res => { userGetInfoService(token.value).then(res => {
// @ts-ignore // @ts-ignore

@ -216,7 +216,7 @@ const getCourseChapterEvent = async () => {
courseId: '2cd6b5b62c344fd0becff6010cba566e', courseId: '2cd6b5b62c344fd0becff6010cba566e',
}) })
chapterList.value = res.data chapterList.value = res.data
console.log(res) console.log(res,'res')
loading.value = true loading.value = true
loadingInstance.close() loadingInstance.close()
} }

@ -22,7 +22,7 @@
<li>总学时10学时</li> <li>总学时10学时</li>
<li>章节数10</li> <li>章节数10</li>
<li>总学分2.0</li> <li>总学分2.0</li>
<li>知识点总33</li> <li>知识点总33</li>
</ul> </ul>
</div> </div>
</div> </div>

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

Loading…
Cancel
Save