Browse Source

修复了关联选项设置可选择本体的bug

lwx_v21
liwenxuan 8 months ago
parent
commit
1ce52bcd68
  1. 14
      src/components/DesignForm/formControlPropertiNew.vue

14
src/components/DesignForm/formControlPropertiNew.vue

@ -2570,7 +2570,19 @@ function getAssociatedFormsCurrentFieldTree1() {
element.children = [] element.children = []
element.disabled = false element.disabled = false
} }
let currentIdArr = element.id.split(":")
//console.log(currentIdArr)
let currentId = currentIdArr[currentIdArr.length-1]
//console.log(currentId)
if(currentId==controlData.value.name){
/* alert(currentId)
console.log(currentId) */
element.disabled = true
}
}); });
//liwenxuan bug end 250409 //liwenxuan bug end 250409
@ -3308,6 +3320,8 @@ watch(
) )
); );
} else { } else {
console.log(changedOptions)
console.log(controlData.value.control.glxxsz)
for (var i = 0; i < changedOptions.length; i++) { for (var i = 0; i < changedOptions.length; i++) {
if (controlData.value.control.glxxsz[i] === undefined) { if (controlData.value.control.glxxsz[i] === undefined) {
//option //option

Loading…
Cancel
Save