From 1a76e5e20da074c27212c76ff1a7929c52187956 Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 28 Nov 2020 10:34:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=87=A0=E4=B8=AA=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../template/web/workflowForm.vue.tpl | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/server/resource/template/web/workflowForm.vue.tpl b/server/resource/template/web/workflowForm.vue.tpl index dc4d6f70..2734987c 100644 --- a/server/resource/template/web/workflowForm.vue.tpl +++ b/server/resource/template/web/workflowForm.vue.tpl @@ -29,8 +29,8 @@ 启动 - // complete传入流转参数 决定下一步会流转到什么位置 此处可以设置多个按钮来做不同的流转 - 提交 + + 提交 返回 @@ -92,19 +92,19 @@ export default { }, computed:{ canShow(){ - if(this.wf.assignType == "user"){ - if(this.wf.assginValue.indexOf(","+this.userInfo.ID+",")>0){ - return true - }else{ - return false - } - }else if(this.wf.assign_type == "authority"){ - if(this.wf.assginValue.indexOf(","+this.userInfo.authorityId+",")>0){ - return true - }else{ - return false - } - } + if(this.wf.assignType == "user"){ + if(this.wf.assignValue.indexOf(","+this.userInfo.ID+",")>-1 && this.wf.clazz == 'userTask'){ + return true + }else{ + return false + } + }else if(this.wf.assign_type == "authority"){ + if(this.wf.assignValue.indexOf(","+this.userInfo.authorityId+",")>-1 && this.wf.clazz == 'userTask'){ + return true + }else{ + return false + } + } }, ...mapGetters("user", ["userInfo"]) }, -- GitLab