fix version funcation delete. (#4265)

This commit is contained in:
zhuangchong 2020-12-21 09:57:42 +08:00 committed by GitHub
parent c4d75443e1
commit a731be72a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -753,6 +753,29 @@
})
},
/**
* delete one version of process definition
*
* @param version the version need to delete
* @param processDefinitionId the process definition id user want to delete
* @param fromThis fromThis
*/
mVersionDeleteProcessDefinitionVersion ({ version, processDefinitionId, fromThis }) {
this.deleteProcessDefinitionVersion({
version: version,
processDefinitionId: processDefinitionId
}).then(res => {
this.$message.success(res.msg || '')
this.mVersionGetProcessDefinitionVersionsPage({
pageNo: 1,
pageSize: 10,
processDefinitionId: processDefinitionId,
fromThis: fromThis
})
}).catch(e => {
this.$message.error(e.msg || '')
})
},
/**
* query the process definition pagination version
*/