|
@ -98,7 +98,8 @@ export default { |
|
|
userTableData: [], |
|
|
userTableData: [], |
|
|
taskList: [], |
|
|
taskList: [], |
|
|
selectFlowVal: null, |
|
|
selectFlowVal: null, |
|
|
setPocessCurrent: null |
|
|
|
|
|
|
|
|
setPocessCurrent: null, |
|
|
|
|
|
getEditInfoFlow: {} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
computed: { |
|
|
computed: { |
|
@ -126,6 +127,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
handleEditInfoFlow(newVal) { |
|
|
handleEditInfoFlow(newVal) { |
|
|
|
|
|
console.log('getEditInfoFlow', this.getEditInfoFlow) |
|
|
const findItem = this.findIdByModelId(newVal.flowId) |
|
|
const findItem = this.findIdByModelId(newVal.flowId) |
|
|
this.form.model = findItem |
|
|
this.form.model = findItem |
|
|
this.selectModel(findItem, newVal) |
|
|
this.selectModel(findItem, newVal) |
|
@ -146,6 +148,10 @@ export default { |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
selectModel(val, parentProcessVal) { |
|
|
selectModel(val, parentProcessVal) { |
|
|
|
|
|
if (!parentProcessVal) { |
|
|
|
|
|
this.getEditInfoFlow.categoryFlowDetails = [] |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
this.selectFlowVal = val |
|
|
this.selectFlowVal = val |
|
|
this.loadingImg = true |
|
|
this.loadingImg = true |
|
|
FetchFindFolwImgByModelId({ 'processDefinitionId': val.procdefId }).then((res) => { |
|
|
FetchFindFolwImgByModelId({ 'processDefinitionId': val.procdefId }).then((res) => { |
|
@ -205,7 +211,7 @@ export default { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
const detailsDTOs = this.taskList.map((item, index) => { |
|
|
const detailsDTOs = this.taskList.map((item, index) => { |
|
|
const json = {} |
|
|
const json = {} |
|
|
json.id = this.editInfoFlow && this.editInfoFlow.categoryFlowDetails.length !== 0 ? this.editInfoFlow.categoryFlowDetails[index].id : null |
|
|
|
|
|
|
|
|
json.id = this.getEditInfoFlow && this.getEditInfoFlow.categoryFlowDetails.length !== 0 ? this.getEditInfoFlow.categoryFlowDetails[index].id : null |
|
|
json.postId = item.postId |
|
|
json.postId = item.postId |
|
|
json.taskId = item.nodeId |
|
|
json.taskId = item.nodeId |
|
|
return json |
|
|
return json |
|
@ -217,9 +223,10 @@ export default { |
|
|
'flowName': this.selectFlowVal.deployName, |
|
|
'flowName': this.selectFlowVal.deployName, |
|
|
'flowKey': this.selectFlowVal.modelKey, |
|
|
'flowKey': this.selectFlowVal.modelKey, |
|
|
'flowManageId': this.setPocessCurrent.id, |
|
|
'flowManageId': this.setPocessCurrent.id, |
|
|
'id': this.editInfoFlow && this.editInfoFlow.id, |
|
|
|
|
|
'status': this.editInfoFlow && this.editInfoFlow.status |
|
|
|
|
|
|
|
|
'id': this.getEditInfoFlow && this.getEditInfoFlow.id, |
|
|
|
|
|
'status': this.getEditInfoFlow && this.getEditInfoFlow.status |
|
|
} |
|
|
} |
|
|
|
|
|
console.log('params', params) |
|
|
FetchFlowbinding(params).then((res) => { |
|
|
FetchFlowbinding(params).then((res) => { |
|
|
if (res === 'SUCCESS') { |
|
|
if (res === 'SUCCESS') { |
|
|
this.$message({ message: '操作成功', type: 'success', offset: 8 }) |
|
|
this.$message({ message: '操作成功', type: 'success', offset: 8 }) |
|
|