|
|
@ -2076,6 +2076,7 @@ function formidChangedOptionsValue3(){ |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const associatedFormsCurrentFormFieldTree = ref<Tree[]>() |
|
|
const associatedFormsCurrentFormFieldTree = ref<Tree[]>() |
|
|
|
|
|
const associatedFormsCurrentFormFieldTreeNoTable = ref<Tree[]>() |
|
|
const associatedFormsCurrentFormFieldTreeForGlxxsz = ref<Tree[]>() |
|
|
const associatedFormsCurrentFormFieldTreeForGlxxsz = ref<Tree[]>() |
|
|
let associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf = ref<Tree[]>() |
|
|
let associatedFormsCurrentFormFieldTreeForGlxxszExceptSelf = ref<Tree[]>() |
|
|
let resDataForGlxxszExceptself: any[] = [] |
|
|
let resDataForGlxxszExceptself: any[] = [] |
|
|
@ -2089,20 +2090,30 @@ getAssociatedFormsCurrentFieldTree().then(({ data }) => { |
|
|
//alert("cfid为空") |
|
|
//alert("cfid为空") |
|
|
}else{ |
|
|
}else{ |
|
|
let resData = ref(data.children) |
|
|
let resData = ref(data.children) |
|
|
|
|
|
let resDataNoTable = JSON.parse(JSON.stringify(data.children)) |
|
|
|
|
|
|
|
|
//let rootid_ = data.value.label |
|
|
//let rootid_ = data.value.label |
|
|
associatedFormsCurrentFormFieldTree.value = [{ |
|
|
associatedFormsCurrentFormFieldTree.value = [{ |
|
|
id: 'rootid_'+data.label, |
|
|
id: 'rootid_'+data.label, |
|
|
//label: '当前表单', |
|
|
|
|
|
label: '当前表单-'+data.treeAttrs.show, |
|
|
label: '当前表单-'+data.treeAttrs.show, |
|
|
children: [...resData.value], |
|
|
children: [...resData.value], |
|
|
treeAttrs: data.treeAttrs, |
|
|
treeAttrs: data.treeAttrs, |
|
|
}] |
|
|
}] |
|
|
|
|
|
|
|
|
|
|
|
resDataNoTable = resDataNoTable.filter((item: { type: string | null }) => item.type!="table") |
|
|
|
|
|
|
|
|
|
|
|
associatedFormsCurrentFormFieldTreeNoTable.value = [{ |
|
|
|
|
|
id: 'rootid_'+data.label, |
|
|
|
|
|
label: '当前表单-'+data.treeAttrs.show, |
|
|
|
|
|
children: [...resDataNoTable], |
|
|
|
|
|
treeAttrs: data.treeAttrs, |
|
|
|
|
|
}] |
|
|
|
|
|
|
|
|
let resDataForGlxxsz = ref(data.children.slice(8)) |
|
|
let resDataForGlxxsz = ref(data.children.slice(8)) |
|
|
|
|
|
|
|
|
resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); |
|
|
resDataForGlxxszExceptself = JSON.parse(JSON.stringify(resDataForGlxxsz.value)); |
|
|
|
|
|
|
|
|
// console.log(resDataForGlxxszExceptself) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -3526,7 +3537,7 @@ const disabledIstrue = (val:string) => { |
|
|
multiple |
|
|
multiple |
|
|
clearable |
|
|
clearable |
|
|
collapse-tags |
|
|
collapse-tags |
|
|
:data="associatedFormsCurrentFormFieldTree" |
|
|
:data="associatedFormsCurrentFormFieldTreeNoTable" |
|
|
:render-after-expand="false" |
|
|
:render-after-expand="false" |
|
|
style="width: 240px" |
|
|
style="width: 240px" |
|
|
/> |
|
|
/> |
|
|
|