Browse Source

关联选项设置对子表不生效的bug修复

lwx_v21
liwenxuan 8 months ago
parent
commit
c359d8d2f2
  1. 23
      src/components/DesignForm/formControlPropertiNew.vue

23
src/components/DesignForm/formControlPropertiNew.vue

@ -2561,6 +2561,19 @@ function getAssociatedFormsCurrentFieldTree1() {
}, },
]; ];
//liwenxuan bug start 250409
let resDataHasTableButNoTableChild = JSON.parse(JSON.stringify(data.children));
resDataHasTableButNoTableChild.splice(0,2);
resDataHasTableButNoTableChild.splice(2,4);
resDataHasTableButNoTableChild.forEach((element: any) => {
if(element.type&&element.type=="table"){
element.children = []
element.disabled = false
}
});
//liwenxuan bug end 250409
resDataNoTable = resDataNoTable.filter( resDataNoTable = resDataNoTable.filter(
(item: { type: string | null }) => item.type != "table" (item: { type: string | null }) => item.type != "table"
); );
@ -2579,14 +2592,15 @@ function getAssociatedFormsCurrentFieldTree1() {
treeAttrs: data.treeAttrs, treeAttrs: data.treeAttrs,
}, },
]; ];
//console.log(resDataNoTable)
associatedFormsCurrentFormFieldTreeNoTable1.value = [...resDataNoTable]; associatedFormsCurrentFormFieldTreeNoTable1.value = [...resDataNoTable];
//liwenxuan ,bug start 250409 //liwenxuan ,bug start 250409
let r1 = JSON.parse(JSON.stringify(data.children)); /* let r1 = JSON.parse(JSON.stringify(data.children));
r1.splice(0,2); r1.splice(0,2);
r1.splice(2,4); r1.splice(2,4); */
//let resDataForGlxxsz = ref(data.children.slice(8)); //let resDataForGlxxsz = ref(data.children.slice(8));
let resDataForGlxxsz = ref(r1); let resDataForGlxxsz = ref(resDataHasTableButNoTableChild);
//liwenxuan ,bug end 250409 //liwenxuan ,bug end 250409
resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value));
@ -2760,6 +2774,7 @@ function handleRoleTreeContextmenuRange(
} }
import { ElTree } from "element-plus"; import { ElTree } from "element-plus";
import { forEach } from "jszip";
const fieldTreeFilterText = ref(""); const fieldTreeFilterText = ref("");
const orgTreeFilterText = ref(""); const orgTreeFilterText = ref("");

Loading…
Cancel
Save