Browse Source

关联表单-数据填充规则-v0.331

lwx_v7
liwenxuan 1 year ago
parent
commit
a5270cb1cf
  1. 12
      src/components/DesignForm/formControlPropertiNew.vue
  2. 4
      src/widget/associatedforms/associatedFormsChildFillRole.vue

12
src/components/DesignForm/formControlPropertiNew.vue

@ -2580,6 +2580,16 @@ watch(associatedFormsDataRangeDialogFlag, (val) => {
}, 200);
}
})
//id
watch(() => controlData.value.control?.fillRoles?.child?.length, (newValue, oldValue) => {
/* if (newValue!== oldValue) {
console.log('变量值发生变化:', newValue);
} */
console.log(asfasfChildTableList.value)
console.log(controlData.value.control?.fillRoles?.child)
});
//
function handleDetermine(){
@ -4544,7 +4554,7 @@ const radioChangeSet = (val:any) => {
<!-- 数据填充规则弹窗 -->
<el-dialog v-model="associatedFormsFillRolesDialogFlag" title="数据填充规则" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 300px;max-height:900px" width="50%" >
<el-dialog v-model="associatedFormsFillRolesDialogFlag" title="数据填充规则" top="150px" :close-on-click-modal="false" :show-close="false" style="margin-top:70px ;min-height: 300px;max-height:900px" width="80%" >
<template v-if="controlData.type=='associatedForms'">
<el-button style="font-size: large;margin-top: 10px;margin-bottom: 15px;" type="primary" link append-to-body="true" modal="true" @click="addFillRole"> 主表填充规则</el-button>
<div style="max-height:230px;border:1px solid white;overflow-y:auto;">

4
src/widget/associatedforms/associatedFormsChildFillRole.vue

@ -236,9 +236,11 @@ function selectedChildTableChanged() {
console.log(childTableList1.value)
for(let i = 0;i<childTableList1.value[0].children.length;i++){
if(childTableList1.value[0].children[i].id==selectedChildTable1.value){
childTableList1.value[0].children[i].disable = true
//alert(1)
childTableList1.value[0].children[i].disabled = true
}
}
console.log(childTableList1)
emit('update:childTableList', childTableList1)
}

Loading…
Cancel
Save