Browse Source

Merge remote-tracking branch 'origin/master'

master
qiezi 9 months ago
parent
commit
c20b600597
  1. 26
      src/views/modules/processManagement/processBindingInfo.vue

26
src/views/modules/processManagement/processBindingInfo.vue

@ -1068,35 +1068,34 @@
})
this.authorityFlag = true
},
processControlModal(row){
this.controlData.site=row.site
this.controlData.workflowId=row.workflowId
this.controlData.nodeId=row.nodeId
processControlModal (row) {
this.controlData.site = row.site
this.controlData.workflowId = row.workflowId
this.controlData.nodeId = row.nodeId
getProcessControlList(this.controlData).then(({data})=>{
if (data && data.code === 0) {
this.controlList=data.rows
this.controlSelection=data.select
this.controlList = data.rows
this.controlSelection = data.select
// this.$refs.controlTable.toggleAllSelection()
this.controlList.forEach(val => {
//
for (let i = 0; i <this.controlSelection.length ; i++) {
if(this.controlSelection[i].roleId===val.roleId){
for (let i = 0; i < this.controlSelection.length; i++) {
if(this.controlSelection[i].roleId === val.roleId){
this.$nextTick(() => this.$refs.controlTable.toggleRowSelection(val, true))
}
}
})
this.controlFlag=true
this.controlFlag = true
} else {
this.$alert(data.msg, '错误', {
confirmButtonText: '确定'
})
}
})
},
saveControl(){
saveControl () {
this.controlData.detailData=this.controlSelection
saveProcessControlList(this.controlData).then(({data})=>{
if (data && data.code === 0) {
@ -1109,6 +1108,7 @@
}
})
},
handleSelectionChange(val) {
this.controlSelection = val;
},

Loading…
Cancel
Save