diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index 1331a1a..d989311 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -1267,40 +1267,18 @@ const getPropByPath = (obj: any, path: string, val: any) => { }; // 属性设置相关结束 -<<<<<<< HEAD - - - //关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 - //穿梭框编辑固定选项时,修改的节点无法立即预览到,需保存后退出重进才能预览到修改后的----bug修改 - - const showAssociatedFormsFillRole = ref(true) +//关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 +//穿梭框编辑固定选项时,修改的节点无法立即预览到,需保存后退出重进才能预览到修改后的----bug修改 - const saveRefreshFormControlAttr = () => { - getAssociatedFormsCurrentFieldTree1() - showAssociatedFormsFillRole.value = false; - // 等待一个短时间的延迟,确保组件卸载完成 - setTimeout(() => { - showAssociatedFormsFillRole.value = true; - }, 200); - }; -======= const showAssociatedFormsFillRole = ref(true); -//关联表单数据填充时无法获取当前表单新增且保存的字段,只有关闭重启后方能获取----bug修改 const saveRefreshFormControlAttr = () => { - //啊啊啊 - - //setTimeout(() => { ->>>>>>> qin_v6 - getAssociatedFormsCurrentFieldTree1(); - showAssociatedFormsFillRole.value = false; // 等待一个短时间的延迟,确保组件卸载完成 setTimeout(() => { showAssociatedFormsFillRole.value = true; }, 200); - //}, 13000); }; // 多选固定选项删除 @@ -1691,8 +1669,6 @@ const isNotWriteWord = (val: any) => { // if(props.formField.includes(val.value)){ return true; // } - } else if (val.label == "字段标识") { - return true; } return false; }; @@ -2603,79 +2579,6 @@ function associatedFormsHideDialoghandle() { }); } -<<<<<<< HEAD - - -function associatedFormsDataRangeDialoghandle(){ - - getAsfasfFieldTree().then(({ data }) => { - - if(data.id==="cfid为空"){ - //alert("cfid为空") - }else{ - let resData = ref(data.children) - let dataExceptChild = JSON.parse(JSON.stringify(data.children)) - let dataOnlyChild = JSON.parse(JSON.stringify(data.children)) - let dataOnlyChild1 = JSON.parse(JSON.stringify(data.children)) - dataExceptChild = dataExceptChild.filter((obj: { type: string }) => obj.type!== 'table'); - //console.log(dataExceptChild) - dataExceptChild = removeFirstNumElements(dataExceptChild,8); - dataOnlyChild = dataOnlyChild.filter((obj: { type: string }) => obj.type== 'table'); - dataOnlyChild1 = dataOnlyChild1.filter((obj: { type: string }) => obj.type== 'table'); - //console.log(dataOnlyChild1) - dataOnlyChild1.forEach((element: any) => { - element.children = removeFirstNumElements(element.children,6); - }); - /* console.log(dataOnlyChild1) - console.log(dataOnlyChild) */ - for(let m = 0;m { if (data.id === "cfid为空") { @@ -2688,7 +2591,7 @@ function associatedFormsDataRangeDialoghandle() { dataExceptChild = dataExceptChild.filter( (obj: { type: string }) => obj.type !== "table" ); - console.log(dataExceptChild); + //console.log(dataExceptChild) dataExceptChild = removeFirstNumElements(dataExceptChild, 8); dataOnlyChild = dataOnlyChild.filter( (obj: { type: string }) => obj.type == "table" @@ -2696,7 +2599,7 @@ function associatedFormsDataRangeDialoghandle() { dataOnlyChild1 = dataOnlyChild1.filter( (obj: { type: string }) => obj.type == "table" ); - console.log(dataOnlyChild1); + //console.log(dataOnlyChild1) dataOnlyChild1.forEach((element: any) => { element.children = removeFirstNumElements(element.children, 6); }); @@ -2708,16 +2611,16 @@ function associatedFormsDataRangeDialoghandle() { let resDataExceptChild = ref(dataExceptChild); let resDataOnlyChild = ref(dataOnlyChild); let resDataOnlyChild1 = ref(dataOnlyChild1); - console.log(resDataOnlyChild1.value); + //console.log(resDataOnlyChild1.value) //console.log(asfasfChildTableList.value) //console.log(resDataOnlyChild.value) let childTableCount = 0; for (let n = 0; n < resDataOnlyChild.value.length; n++) { - console.log(resDataOnlyChild.value[n]); + //console.log(resDataOnlyChild.value[n]) resDataOnlyChild.value[n].disabled = false; childTableCount = n; } - console.log(childTableCount); + //console.log(childTableCount) currentChildTableCount = childTableCount; asfasfFieldTree.value = [ { @@ -2757,7 +2660,6 @@ function associatedFormsDataRangeDialoghandle() { ]; } }); ->>>>>>> qin_v6 associatedFormsDataRangeDialogFlag.value = true; controlData.value.control.dataRangeConditionHtmlCopy = @@ -3261,7 +3163,6 @@ const activeFormName = ref("0"); @ 功能: 判断是否是组件 */ const cssIsShouw = (val: any) => { - console.log("判断是否是组件", val); if (val.length && val.length > 0) { return true; } @@ -4617,30 +4518,6 @@ const radioChangeSet = (val: any) => { /> -<<<<<<< HEAD - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - +