diff --git a/src/components/workflow/drwer/approverDrawer.vue b/src/components/workflow/drwer/approverDrawer.vue index ef60570..5986621 100644 --- a/src/components/workflow/drwer/approverDrawer.vue +++ b/src/components/workflow/drwer/approverDrawer.vue @@ -48,6 +48,11 @@ const isExecutor = ref(false) const nodeTitle = ref("审批人设置") const nodeOptional = ref() //审批线已经存在得节点 const nodeAllVerify = ref() + +const isLookAll = ref(false) +const isEditAll = ref(false) + + let approverConfig = ref({}) let approverVisible = ref(false) let approverRoleVisible = ref(false) @@ -309,6 +314,77 @@ watch(()=>visible.value,(val:boolean)=>{ } }) const nodeSetUp = ref("first") + + +/** +@ 作者: 秦东 +@ 时间: 2024-07-25 15:43:09 +@ 功能: 选择情况 +*/ +const editOpenOrClose = (val: any) => { + if(powerUnitAry.value.recUnitAry.masterUnitList){ + powerUnitAry.value.recUnitAry.masterUnitList.forEach((item:any)=>{ + item.isEdit = val + }) + } +} +const lookOpenOrClose = (val: boolean) => { + if(powerUnitAry.value.recUnitAry.masterUnitList){ + powerUnitAry.value.recUnitAry.masterUnitList.forEach((item:any)=>{ + item.isLook = val + if(!val){ + item.isEdit = val + isEditAll.value = val + } + }) + } + + +} +/** +@ 作者: 秦东 +@ 时间: 2024-07-25 16:09:18 +@ 功能: 操作单一可见 +*/ +const oneLookSet = (val: any) => { + if(!val.isLook){ + val.isEdit = val + isEditAll.value = val + } + if(powerUnitAry.value.recUnitAry.masterUnitList){ + let lookAll = 0 + powerUnitAry.value.recUnitAry.masterUnitList.forEach((item:any)=>{ + if(item.isLook){ + lookAll++ + } + }) + if(lookAll != powerUnitAry.value.recUnitAry.masterUnitList.length){ + isLookAll.value = false + }else{ + isLookAll.value = true + } + } +} +/** +@ 作者: 秦东 +@ 时间: 2024-07-25 16:17:32 +@ 功能: 操作单一可编辑 +*/ +const oneEditSet = (val: any) => { + if(powerUnitAry.value.recUnitAry.masterUnitList){ + let lookAll = 0 + powerUnitAry.value.recUnitAry.masterUnitList.forEach((item:any)=>{ + if(item.isEdit){ + lookAll++ + } + }) + if(lookAll != powerUnitAry.value.recUnitAry.masterUnitList.length){ + isEditAll.value = false + }else{ + isEditAll.value = true + } + } +}