|
@@ -412,9 +412,9 @@
|
|
|
:close-on-click-modal="false"
|
|
:close-on-click-modal="false"
|
|
|
:visible.sync="dialogVisible"
|
|
:visible.sync="dialogVisible"
|
|
|
>
|
|
>
|
|
|
- <fuEditor :value="curNote"></fuEditor>
|
|
|
|
|
|
|
+ <fuEditor :value="curNote" ref="editor"></fuEditor>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button size="small" type="normal" @click="dialogVisible=false,noteForm={}">取消</el-button>
|
|
|
|
|
|
|
+ <el-button size="small" type="normal" @click="dialogVisible=false,noteForm={},curNote='<p></p>'">取消</el-button>
|
|
|
<el-button size="small" type="primary" @click="saveNote(curItem)">确 定</el-button>
|
|
<el-button size="small" type="primary" @click="saveNote(curItem)">确 定</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -584,6 +584,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
saveNote(item){
|
|
saveNote(item){
|
|
|
// this.curItem = item;
|
|
// this.curItem = item;
|
|
|
|
|
+ this.curNote=this.$refs.editor.getEditor()
|
|
|
this.dialogVisible = false;
|
|
this.dialogVisible = false;
|
|
|
},
|
|
},
|
|
|
handlePreview(){
|
|
handlePreview(){
|