Browse Source

单选下拉多选数据源新增任选系统表单字段

lwx_v9
liwenxuan 1 year ago
parent
commit
2d97764c19
  1. 3
      src/components/DesignForm/assembly/index.ts
  2. 20
      src/components/DesignForm/formControlAttr.vue

3
src/components/DesignForm/assembly/index.ts

@ -100,6 +100,7 @@ export default [
modelValue: '', modelValue: '',
glxxsz: [], glxxsz: [],
optionsValue3Formid:'', optionsValue3Formid:'',
optionsValue3Field:'',
}, },
options: selectOption, // 下拉选项数据集合 options: selectOption, // 下拉选项数据集合
config: config, config: config,
@ -118,6 +119,7 @@ export default [
modelValue: [], modelValue: [],
glxxszForCheckBox: [], glxxszForCheckBox: [],
optionsValue3Formid:'', optionsValue3Formid:'',
optionsValue3Field:'',
}, },
options: selectOption, options: selectOption,
config: config, config: config,
@ -137,6 +139,7 @@ export default [
appendToBody: true, appendToBody: true,
glxxsz: [], glxxsz: [],
optionsValue3Formid:'', optionsValue3Formid:'',
optionsValue3Field:'',
}, },
options: selectOption, options: selectOption,
config: config, config: config,

20
src/components/DesignForm/formControlAttr.vue

@ -2279,6 +2279,11 @@ watch(()=>store.activeKey, () => {
setTimeout(() => { setTimeout(() => {
formidChanged() formidChanged()
}, 800); }, 800);
}else if(controlData.value.type==='radio'||controlData.value.type==='select'||controlData.value.type==='checkbox'){
setTimeout(() => {
formidChangedOptionsValue3()
}, 800);
} }
}) })
@ -3110,7 +3115,8 @@ const loadNextPage = () => {
</el-form-item> </el-form-item>
</template> </template>
<template v-if="controlData.config.optionsType === 3"> <template v-if="controlData.config.optionsType === 3">
<el-button style="padding-top: 5px;" type="primary" link append-to-body="true" modal="true" @click="optionsValue3Setting" >选择系统表单字段</el-button> <el-button type="primary" style="margin-bottom:10px;margin-left:11px" plain @click="optionsValue3Setting">选择系统表单字段</el-button>
<!-- <el-button style="padding-top: 5px;" type="primary" link append-to-body="true" modal="true" @click="optionsValue3Setting" >选择系统表单字段</el-button> -->
</template> </template>
<template v-else> <template v-else>
<el-form-item class="form_cont"> <el-form-item class="form_cont">
@ -3643,7 +3649,7 @@ const loadNextPage = () => {
@change="formidChanged" @change="formidChanged"
/> />
</div> </div>
<!-- asfasfFieldTreeOptionsValue3 -->
</template> </template>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">
@ -4030,9 +4036,13 @@ const loadNextPage = () => {
@change="formidChangedOptionsValue3" @change="formidChangedOptionsValue3"
/> />
</div> </div>
<!-- <div style="display:flex"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">当开关关闭时显示</span> <div style="display:flex" v-if="typeof(controlData.control.optionsValue3Formid)!='undefined' && typeof(asfasfFieldTreeOptionsValue3)!='undefined' && controlData.control.optionsValue3Formid!=''"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择字段</span>
<el-tree-select v-model="controlData.control.glxxszSwitch[1].showFields" style="width: 60%" :data="associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf[0].children" multiple /> <!--
</div> -->
-->
<el-tree-select v-model="controlData.control.optionsValue3Field" style="width: 390px;" :data="asfasfFieldTreeOptionsValue3[0].children" />
</div>
</template> </template>
<template #footer> <template #footer>
<div class="dialog-footer"> <div class="dialog-footer">

Loading…
Cancel
Save