mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
修改笔记私密不能转公开。
This commit is contained in:
@@ -24,10 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="edit-footer">
|
<div class="edit-footer">
|
||||||
<el-radio-group v-model="editdata.openType">
|
<el-radio-group v-if="editdata.openType == 9" v-model="editdata.openType"><el-radio :label="9">公开</el-radio><el-radio :label="1">私密</el-radio></el-radio-group>
|
||||||
<el-radio :label="9">公开</el-radio>
|
<el-radio-group v-if="editdata.openType == 1" v-model="editdata.openType"><el-radio :label="1">私密</el-radio></el-radio-group>
|
||||||
<el-radio :label="1">私密</el-radio>
|
|
||||||
</el-radio-group>
|
|
||||||
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
|
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
|
||||||
<el-button @click="comeback">取消</el-button>
|
<el-button @click="comeback">取消</el-button>
|
||||||
</div>
|
</div>
|
||||||
@@ -104,7 +102,7 @@ export default {
|
|||||||
this.editdata = res.result;
|
this.editdata = res.result;
|
||||||
this.editdata.openTypeBackups = res.result.openType;
|
this.editdata.openTypeBackups = res.result.openType;
|
||||||
this.histId = res.result.id;
|
this.histId = res.result.id;
|
||||||
|
|
||||||
this.hist();
|
this.hist();
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -123,9 +121,9 @@ export default {
|
|||||||
this.$message({
|
this.$message({
|
||||||
type: 'info',
|
type: 'info',
|
||||||
message: '已取消还原'
|
message: '已取消还原'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// apiNote.restore(item.id).then(res=>{
|
// apiNote.restore(item.id).then(res=>{
|
||||||
// this.$message({
|
// this.$message({
|
||||||
// message: '还原成功',
|
// message: '还原成功',
|
||||||
@@ -141,7 +139,7 @@ export default {
|
|||||||
res.result.forEach(item=>{
|
res.result.forEach(item=>{
|
||||||
item.beforeContent = item.beforeContent.split(',');
|
item.beforeContent = item.beforeContent.split(',');
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
this.histdata = res.result
|
this.histdata = res.result
|
||||||
})
|
})
|
||||||
@@ -156,7 +154,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if(num == 1) {
|
if(num == 1) {
|
||||||
this.editdata.isAuto = true;
|
this.editdata.isAuto = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
if(this.imgContent.length > 0) {
|
if(this.imgContent.length > 0) {
|
||||||
this.editdata.content = this.imgContent.join();
|
this.editdata.content = this.imgContent.join();
|
||||||
@@ -197,7 +195,7 @@ export default {
|
|||||||
clearInterval(this.timer)
|
clearInterval(this.timer)
|
||||||
this.timer = null
|
this.timer = null
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -257,7 +255,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
div{
|
div{
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
@@ -267,7 +265,7 @@ export default {
|
|||||||
color: #387DF7;
|
color: #387DF7;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.hist-top{
|
.hist-top{
|
||||||
@@ -398,4 +396,4 @@ export default {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user