diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index 8299cf1..0a437b6 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -1925,7 +1925,7 @@ const treeDefaultProps = { label: 'label', } //拿到子组件AssociatedFormsTinyace的实例 -let aft = ref(); +const aft = ref(); const aftRange = ref(); function getAssociatedFormsCurrentFieldTree() { @@ -2354,6 +2354,7 @@ let determineRange = ref(true) watch(associatedFormsHideDialogFlag, (val) => { if(val===true&&determine.value===false){ setTimeout(() => { + //alert(1) aft.value.tinymceReInit() }, 200); } @@ -2362,6 +2363,7 @@ watch(associatedFormsHideDialogFlag, (val) => { watch(associatedFormsDataRangeDialogFlag, (val) => { if(val===true&&determineRange.value===false){ setTimeout(() => { + //alert(2) aftRange.value.tinymceReInit() }, 200); } @@ -2406,6 +2408,8 @@ watch(()=>store.activeKey, () => { setTimeout(() => { formidChanged() }, 800); + /* aft.value.tinymceReInit() + aftRange.value.tinymceReInit() */ }else if(controlData.value.type==='radio'||controlData.value.type==='select'||controlData.value.type==='checkbox'){ setTimeout(() => { diff --git a/src/components/DesignForm/public/form/form.vue b/src/components/DesignForm/public/form/form.vue index f3fc4b8..59b9e9f 100644 --- a/src/components/DesignForm/public/form/form.vue +++ b/src/components/DesignForm/public/form/form.vue @@ -401,7 +401,8 @@ const recursionToGetFinallyHideFields = (hideFieldArr: any[],radioSelectArr3: st //编辑表单页不隐藏任何字段。 if(formProps.value.type!=5){ - props.formData.config.hideField?.push(...hideFieldArr) + console.log(hideFieldArr) + props.formData.config.hideField?.push(...hideFieldArr)//实际造成隐藏效果 } }); diff --git a/src/widget/associatedforms/associatedFormsTinyace.vue b/src/widget/associatedforms/associatedFormsTinyace.vue index 8976cc6..da9e093 100644 --- a/src/widget/associatedforms/associatedFormsTinyace.vue +++ b/src/widget/associatedforms/associatedFormsTinyace.vue @@ -189,9 +189,10 @@ const handelCancel = (associatedFormsHideDialogTextCopy:any) =>{ tinymceHtml.value = associatedFormsHideDialogTextCopy } const tinymceReInit = ()=>{ - + //console.log(props.aftTextCopy) let str:string = props.aftTextCopy + tinymceHtml.value = props.aftTextCopy } const focusEditor = ()=>{ tinymce.EditorManager.get(onlyNumber)?.focus(true) diff --git a/src/widget/associatedforms/associatedFormsTinyaceRange.vue b/src/widget/associatedforms/associatedFormsTinyaceRange.vue index b7ae7e0..1edad2b 100644 --- a/src/widget/associatedforms/associatedFormsTinyaceRange.vue +++ b/src/widget/associatedforms/associatedFormsTinyaceRange.vue @@ -187,9 +187,10 @@ const handelCancel = (associatedFormsHideDialogTextCopy:any) =>{ tinymceHtml.value = associatedFormsHideDialogTextCopy } const tinymceReInit = ()=>{ - + //console.log(props.aftTextCopy) let str:string = props.aftTextCopy + tinymceHtml.value = props.aftTextCopy } const focusEditor = ()=>{