|
@@ -82,31 +82,32 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- type="warning"
|
|
|
- plain
|
|
|
- size="small"
|
|
|
- class="mr10"
|
|
|
- @click="runHandler(scope.row)"
|
|
|
- >
|
|
|
- 运行
|
|
|
- </el-button>
|
|
|
- <el-dropdown>
|
|
|
- <el-button type="warning" plain size="small">
|
|
|
- 处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ <div class="excute-wrap">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ plain
|
|
|
+ size="small"
|
|
|
+ class="mr10 mb5"
|
|
|
+ @click="runHandler(scope.row)"
|
|
|
+ >
|
|
|
+ 运行
|
|
|
</el-button>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item
|
|
|
- ><el-button
|
|
|
- size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-edit"
|
|
|
- @click="excuteHandler(scope.row)"
|
|
|
- v-hasPermi="['system:user:edit']"
|
|
|
- >处理</el-button
|
|
|
- ></el-dropdown-item
|
|
|
- >
|
|
|
- <!-- <el-dropdown-item>
|
|
|
+ <el-dropdown>
|
|
|
+ <el-button type="warning" plain size="small">
|
|
|
+ 处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <el-dropdown-item
|
|
|
+ ><el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-edit"
|
|
|
+ @click="excuteHandler(scope.row)"
|
|
|
+ v-hasPermi="['system:user:edit']"
|
|
|
+ >处理</el-button
|
|
|
+ ></el-dropdown-item
|
|
|
+ >
|
|
|
+ <!-- <el-dropdown-item>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -116,19 +117,21 @@
|
|
|
>运行管道</el-button
|
|
|
>
|
|
|
</el-dropdown-item> -->
|
|
|
- <el-dropdown-item>
|
|
|
- <el-dropdown
|
|
|
- size="mini"
|
|
|
- @command="(command) => handleCommand(command, scope.row)"
|
|
|
- >
|
|
|
- <el-button
|
|
|
+ <el-dropdown-item>
|
|
|
+ <el-dropdown
|
|
|
size="mini"
|
|
|
- type="text"
|
|
|
- icon="el-icon-d-arrow-right"
|
|
|
- >触发异常</el-button
|
|
|
+ @command="
|
|
|
+ (command) => handleCommand(command, scope.row)
|
|
|
+ "
|
|
|
>
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- <!-- <el-dropdown-item
|
|
|
+ <el-button
|
|
|
+ size="mini"
|
|
|
+ type="text"
|
|
|
+ icon="el-icon-d-arrow-right"
|
|
|
+ >触发异常</el-button
|
|
|
+ >
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <!-- <el-dropdown-item
|
|
|
command="handleResetPwd"
|
|
|
icon="el-icon-key"
|
|
|
v-hasPermi="['system:user:resetPwd']"
|
|
@@ -140,11 +143,12 @@
|
|
|
v-hasPermi="['system:user:edit']"
|
|
|
>分配角色</el-dropdown-item
|
|
|
> -->
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-dropdown-item>
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -162,7 +166,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { processList } from "@/api/bpmprocess/process";
|
|
|
-import { btnCommonApi } from "@/api/tablelist/commonTable";
|
|
|
+import { btnCommonApiProcess } from "@/api/bpmprocess/process";
|
|
|
import getNodeSequence from "@/utils/bpmn/getNodeSequence";
|
|
|
export default {
|
|
|
name: "processMange",
|
|
@@ -246,22 +250,29 @@ export default {
|
|
|
},
|
|
|
// 处理回调
|
|
|
runHandler(row) {
|
|
|
- let { benTaskNodeKey, bepTaskProcessXmlContent } = row;
|
|
|
+ console.log(row);
|
|
|
+ let { benTaskNodeKey, bepTaskProcessXmlContent, implementationName } =
|
|
|
+ row;
|
|
|
let { nodeId, nextNodeId } = this.getNextNodeKey(
|
|
|
benTaskNodeKey,
|
|
|
bepTaskProcessXmlContent
|
|
|
);
|
|
|
let payLoad = {
|
|
|
basicMap: {
|
|
|
- nodeKey: nodeId,
|
|
|
+ taskNodeKey: nodeId,
|
|
|
nextNodeKey: nextNodeId,
|
|
|
- tableName: "",
|
|
|
+ // tableName: "",
|
|
|
+ implementationName: row.benmTaskAutomaticScriptTriggerType,
|
|
|
+ taskProcessKey: row.bepTaskKey,
|
|
|
},
|
|
|
commMap: {
|
|
|
//formData
|
|
|
},
|
|
|
};
|
|
|
- console.log("运行", row);
|
|
|
+ btnCommonApiProcess(payLoad).then((res) => {
|
|
|
+ console.log(res);
|
|
|
+ });
|
|
|
+ console.log(payLoad);
|
|
|
},
|
|
|
// 获取下一个节点的nodekey
|
|
|
getNextNodeKey(nodeKey, xmlStr) {
|