mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 13:26:44 +08:00
个人主页接口对接
This commit is contained in:
@@ -62,8 +62,8 @@
|
||||
<div class="newcote-bottom" v-if="notetab == 1">
|
||||
<span style="cursor: pointer;" @click="videoLocation"> <img src="../../../public/images/playtime.png"
|
||||
alt=""> 视频位置</span>
|
||||
<el-radio v-model="mynoteData.openType" :label="1">公开</el-radio>
|
||||
<el-radio v-model="mynoteData.openType" :label="2">私密</el-radio>
|
||||
<el-radio v-model="mynoteData.openType" :label="9">公开</el-radio>
|
||||
<el-radio v-model="mynoteData.openType" :label="1">私密</el-radio>
|
||||
<el-button type="primary" size="small" @click="saveNote()">保存</el-button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -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,//当前人的姓名
|
||||
|
||||
Reference in New Issue
Block a user