diff --git a/src/api/modules/qa.js b/src/api/modules/qa.js index 82ff61a8..b1ae64a0 100644 --- a/src/api/modules/qa.js +++ b/src/api/modules/qa.js @@ -198,11 +198,12 @@ const saveComment=function(data) { const ids=function (data){ return ajax.postJson('/xboe/m/qa/question/ids',data); } +const answerIds=function(data){return ajax.postJson('/xboe/m/qa/answer/ids',data);} export default{ indexList, - pageList, - detail, - save, + pageList, + detail, + save, del, queryList, answerList, @@ -211,16 +212,17 @@ export default{ delAnswer, detailAnswer, isBest, - cancelBest, + cancelBest, savaAudit, - isEssence, - queryAnswer, - queryQuestion, - potallist, - update, - page, - has, - saveComment, - replayClevel3, - ids + isEssence, + queryAnswer, + queryQuestion, + potallist, + update, + page, + has, + saveComment, + replayClevel3, + ids, + answerIds } diff --git a/src/api/phase2/note.js b/src/api/phase2/note.js index aa8f3238..2fccdf34 100644 --- a/src/api/phase2/note.js +++ b/src/api/phase2/note.js @@ -100,7 +100,7 @@ const restore=function (id){ * } * */ const ids=function (data){ - return ajax.postJson('/xboe/subgroup/m/noteinfo/ids',data); + return ajax.postJson(baseURL,'/xboe/subgroup/m/noteinfo/ids',data); } export default { diff --git a/src/components/Course/myNote.vue b/src/components/Course/myNote.vue index b6e0bb92..fe3e7925 100644 --- a/src/components/Course/myNote.vue +++ b/src/components/Course/myNote.vue @@ -62,8 +62,8 @@
视频位置 - 公开 - 私密 + 公开 + 私密 保存
@@ -100,7 +100,7 @@ export default { courseId: '',// 课程id contentId: '',//课程内容id courseName: '',// 课程名称 - openType: 1,// 1表不公开 9表完全公开 + openType: 9,// 1表不公开 9表完全公开 }, noteList: [], type: 1, // 1自动保存 2点击保存 @@ -195,6 +195,7 @@ export default { this.$message({ type: 'info', message: '您还没有书写笔记!', offset: 50 }); return; } + console.log(this.mynoteData,'this.mynoteData'); apiNote.save(this.mynoteData).then(res => { if (res.status == 200) { if (!this.mynoteData.id) { @@ -205,11 +206,11 @@ export default { // 是编辑新增 let event = { key: "PublishNote",//后台的事件key - title: "发布公开的笔记",//事件的标题 + title: this.data.name,//事件的标题 parameters: "",//用户自定义参数 name:value,name:value - content: "每发布一个公开 的笔记",//事件的内容 + content: this.data.name,//this.mynoteData.content,//事件的内容 objId: res.result.id,//关联的id - objType: "4",//关联的类型 + objType: "6",//关联的类型 objInfo: "笔记", aid: this.userInfo.aid, //当前登录人的id aname: this.userInfo.name,//当前人的姓名 diff --git a/src/components/HomePage/answerList.vue b/src/components/HomePage/answerList.vue index 7ee55765..7b2f366f 100644 --- a/src/components/HomePage/answerList.vue +++ b/src/components/HomePage/answerList.vue @@ -1,21 +1,20 @@