|
|
|
@ -1833,7 +1833,7 @@ const filterNode = (value: string, associatedFormsCurrentFormFieldTree: Tree) => |
|
|
|
//关联表单隐藏条件弹窗flag |
|
|
|
const associatedFormsHideDialogFlag = ref(false) |
|
|
|
//父组件 |
|
|
|
let associatedFormsHideDialogText = ref('')//雾峦青雨 |
|
|
|
let associatedFormsHideDialogText = ref('')//textarea默认值 |
|
|
|
//父组件编辑备份 |
|
|
|
let associatedFormsHideDialogTextCopy = ref('') |
|
|
|
//点击开启隐藏设置 |
|
|
|
@ -1841,39 +1841,48 @@ function associatedFormsHideDialoghandle(){ |
|
|
|
associatedFormsHideDialogFlag.value = true |
|
|
|
associatedFormsHideDialogTextCopy.value = associatedFormsHideDialogText.value |
|
|
|
} |
|
|
|
|
|
|
|
//自定义事件同步父子组件的text |
|
|
|
function aftTextChanged(str:string){ |
|
|
|
//str = Object.assign({},str) |
|
|
|
console.log(str) |
|
|
|
//setTimeout(()=>{ |
|
|
|
associatedFormsHideDialogText.value = str |
|
|
|
//},3000) |
|
|
|
|
|
|
|
} |
|
|
|
//asf隐藏条件取消编辑 |
|
|
|
function asfhTextCancel(){ |
|
|
|
determine.value = false |
|
|
|
associatedFormsHideDialogFlag.value = false |
|
|
|
associatedFormsHideDialogText.value = associatedFormsHideDialogTextCopy.value |
|
|
|
//父组件取消将copy同步至子组件 |
|
|
|
aft.value.handelCancel(associatedFormsHideDialogTextCopy) |
|
|
|
} |
|
|
|
//自定义事件同步父子组件的text |
|
|
|
function aftTextChanged(str:any){ |
|
|
|
console.log(str) |
|
|
|
associatedFormsHideDialogText.value = str.value |
|
|
|
} |
|
|
|
//上次点击了确定为true |
|
|
|
let determine = ref(false) |
|
|
|
let determine = ref(true) |
|
|
|
//监听associatedFormsHideDialogFlag true 重新init tinymce |
|
|
|
watch(associatedFormsHideDialogFlag, (val) => { |
|
|
|
if(associatedFormsHideDialogFlag.value===true&&determine.value===true){ |
|
|
|
determine.value = false |
|
|
|
//setTimeout(() => { |
|
|
|
//alert("determine:"+determine.value) |
|
|
|
if(val===true&&determine.value===false){ |
|
|
|
setTimeout(() => { |
|
|
|
aft.value.tinymceReInit() |
|
|
|
|
|
|
|
//}, 200); |
|
|
|
}, 200); |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
//确定回调 |
|
|
|
function handleDetermine(){ |
|
|
|
associatedFormsHideDialogFlag.value = false |
|
|
|
determine.value = true |
|
|
|
associatedFormsHideDialogTextCopy.value = associatedFormsHideDialogText.value |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//liwenxuan20240403 associatedForms end |
|
|
|
|
|
|
|
|
|
|
|
@ -3042,7 +3051,7 @@ const loadNextPage = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="associatedFormsHideDialogFlag" title="隐藏条件" top="150px" style="margin-top:70px ;min-height: 500px" width="50%"> |
|
|
|
<el-dialog v-model="associatedFormsHideDialogFlag" title="隐藏条件" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 500px" width="50%" > |
|
|
|
|
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<div class="common-layout"> |
|
|
|
@ -3080,7 +3089,7 @@ const loadNextPage = () => { |
|
|
|
<el-main style="border: 1px solid gainsboro; padding: 3px;" class="associatedFormsHideDialogMain"> |
|
|
|
<div style="border: 1px solid gainsboro; height: 7%; border-bottom: 0px; padding-top: 3px; padding-left: 5px; background-color: #E6F3FE;">当满足以下条件时此控件隐藏</div> |
|
|
|
<div id="associatedFormsHideEditArea" style="border: 1px solid gainsboro; height: 63%; border-bottom: 0px;"> |
|
|
|
<AssociatedFormsTinyace @textChange = "aftTextChanged" ref="aft" :aftText="associatedFormsHideDialogText" ></AssociatedFormsTinyace> |
|
|
|
<AssociatedFormsTinyace ref="aft" :aft-text="associatedFormsHideDialogText" :aft-text-copy = "associatedFormsHideDialogTextCopy" @text-change = "aftTextChanged"></AssociatedFormsTinyace> |
|
|
|
</div> |
|
|
|
<div style="border: 1px solid gainsboro; height: 30%;"></div> |
|
|
|
</el-main> |
|
|
|
|