|
|
|
@ -1159,8 +1159,10 @@ const controlChange = (obj: any, val: any) => { |
|
|
|
}); |
|
|
|
} else { |
|
|
|
//修改了某个option |
|
|
|
controlData.value.control.glxxsz[i].optionLabel = controlData.value.options[i].label; |
|
|
|
controlData.value.control.glxxsz[i].optionValue = controlData.value.options[i].value; |
|
|
|
controlData.value.control.glxxsz[i].optionLabel = |
|
|
|
controlData.value.options[i].label; |
|
|
|
controlData.value.control.glxxsz[i].optionValue = |
|
|
|
controlData.value.options[i].value; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1313,18 +1315,14 @@ const controlChange = (obj: any, val: any) => { |
|
|
|
const newVal = obj.isNum ? formatNumber(val) : val; // 类型为数字时转整数 |
|
|
|
obj.path && getPropByPath(controlData.value, obj.path, newVal); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
//liwenxuan 关联选项设置 修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 start |
|
|
|
//关联选项设置会在标签名称改变时清空 |
|
|
|
function formNameChange (){ |
|
|
|
function formNameChange() { |
|
|
|
emits("formNameChange", 1); |
|
|
|
} |
|
|
|
//liwenxuan 关联选项设置 修复bug:当字段标识改变时,关联选项设置的字段标识未同步更改 end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 获取非负整数随机数 |
|
|
|
* @param Min 最小整数 |
|
|
|
@ -1346,9 +1344,14 @@ const getPropByPath = (obj: any, path: string, val: any) => { |
|
|
|
let tempObj = obj; |
|
|
|
const keyArr = path.split("."); |
|
|
|
//liwenxuan 关联选项设置会在标签名称改变时清空 start 250410 |
|
|
|
if(keyArr&&keyArr[0]&&keyArr[0]=='name'){ |
|
|
|
if(tempObj.type=="select"||tempObj.type=="radio"||tempObj.type=="checkbox"||tempObj.type=="switch"){ |
|
|
|
formNameChange() |
|
|
|
if (keyArr && keyArr[0] && keyArr[0] == "name") { |
|
|
|
if ( |
|
|
|
tempObj.type == "select" || |
|
|
|
tempObj.type == "radio" || |
|
|
|
tempObj.type == "checkbox" || |
|
|
|
tempObj.type == "switch" |
|
|
|
) { |
|
|
|
formNameChange(); |
|
|
|
} |
|
|
|
} |
|
|
|
// liwenxuan 关联选项设置会在标签名称改变时清空 end 250410 |
|
|
|
@ -1818,8 +1821,8 @@ const isNotWrite = (val: any) => { |
|
|
|
return false; |
|
|
|
}; |
|
|
|
const isNotWriteWord = (val: any) => { |
|
|
|
// console.log("isNotWriteWord---->", val); |
|
|
|
// console.log("isNotWriteWord--formField-->", props.formField); |
|
|
|
console.log("isNotWriteWord---->", val); |
|
|
|
console.log("isNotWriteWord--formField-->", props.formField); |
|
|
|
if ( |
|
|
|
val.eventName === "filedNameKey" && |
|
|
|
props.customerformid != "" && |
|
|
|
@ -2046,7 +2049,7 @@ watch( |
|
|
|
i--; // 如果不减,将漏掉一个元素 |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(resDataForGlxxszExceptself1) |
|
|
|
console.log(resDataForGlxxszExceptself1); |
|
|
|
if ( |
|
|
|
getAssociatedFormsCurrentFieldTreeData && |
|
|
|
getAssociatedFormsCurrentFieldTreeData.treeAttrs && |
|
|
|
@ -3337,7 +3340,10 @@ watch( |
|
|
|
(changedOptions: any) => { |
|
|
|
// console.log("radio,select添加选项时同步配置选项",changedOptions) |
|
|
|
// console.log("radio,select添加选项时同步配置选项------>",controlData.value) |
|
|
|
if (controlData.value.type === "radio" || controlData.value.type === "select" && (!controlData.value.multiple)) { |
|
|
|
if ( |
|
|
|
controlData.value.type === "radio" || |
|
|
|
(controlData.value.type === "select" && !controlData.value.multiple) |
|
|
|
) { |
|
|
|
if (controlData.value.config.optionsType == 0) { |
|
|
|
if (changedOptions.length === 0) { |
|
|
|
//删没了option |
|
|
|
@ -3400,7 +3406,6 @@ function createRowForGlxxsz1() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function deleteRowForGlxxsz(row: { id: any }) { |
|
|
|
if (controlData.value.config.optionsType == 0) { |
|
|
|
controlData.value.control.glxxszForCheckBox = controlData.value.control.glxxszForCheckBox.filter( |
|
|
|
@ -6096,7 +6101,8 @@ const libraryList = ref([ |
|
|
|
<template |
|
|
|
v-if=" |
|
|
|
(controlData.type == 'radio' || controlData.type == 'select') && |
|
|
|
controlData.config.optionsType == 0 && (!controlData.control.multiple) |
|
|
|
controlData.config.optionsType == 0 && |
|
|
|
!controlData.control.multiple |
|
|
|
" |
|
|
|
> |
|
|
|
<el-table |
|
|
|
@ -6135,11 +6141,13 @@ const libraryList = ref([ |
|
|
|
</el-table> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template |
|
|
|
v-if="controlData.type == 'select'&& |
|
|
|
controlData.config.optionsType == 0 && controlData.control.multiple"> |
|
|
|
v-if=" |
|
|
|
controlData.type == 'select' && |
|
|
|
controlData.config.optionsType == 0 && |
|
|
|
controlData.control.multiple |
|
|
|
" |
|
|
|
> |
|
|
|
<el-table |
|
|
|
:data="controlData.control.glxxsz" |
|
|
|
stripe |
|
|
|
@ -6151,9 +6159,7 @@ const libraryList = ref([ |
|
|
|
<el-table-column prop="link" label="当选项为" width="300"> |
|
|
|
<template #default="optionScope"> |
|
|
|
<el-tree-select |
|
|
|
v-model=" |
|
|
|
controlData.control.glxxsz[optionScope.$index].selectedOptions |
|
|
|
" |
|
|
|
v-model="controlData.control.glxxsz[optionScope.$index].selectedOptions" |
|
|
|
style="width: 100%" |
|
|
|
:data="controlData.options" |
|
|
|
multiple |
|
|
|
@ -6164,9 +6170,7 @@ const libraryList = ref([ |
|
|
|
<el-table-column fixed="right" label="显示以下组件"> |
|
|
|
<template #default="fieldScope"> |
|
|
|
<el-tree-select |
|
|
|
v-model=" |
|
|
|
controlData.control.glxxsz[fieldScope.$index].showFields |
|
|
|
" |
|
|
|
v-model="controlData.control.glxxsz[fieldScope.$index].showFields" |
|
|
|
style="width: 100%" |
|
|
|
:data="associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf[0].children" |
|
|
|
multiple |
|
|
|
@ -6185,14 +6189,15 @@ const libraryList = ref([ |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<el-button plain type="success" style="margin-top: 10px" @click="createRowForGlxxsz1" |
|
|
|
<el-button |
|
|
|
plain |
|
|
|
type="success" |
|
|
|
style="margin-top: 10px" |
|
|
|
@click="createRowForGlxxsz1" |
|
|
|
>新增</el-button |
|
|
|
> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<template #footer> |
|
|
|
<div class="dialog-footer"> |
|
|
|
<el-button type="primary" @click="handleDetermineGlxxszDialog"> 确定 </el-button> |
|
|
|
|