|
|
|
@ -619,19 +619,19 @@ |
|
|
|
path: 'config.componentName', |
|
|
|
vShow: ['component'] |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '隐藏条件', |
|
|
|
{ |
|
|
|
label: '关联表单', |
|
|
|
value: config.associatedForms, |
|
|
|
path: 'config.associatedForms', |
|
|
|
type: 'associatedForms_hide', |
|
|
|
type: 'associatedForms_form', |
|
|
|
vIf: state.isSearch, |
|
|
|
vShow: ['associatedForms'] |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '关联表单', |
|
|
|
{ |
|
|
|
label: '隐藏条件', |
|
|
|
value: config.associatedForms, |
|
|
|
path: 'config.associatedForms', |
|
|
|
type: 'associatedForms_form', |
|
|
|
type: 'associatedForms_hide', |
|
|
|
vIf: state.isSearch, |
|
|
|
vShow: ['associatedForms'] |
|
|
|
}, |
|
|
|
@ -1609,7 +1609,8 @@ |
|
|
|
let currentUploadImgid = ""; |
|
|
|
|
|
|
|
//刚拖拽视频组件时,初始化imgid监听designForm.activeKey,变化时,如果controlData.value.type=='lowcodeCarsusel',就遍历轮播图数组把imgid=''的都生成uuid |
|
|
|
watch(()=>store.activeKey, () => { |
|
|
|
watch(()=>store.activeKey, (newVal) => { |
|
|
|
//啊啊啊啊 |
|
|
|
if(controlData.value.type==='lowcodeCarsusel'){ |
|
|
|
const carsuselConfigData:CarsuselConfig[] = controlData.value.control.carsuselConfigArr |
|
|
|
carsuselConfigData.forEach(element => { |
|
|
|
@ -1623,6 +1624,35 @@ |
|
|
|
}else if(controlData.value.type==='associatedForms'){ |
|
|
|
controlData.value.control.fillRoles[0].id = uuidv4().replaceAll('-','').toString(); |
|
|
|
} |
|
|
|
//实现关联表单设置可选字段中没有当前字段效果 start |
|
|
|
//console.log(controlData.value.name) |
|
|
|
resDataForGlxxszExceptself1 = JSON.parse(JSON.stringify(resDataForGlxxszExceptself)); |
|
|
|
//console.log(resDataForGlxxszExceptself1) |
|
|
|
|
|
|
|
for(let i = 0;i<resDataForGlxxszExceptself1.length;i++){ |
|
|
|
let strArr:[string] = resDataForGlxxszExceptself1[i].id.split(":") |
|
|
|
//console.log(strArr) |
|
|
|
let str = strArr[strArr.length-1] |
|
|
|
//console.log(str) |
|
|
|
if(str==newVal){ |
|
|
|
resDataForGlxxszExceptself1.splice(i, 1); // 将使后面的元素依次前移,数组长度减1 |
|
|
|
i--; // 如果不减,将漏掉一个元素 |
|
|
|
} |
|
|
|
} |
|
|
|
//console.log(resDataForGlxxszExceptself1) |
|
|
|
if(getAssociatedFormsCurrentFieldTreeData.treeAttrs!=undefined){ |
|
|
|
associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value = [{ |
|
|
|
id: 'rootid_'+getAssociatedFormsCurrentFieldTreeData.label, |
|
|
|
//label: '当前表单', |
|
|
|
label: '当前表单-'+getAssociatedFormsCurrentFieldTreeData.treeAttrs.show, |
|
|
|
children: resDataForGlxxszExceptself1, |
|
|
|
treeAttrs: getAssociatedFormsCurrentFieldTreeData.treeAttrs,// |
|
|
|
}] |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value.children = [...resDataForGlxxszExceptself1] |
|
|
|
//实现关联表单设置可选字段中没有当前字段效果 end |
|
|
|
}) |
|
|
|
//轮播图图片上传成功钩子 |
|
|
|
function carouselImgUploadSuccess(response: any, uploadFile: UploadFile, uploadFiles: UploadFiles){ |
|
|
|
@ -1876,9 +1906,22 @@ function getAsfasfFieldTree() { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
function getAsfasfFieldTreeOptionsValue3() { |
|
|
|
return request({ |
|
|
|
url: '/javasys/lowCode/AssociatedForms/getFieldTree', |
|
|
|
method: 'post', |
|
|
|
data: { |
|
|
|
//cfid:'13' |
|
|
|
cfid:controlData.value.control.optionsValue3Formid |
|
|
|
}, |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
// |
|
|
|
const asfasfFieldTree = ref<Tree[]>() |
|
|
|
|
|
|
|
const asfasfFieldTreeOptionsValue3 = ref<Tree[]>() |
|
|
|
|
|
|
|
function formidChanged(){ |
|
|
|
|
|
|
|
if(controlData.value.control.formid===''){ |
|
|
|
@ -1898,14 +1941,85 @@ function formidChanged(){ |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
}] |
|
|
|
} |
|
|
|
controlData.value.control.asfasfLabel = data.label |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
function formidChangedOptionsValue3(){ |
|
|
|
if(controlData.value.control.optionsValue3Formid===''){ |
|
|
|
|
|
|
|
}else{ |
|
|
|
getAsfasfFieldTreeOptionsValue3().then(({ data }) => { |
|
|
|
|
|
|
|
if(data.id==="cfid为空"){ |
|
|
|
//alert("cfid为空") |
|
|
|
}else{ |
|
|
|
|
|
|
|
if(data.treeAttrs.onlyToShowTableId==""){//当前选中的是主表 |
|
|
|
let resData = ref(data.children) |
|
|
|
//let rootid_ = data.value.label |
|
|
|
asfasfFieldTreeOptionsValue3.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...resData.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
}] |
|
|
|
}else{//当前选中的是子表 |
|
|
|
let resData = ref(data.children) |
|
|
|
resData.value = resData.value.filter((item: { children: null }) => item.children != null) |
|
|
|
let arr = JSON.parse(JSON.stringify(resData.value)); |
|
|
|
arr = arr.filter( (item: { label: any }) => item.label == data.treeAttrs.onlyToShowTableId ) |
|
|
|
|
|
|
|
arr = arr[0].children |
|
|
|
//console.log(arr) |
|
|
|
asfasfFieldTreeOptionsValue3.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
label: '关联的表单-'+data.label, |
|
|
|
children: [...arr], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
let optionsValue3Formid = controlData.value.control.optionsValue3Formid |
|
|
|
let str_optionsValue3Formid = optionsValue3Formid.split(":")[0] |
|
|
|
let optionsValue3Field = controlData.value.control.optionsValue3Field |
|
|
|
let str_optionsValue3Field = optionsValue3Field.split(":")[1] |
|
|
|
//alert(str_optionsValue3Field) |
|
|
|
if(typeof(str_optionsValue3Field)!='undefined'){ |
|
|
|
if(str_optionsValue3Formid!=str_optionsValue3Field){ |
|
|
|
controlData.value.control.optionsValue3Field = "" |
|
|
|
}else{ |
|
|
|
if(optionsValue3Formid.includes(":zibiaoid-")){ |
|
|
|
let zibiaoid = optionsValue3Formid.split(":zibiaoid-")[1] |
|
|
|
if(!optionsValue3Field.includes(zibiaoid)){ |
|
|
|
controlData.value.control.optionsValue3Field = "" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const associatedFormsCurrentFormFieldTree = ref<Tree[]>() |
|
|
|
const associatedFormsCurrentFormFieldTreeForGlxxsz = ref<Tree[]>() |
|
|
|
let associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf = ref<Tree[]>() |
|
|
|
let resDataForGlxxszExceptself: any[] = [] |
|
|
|
let resDataForGlxxszExceptself1: any[] = [] |
|
|
|
let getAssociatedFormsCurrentFieldTreeData:any |
|
|
|
getAssociatedFormsCurrentFieldTree().then(({ data }) => { |
|
|
|
|
|
|
|
//console.log(data) |
|
|
|
getAssociatedFormsCurrentFieldTreeData = JSON.parse(JSON.stringify(data)) |
|
|
|
//console.log(getAssociatedFormsCurrentFieldTreeData) |
|
|
|
if(data.id==="cfid为空"){ |
|
|
|
//alert("cfid为空") |
|
|
|
}else{ |
|
|
|
@ -1921,6 +2035,11 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { |
|
|
|
|
|
|
|
let resDataForGlxxsz = ref(data.children.slice(8)) |
|
|
|
|
|
|
|
resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); |
|
|
|
|
|
|
|
//console.log(resDataForGlxxszExceptself) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
associatedFormsCurrentFormFieldTreeForGlxxsz.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
@ -1929,6 +2048,15 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { |
|
|
|
children: [...resDataForGlxxsz.value], |
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
}] |
|
|
|
associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf.value = [{ |
|
|
|
id: 'rootid_'+data.label, |
|
|
|
//label: '当前表单', |
|
|
|
label: '当前表单-'+data.treeAttrs.show, |
|
|
|
children: [...resDataForGlxxsz.value], |
|
|
|
treeAttrs: data.treeAttrs,//getAssociatedFormsCurrentFieldTreeData |
|
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
@ -2191,6 +2319,11 @@ watch(()=>store.activeKey, () => { |
|
|
|
setTimeout(() => { |
|
|
|
formidChanged() |
|
|
|
}, 800); |
|
|
|
}else if(controlData.value.type==='radio'||controlData.value.type==='select'||controlData.value.type==='checkbox'){ |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
formidChangedOptionsValue3() |
|
|
|
}, 800); |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
@ -2213,6 +2346,14 @@ function delRole(id:String){ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
const associatedFormsChooseDialogFlag = ref(false) |
|
|
|
function chooseAssociatedForm(){ |
|
|
|
associatedFormsChooseDialogFlag.value = true |
|
|
|
} |
|
|
|
function handleDetermineAssociatedFormsChooseDialog(){ |
|
|
|
associatedFormsChooseDialogFlag.value = false |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//liwenxuan20240403 associatedForms end |
|
|
|
@ -2222,6 +2363,14 @@ function delRole(id:String){ |
|
|
|
|
|
|
|
const glxxszDialogFlag = ref(false) |
|
|
|
const glxxszDialogFlagCheckBox = ref(false) |
|
|
|
const glxxszDialogFlagSwitch = ref(false) |
|
|
|
function handelGlxxszDialogSwitch(){ |
|
|
|
if(controlData.value.control.activeValue==undefined||controlData.value.control.inactiveValue==undefined){ |
|
|
|
alert("请先设置开关状态打开/关闭时的值") |
|
|
|
}else{ |
|
|
|
glxxszDialogFlagSwitch.value = true |
|
|
|
} |
|
|
|
} |
|
|
|
function handelGlxxszDialog(){ |
|
|
|
if(controlData.value.options.length===0){ |
|
|
|
alert("无可配置选项,请先添加。") |
|
|
|
@ -2237,9 +2386,27 @@ function handelGlxxszDialogCheckbox(){ |
|
|
|
function handleDetermineGlxxszDialog(){ |
|
|
|
glxxszDialogFlag.value = false |
|
|
|
} |
|
|
|
function handleDetermineGlxxszDialogSwitch(){ |
|
|
|
glxxszDialogFlagSwitch.value = false |
|
|
|
} |
|
|
|
function handleDetermineGlxxszDialogCheckBox(){ |
|
|
|
glxxszDialogFlagCheckBox.value = false |
|
|
|
} |
|
|
|
//同步开关的设置值和开关关联选项设置的值 |
|
|
|
watch(()=>controlData.value.control,(newVal) => { |
|
|
|
if(typeof(newVal)!="undefined"){ |
|
|
|
if(typeof(newVal.glxxszSwitch)!="undefined"){ |
|
|
|
if(typeof(controlData.value.control.activeValue)!="undefined"){ |
|
|
|
controlData.value.control.glxxszSwitch[0].openValue = controlData.value.control.activeValue |
|
|
|
controlData.value.control.glxxszSwitch[0].conditionField = controlData.value.name |
|
|
|
} |
|
|
|
if(typeof(controlData.value.control.inactiveValue)!="undefined"){ |
|
|
|
controlData.value.control.glxxszSwitch[1].offValue = controlData.value.control.inactiveValue |
|
|
|
controlData.value.control.glxxszSwitch[1].conditionField = controlData.value.name |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
},{ deep: true }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -2295,8 +2462,17 @@ function createRowForGlxxsz(){ |
|
|
|
function deleteRowForGlxxsz(row: { id: any }){ |
|
|
|
controlData.value.control.glxxszForCheckBox = controlData.value.control.glxxszForCheckBox.filter((item: { id: any }) => item.id!=row.id) |
|
|
|
} |
|
|
|
/* */ |
|
|
|
|
|
|
|
const optionsValue3SettingDialogOpenFlag = ref(false) |
|
|
|
function optionsValue3Setting(){ |
|
|
|
optionsValue3SettingDialogOpenFlag.value = true |
|
|
|
} |
|
|
|
function handleDetermineoptionsValue3(){ |
|
|
|
optionsValue3SettingDialogOpenFlag.value = false |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 |
|
|
|
|
|
|
|
//liwenxuan20240426 单选多选下拉 关联选项设置 end |
|
|
|
|
|
|
|
@ -2765,18 +2941,8 @@ const loadNextPage = () => { |
|
|
|
|
|
|
|
|
|
|
|
<el-row v-else-if="item.type === 'associatedForms_form'"> |
|
|
|
<div style="margin-top: 25px;margin-left: -60px;"> |
|
|
|
<el-tree-select |
|
|
|
v-model="controlData.control.formid" |
|
|
|
style="width: 260px;" |
|
|
|
:data="customerFormTree[0].children" |
|
|
|
check-strictly |
|
|
|
:render-after-expand="false" |
|
|
|
filterable |
|
|
|
@change="formidChanged" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<!-- <div v-html="controlData.control.formid"></div> --> |
|
|
|
<el-button type="primary" link style="display:block;cursor: pointer;" @click="chooseAssociatedForm">{{ controlData.control.asfasfLabel==''?'选择关联表单':controlData.control.asfasfLabel }}</el-button> |
|
|
|
|
|
|
|
</el-row> |
|
|
|
|
|
|
|
<el-row v-else-if="item.type === 'associatedForms_dataRange'"> |
|
|
|
@ -2920,6 +3086,9 @@ const loadNextPage = () => { |
|
|
|
</el-form-item> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-if="showHide(['switch'],true)"> |
|
|
|
<el-button @click="handelGlxxszDialogSwitch">关联选项设置</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="showHide(['radio','select',],true)"> |
|
|
|
<el-button @click="handelGlxxszDialog">关联选项设置</el-button> |
|
|
|
</div> |
|
|
|
@ -2955,6 +3124,7 @@ const loadNextPage = () => { |
|
|
|
@change="controlData.config.optionsFun = ''" |
|
|
|
> |
|
|
|
<el-option :value="0" label="固定选项" /> |
|
|
|
<el-option :value="3" label="系统表单字段"/> |
|
|
|
<el-option :value="1" label="数据源" /> |
|
|
|
<el-option :value="2" label="接口字典" /> |
|
|
|
</el-select> |
|
|
|
@ -2984,6 +3154,10 @@ const loadNextPage = () => { |
|
|
|
<el-button @click="addSelectOption">{{ controlData.type === 'cascader' ? '编辑' : '新增' }}</el-button> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
<template v-if="controlData.config.optionsType === 3"> |
|
|
|
<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 v-else> |
|
|
|
<el-form-item class="form_cont"> |
|
|
|
<el-input |
|
|
|
@ -3502,6 +3676,32 @@ const loadNextPage = () => { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="associatedFormsChooseDialogFlag" class="glxxsztc" top="150px" :close-on-click-modal="false" title="选择关联表单" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
<template v-if="controlData.type=='associatedForms'"> |
|
|
|
<div style="display:flex;margin-bottom: 2px;margin-top:28px"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择表单</span> |
|
|
|
<el-tree-select |
|
|
|
v-model="controlData.control.formid" |
|
|
|
style="width: 390px;" |
|
|
|
:data="customerFormTree[0].children" |
|
|
|
check-strictly |
|
|
|
:render-after-expand="false" |
|
|
|
filterable |
|
|
|
@change="formidChanged" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="handleDetermineAssociatedFormsChooseDialog"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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'"> |
|
|
|
@ -3749,8 +3949,8 @@ const loadNextPage = () => { |
|
|
|
<!-- 关联表单设置弹窗 liwenxuan 20240402 end --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 关联选项设置弹窗 liwenxuan 20240426 start --> |
|
|
|
<el-dialog v-model="glxxszDialogFlag" class="glxxsztc" top="150px" :close-on-click-modal="false" title="关联选项设置" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
<!-- 关联选项设置弹窗 liwenxuan 20240426 start --> <!-- :title="`关联选项设置--`+controlData.item.label+`--`+controlData.name" --> |
|
|
|
<el-dialog v-model="glxxszDialogFlag" class="glxxsztc" top="150px" :close-on-click-modal="false" :title="`关联选项设置--`+controlData.name" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3770,7 +3970,7 @@ const loadNextPage = () => { |
|
|
|
<el-table-column fixed="right" label="显示以下组件" > |
|
|
|
<template #default="fieldScope"> |
|
|
|
|
|
|
|
<el-tree-select v-model="controlData.control.glxxsz[fieldScope.$index].showFields" style="width: 100%" :data="associatedFormsCurrentFormFieldTreeForGlxxsz[0].children" multiple /> |
|
|
|
<el-tree-select v-model="controlData.control.glxxsz[fieldScope.$index].showFields" style="width: 100%" :data="associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf[0].children" multiple /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -3785,7 +3985,7 @@ const loadNextPage = () => { |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<el-dialog v-model="glxxszDialogFlagCheckBox" class="glxxsztc" top="150px" :close-on-click-modal="false" title="关联选项设置" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
<el-dialog v-model="glxxszDialogFlagCheckBox" class="glxxsztc" top="150px" :close-on-click-modal="false" :title="`关联选项设置--`+controlData.name" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3803,7 +4003,7 @@ const loadNextPage = () => { |
|
|
|
|
|
|
|
<el-table-column fixed="right" label="显示以下组件" > |
|
|
|
<template #default="fieldScope"> |
|
|
|
<el-tree-select v-model="controlData.control.glxxszForCheckBox[fieldScope.$index].showFields" style="width: 100%" :data="associatedFormsCurrentFormFieldTreeForGlxxsz[0].children" multiple /> |
|
|
|
<el-tree-select v-model="controlData.control.glxxszForCheckBox[fieldScope.$index].showFields" style="width: 100%" :data="associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf[0].children" multiple /> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
@ -3831,7 +4031,68 @@ const loadNextPage = () => { |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog v-model="glxxszDialogFlagSwitch" class="glxxsztc" top="150px" :close-on-click-modal="false" :title="`关联选项设置--`+controlData.name" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template v-if="controlData.type=='switch'"> |
|
|
|
<div style="display:flex;margin-bottom: 20px;margin-top:20px"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">当开关打开时显示</span> |
|
|
|
<el-tree-select v-model="controlData.control.glxxszSwitch[0].showFields" style="width: 60%" :data="associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf[0].children" multiple /> |
|
|
|
</div> |
|
|
|
<div style="display:flex"><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> |
|
|
|
|
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
|
|
|
|
<el-button type="primary" @click="handleDetermineGlxxszDialogSwitch"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 关联选项设置弹窗 liwenxuan 20240426 end --> |
|
|
|
|
|
|
|
<!-- 单选下拉多选选项来源value3--系统表单字段 start--> |
|
|
|
|
|
|
|
<el-dialog v-model="optionsValue3SettingDialogOpenFlag" class="glxxsztc" top="150px" :close-on-click-modal="false" title="选择表单字段" :show-close="false" style="margin-top:70px;" width="50%" > |
|
|
|
<template v-if="controlData.type=='radio'||controlData.type=='select'||controlData.type=='checkbox'"> |
|
|
|
<div style="display:flex;margin-bottom: 20px;margin-top:20px"><span style="font-size: larger;margin-left: 35px;margin-right: 15px;">请选择表单</span> |
|
|
|
<el-tree-select |
|
|
|
v-model="controlData.control.optionsValue3Formid" |
|
|
|
style="width: 390px;" |
|
|
|
:data="customerFormTree[0].children" |
|
|
|
check-strictly |
|
|
|
:render-after-expand="false" |
|
|
|
filterable |
|
|
|
@change="formidChangedOptionsValue3" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<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.optionsValue3Field" style="width: 390px;" :data="asfasfFieldTreeOptionsValue3[0].children" /> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="handleDetermineoptionsValue3"> |
|
|
|
确定 |
|
|
|
</el-button> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-dialog> |
|
|
|
<!-- 单选下拉多选选项来源value3--系统表单字段 end--> |
|
|
|
</template> |
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
|
|