From e0a13f61062bb68166ac2f28c8b0508db06d18dd Mon Sep 17 00:00:00 2001 From: jinna Date: Thu, 8 Jun 2023 18:56:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1=E7=88=B6?= =?UTF-8?q?=E7=B1=BB=E4=B8=8E=E4=BB=BB=E5=8A=A1=E7=A7=8D=E7=B1=BB=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E8=81=94=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../workflow/process/components/examForm.vue | 1 + src/views/plugin/workflow/process/crontab.vue | 12 +++++++++++- .../plugin/workflow/process/implementation.vue | 16 +++++++++++++--- src/views/plugin/workflow/process/todo.vue | 5 +++++ src/views/plugin/workflow/process/workorder.vue | 5 +++++ 5 files changed, 35 insertions(+), 4 deletions(-) diff --git a/src/views/plugin/workflow/process/components/examForm.vue b/src/views/plugin/workflow/process/components/examForm.vue index 2e7d0aa..2055372 100644 --- a/src/views/plugin/workflow/process/components/examForm.vue +++ b/src/views/plugin/workflow/process/components/examForm.vue @@ -43,6 +43,7 @@ export default { handler(val) { // 1625035000825049090 日常 // 1624973130579636225 一般 + console.log(this.userInfo) if((this.userInfo.role_name === "运维公司" && val === "1625035000825049090") || (this.userInfo.role_name === "技术员" && val === "1624973130579636225")||(['运维公司执行任务','领导审批'].includes(this.process.taskName))) { this.findObject(this.examineOption.column, '$assignee').display = false diff --git a/src/views/plugin/workflow/process/crontab.vue b/src/views/plugin/workflow/process/crontab.vue index 13f7001..e022f96 100644 --- a/src/views/plugin/workflow/process/crontab.vue +++ b/src/views/plugin/workflow/process/crontab.vue @@ -8,6 +8,7 @@ class="search-select" clearable @change="changeParent" + @clear="clearParent" > { + if(val !== ''){ + taskType({parentId:val,isDetail:1}).then(res =>{ this.taskInfos = res.data.data }) + }else{ + this.taskInfos = [] + } + + }, + clearParent(){ + this.searchForm.taskType = '' + this.taskInfos = [] }, // 列表 onLoad() { diff --git a/src/views/plugin/workflow/process/implementation.vue b/src/views/plugin/workflow/process/implementation.vue index b47ce18..c3397b5 100644 --- a/src/views/plugin/workflow/process/implementation.vue +++ b/src/views/plugin/workflow/process/implementation.vue @@ -8,6 +8,7 @@ class="search-select" clearable @change="changeParent" + @clear="clearParent" > { - this.taskInfos = res.data.data - }) + if(val !== ''){ + taskType({parentId:val,isDetail:1}).then(res =>{ + this.taskInfos = res.data.data + }) + }else{ + this.taskInfos = [] + } + + }, + clearParent(){ + this.searchForm.taskType = '' + this.taskInfos = [] }, // 列表 onLoad() { diff --git a/src/views/plugin/workflow/process/todo.vue b/src/views/plugin/workflow/process/todo.vue index f3f1b7d..1db7936 100644 --- a/src/views/plugin/workflow/process/todo.vue +++ b/src/views/plugin/workflow/process/todo.vue @@ -8,6 +8,7 @@ class="search-select" clearable @change="changeParent" + @clear="clearParent" > { console.log(res)