|
@@ -50,7 +50,7 @@
|
|
|
<el-button
|
|
|
slot="append"
|
|
|
icon="el-icon-search"
|
|
|
- @click="searchList"
|
|
|
+ @click="getList"
|
|
|
></el-button>
|
|
|
</el-input>
|
|
|
</div>
|
|
@@ -59,24 +59,25 @@
|
|
|
<div class="show-body">
|
|
|
<!-- 流程任务列表 -->
|
|
|
<el-table :data="tableData" border stripe>
|
|
|
- <el-table-column type="selection" width="55" align="center"/>
|
|
|
- <el-table-column type="index" width="50" align="center"/>
|
|
|
+ <el-table-column type="selection" width="55" align="center" />
|
|
|
+ <el-table-column type="index" width="50" align="center" />
|
|
|
<el-table-column
|
|
|
v-for="col in columns"
|
|
|
:prop="col.prop"
|
|
|
:key="col.prop"
|
|
|
:label="col.label"
|
|
|
- align="center">
|
|
|
+ align="center"
|
|
|
+ >
|
|
|
<template slot-scope="scope">
|
|
|
<span v-if="col.prop == 'benCreateTime'">{{
|
|
|
- scope.row.benCreateTime.replace("T", " ")
|
|
|
- }}</span>
|
|
|
+ scope.row.benCreateTime.replace("T", " ")
|
|
|
+ }}</span>
|
|
|
<span v-else-if="col.prop == 'bepTaskProcessType'">{{
|
|
|
- getDictLabel(scope.row.bepTaskProcessType, dict.type.bpm_type)
|
|
|
- }}</span>
|
|
|
+ getDictLabel(scope.row.bepTaskProcessType, dict.type.bpm_type)
|
|
|
+ }}</span>
|
|
|
<span v-else-if="col.prop == 'benTaskNodeState'">{{
|
|
|
- scope.row.benTaskNodeState == "0" ? "已执行" : "未执行"
|
|
|
- }}</span>
|
|
|
+ scope.row.benTaskNodeState == "0" ? "已执行" : "未执行"
|
|
|
+ }}</span>
|
|
|
<span v-else>{{ scope.row[col.prop] }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -88,7 +89,8 @@
|
|
|
plain
|
|
|
size="small"
|
|
|
class="mr10 mb5"
|
|
|
- @click="opneExecuteNode(scope.row)">
|
|
|
+ @click="opneExecuteNode(scope.row)"
|
|
|
+ >
|
|
|
运行
|
|
|
</el-button>
|
|
|
<el-dropdown>
|
|
@@ -96,7 +98,7 @@
|
|
|
处理<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
- <el-dropdown-item>
|
|
|
+ <!-- <el-dropdown-item>
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -105,18 +107,21 @@
|
|
|
v-hasPermi="['system:user:edit']"
|
|
|
>处理
|
|
|
</el-button>
|
|
|
- </el-dropdown-item>
|
|
|
+ </el-dropdown-item> -->
|
|
|
<el-dropdown-item>
|
|
|
- <el-dropdown size="mini" @command="(command) => handleCommand(command, scope.row)">
|
|
|
+ <el-dropdown
|
|
|
+ size="mini"
|
|
|
+ @command="
|
|
|
+ (command) => handleCommand(command, scope.row)
|
|
|
+ "
|
|
|
+ >
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
icon="el-icon-d-arrow-right"
|
|
|
- >触发异常
|
|
|
- </el-button
|
|
|
- >
|
|
|
- <el-dropdown-menu slot="dropdown">
|
|
|
- </el-dropdown-menu>
|
|
|
+ >触发异常
|
|
|
+ </el-button>
|
|
|
+ <el-dropdown-menu slot="dropdown"> </el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
@@ -135,38 +140,39 @@
|
|
|
/>
|
|
|
</div>
|
|
|
<div class="show-window">
|
|
|
-
|
|
|
<!-- 运行节点弹窗 -->
|
|
|
<el-dialog :title="nodeTitle" :visible.sync="open" width="50%">
|
|
|
- <el-form label-width="100px" :model="commonData">
|
|
|
- <h1> 这里会引入当前节点需要处理的表单 </h1>
|
|
|
- </el-form>
|
|
|
+ <!-- <el-form label-width="100px" :model="commonData">
|
|
|
+ <h1>这里会引入当前节点需要处理的表单</h1>
|
|
|
+ </el-form> -->
|
|
|
+ <component v-if="myForm" :is="myForm" ref="myFormRef"></component>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="closeExecuteNode">Cancel</el-button>
|
|
|
- <el-button type="primary" @click="executeNode">Execute</el-button>
|
|
|
+ <el-button @click="closeExecuteNode">取消</el-button>
|
|
|
+ <el-button type="primary" @click="executeNode">运行</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
-
|
|
|
-
|
|
|
-<!-- 手:qweere
|
|
|
- 拖拽:123123
|
|
|
- -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import {processList, runProcessNodeExecution} from "@/api/bpmprocess/run/executeProcess";
|
|
|
+import {
|
|
|
+ processList,
|
|
|
+ runProcessNodeExecution,
|
|
|
+} from "@/api/bpmprocess/run/executeProcess";
|
|
|
import getNodeSequence from "@/utils/bpmn/getNodeSequence";
|
|
|
+import GY1 from "./dialogCompments/GY1.vue";
|
|
|
|
|
|
export default {
|
|
|
name: "processMange",
|
|
|
props: [],
|
|
|
- components: {},
|
|
|
+ components: { GY1 },
|
|
|
dicts: ["bpm_type"],
|
|
|
data() {
|
|
|
return {
|
|
|
+ row: {}, //当前操作行数据
|
|
|
+ myForm: "", //自定义表单组件名
|
|
|
// 节点弹窗title
|
|
|
nodeTitle: "节点弹窗",
|
|
|
open: false,
|
|
@@ -243,22 +249,32 @@ export default {
|
|
|
// 打开运行节点弹窗
|
|
|
opneExecuteNode(row) {
|
|
|
console.log(row);
|
|
|
- this.open = true; // 打开弹窗
|
|
|
+ this.myForm = row.benTaskNodeName.split("-")[0];
|
|
|
+ this.row = row; //记录当前行数据
|
|
|
+ this.open = true; // 打开弹窗
|
|
|
// 根据当前节点绑定的表单信息查询对应的表单进行展示
|
|
|
-
|
|
|
},
|
|
|
// 运行节点按钮
|
|
|
- executeNode(row) {
|
|
|
- console.log(row);
|
|
|
- let {benTaskNodeKey, bepTaskProcessXmlContent, implementationName} = row;
|
|
|
- let {nodeId, nextNodeId} = this.getNextNodeKey(benTaskNodeKey, bepTaskProcessXmlContent);
|
|
|
+ executeNode() {
|
|
|
+ console.log(this.row);
|
|
|
+ let { benTaskNodeKey, bepTaskProcessXmlContent, implementationName } =
|
|
|
+ this.row;
|
|
|
+ let { nodeId, nextNodeId } = this.getNextNodeKey(
|
|
|
+ benTaskNodeKey,
|
|
|
+ bepTaskProcessXmlContent
|
|
|
+ );
|
|
|
+ if (this.$refs.myFormRef) {
|
|
|
+ //获取自定义表单组件内容
|
|
|
+ let formData = this.$refs.myFormRef.getFormData();
|
|
|
+ console.log(formData);
|
|
|
+ }
|
|
|
let payLoad = {
|
|
|
basicMap: {
|
|
|
taskNodeKey: nodeId,
|
|
|
nextNodeKey: nextNodeId,
|
|
|
// tableName: "",
|
|
|
- implementationName: row.benmTaskAutomaticScriptTriggerType,
|
|
|
- taskProcessKey: row.bepTaskKey,
|
|
|
+ implementationName: this.row.benmTaskAutomaticScriptTriggerType,
|
|
|
+ taskProcessKey: this.row.bepTaskKey,
|
|
|
},
|
|
|
commMap: {
|
|
|
//formData
|
|
@@ -302,7 +318,7 @@ export default {
|
|
|
return item.value == value;
|
|
|
})?.label;
|
|
|
},
|
|
|
- }
|
|
|
+ },
|
|
|
};
|
|
|
</script>
|
|
|
|