From 8509d53e6fed61a9217889225e49dd89052b5f11 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 05 十二月 2024 05:42:56 +0800 Subject: [PATCH] 流程办理回显逻辑变更:处理当前节点只拉取上一个节点及本节点的表单数据,且无论提交数据还是审核都用一个页面 --- src/components/flow/Role/index.vue | 21 ++++++++++++++++----- 1 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/components/flow/Role/index.vue b/src/components/flow/Role/index.vue index fb0446f..e8f2dcf 100644 --- a/src/components/flow/Role/index.vue +++ b/src/components/flow/Role/index.vue @@ -121,6 +121,7 @@ this.radioSelected = newVal } else { this.selectRoleList = newVal; + console.log(this.selectRoleList, "瑙掕壊鍥炴樉") } } }, @@ -128,14 +129,24 @@ }, roleList: { handler(newVal) { + console.log(newVal, "瑙掕壊鍥炴樉11") if (StrUtil.isNotBlank(newVal) && this.selectRoleList.length > 0) { this.$nextTick(() => { this.$refs.dataTable.clearSelection(); - this.selectRoleList?.split(',').forEach(key => { - this.$refs.dataTable.toggleRowSelection(newVal.find( - item => key == item.roleId - ), true) - }); + if (this.selectRoleList instanceof Array) { + this.selectRoleList.forEach(key => { + this.$refs.dataTable.toggleRowSelection(newVal.find( + item => key == item.roleId + ), true) + }); + } else { + this.selectRoleList?.split(',').forEach(key => { + this.$refs.dataTable.toggleRowSelection(newVal.find( + item => key == item.roleId + ), true) + }); + } + }); } } -- Gitblit v1.8.0