feat(办公管理): 新增 我的流程页面“重新发起”功能

This commit is contained in:
konbai
2023-04-09 23:04:09 +08:00
parent 9e5f4c0e6a
commit ffb8bd908f
5 changed files with 42 additions and 9 deletions

View File

@@ -112,6 +112,13 @@
@click="handleStop(scope.row)"
v-hasPermi="['workflow:process:cancel']"
>取消</el-button>
<el-button
type="text"
size="mini"
icon="el-icon-refresh-right"
v-hasPermi="['workflow:process:start']"
@click="handleAgain(scope.row)"
>重新发起</el-button>
</template>
</el-table-column>
</el-table>
@@ -237,6 +244,16 @@ export default {
this.single = selection.length!==1
this.multiple = !selection.length
},
handleAgain(row) {
this.$router.push({
path: '/workflow/process/start/' + row.deployId,
query: {
definitionId: row.procDefId,
procInsId: row.procInsId
}
})
console.log(row);
},
/** 取消流程申请 */
handleStop(row){
const params = {

View File

@@ -26,6 +26,7 @@ export default {
return {
definitionId: null,
deployId: null,
procInsId: null,
formOpen: false,
formData: {},
}
@@ -37,9 +38,11 @@ export default {
initData() {
this.deployId = this.$route.params && this.$route.params.deployId;
this.definitionId = this.$route.query && this.$route.query.definitionId;
this.procInsId = this.$route.query && this.$route.query.procInsId;
getProcessForm({
definitionId: this.definitionId,
deployId: this.deployId
deployId: this.deployId,
procInsId: this.procInsId
}).then(res => {
if (res.data) {
this.formData = res.data;