|
@@ -69,7 +69,9 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
getType:false,
|
|
|
- form:{},
|
|
|
+ form:{
|
|
|
+ content:'',
|
|
|
+ },
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
chName: [
|
|
@@ -162,8 +164,6 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- // this.reset();
|
|
|
- console.log(this.form.content)
|
|
|
this.form.id = this.hazardId
|
|
|
if(this.form.id){
|
|
|
this.handleUpdate()
|
|
@@ -178,7 +178,7 @@ export default {
|
|
|
methods: {
|
|
|
//预览
|
|
|
previewButton(){
|
|
|
-
|
|
|
+ this.$set(this.form,'content',this.$refs.UEditor.text);
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
if (valid) {
|
|
|
this.$set(this,'text',this.$refs.UEditor.text);
|