mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
课程详情studyIndex和detail传递用户所有受众id
This commit is contained in:
@@ -320,6 +320,7 @@
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
audiences:'',
|
||||
isCrowd:false,
|
||||
cutOrgNamePath,
|
||||
scormUrl:'',//当前播放的scormUrl
|
||||
@@ -396,6 +397,10 @@
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// 增加的用户受众id
|
||||
let localKey = "user_" + this.userInfo.sysId + "_gids";
|
||||
let hasIds = sessionStorage.getItem(localKey);
|
||||
this.audiences = hasIds ?? ''
|
||||
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
||||
this.courseId = this.$route.query.id;
|
||||
this.initContentId = this.$route.query.contentId;
|
||||
@@ -1141,7 +1146,11 @@
|
||||
// 获取数据信息
|
||||
loadData() {
|
||||
let $this=this;
|
||||
apiStudy.studyIndex(this.courseId).then(rs => {
|
||||
apiStudy.studyIndexPost({
|
||||
cid: this.courseId,
|
||||
addView:true,
|
||||
audiences:this.audiences
|
||||
}).then(rs => {
|
||||
if (rs.status == 200) {
|
||||
if(rs.result.contents.length==0){
|
||||
$this.$message.error('课程内容已删除或课程已不再使用');
|
||||
|
||||
Reference in New Issue
Block a user