修改笔记私密不能转公开。

This commit is contained in:
weinan2087
2022-09-30 18:58:39 +08:00
parent 8eacc0f98b
commit 641fff7ede

View File

@@ -24,10 +24,8 @@
</div>
</div>
<div class="edit-footer">
<el-radio-group v-model="editdata.openType">
<el-radio :label="9">公开</el-radio>
<el-radio :label="1">私密</el-radio>
</el-radio-group>
<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-group v-if="editdata.openType == 1" v-model="editdata.openType"><el-radio :label="1">私密</el-radio></el-radio-group>
<el-button style="margin-right:40%" type="primary" @click="savedata">保存</el-button>
<el-button @click="comeback">取消</el-button>
</div>
@@ -104,7 +102,7 @@ export default {
this.editdata = res.result;
this.editdata.openTypeBackups = res.result.openType;
this.histId = res.result.id;
this.hist();
})
},
@@ -123,9 +121,9 @@ export default {
this.$message({
type: 'info',
message: '已取消还原'
});
});
});
// apiNote.restore(item.id).then(res=>{
// this.$message({
// message: '还原成功',
@@ -141,7 +139,7 @@ export default {
res.result.forEach(item=>{
item.beforeContent = item.beforeContent.split(',');
})
}
this.histdata = res.result
})
@@ -156,7 +154,7 @@ export default {
}
if(num == 1) {
this.editdata.isAuto = true;
}
if(this.imgContent.length > 0) {
this.editdata.content = this.imgContent.join();
@@ -197,7 +195,7 @@ export default {
clearInterval(this.timer)
this.timer = null
}
}
</script>
@@ -257,7 +255,7 @@ export default {
display: flex;
font-size: 16px;
font-weight: 600;
color: #666666;
color: #666666;
div{
flex: 1;
}
@@ -267,7 +265,7 @@ export default {
color: #387DF7;
font-weight: 400;
font-size: 16px;
}
}
}
}
.hist-top{
@@ -398,4 +396,4 @@ export default {
}
</style>
</style>