修改任务父类与任务种类数据联动问题

main
jinna 3 years ago
parent 4e7abb457f
commit e0a13f6106
  1. 1
      src/views/plugin/workflow/process/components/examForm.vue
  2. 12
      src/views/plugin/workflow/process/crontab.vue
  3. 16
      src/views/plugin/workflow/process/implementation.vue
  4. 5
      src/views/plugin/workflow/process/todo.vue
  5. 5
      src/views/plugin/workflow/process/workorder.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

@ -8,6 +8,7 @@
class="search-select"
clearable
@change="changeParent"
@clear="clearParent"
>
<el-option
v-for="item in taskParent"
@ -185,9 +186,18 @@ export default {
},
changeParent(val){
this.searchForm.taskType = ''
taskType({parentId:val,isDetail:1}).then(res =>{
if(val !== ''){
taskType({parentId:val,isDetail:1}).then(res =>{
this.taskInfos = res.data.data
})
}else{
this.taskInfos = []
}
},
clearParent(){
this.searchForm.taskType = ''
this.taskInfos = []
},
//
onLoad() {

@ -8,6 +8,7 @@
class="search-select"
clearable
@change="changeParent"
@clear="clearParent"
>
<el-option
v-for="item in taskParent"
@ -218,9 +219,18 @@ export default {
},
changeParent(val){
this.searchForm.taskType = ''
taskType({parentId:val,isDetail:1}).then(res =>{
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() {

@ -8,6 +8,7 @@
class="search-select"
clearable
@change="changeParent"
@clear="clearParent"
>
<el-option
v-for="item in taskParent"
@ -222,6 +223,10 @@ export default {
})
}
},
clearParent(){
this.searchForm.taskTypeName = ''
this.taskInfos = []
},
//
onLoad() {
this.loading = true;

@ -8,6 +8,7 @@
class="search-select"
clearable
@change="changeParent"
@clear="clearParent"
>
<el-option
v-for="item in taskParent"
@ -263,6 +264,10 @@ export default {
})
}
},
clearParent(){
this.searchForm.taskType = ''
this.taskInfos = []
},
getRepeat(){
repeatMode().then(res =>{
console.log(res)

Loading…
Cancel
Save