Browse Source

数据范围弹窗0.1

lwx_v8
liwenxuan 2 years ago
parent
commit
fc8f534f48
  1. 58
      src/components/DesignForm/formControlAttr.vue

58
src/components/DesignForm/formControlAttr.vue

@ -1970,47 +1970,22 @@ const associatedFormsHideDialogFlag = ref(false)
const associatedFormsDataRangeDialogFlag = ref(false) const associatedFormsDataRangeDialogFlag = ref(false)
//
//let associatedFormsHideDialogText = ref('')//textarea
//
//let associatedFormsHideDialogTextCopy = ref('')
// //
function associatedFormsHideDialoghandle(){ function associatedFormsHideDialoghandle(){
/* if(controlData.value.control.saveFlag===true){
associatedFormsHideDialogFlag.value = true
controlData.value.control.hideConditionHtmlCopy = controlData.value.control.hideConditionHtml
//alert("")
nextTick(() => {
aft.value.focusEditor()
})
}else{ */
associatedFormsHideDialogFlag.value = true associatedFormsHideDialogFlag.value = true
controlData.value.control.hideConditionHtmlCopy = controlData.value.control.hideConditionHtml controlData.value.control.hideConditionHtmlCopy = controlData.value.control.hideConditionHtml
nextTick(() => { nextTick(() => {
aft.value.focusEditor() aft.value.focusEditor()
}) })
//}
} }
function associatedFormsDataRangeDialoghandle(){ function associatedFormsDataRangeDialoghandle(){
/* if(controlData.value.control.saveFlag===true){
associatedFormsDataRangeDialogFlag.value = true
controlData.value.control.dataRangeConditionHtmlCopy = controlData.value.control.dataRangeConditionHtml
//alert("")
nextTick(() => {
aftRange.value.focusEditor()
})
}else{ */
getAsfasfFieldTree().then(({ data }) => { getAsfasfFieldTree().then(({ data }) => {
@ -2036,10 +2011,7 @@ function associatedFormsDataRangeDialoghandle(){
nextTick(() => { nextTick(() => {
aftRange.value.focusEditor() aftRange.value.focusEditor()
}) })
//}
} }
//text //text
@ -2098,9 +2070,21 @@ function handleDetermineRange(){
determineRange.value = true determineRange.value = true
controlData.value.control.dataRangeConditionHtmlCopy = controlData.value.control.dataRangeConditionHtml controlData.value.control.dataRangeConditionHtmlCopy = controlData.value.control.dataRangeConditionHtml
} }
//
const associatedFormsFillRolesDialogFlag = ref(false)
function associatedFormsDataFillRolesDialoghandle(){
associatedFormsFillRolesDialogFlag.value = true
}
function asfhTextCancelFillRoles(){
associatedFormsFillRolesDialogFlag.value = false
}
function handleDetermineFillRoles(){
associatedFormsFillRolesDialogFlag.value = false
}
//liwenxuan20240403 associatedForms end //liwenxuan20240403 associatedForms end
@ -2588,10 +2572,10 @@ const loadNextPage = () => {
</el-row> </el-row>
<!-- <el-row v-else-if="item.type === 'associatedForms_FillRoles'"> <el-row v-else-if="item.type === 'associatedForms_FillRoles'">
<el-button style="padding-top: 5px;" type="primary" link append-to-body="true" modal="true" @click="associatedFormsDataFillRolesDialoghandle" >设置数据填充规则</el-button> <el-button style="padding-top: 5px;" type="primary" link append-to-body="true" modal="true" @click="associatedFormsDataFillRolesDialoghandle" >设置数据填充规则</el-button>
</el-row> --> </el-row>
@ -3513,10 +3497,16 @@ const loadNextPage = () => {
<!-- <el-dialog v-model="associatedFormsFillRolesDialogFlag" title="数据范围" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 500px" width="50%" > <el-dialog v-model="associatedFormsFillRolesDialogFlag" 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'"> <template v-if="controlData.type=='associatedForms'">
fdsaafsdfsda <el-divider />
<div><span style="color: grey;">当选择具体数据后将按如下规则给当前表单字段填充数据 </span></div>
<el-button type="primary" link append-to-body="true" modal="true" @click="addFillRole" style="font-size: large;margin-top: 3px;" > 添加规则</el-button>
<el-divider />
<div style="height:300px;border:1px solid white">
</div>
</template> </template>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
@ -3526,7 +3516,7 @@ const loadNextPage = () => {
</el-button> </el-button>
</div> </div>
</template> </template>
</el-dialog> --> </el-dialog>

Loading…
Cancel
Save