Browse Source

2025-04-27

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

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

@ -1068,35 +1068,34 @@
}) })
this.authorityFlag = true 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})=>{ getProcessControlList(this.controlData).then(({data})=>{
if (data && data.code === 0) { 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.$refs.controlTable.toggleAllSelection()
this.controlList.forEach(val => { 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.$nextTick(() => this.$refs.controlTable.toggleRowSelection(val, true))
} }
} }
}) })
this.controlFlag=true
this.controlFlag = true
} else { } else {
this.$alert(data.msg, '错误', { this.$alert(data.msg, '错误', {
confirmButtonText: '确定' confirmButtonText: '确定'
}) })
} }
}) })
}, },
saveControl(){
saveControl () {
this.controlData.detailData=this.controlSelection this.controlData.detailData=this.controlSelection
saveProcessControlList(this.controlData).then(({data})=>{ saveProcessControlList(this.controlData).then(({data})=>{
if (data && data.code === 0) { if (data && data.code === 0) {
@ -1109,6 +1108,7 @@
} }
}) })
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.controlSelection = val; this.controlSelection = val;
}, },

Loading…
Cancel
Save