mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-16 06:16:44 +08:00
修改笔记
This commit is contained in:
@@ -329,13 +329,14 @@ export default {
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.mynoteData.content = this.content_new; // 赋值笔记内容
|
||||
this.mynoteData.content = this.content_new; //赋值笔记内容
|
||||
let curOpenType=this.mynoteData.openType;
|
||||
apiNote.save(this.mynoteData).then(res => {
|
||||
if (res.status == 200) {
|
||||
if (!this.mynoteData.id) {
|
||||
this.inAnimationText = '笔记保存成功,U币+5';
|
||||
this.inAnimation = true;
|
||||
this.editRadio = 9; // 重置默认笔记公开状态
|
||||
this.editRadio = 9; //重置默认笔记公开状态
|
||||
this.mynoteData.openType = 9;
|
||||
if(this.mynoteData.openType != 9){
|
||||
return
|
||||
@@ -359,8 +360,8 @@ export default {
|
||||
// 是编辑新增
|
||||
let event = {
|
||||
key: "PublishNote",//后台的事件key
|
||||
title: '编辑了笔记',//事件的标题
|
||||
parameters: "",//用户自定义参数 name:value,name:value
|
||||
title: '发布了笔记',//事件的标题
|
||||
parameters: "openType:"+curOpenType,//用户自定义参数 name:value,name:value
|
||||
content: "编辑了笔记",//this.mynoteData.content,//事件的内容
|
||||
objId: res.result.id,//关联的id
|
||||
objType: "6",//关联的类型
|
||||
@@ -472,16 +473,16 @@ export default {
|
||||
}
|
||||
}
|
||||
.sm {
|
||||
width: 50px;
|
||||
height: 22px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #3379FB;
|
||||
color: #3379FB;
|
||||
font-size: 12px;
|
||||
line-height: 50px;
|
||||
margin-left: 20px;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
width: 50px;
|
||||
height: 22px;
|
||||
border-radius: 10px;
|
||||
border: 1px solid #3379FB;
|
||||
color: #3379FB;
|
||||
font-size: 12px;
|
||||
line-height: 50px;
|
||||
margin-left: 20px;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
.newcote-content {
|
||||
margin: 30px 0px;
|
||||
box-sizing: border-box;
|
||||
|
||||
Reference in New Issue
Block a user