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)