更新版本-参照 jinnang-v1

This commit is contained in:
case committed 2022-11-03 23:38:50 +08:00
1 parent 0ace3ac506
commit c9c16e9d26
17 files changed
+2471 -940

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because it is too large. Load diff
+1
View File
@@ -0,0 +1 @@
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.panzoom=f()}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r}()({1:[function(require,module,exports){"use strict";var wheel=require("wheel");var animate=require("amator");var eventify=require("ngraph.events");var kinetic=require("./lib/kinetic.js");var createTextSelectionInterceptor=require("./lib/createTextSelectionInterceptor.js");var domTextSelectionInterceptor=createTextSelectionInterceptor();var fakeTextSelectorInterceptor=createTextSelectionInterceptor(true);var Transform=require("./lib/transform.js");var makeSvgController=require("./lib/svgController.js");var makeDomController=require("./lib/domController.js");var defaultZoomSpeed=1;var defaultDoubleTapZoomSpeed=1.75;var doubleTapSpeedInMS=300;var clickEventTimeInMS=200;module.exports=createPanZoom;function createPanZoom(domElement,options){options=options||{};var panController=options.controller;if(!panController){if(makeSvgController.canAttach(domElement)){panController=makeSvgController(domElement,options)}else if(makeDomController.canAttach(domElement)){panController=makeDomController(domElement,options)}}if(!panController){throw new Error("Cannot create panzoom for the current type of dom element")}var owner=panController.getOwner();var storedCTMResult={x:0,y:0};var isDirty=false;var transform=new Transform;if(panController.initTransform){panController.initTransform(transform)}var filterKey=typeof options.filterKey==="function"?options.filterKey:noop;var pinchSpeed=typeof options.pinchSpeed==="number"?options.pinchSpeed:1;var bounds=options.bounds;var maxZoom=typeof options.maxZoom==="number"?options.maxZoom:Number.POSITIVE_INFINITY;var minZoom=typeof options.minZoom==="number"?options.minZoom:0;var boundsPadding=typeof options.boundsPadding==="number"?options.boundsPadding:.05;var zoomDoubleClickSpeed=typeof options.zoomDoubleClickSpeed==="number"?options.zoomDoubleClickSpeed:defaultDoubleTapZoomSpeed;var beforeWheel=options.beforeWheel||noop;var beforeMouseDown=options.beforeMouseDown||noop;var speed=typeof options.zoomSpeed==="number"?options.zoomSpeed:defaultZoomSpeed;var transformOrigin=parseTransformOrigin(options.transformOrigin);var textSelection=options.enableTextSelection?fakeTextSelectorInterceptor:domTextSelectionInterceptor;validateBounds(bounds);if(options.autocenter){autocenter()}var frameAnimation;var lastTouchEndTime=0;var lastTouchStartTime=0;var pendingClickEventTimeout=0;var lastMouseDownedEvent=null;var lastMouseDownTime=new Date;var lastSingleFingerOffset;var touchInProgress=false;var panstartFired=false;var mouseX;var mouseY;var clickX;var clickY;var pinchZoomLength;var smoothScroll;if("smoothScroll"in options&&!options.smoothScroll){smoothScroll=rigidScroll()}else{smoothScroll=kinetic(getPoint,scroll,options.smoothScroll)}var moveByAnimation;var zoomToAnimation;var multiTouch;var paused=false;listenForEvents();var api={dispose:dispose,moveBy:internalMoveBy,moveTo:moveTo,smoothMoveTo:smoothMoveTo,centerOn:centerOn,zoomTo:publicZoomTo,zoomAbs:zoomAbs,smoothZoom:smoothZoom,smoothZoomAbs:smoothZoomAbs,showRectangle:showRectangle,pause:pause,resume:resume,isPaused:isPaused,getTransform:getTransformModel,getMinZoom:getMinZoom,setMinZoom:setMinZoom,getMaxZoom:getMaxZoom,setMaxZoom:setMaxZoom,getTransformOrigin:getTransformOrigin,setTransformOrigin:setTransformOrigin,getZoomSpeed:getZoomSpeed,setZoomSpeed:setZoomSpeed};eventify(api);var initialX=typeof options.initialX==="number"?options.initialX:transform.x;var initialY=typeof options.initialY==="number"?options.initialY:transform.y;var initialZoom=typeof options.initialZoom==="number"?options.initialZoom:transform.scale;if(initialX!=transform.x||initialY!=transform.y||initialZoom!=transform.scale){zoomAbs(initialX,initialY,initialZoom)}return api;function pause(){releaseEvents();paused=true}function resume(){if(paused){listenForEvents();paused=false}}function isPaused(){return paused}function showRectangle(rect){var clientRect=owner.getBoundingClientRect();var size=transformToScreen(clientRect.width,clientRect.height);var rectWidth=rect.right-rect.left;var rectHeight=rect.bottom-rect.top;if(!Number.isFinite(rectWidth)||!Number.isFinite(rectHeight)){throw new Error("Invalid rectangle")}var dw=size.x/rectWidth;var dh=size.y/rectHeightLine truncated
+139 -77
View File
@@ -45,13 +45,13 @@ class TaskService extends Service {
const { userId, username } = this.ctx.userInfo;
where.createByUser = userId;
}
async createTaskId() {
async createTask() {
const { actionData } = this.ctx.request.body.appData;
const { jianghuKnex, config } = this.app;
// const { workflowId, taskTitle, taskFormStructure, taskFormData } = actionData;
const { workflowId, taskTitle, workflowForm, workflowFormData } = actionData;
const { userId, username } = this.ctx.userInfo;
actionData.taskId = await idGenerateUtil.idPlus({
const taskId = await idGenerateUtil.idPlus({
knex: jianghuKnex,
startValue: 1000,
tableName: tableEnum.task,
@@ -64,50 +64,29 @@ class TaskService extends Service {
}
const { workflowConfig } = workflow;
const {nodeList = [], lineList = []} = JSON.parse(workflowConfig || '{}');
actionData.workflowConfig = workflowConfig;
// start 节点进入历史
const start = nodeList.find(e => e.id.includes('start-'));
const line = lineList.find(e => e.from === start.id);
if (line) {
// 寻找start开始线路 task存储第二个节点
const nextNode = nodeList.find(e => e.id === line.to);
const startNode = nodeList.find(e => e.id.includes('start-'));
const startLine = lineList.filter(e => e.from === startNode.id);
const userNode = nodeList.filter(e => e.id.includes('userTask') || e.id.includes('receiveTask') );
const allUser = await this.getProcessUserList(userNode);
const taskProcessorList = await this.getProcessUserList([nextNode]);
const nextLine = lineList.filter(e => e.from === nextNode.id);
// 组建默认knex data
actionData.taskStatus = 'running';
actionData.taskConfigId = nextNode.id;
actionData.taskNextConfigList = JSON.stringify(nextLine);
actionData.taskEditUserList = taskProcessorList;
actionData.taskViewUserList = allUser;
actionData.createByUser = userId;
actionData.taskInitUser = userId;
// workflowFormInput 1. 上表单数据 2. 待输入 3. 总表单
// 起始节点 无上一个
actionData.taskFormInput = JSON.stringify({
const startData = {
taskId,
taskTitle,
taskStatus: 'running',
taskFormInput: JSON.stringify({
input: workflowFormData,
formList: workflowForm
});
delete actionData.workflowForm;
delete actionData.workflowFormData;
delete actionData.workflowId;
const history = {
...actionData,
taskExplain: start.label,
taskHandleDesc: '流转',
taskLineFrom: line.from,
taskLineTo: line.to,
taskLineLabel: line.type + '-' + line.label,
taskCostDuration: 0
}
const insert = await jianghuKnex(tableEnum.task_history, this.ctx).insert(history);
} else {
throw new BizError(errorInfoEnum.line_not_found);
}),
taskConfigId: startNode.id,
taskNextConfigList: JSON.stringify(startLine),
taskEditUserList: '',
taskViewUserList: allUser,
createByUser: userId,
taskInitUser: userId,
workflowConfig
}
const [id] = await jianghuKnex(tableEnum.task, this.ctx).insert(startData);
await this.buildNext({ type: '同意', id, taskTpl: {input: workflowFormData}, taskComment: '' })
}
async getGroupUserList(groupId) {
@@ -120,7 +99,7 @@ class TaskService extends Service {
async getProcessUserList(nodeList) {
let userIds = []
for(const item of nodeList) {
const {assignValue, assignType} = item;
const {assignValue = [], assignType = ''} = item;
if (assignType === 'person') {
userIds = [...userIds, ...assignValue];
} else if (assignType === 'group') {
@@ -156,41 +135,80 @@ class TaskService extends Service {
async getTaskHistoryInfo() {
const { actionData } = this.ctx.request.body.appData;
const { jianghuKnex, config } = this.app;
const { taskId } = actionData;
const { id } = actionData;
const { userId } = this.ctx.userInfo;
const taskInfo = await jianghuKnex(tableEnum.task).where({taskId}).first();
const taskInfo = await jianghuKnex(tableEnum.task).where({id}).first();
// 获取process 流程、根据节点线路组建步骤条
if (!taskInfo) {
throw new BizError(errorInfoEnum.task_not_found);
}
const taskHistory = await jianghuKnex(tableEnum.task_history).where({taskId: taskInfo.taskId}).orderBy('id', 'asc').select();
const taskStepperList = this.makeStepper(taskInfo.workflowConfig, taskHistory);
const taskHistoryList = await jianghuKnex(tableEnum.task_history).where({taskId: taskInfo.taskId}).orderBy('id', 'asc').select();
const taskStepperList = this.makeStepper(taskInfo.workflowConfig, taskHistoryList, taskInfo);
taskInfo.workflowConfig = JSON.parse(taskInfo.workflowConfig);
const taskHistoryConfigList = this.getTaskHistoryConfigList(taskInfo.workflowConfig, taskHistoryList);
// 查找task 任务历史列表
const taskHistoryList = await jianghuKnex(tableEnum.task_history).where({taskId}).orderBy('id', 'asc').select();
const isAccess = taskInfo.taskEditUserList.includes(userId);
const nextLineList = taskInfo.taskStatus === 'running' ? JSON.parse(taskInfo.taskNextConfigList) : [];
const taskTpl = JSON.parse(taskInfo.taskFormInput || '{"prev": {}, "input": {}, "formList": []}');
const currentNode = taskInfo.workflowConfig.nodeList.find(e => e.id === taskInfo.taskConfigId);
return {taskStepperList, taskHistoryList, isAccess, nextLineList, taskTpl, step: taskHistory.length, currentNode: taskInfo.workflowConfig.nodeList.find(e => e.id === taskInfo.taskConfigId)};
const taskTpl = JSON.parse(taskInfo.taskFormInput || '{"input": {}, "formList": []}');
// const currentNode = taskInfo.workflowConfig.nodeList.find(e => e.id === taskInfo.taskConfigId);
return {
taskStepperList,
taskHistoryList,
isAccess,
nextLineList,
taskTpl,
currentNode: taskInfo.workflowConfig.nodeList.find(e => e.id === taskInfo.taskConfigId),
taskHistoryConfigList
};
}
/**
* 获取历史节点+当前节点
* @returns
*/
getTaskHistoryConfigList(workflowConfig, taskHistory) {
const {nodeList = [], lineList = []} = workflowConfig;
// 历史所有主节点
const historyNodeList = nodeList.filter(node => taskHistory.some(history => history.taskConfigId === node.id || history.taskLineTo.includes(node.id)));
let historyLineList = [];
taskHistory.forEach((history, index) => {
const filterLineList = lineList.filter(line => history.taskConfigId === line.from && history.taskLineTo.includes(line.to));
if (filterLineList.length) {
filterLineList.forEach(line => {
line.label = line.label + ` (${index + 1})`
})
historyLineList = [...historyLineList, ...filterLineList];
}
})
return {nodeList: historyNodeList, lineList: historyLineList};
}
/**
* 制作节点步骤list
* @param {*} processInfo
* @returns
*/
makeStepper(workflowStructure, taskHistory) {
makeStepper(workflowStructure, taskHistory, taskInfo) {
const { jianghuKnex } = this.app;
const {nodeList = [], lineList = []} = JSON.parse(workflowStructure || '{}');
const nodeSortList = [];
for (const item of taskHistory) {
nodeSortList.push(nodeList.find(e => e.id === item.taskConfigId));
const taskNextConfigList = JSON.parse(item.taskNextConfigList);
// 查找和当前节点相同的上个节点和下个节点来判断是否是并行处理
const node = this.getNodeBrotherList(item.taskConfigId, nodeList, lineList);
const nodeIdList = node.map(e => {return e.id});
const exist = _.flatten(nodeSortList).some(e => nodeIdList.includes(e.id));
if (!exist) {
node.forEach(e => {
e.type = 'history';
})
nodeSortList.push(node);
}
}
const length = nodeList.length - nodeSortList.length;
for(let i = 0; i < length; i++) {
const nodeCache = this.getNextNodeSetup(nodeList, lineList, nodeSortList);
if (!nodeCache) {
const nodeCache = this.getNextNodeSetup(nodeList, lineList, nodeSortList, taskInfo);
if (!nodeCache || !nodeCache.length) {
continue;
}
nodeSortList.push(nodeCache)
@@ -199,11 +217,33 @@ class TaskService extends Service {
const stepperList = []
let i = 1;
for (const item of nodeSortList) {
stepperList.push({value: i, text: item.label, id: item.id});
const step = [];
item.forEach(e => {
step.push({value: i, text: e.label, id: e.id, type: e.type});
})
stepperList.push(step);
i++;
}
return stepperList;
}
// 根据当前节点id 寻找共同并行节点
getNodeBrotherList(currentNodeId, nodeList, lineList) {
const prevLine = lineList.filter(e => e.to === currentNodeId);
const nextNodeIdList = lineList.filter(e => e.from === currentNodeId).map(e => {return e.to});
const node = [nodeList.find(e => e.id === currentNodeId)];
prevLine.forEach(line => {
// 查找和当前节点相同的上个节点和下个节点来判断是否是并行处理
let otherNodeIdList = lineList.filter(e => e.from === line.from && e.to !== currentNodeId).map(e => {return e.to});
let otherNodeNextLine = lineList.filter(e => otherNodeIdList.includes(e.from));
// 筛选其他兄弟和自己终点一样的节点
otherNodeNextLine = otherNodeNextLine.filter(e => nextNodeIdList.includes(e.to));
otherNodeNextLine.forEach(element => {
node.push(nodeList.find(e => e.id === element.from))
});
});
return node;
}
/**
* 获取下一个步骤节点
* @param {*} nodeAllList
@@ -211,47 +251,58 @@ class TaskService extends Service {
* @param {*} nodeSortList
* @returns
*/
getNextNodeSetup(nodeAllList, lineAllList, nodeSortList) {
const lastNode = nodeSortList[nodeSortList.length - 1];
const lineList = lineAllList.filter(e => e.from === lastNode.id);
if (!lineList) {
getNextNodeSetup(nodeAllList, lineAllList, nodeSortList, taskInfo) {
const lastNodeIdList = nodeSortList[nodeSortList.length - 1].map(e => {return e.id});
const lineList = lineAllList.filter(e => lastNodeIdList.includes(e.from));
if (!lineList.length) {
return null;
// 线路不存在
}
const lineIds = lineList.map(e => { return e.to });
return nodeAllList.find(e => lineIds.includes(e.id) && !(nodeSortList.find(s => s.id === e.id)));
if (lineList.some(e => e.to === taskInfo.taskConfigId)) {
return this.getNodeBrotherList(taskInfo.taskConfigId, nodeAllList, lineAllList);
}
const existIdList = _.flatten(nodeSortList).map(e => {return e.id});
return nodeAllList.filter(e => lineList.some(s => s.to === e.id) && !existIdList.includes(e.id));
}
async submitNode() {
const { actionData } = this.ctx.request.body.appData;
const { jianghuKnex, config } = this.app;
const { type, taskId, taskRemark, taskTpl, taskComment } = actionData;
const { userId, username } = this.ctx.userInfo;
await this.buildNext(actionData);
}
async buildNext(actionData) {
const { jianghuKnex } = this.app;
const { type, id, taskTpl, taskComment } = actionData;
const taskInfo = await jianghuKnex(tableEnum.task).where({taskId}).first();
const taskInfo = await jianghuKnex(tableEnum.task).where({id}).first();
delete taskInfo.id;
const {nodeList = [], lineList = []} = JSON.parse(taskInfo.workflowConfig || '{}');
const nLineList = JSON.parse(taskInfo.taskNextConfigList);
const line = nLineList.find(e => e.type === type);
const lines = nLineList.filter(e => e.type === type);
const currentNode = nodeList.find(e => e.id === taskInfo.taskConfigId);
// 写入exec历史
const prevHistory = await jianghuKnex(tableEnum.task_history).where({taskId}).orderBy('operationAt', 'desc').first();
const taskHistory = await jianghuKnex(tableEnum.task_history).where({taskId: taskInfo.taskId}).orderBy('operationAt', 'desc').select();
const [prevHistory] = taskHistory;
let taskFormInput = JSON.parse(taskInfo.taskFormInput);
taskFormInput.prev = taskFormInput.input;
taskFormInput.input = taskTpl.input;
taskFormInput = JSON.stringify(taskFormInput);
const historyTaskFormInput = JSON.parse(taskInfo.taskFormInput)
historyTaskFormInput .input = taskTpl.input;
const history = {
...taskInfo,
taskFormInput: JSON.stringify(historyTaskFormInput),
taskExplain: currentNode.label,
taskConfigId: currentNode.id,
taskHandleDesc: line.type + '-' + line.label,
taskLineFrom: line.from,
taskLineTo: line.to,
taskLineLabel: line.type + '-' + line.label,
taskCostDuration: parseInt((new Date().getTime() - new Date(prevHistory.operationAt).getTime()) / 1000)
taskHandleDesc: type,
taskLineFrom: (lines.map(e => {return e.form})).join(','),
taskLineTo: (lines.map(e => {return e.to})).join(','),
taskLineLabel: (lines.map(e => {return e.type + '-' + e.label})).join(','),
taskCostDuration: prevHistory ? parseInt((new Date().getTime() - new Date(prevHistory.operationAt).getTime()) / 1000) : 0,
taskComment
}
await jianghuKnex(tableEnum.task_history, this.ctx).insert(history);
for (const line of lines) {
const nextNode = nodeList.find(e => e.id === line.to);
let taskEditUserList = await this.getProcessUserList([nextNode]);
// 修改任务步骤node 处理人\
@@ -270,16 +321,27 @@ class TaskService extends Service {
}
await jianghuKnex(tableEnum.task_history, this.ctx).insert(endHistory);
}
await jianghuKnex(tableEnum.task, this.ctx).where({taskId}).update({
await jianghuKnex(tableEnum.task).where({id}).delete();
let otherNodeList = this.getNodeBrotherList(taskInfo.taskConfigId, nodeList, lineList);
otherNodeList = otherNodeList.filter(e => e.id !== taskInfo.taskConfigId);
if (otherNodeList.length && !otherNodeList.some(e => taskHistory.some(s => s.taskConfigId === e.id))) {
console.log('其他并行未结束、暂停任务')
return
}
await jianghuKnex(tableEnum.task).insert({
...taskInfo,
taskId: taskInfo.taskId,
taskFormInput,
taskRemark,
taskNextConfigList: JSON.stringify(nextLineList),
taskEditUserList,
taskConfigId: nextNode.id,
taskStatus: (nextLineList.length === 0 || currentNode.id.includes('end-')) ? 'end' : type === 'deny' ? 'deny' : 'running',
taskComment
taskStatus: (nextLineList.length === 0 || currentNode.id.includes('end-')) ? 'end' : type === 'deny' ? 'deny' : 'running'
});
}
}
}
module.exports = TaskService;
+5 -5
View File
@@ -21,7 +21,7 @@
<v-row class="px-2" :class="{'pb-7': isMobile}">
<v-col cols="12" class=" pb-3">
<span class="inputLabel">GUID</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="GUID" v-model="line.id"></v-text-field>
<v-text-field class="cus-v-input mr-2" dense filled single-line disabled label="GUID" v-model="line.id"></v-text-field>
</v-col>
<v-col cols="12" class=" pb-3">
<span class="inputLabel">源活动</span>
@@ -47,10 +47,10 @@
v-model="line.type"
></v-select>
</v-col>
<v-col cols="12" class=" pb-3">
<span class="inputLabel">任务Resource</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="任务Resource" v-model="line.hook"></v-text-field>
</v-col>
<!-- <v-col cols="12" class=" pb-3">
<span class="inputLabel">课程Resource</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="课程Resource" v-model="line.hook"></v-text-field>
</v-col> -->
<v-col cols="12" class=" pb-3">
<span class="inputLabel">备注说明</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="备注说明" v-model="line.Remark"></v-text-field>
+11 -12
View File
@@ -22,7 +22,7 @@
<v-row class="px-2" :class="{'pb-7': isMobile}">
<v-col cols="12" class=" pb-3">
<span class="inputLabel">GUID</span>
<v-text-field class="cus-v-input" dense filled single-line label="GUID" v-model="node.id"></v-text-field>
<v-text-field class="cus-v-input" dense filled single-line disabled label="GUID" v-model="node.id"></v-text-field>
</v-col>
<v-col cols="12" class=" pb-3">
<span class="inputLabel">名称</span>
@@ -32,8 +32,9 @@
<span class="inputLabel">备注说明</span>
<v-text-field class="cus-v-input" dense filled single-line label="备注说明" v-model="node.Remark"></v-text-field>
</v-col>
<template v-if="!node.id.includes('start-') && !node.id.includes('end-')">
<v-col cols="12" class=" pb-3">
<!-- <v-col cols="12" class=" pb-3">
<span class="inputLabel">指派类型</span>
<v-select
@@ -63,8 +64,8 @@
v-model="node.assignValue"
:disabled="!node.assignType"
></v-select>
</v-col>
<v-col cols="12" class=" pb-3">
</v-col> -->
<v-col cols="12" class=" pb-3" >
<span class="inputLabel">允许的操作(英文逗号分隔)</span>
<!-- <v-textarea
filled single-line
@@ -76,7 +77,7 @@
></v-textarea> -->
<v-text-field class="cus-v-input" dense filled single-line label="允许的操作(英文逗号分隔)" v-model="node.lineTypeList"></v-text-field>
</v-col>
<v-col cols="12" class=" pb-3">
<v-col cols="12" class=" pb-3" >
<span class="inputLabel">可写模板</span>
<v-select
:items="tpl"
@@ -91,7 +92,7 @@
v-model="node.formId"
></v-select>
</v-col>
<v-col cols="12" class=" pb-3">
<v-col cols="12" class=" pb-3" >
<span class="inputLabel">隐藏模板</span>
<v-select
:items="tpl"
@@ -106,6 +107,7 @@
v-model="node.formIdHidden"
></v-select>
</v-col>
</template>
</v-row>
</template>
@@ -137,7 +139,9 @@
data() {
return {
isFormValid: true,
node: {},
node: {
id: ''
},
typeList: [
{ Value: 'start', Text: '起点' },
{ Value: 'end', Text: '终点' },
@@ -175,11 +179,6 @@
methods: {
init(data, node) {
this.node = node;
// data.nodeList.filter((node) => {
// if (node.id === id) {
// this.node = node;
// }
// })
},
getOptionList() {
if (!this.node.assignType) {
+16 -3
View File
@@ -1,13 +1,19 @@
<template id="flow-node">
<div class="node-item" ref="node" :style="flowNodeContainer" @mouseenter="showDelete" @mouseleave="hideDelete"
@mouseup="changeNodeSite" @click.stop="editNode">
<div class="node-item"
:class="{'node-item-active': current === node.id}"
ref="node"
:style="flowNodeContainer"
@mouseenter="showDelete"
@mouseleave="hideDelete"
@mouseup="changeNodeSite"
@click.stop="editNode">
<!-- <div class="node-titel">
<div class="node-icon" v-show="mouseEnter">
<i class="el-icon-delete" @@click.stop="deleteNode"></i>
</div>
</div> -->
<div class="node-con"><i :class="iconClass" class="type-icon"></i><span>{{node.label}}</span></div>
<div class="node-del" v-show="mouseEnter" @click.stop="deleteNode">
<div class="node-del" v-show="mouseEnter && !readonly" @click.stop="deleteNode">
×
</div>
@@ -24,6 +30,8 @@
props: {
node: Object,
isconnect: Boolean,
current: String,
readonly: Boolean
},
data() {
return {
@@ -59,6 +67,7 @@
}
}
},
created() {},
methods: {
// 删除节点
deleteNode() {
@@ -143,4 +152,8 @@
opacity: 0;
cursor: crosshair;
}
.node-item-active {
background-color: #4caf50;
color: white;
}
</style>
+174 -38
View File
@@ -1,6 +1,6 @@
<template id="process-flow">
<div class="process-flow-container">
<v-card class="flow-menu pa-4 mr-4" width="140px">
<v-card v-if="!readonly" class="flow-menu pa-4 mr-4" width="140px">
<div class="menu-item mb-3" v-for="item in menuList" draggable="true" @dragstart="drag(item)">
<i :class="item.icon"></i>
<div>{{item.name}}</div>
@@ -16,23 +16,42 @@
</v-btn>
</v-card>
<v-card class="flow-detail pa-4 mr-4">
<div id="flowContent" ref="flowContent" @drop="drop($event)" @dragover="allowDrop($event)" @click="editFlow()"
@dblclick="isConnect=false">
<flow-node v-for="node in data.nodeList" :key="node.id" :node="node" :id="node.id" :isconnect="isConnect"
<v-card class="flow-detail pa-0">
<div id="flowContent" ref="flowContent" @drop="drop($event)" @dragover="allowDrop($event)" @dblclick="isConnect=false">
<div id="flow">
<div
v-show="auxiliaryLine.isShowXLine"
class="auxiliary-line-x"
:style="{
width: auxiliaryLinePos.width,
top: auxiliaryLinePos.y + 'px',
left: auxiliaryLinePos.offsetX + 'px'
}"
></div>
<div
v-show="auxiliaryLine.isShowYLine"
class="auxiliary-line-y"
:style="{
height: auxiliaryLinePos.height,
left: auxiliaryLinePos.x + 'px',
top: auxiliaryLinePos.offsetY + 'px'
}"
></div>
<flow-node v-for="node in data.nodeList" :current="currentNodeId" :key="node.id" :node="node" :id="node.id" :readonly="readonly" :isconnect="isConnect"
@delete-node="deleteNode" @change-node-site="changeNodeSite" @edit-node="editNode">
</flow-node>
</div>
</div>
</v-card>
<v-card class="flow-edit pa-4" v-if="editType">
<v-card v-show="!readonly" class="flow-edit pa-4 ml-4">
<template v-if="editType == 'node' || editType == 'line'">
<div class="mb-3">
<v-icon>mdi-application-edit-outline</v-icon>
<span style="transform: translateY(2px); display: inline-block; ">{{editType == 'node' ? '节点' : '连线'}}属性</span>
</div>
<div class="flow-edit-content">
<edit-node ref="nodeForm" v-show="editType == 'node'" :user="user" :group="group" :tpl="tpl"></edit-node>
<edit-line ref="lineForm" v-show="editType == 'line'" @line-save="lineLabelSave"></edit-line>
<edit-node ref="nodeForm" v-if="editType == 'node'" :user="user" :group="group" :tpl="tpl"></edit-node>
<edit-line ref="lineForm" v-if="editType == 'line'" @line-save="lineLabelSave"></edit-line>
</div>
</template>
<template v-else>
@@ -51,6 +70,7 @@
<link href="/<$ ctx.app.config.appId $>/public/jsplumb/jsplumbtoolkit-defaults.css" rel="stylesheet">
<script src="/<$ ctx.app.config.appId $>/public/jsplumb/jsplumb.min.js"></script>
<script src="/<$ ctx.app.config.appId $>/public/panzoom/panzoom.min.js"></script>
<script type="module">
@@ -86,6 +106,14 @@
return []
}
},
currentNodeId: {
type: String,
default: ''
},
readonly: {
type: Boolean,
default: false
},
},
data: () => {
const connectorPaintStyle = {
@@ -124,6 +152,15 @@
icon: 'el-icon-s-tools'
},
],
auxiliaryLine: { isShowXLine: false, isShowYLine: false }, //对齐辅助线是否显示
auxiliaryLinePos: {
width: "100%",
height: "100%",
offsetX: 0,
offsetY: 0,
x: 20,
y: 20
},
jsPlumb: null, // jsPlumb 实例
index: 1,
// 默认设置参数
@@ -132,7 +169,7 @@
Anchors: ['Top', 'TopCenter', 'TopRight', 'TopLeft', 'Right', 'RightMiddle', 'Bottom', 'BottomCenter',
'BottomRight', 'BottomLeft', 'Left', 'LeftMiddle'
],
Container: 'flowContent',
Container: 'flow',
// 连线的样式 StateMachine、Flowchart,有四种默认类型:Bezier(贝塞尔曲线),Straight(直线),Flowchart(流程图),State machine(状态机)
Connector: 'Straight',
//这个是鼠标拉出来的线的属性
@@ -203,7 +240,7 @@
timer: null, //定时器,判断单双击,
currentConnect: '', //当前的连接线
currentLine: '', //当前连接线数据
editType: '', //编辑的类型
editType: 'flow', //编辑的类型
connectorPaintStyle,
// 鼠标悬浮在连接线上的样式
connectorHoverStyle,
@@ -242,12 +279,10 @@
},
created() { },
mounted() {
console.log('data', this.data)
this.jsPlumb = jsPlumb.getInstance();
this.$nextTick(() => {
this.init();
});
this.editFlow()
},
methods: {
init() {
@@ -266,18 +301,26 @@
// 单点连接线(编辑label),
_this.jsPlumb.bind('click', function (conn, originalEvent) {
if (_this.readonly) {
// 只读模式禁止切换
return
}
//clearTimeout(this.timer);
//this.timer = setTimeout(function () { // 这里采用执行自定义事件的方式
// console.log("click", conn);
// _this.editLine(conn);
//}, 300); // 延迟300ms执行单击事件,区分双击事件
console.log("click", conn);
// console.log("click", conn);
_this.editLine(conn);
console.log(conn.getOverlay("label-1"));
// console.log(conn.getOverlay("label-1"));
//conn.getOverlay("label-1").setLabel('大肥肚'); //初始化label
})
// 双击连接线(删除),
_this.jsPlumb.bind('dblclick', function (conn, originalEvent) {
if (_this.readonly) {
// 只读模式禁止删除
return
}
clearTimeout(this.timer);
console.log("dblclick", conn)
_this.jsPlumb.deleteConnection(conn)
@@ -356,7 +399,7 @@
console.log('beforeDetach', evt)
})
})
this.initPanZoom();
},
// 加载流程图
loadEasyFlow() {
@@ -376,11 +419,6 @@
this.jsPlumb.draggable(node.id, {
containment: 'parent'
})
// this.jsPlumb.addEndpoint(node.id, { anchors: "TopCenter" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "RightMiddle" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "BottomCenter" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "LeftMiddle" }, this.hollowCircle);
// jsPlumb.draggable(node.id)
}
@@ -392,9 +430,10 @@
target: line.to,
endpoint: 'Dot' // 线的类型
}, this.jsplumbConnectOptions);
if (connection && connection.getOverlay("label-1")) {
connection.getOverlay("label-1").setLabel(line.type + '-' +line.label); //初始化label
}
}
this.$nextTick(function () {
this.loadEasyFlowFinish = true
})
@@ -409,12 +448,6 @@
this.jsPlumb.draggable(temp.id, {
containment: 'parent'
})
// this.jsPlumb.addEndpoint(node.id, { anchors: "TopCenter" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "RightMiddle" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "BottomCenter" }, this.hollowCircle);
// this.jsPlumb.addEndpoint(node.id, { anchors: "LeftMiddle" }, this.hollowCircle);
})
},
// 删除线
@@ -459,14 +492,21 @@
},
//编辑节点
editNode(node) {
if (this.readonly) {
// 只读模式、禁止切换节点
return
}
//console.log('编辑节点', nodeId)
this.editType = 'node';
this.currentNodeId = node.id
this.changeLineState("");
this.$nextTick(function () {
this.$refs.nodeForm.init(this.data, node)
})
},
editLine(conn, add = false) {
const _this = this;
this.currentNodeId = ''
_this.currentConnect = conn;
_this.data.lineList.forEach(function (item, index) {
if (item.from == conn.sourceId && item.to == conn.targetId) {
@@ -478,11 +518,6 @@
// 1 - 删除画布连线 | 2 - 清空line的操作属性
// _this.jsPlumb.deleteConnection(conn)
// 从 lineList 数组移除
// _this.data.lineList.splice(index,1);
// 不渲染表单
// return
// 默认修改类型为第一个
if (!preNode.id.includes('start-')) {
if (add) {
@@ -497,6 +532,7 @@
}
_this.currentLine = item;
_this.editType = 'line';
_this.changeLineState("line", item);
_this.$nextTick(function () {
_this.$refs.lineForm.init(item, lineTypeList)
})
@@ -504,9 +540,26 @@
}
});
},
//更改连线状态
changeLineState(nodeId, val) {
let lines = this.jsPlumb.getAllConnections();
if (!nodeId) {
lines.forEach((line) => {
line.canvas.classList.remove("active");
});
return;
} else if (nodeId === "line") {
lines.forEach((line) => {
if (line.targetId === val.to && line.sourceId === val.from) {
line.canvas.classList.add("active");
} else {
line.canvas.classList.remove("active");
}
});
}
},
//删除线
delLine(conn) {
this.jsPlumb.deleteConnection(conn)
},
// 是否具有该线
@@ -533,6 +586,8 @@
top: event.offsetY + 'px',
left: event.offsetX + 'px',
type: this.currentItem.type,
assignType: 'person',
assignValue: ['<$ ctx.userInfo.userId $>'],
lineTypeList: this.currentItem.type === 'start' ? '同意' : this.currentItem.type === 'end' ? '' : '同意,拒绝',
}
this.addNode(temp);
@@ -559,11 +614,59 @@
console.log(this.data);
this.$emit('change-structure', this.data)
},
editFlow() {
this.editType = 'flow';
// this.$nextTick(function () {
// this.$refs.flowEdit.init(this.data.flowInfo);
// })
initPanZoom() {
const mainContainer = this.jsPlumb.getContainer();
const mainContainerWrap = mainContainer.parentNode;
const pan = panzoom(mainContainer, {
smoothScroll: false,
bounds: true,
// autocenter: true,
zoomDoubleClickSpeed: 1,
minZoom: 0.5,
maxZoom: 2,
//设置滚动缩放的组合键,默认不需要组合键
beforeWheel: (e) => {
// console.log(e);
// let shouldIgnore = !e.ctrlKey
// return shouldIgnore
},
beforeMouseDown: function (e) {
// allow mouse-down panning only if altKey is down. Otherwise - ignore
var shouldIgnore = e.ctrlKey;
return shouldIgnore;
}
});
this.jsPlumb.mainContainerWrap = mainContainerWrap;
this.jsPlumb.pan = pan;
// 缩放时设置jsPlumb的缩放比率
pan.on("zoom", (e) => {
const { x, y, scale } = e.getTransform();
this.jsPlumb.setZoom(scale);
//根据缩放比例,缩放对齐辅助线长度和位置
this.auxiliaryLinePos.width = (1 / scale) * 100 + "%";
this.auxiliaryLinePos.height = (1 / scale) * 100 + "%";
this.auxiliaryLinePos.offsetX = -(x / scale);
this.auxiliaryLinePos.offsetY = -(y / scale);
});
pan.on("panend", (e) => {
const { x, y, scale } = e.getTransform();
this.auxiliaryLinePos.width = (1 / scale) * 100 + "%";
this.auxiliaryLinePos.height = (1 / scale) * 100 + "%";
this.auxiliaryLinePos.offsetX = -(x / scale);
this.auxiliaryLinePos.offsetY = -(y / scale);
});
// 平移时设置鼠标样式
mainContainerWrap.style.cursor = "grab";
mainContainerWrap.addEventListener("mousedown", function wrapMousedown() {
this.style.cursor = "grabbing";
mainContainerWrap.addEventListener("mouseout", function wrapMouseout() {
this.style.cursor = "grab";
});
});
mainContainerWrap.addEventListener("mouseup", function wrapMouseup() {
this.style.cursor = "grab";
});
}
}
})
@@ -591,6 +694,25 @@
width: 100%;
height: 100%;
position: relative;
background-image: url("/<$ ctx.app.config.appId $>/public/images/point.png");
background-repeat: repeat;
overflow: hidden;
cursor: grab;
}
#flowContent #flow {
position: relative;
width: 100%;
height: 100%;
}
#flowContent #flow .auxiliary-line-x {
position: absolute;
border: 0.5px dashed #2ab1e8;
z-index: 9999;
}
#flowContent #flow .auxiliary-line-y {
position: absolute;
border: 0.5px dashed #2ab1e8;
z-index: 9999;
}
.item {
@@ -658,4 +780,18 @@
.csslabel .label-text {
background-color: white;
}
.jtk-connector.active {
z-index: 9999;
}
.jtk-connector.active path {
stroke: #150042;
stroke-width: 1.5;
animation: ring;
animation-duration: 3s;
animation-timing-function: linear;
animation-iteration-count: infinite;
stroke-dasharray: 5;
}
</style>
+13 -27
View File
@@ -3,7 +3,6 @@
{% block vue_template %}
<jh-layout-v3>
<template slot="serverSearch">
<v-row class="ma-0 align-center" :class="{'pa-0': isMobile, 'pa-2': !isMobile}" style="justify-content: end">
<v-col cols="12" sm="12" xs="5" md="3" xl="2" class="pb-3" :class="{'pl-0': isMobile, 'pt-0': isMobile}">
@@ -20,12 +19,12 @@
</v-btn>
</v-col>
</v-row>
</template>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-data-table :headers="headers"
<v-data-table
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
@@ -58,8 +57,8 @@
<v-row :class="{'px-10': !isMobile, 'px-3': isMobile, 'pb-7': isMobile}">
<v-col cols="12" sm="12" md="12" :class="{'pa-0': isMobile, 'px-3': isMobile, 'pt-6': isMobile}">
<span class="inputLabel">任务标题</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="任务标题" v-model="editItem['taskTitle']">
<span class="inputLabel">课程标题</span>
<v-text-field class="cus-v-input mr-2" dense filled single-line label="课程标题" v-model="editItem['taskTitle']">
</v-text-field>
</v-col>
@@ -95,7 +94,6 @@
</v-row>
</v-form>
</v-navigation-drawer>
</jh-layout-v3>
{% endblock %}
@@ -114,10 +112,6 @@
requireRules: [
v => !!v || 'This is required',
],
constantCollection: {
categoryList: [],
},
serverSearchInput: {
workflowName: null
},
@@ -126,24 +120,17 @@
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{ text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed' },
{ text: "任务ID", value: "workflowId", width: 120 },
{ text: "任务名称", value: "workflowName", width: 120 },
{ text: "任务分类ID", value: "workflowCategory", width: 120 },
{ text: "任务节点", value: "workflowConfig", width: 120 },
{ text: "ID", value: "id", width: 100, class: 'fixed', cellClass: 'fixed' },
{ text: "课程ID", value: "workflowId", width: 120 },
{ text: "课程名称", value: "workflowName", width: 150 },
{ text: "课程分类ID", value: "workflowCategory", width: 120 },
{ text: "备注", value: "workflowRemark", width: 120 },
{ text: "操作者", value: "operationByUser", width: 120 },
{ text: "操作时间", value: "operationAt", width: 250 },
{ text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed' },
],
currentClickButton: { title: '新增', action: 'add' },
editItem: {},
tplItem: {},
tableButtonList: [
{ text: '修改', buttonType: 'edit', color: 'success', action: 'startUpdateItem' },
{ text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem' },
],
dialogSaveInfoAction: ''
}),
async created() {
@@ -157,7 +144,7 @@
await this.refreshTableData(uiActionData);
break;
case 'startCreateItem':
await this.clearItemData(uiActionData);
await this.preprocessItemData(uiActionData);
await this.openCreateItemDialog(uiActionData);
break;
case 'createItem':
@@ -177,7 +164,7 @@
async refreshTableData() {
this.isTableLoading = true;
const serverSearchInput = _.pickBy(this.serverSearchInput, value => !!value);
const { rows } = (await window.jianghuAxios({
const { data: { appData: { resultData: {rows} } } } = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskCreateManagement',
@@ -188,19 +175,19 @@
orderBy: [{ column: 'operationAt', order: 'desc' }]
}
}
})).data.appData.resultData;
});
rows.forEach(row => {
if(row.workflowConfig) {
row.workflowConfig = JSON.parse(row.workflowConfig).nodeList.map(item => [item.label, item.lineTypeList]);
row.workflowForm = JSON.parse(row.workflowForm || '[]');
}
row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss');
})
this.tableDataFromBackend = rows;
this.isTableLoading = false;
},
// startCreateItem
clearItemData({item: { workflowForm, workflowConfig, workflowId }}) {
preprocessItemData({item: { workflowForm, workflowConfig, workflowId }}) {
const workflowFormData = {};
workflowForm.forEach(e => {
workflowFormData[e.id] = '';
@@ -217,7 +204,6 @@
this.dialogSaveInfoAction = 'createItem';
},
// createItem
async confirmCreateItemDialog() {
if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) {
throw new Error("[confirmCreateFormDialog] 否");
+163 -119
View File
@@ -5,110 +5,136 @@
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-stepper v-model="step" class="mb-4 elevation-0 pa-0 ma-0 pt-4" :class="{'px-10': !isMobile, 'px-3': isMobile}">
<v-stepper-header class="elevation-0 pa-0 ma-0">
<v-card :class="{'px-2': isMobile}" class="pb-10 mb-10">
<!-- <v-row class="pa-0 ma-0 pt-8" :class="{'px-10': !isMobile, 'px-3': isMobile}">
<v-col cols="12 d-flex align-center" style="justify-content: space-between;">
<template v-for="(item, index) in taskStepperList">
<v-divider v-if="index > 0" class="mx-1"></v-divider>
<v-stepper-step :complete="step > item.value" :step="item.value" class="pa-4" color="success">
{{ item.text }}
</v-stepper-step>
<div>
<div v-for="e in item" class="d-flex align-center ">
<v-icon v-if="e.type === 'history' && e.id !== currentNode.id" color="primary">mdi-check-circle</v-icon>
<v-icon v-else-if="e.id === currentNode.id" color="primary">mdi-send-circle</v-icon>
<v-icon v-else >mdi-circle</v-icon>
{{e.text}}
</div>
</div>
<v-divider class="mx-8" v-if="index < (taskStepperList.length - 1)"></v-divider>
</template>
</v-stepper-header>
</v-stepper>
<v-row class="pa-0 ma-0" :class="{'px-10': !isMobile, 'px-3': isMobile}"><v-subheader>表单信息</v-subheader></v-row>
</v-col>
</v-row> -->
<v-row class="pa-0 ma-0" :class="{'px-10': !isMobile, 'px-3': isMobile}">
<v-col :cols="taskTpl.prev ? 6 : 12" v-for="(key, i) in ['prev', 'input']" :key="i"
v-if="isAccess && taskTpl[key]">
<v-col cols="6">
<v-subheader>流程预览</v-subheader>
<process-flow
v-if="taskHistoryConfigList"
:data="taskHistoryConfigList"
:current-node-id="currentNode.id"
readonly
style="height: 450px;border: 1px solid rgb(240, 240, 240); border-radius: 6px;">
</process-flow>
</v-col>
<v-col cols="6" v-if="isAccess">
<v-subheader>表单信息</v-subheader>
<v-row>
<v-col cols="12" class=" pb-3" v-for="(formItem, index) in taskTpl.formList" :key="index"
v-if="taskTpl[key] && !(currentNode.formIdHidden || []).includes(formItem.id)">
<!-- <v-subheader inset > {{ key === 'prev' ? '历史表单' : '当前' }} </v-subheader> -->
v-if="taskTpl.input && !(currentNode.formIdHidden || []).includes(formItem.id)">
<span class="inputLabel">{{formItem.component.outline}}</span>
<template v-if="formItem.component.type === 'singleSelect'">
<v-list-item-title class="formItem-title">{{ formTitlePrefix(formItem.component.outline, key) }}
<v-list-item-title class="formItem-title">{{ formTitlePrefix(formItem.component.outline, 'input') }}
</v-list-item-title>
<v-radio-group v-model="taskTpl[key][formItem.id]">
<v-radio-group v-model="taskTpl.input[formItem.id]">
<v-radio hide-details v-for="(option, optionIndex) in formItem.component.property.selectOptionList"
:disabled="key === 'prev' || !(currentNode.formId || []).includes(formItem.id)"
:key="optionIndex"
:label="option.value"></v-radio>
:disabled="!(currentNode.formId || []).includes(formItem.id)"
:key="optionIndex"></v-radio>
</v-radio-group>
</template>
<template v-if="formItem.component.type === 'multipleSelect'">
<v-list-item-title class="formItem-title">{{ formTitlePrefix(formItem.component.outline, key) }}
<v-list-item-title class="formItem-title">{{ formTitlePrefix(formItem.component.outline, 'input') }}
</v-list-item-title>
<div v-for="(option, optionIndex) in formItem.component.property.selectOptionList" :key="optionIndex">
<v-checkbox style="margin-top: 0px;"
:disabled="key === 'prev' || !(currentNode.formId || []).includes(formItem.id)"
:label="option.value" :value="option.value"
v-model="taskTpl[key][formItem.id]" hide-details
:disabled="!(currentNode.formId || []).includes(formItem.id)"
:value="option.value"
v-model="taskTpl.input[formItem.id]" hide-details
color="red"></v-checkbox>
</div>
</template>
<template v-if="formItem.component.type === 'textarea'">
<v-textarea hide-details dense outlined placeholder="请输入"
:label="formTitlePrefix(formItem.component.outline, key)"
:disabled="key === 'prev' || !(currentNode.formId || []).includes(formItem.id)"
v-model="taskTpl[key][formItem.id]" :rows="4"/>
<v-textarea hide-details dense filled single-line placeholder="请输入"
:disabled="!(currentNode.formId || []).includes(formItem.id)"
v-model="taskTpl.input[formItem.id]" :rows="4"/>
</template>
<template v-if="formItem.component.type === 'input'">
<v-text-field class="cus-v-input" placeholder="请输入" dense outlined
:label="formTitlePrefix(formItem.component.outline, key)"
:disabled="key === 'prev' || !(currentNode.formId || []).includes(formItem.id)"
v-model="taskTpl[key][formItem.id]"></v-text-field>
<v-text-field class="cus-v-input" placeholder="请输入" dense filled single-line
:disabled="!(currentNode.formId || []).includes(formItem.id)"
v-model="taskTpl.input[formItem.id]"></v-text-field>
</template>
</v-col>
</v-row>
</v-col>
</v-row>
<v-row class="pa-0 ma-0" :class="{'px-10': !isMobile, 'px-3': isMobile}" v-if="isAccess">
<v-col cols="12">
<v-textarea dense outlined placeholder="请输入备注信息" hide-details v-model="editItem.taskComment" color="success"
<v-col cols="12" v-if="isAccess">
<span class="inputLabel">备注信息</span>
<v-textarea dense filled single-line placeholder="请输入备注信息" hide-details v-model="editItem.taskComment" color="success"
:disabled="currentNode && currentNode.id && currentNode.id.includes('end-')" :rows="4"/>
</v-col>
<v-col cols="12" style="text-align: center;" class="mb-3">
<v-col v-if="isAccess" cols="12" style="text-align: center;" class="mb-3">
<v-btn color="success" class="mx-4" v-for="item in nextLineList" @click="doUiAction('submitNode', item.type)">
{{ item.type }}-{{ item.label }}
{{ item.type }}
</v-btn>
</v-col>
</v-row>
<v-list three-line subheader class="pb-10" :class="{'px-10': !isMobile, 'px-3': isMobile, 'pb-7': isMobile}">
<v-subheader>任务流转历史</v-subheader>
<v-divider></v-divider>
<div class="pa-2">
<v-simple-table dense>
<template v-slot:default>
<thead>
<tr>
<th class="text-left">
节点
</th>
<th class="text-left">
流转
</th>
<th class="text-left">
处理人
</th>
<th class="text-left">
时长
</th>
</tr>
</thead>
<tbody>
<tr v-for="item in taskHistoryList" :key="item.name">
<td>{{ item.taskExplain }}</td>
<td>{{ item.taskLineLabel }}</td>
<td>{{ item.operationByUser }}</td>
<td>{{ item.taskCostDuration }}秒</td>
</tr>
</tbody>
</v-col>
</v-row>
<v-row class="pa-0 ma-0" :class="{'px-10': !isMobile, 'px-3': isMobile}">
</v-row>
<v-card-text class="pl-10">
课程流转历史
</v-card-text>
<v-data-table fixed-header dense
:headers="headers"
:items="taskHistoryList"
:items-per-page="-1"
mobile-breakpoint="0"
:loading="isTableLoading"
checkbox-color="success"
:class="{'mx-2': isMobile}"
color="success"
hide-default-footer
class="elevation-0 mx-10 flex-fill d-flex flex-column">
<template v-slot:item.taskCostDuration="{ item }">
{{timeFormat(item.taskCostDuration)}}
</template>
</v-simple-table>
</div>
</v-list>
<template v-slot:item.action="{ item }">
<v-btn small class="mr-2" @click="viewInput({item})">
查看
</v-btn>
</template>
</v-data-table>
<v-dialog
v-model="dialog"
max-width="500px"
>
<v-card>
<v-card-title>
<span class="text-h5"></span>
</v-card-title>
<v-card-text>
<v-container>
<v-row>
<v-col cols="12" sm="12" md="12" v-for="(item, index) in editItem.formList" >
<span>{{item.component.outline}}:</span><span>{{editItem.input[item.id]}}</span>
</v-col>
</v-row>
</v-container>
</v-card-text>
</v-card>
</v-dialog>
</v-card>
</jh-layout-v3>
@@ -116,6 +142,11 @@
{% block vue_body %}
{% include 'component/flow/processFlow.html' %}
{% include 'component/flow/flowNode.html' %}
{% include 'component/flow/editFlow.html' %}
{% include 'component/flow/editLine.html' %}
{% include 'component/flow/editNode.html' %}
<script type="module">
new Vue({
el: '#app',
@@ -123,47 +154,18 @@ new Vue({
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
step: 1,
// 表格相关数据
isFormValid: true,
requireRules: [
v => !!v || 'This is required',
],
constantCollection: {
categoryList: [],
},
serverSearchInput: {
processName: null
},
isEditDrawerShow: false,
searchInput: null,
dialog: false,
isTableLoading: true,
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "任务ID", value: "taskId", width: 120},
{text: "流程节点版本ID", value: "processVersionId", width: 120},
{text: "任务名称", value: "taskTitle", width: 120},
{text: "任务状态:running 执行中;deny 拒绝;end 结束", value: "taskStatus", width: 120},
{text: "当前执行中节点", value: "taskCurrentNode", width: 120},
{text: "申请人", value: "taskApplier", width: 120},
{text: "当前执行的处理人员,用逗号分隔", value: "taskProcessorList", width: 120},
{text: "所有相关人员,用逗号分隔", value: "taskRelatedPersonList", width: 120},
{text: "催单次数", value: "taskUrgeCount", width: 120},
{text: "最后催单时间", value: "taskUrgeLastTime", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
{text: "节点", value: "taskExplain", width: 120},
{text: "流转", value: "taskHandleDesc", width: 120},
{text: "课程名称", value: "operationByUser", width: 120},
{text: "备注", value: "taskComment", width: 120},
{text: "处理时长/秒", value: "taskCostDuration", width: 120},
{text: "表单明细", value: "action", width: 120},
],
currentClickButton: {title: '新增', action: 'add'},
editItem: {},
tableButtonList: [
{text: '修改', buttonType: 'edit', color: 'success', action: 'startUpdateItem'},
{text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
],
dialogSaveInfoAction: '',
taskId: '',
isAccess: [],
@@ -171,12 +173,13 @@ new Vue({
taskHistoryList: [],
taskTpl: [],
taskStepperList: [],
currentNode: {}
currentNode: {},
taskHistoryConfigList: null
}),
watch: {},
async created() {
const searchParams = new URLSearchParams(location.search.substring(1));
this.taskId = searchParams.get('taskId');
this.taskId = searchParams.get('id');
await this.getTaskHistoryList()
},
mounted() {
@@ -186,7 +189,7 @@ new Vue({
switch (uiActionId) {
case 'submitNode':
await this.submitNode(uiActionData);
await this.getTaskHistoryList(uiActionData);
// await this.getTaskHistoryList(uiActionData);
break;
default:
console.error("[doUiAction] uiActionId not find", { uiActionId });
@@ -198,30 +201,41 @@ new Vue({
* 获取表格数据
*/
async getTaskHistoryList() {
this.isTableLoading = true;
const {
data: {
appData: {
resultData: {
taskHistoryList,
taskStepperList,
taskTpl,
isAccess,
nextLineList,
step,
currentNode
} = (await window.jianghuAxios({
currentNode,
taskHistoryConfigList
}
}
}
} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskHistoryManagement',
actionId: 'getTaskHistoryInfo',
actionData: {taskId: this.taskId},
actionData: {id: this.taskId},
}
}
})).data.appData.resultData;
});
taskHistoryList.forEach(e => {
e.taskFormInput = JSON.parse(e.taskFormInput);
})
this.taskHistoryList = taskHistoryList;
this.taskTpl = taskTpl;
this.taskStepperList = taskStepperList;
this.currentNode = currentNode;
this.isAccess = isAccess;
this.nextLineList = nextLineList;
this.step = step;
this.nextLineList = _.uniqBy(nextLineList, 'type') ;
this.taskHistoryConfigList = taskHistoryConfigList;
this.isTableLoading = false;
},
/**
@@ -234,11 +248,18 @@ new Vue({
appData: {
pageId: 'taskHistoryManagement',
actionId: 'submitNode',
actionData: {type, taskId: this.taskId, taskComment: this.editItem.taskComment, taskTpl: this.taskTpl}
actionData: {type, id: this.taskId, taskComment: this.editItem.taskComment, taskTpl: this.taskTpl}
}
}
})
await window.vtoast.success("提交数据成功");
setTimeout(function() {
if (document.referrer) {
location.href = document.referrer;
} else {
history.back();
}
}, 1000);
},
formTitlePrefix(title, type) {
@@ -246,11 +267,34 @@ new Vue({
return '历史-' + title;
}
return title;
},
viewInput({item}) {
this.editItem = item.taskFormInput;
this.dialog = true;
},
timeFormat(time) {
if (time == 0) {
return ''
} else if (time < 60) {
return time + ' 秒';
} else if (time < 3600) {
const s = time % 60;
return parseInt(time / 60) + ' 分' + s + ' 秒';
} else if (time < 86400) {
const m = time % 3600;
return parseInt(time / 3600) + ' 小时' + parseInt(m / 60) + ' 分';
} else {
const m = time % 86400;
return parseInt(time / 86400) + ' 天' + parseInt(m / 3600) + ' 小时';
}
}
}
})
</script>
<style scoped>
.v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>td, .v-data-table--dense>.v-data-table__wrapper>table>tbody>tr>th, .v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>td, .v-data-table--dense>.v-data-table__wrapper>table>tfoot>tr>th, .v-data-table--dense>.v-data-table__wrapper>table>thead>tr>td, .v-data-table--dense>.v-data-table__wrapper>table>thead>tr>th {
height: 32px;
}
</style>
{% endblock %}
+18 -20
View File
@@ -3,24 +3,21 @@
{% block vue_template %}
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
</v-col>
<v-spacer></v-spacer>
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
single-line></v-text-field>
</v-col>
</v-row>
<v-data-table :headers="headers"
<v-data-table
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
@@ -37,7 +34,7 @@
</v-btn>
</template>
</v-data-table>
</v-card>
</v-card>
</jh-layout-v3>
{% endblock %}
@@ -61,16 +58,14 @@ new Vue({
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "任务ID", value: "taskId", width: 120},
{text: "任务名称", value: "taskTitle", width: 120},
{text: "任务状态", value: "taskStatus", width: 120},
{text: "当前执行中节点ID", value: "taskConfigId", width: 120},
{text: "课程ID", value: "taskId", width: 120},
{text: "课程名称", value: "taskTitle", width: 120},
{text: "课程状态", value: "taskStatus", width: 120},
{text: "当前节点ID", value: "taskConfigId", width: 200},
{text: "申请人", value: "taskInitUser", width: 120},
{text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
{text: "处理人员", value: "taskEditUserList", width: 120},
{text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
{text: "备注", value: "taskComment", width: 120},
{text: "任务创建人", value: "createByUser", width: 120},
{text: "课程创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
@@ -101,7 +96,7 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const result = await window.jianghuAxios({
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
@@ -113,12 +108,15 @@ new Vue({
}
});
this.tableDataFromBackend = result.data.appData.resultData.rows;
rows.forEach(row => {
row.operationAt = dayjs(row.operationAt).format('YYYY-MM-DD HH:mm:ss');
})
this.tableDataFromBackend = rows;
this.isTableLoading = false;
},
toTaskHistory({item}) {
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?id=${item.id}`;
}
}
})
-176
View File
@@ -1,176 +0,0 @@
{% extends 'template/jhTemplateV3.html'%}
{% block vue_template %}
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
</v-col>
<v-spacer></v-spacer>
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
single-line></v-text-field>
</v-col>
</v-row>
<v-data-table fixed-header
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
:items-per-page="20"
mobile-breakpoint="0"
:loading="isTableLoading"
checkbox-color="success"
:class="{'mx-2': isMobile}"
color="success"
class="elevation-0 mt-0 flex-fill d-flex flex-column">
<template v-slot:item.action="{ item }">
<v-btn small class="mr-2" :class="tableButton.color" v-for="tableButton of tableButtonList"
@click="doUiAction(tableButton.action, {item})">
{{ tableButton.text }}
</v-btn>
</template>
</v-data-table>
</v-card>
</jh-layout-v3>
{% endblock %}
{% block vue_body %}
<script type="module">
new Vue({
el: '#app',
template: '#app-template',
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
// 表格相关数据
isFormValid: true,
requireRules: [
v => !!v || 'This is required',
],
constantCollection: {},
serverSearchInput: {
studentId: null,
classId: null
},
isEditDrawerShow: false,
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "任务ID", value: "taskId", width: 120},
{text: "任务名称", value: "taskTitle", width: 120},
{text: "任务状态", value: "taskStatus", width: 120},
{text: "当前执行中节点ID", value: "taskConfigId", width: 120},
{text: "申请人", value: "taskInitUser", width: 120},
{text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
{text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
{text: "备注", value: "taskComment", width: 120},
{text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 200, class: 'fixed', cellClass: 'fixed'},
],
editItem: {},
tableButtonList: [
{text: '查看', buttonType: 'view', color: 'success', action: 'toTaskHistory'},
{text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
],
dialogSaveInfoAction: ''
}),
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
mounted() {
},
methods: {
async doUiAction(uiActionId, uiActionData) {
switch (uiActionId) {
case 'refreshTableData':
await this.refreshTableData(uiActionData);
break;
case 'deleteItem':
await this.confirmDeleteItemDialog(uiActionData);
await this.doDeleteItem(uiActionData);
await this.refreshTableData(uiActionData);
break;
case 'toTaskHistory':
await this.toTaskHistory(uiActionData);
break;
default:
console.error("[doUiAction] uiActionId not find", { uiActionId });
break;
}
},
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
});
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
// updateItem
async confirmDeleteItemDialog() {
if (await window.confirmDialog({title: "删除", content: "确定删除吗?"}) === false) {
throw new Error("[confirmDeleteItemDialog] 否");
}
},
/**
* 删除数据
*/
async doDeleteItem({item}) {
const {id} = item;
await window.vtoast.loading("删除数据");
await window.jianghuAxios({
data: {
appData: {
pageId: 'taskManagement',
actionId: 'deleteItem',
actionData: {},
where: {id: id}
}
}
});
await window.vtoast.success("删除数据成功");
},
// 跳转
toTaskHistory({item}) {
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
</script>
<style scoped>
</style>
{% endblock %}
-129
View File
@@ -1,129 +0,0 @@
{% extends 'template/jhTemplateV3.html'%}
{% block vue_template %}
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
</v-col>
<v-spacer></v-spacer>
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
single-line></v-text-field>
</v-col>
</v-row>
<v-data-table fixed-header
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
:items-per-page="20"
mobile-breakpoint="0"
:loading="isTableLoading"
checkbox-color="success"
:class="{'mx-2': isMobile}"
class="elevation-0 mt-0 flex-fill d-flex flex-column">
<template v-slot:item.action="{ item }">
<v-btn small color="success" class="mr-2" @click="doUiAction('toTaskHistory', {item})">
查看
</v-btn>
</template>
</v-data-table>
</v-card>
</jh-layout-v3>
{% endblock %}
{% block vue_body %}
<script type="module">
new Vue({
el: '#app',
template: '#app-template',
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
// 表格相关数据
requireRules: [
v => !!v || 'This is required',
],
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "任务ID", value: "taskId", width: 120},
{text: "任务名称", value: "taskTitle", width: 120},
{text: "任务状态", value: "taskStatus", width: 120},
{text: "当前执行中节点ID", value: "taskConfigId", width: 120},
{text: "申请人", value: "taskInitUser", width: 120},
{text: "当前执行的处理人员,用逗号分隔", value: "taskEditUserList", width: 120},
{text: "所有相关人员,用逗号分隔", value: "taskViewUserList", width: 120},
{text: "备注", value: "taskComment", width: 120},
{text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
],
}),
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
mounted() {
},
methods: {
async doUiAction(uiActionId, uiActionData) {
switch (uiActionId) {
case 'refreshTableData':
await this.refreshTableData(uiActionData);
break;
case 'toTaskHistory':
await this.toTaskHistory(uiActionData);
break;
default:
console.error("[doUiAction] uiActionId not find", { uiActionId });
break;
}
},
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskICreateManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
});
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
toTaskHistory({item}) {
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
</script>
<style scoped>
</style>
{% endblock %}
-132
View File
@@ -1,132 +0,0 @@
{% extends 'template/jhTemplateV3.html'%}
{% block vue_template %}
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
<v-col cols="12" xs="4" sm="4" md="4" xl="4" class="pl-0">
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
</v-col>
<v-spacer></v-spacer>
<v-col cols="12" xs="8" sm="4" md="3" xl="3" class="px-0">
<v-text-field v-model="searchInput" prefix="表格过滤:" color="success" class="cus-v-input" dense filled
single-line></v-text-field>
</v-col>
</v-row>
<v-data-table fixed-header
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
:footer-props="{ itemsPerPageOptions: [20, 40, 60, 100, -1] }"
:items-per-page="20"
mobile-breakpoint="0"
:loading="isTableLoading"
checkbox-color="success"
:class="{'mx-2': isMobile}"
color="success"
class="elevation-0 mt-0 flex-fill d-flex flex-column">
<template v-slot:item.action="{ item }">
<v-btn small color="success" class="mr-2" @click="doUiAction('toTaskHistory', {item})">
查看
</v-btn>
</template>
</v-data-table>
</v-card>
</jh-layout-v3>
{% endblock %}
{% block vue_body %}
<script type="module">
new Vue({
el: '#app',
template: '#app-template',
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
// 表格相关数据
requireRules: [
v => !!v || 'This is required',
],
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "任务ID", value: "taskId", width: 120},
{text: "任务名称", value: "taskTitle", width: 120},
{text: "任务状态", value: "taskStatus", width: 120},
{text: "当前执行中节点ID", value: "taskConfigId", width: 120},
{text: "申请人", value: "taskInitUser", width: 120},
{text: "当前执行的处理人员", value: "taskEditUserList", width: 120},
{text: "所有相关人员", value: "taskViewUserList", width: 120},
{text: "备注", value: "taskComment", width: 120},
{text: "任务创建人", value: "createByUser", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 120, class: 'fixed', cellClass: 'fixed'},
],
}),
watch: {},
async created() {
await this.doUiAction('refreshTableData');
},
mounted() {
},
methods: {
async doUiAction(uiActionId, uiActionData) {
switch (uiActionId) {
case 'refreshTableData':
await this.refreshTableData(uiActionData);
break;
case 'toTaskHistory':
await this.toTaskHistory(uiActionData);
break;
default:
console.error("[doAction] uiActionId not find", { uiActionId });
break;
}
},
/**
* 获取表格数据
*/
async refreshTableData() {
this.isTableLoading = true;
const result = await window.jianghuAxios({
data: {
appData: {
pageId: 'taskUpcomingManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
});
this.tableDataFromBackend = result.data.appData.resultData.rows;
this.isTableLoading = false;
},
toTaskHistory({item}) {
location.href = `/${window.appInfo.appId}/page/taskHistoryManagement?taskId=${item.taskId}`;
}
}
})
</script>
<style scoped>
</style>
{% endblock %}
+32 -44
View File
@@ -2,39 +2,38 @@
{% block vue_template %}
<jh-layout-v3>
<template slot="serverSearch">
<template slot="serverSearch">
<div class="mt-4" style="text-align: right;">
<v-btn color="success" @click="doUiAction(dialogSaveInfoAction)" style="height: 40px">
保存
</v-btn>
</div>
</template>
</template>
<template slot-scope="props">
<template slot-scope="props">
<v-card class="mt-3 mb-12" :class="{'pa-8': !props.ismobile, 'pa-4': props.ismobile}">
<v-row>
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="流程名:" v-model="editItem['workflowName']" :rules="requireRules">
</v-text-field>
</v-col>
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="分类:" v-model="editItem['workflowCategory']" :rules="requireRules">
</v-text-field>
</v-col>
<v-col cols="12" sm="12" md="3" xl="3" class=" pb-3">
<v-text-field class="cus-v-input mr-2" dense filled single-line color="success" prefix="备注:"
v-model="editItem['workflowRemark']">
</v-text-field>
</v-col>
</v-row>
</v-card>
<div class=" pb-4" style="font-size: 18px; font-weight: bold">模板设置</div>
<tpl-form-design :form="editItem.workflowForm" v-if="!loading">
</tpl-form-design>
<div class="pt-8 pb-4" style="font-size: 18px; font-weight: bold">流程设置</div>
<process-flow v-if="!loading" :data="editItem.workflowConfig" :user="constantCollection.userList"
:group="constantCollection.groupList" :tpl="constantCollection.workflowFormList">
@@ -46,7 +45,7 @@
size="64"
></v-progress-circular>
</v-overlay>
</template>
</template>
</jh-layout-v3>
{% endblock %}
@@ -67,8 +66,6 @@ new Vue({
template: '#app-template',
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
// 表格相关数据
requireRules: [
v => !!v || 'This is required',
],
@@ -77,10 +74,8 @@ new Vue({
groupList: [],
workflowFormList: []
},
editItem: {},
dialogSaveInfoAction: 'createItem',
dialog: false,
loading: false,
}),
watch: {
@@ -127,17 +122,19 @@ new Vue({
break;
}
},
buildEditItem() {
const item = {
workflowId: this.editItem.workflowId || null,
workflowName: this.editItem.workflowName,
workflowRemark: this.editItem.workflowRemark,
workflowCategory: this.editItem.workflowCategory,
workflowConfig: this.editItem.workflowConfig ? JSON.stringify(this.editItem.workflowConfig) : null,
workflowForm: this.editItem.workflowForm ? JSON.stringify(this.editItem.workflowForm) : null,
const { id, workflowId, workflowName, workflowRemark, workflowCategory, workflowConfig, workflowForm } = this.editItem;
let item = {
workflowName,
workflowRemark,
workflowCategory,
workflowId: workflowId || null,
workflowConfig: workflowConfig ? JSON.stringify(workflowConfig) : null,
workflowForm: workflowForm ? JSON.stringify(workflowForm) : null,
}
if (this.editItem.id) {
item.id = this.editItem.id;
if (id) {
item.id = id;
}
return item;
},
@@ -167,10 +164,10 @@ new Vue({
},
/**
* 获取表格数据
* 获取user数据
*/
async getUserList() {
const { rows } = (await window.jianghuAxios({
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -179,16 +176,16 @@ new Vue({
where: {},
}
}
})).data.appData.resultData;
});
this.constantCollection.userList = rows.map(e => {
return {text: e.username, value: e.userId}
})
},
/**
* 获取表格数据
* 获取group数据
*/
async getGroupList() {
const { rows } = (await window.jianghuAxios({
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -197,23 +194,21 @@ new Vue({
where: {},
}
}
})).data.appData.resultData;
});
this.constantCollection.groupList = rows.map(e => {
return {text: e.groupName, value: e.groupId}
});
},
// startCreateItem
async clearItemData() {
this.dialogSaveInfoAction = 'createItem';
this.editItem = {workflowForm: [], workflowConfig: {lineList: [], nodeList: []}};
},
async syncEditItem() {
const _this = this;
this.loading = true;
this.dialogSaveInfoAction = 'updateItem';
const { rows } = (await window.jianghuAxios({
const {data: {appData: {rows}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -221,7 +216,7 @@ new Vue({
where: {id: this.editItem.id},
}
}
})).data.appData.resultData;
});
if (!rows.length) {
this.clearItemData();
} else {
@@ -230,12 +225,11 @@ new Vue({
item.workflowForm = item.workflowForm ? JSON.parse(item.workflowForm) : [];
this.editItem = item;
}
setTimeout(function() {
_this.loading = false;
setTimeout(() => {
this.loading = false;
}, 500)
},
// createItem
async confirmCreateItemDialog() {
if (await window.confirmDialog({title: "新增", content: "确定新增吗?"}) === false) {
throw new Error("[confirmCreateFormDialog] 否");
@@ -249,7 +243,7 @@ new Vue({
delete this.editItem.id;
const item = this.buildEditItem();
await window.vtoast.loading("新增数据");
const { rows } = (await window.jianghuAxios({
const { data: { appData: { resultData: { rows } } } } = await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
@@ -257,13 +251,12 @@ new Vue({
actionData: item
}
}
})).data.appData.resultData;
})
this.editItem.id = rows[0];
history.pushState({}, '', `?id=${rows[0]}`);
await window.vtoast.success("新增数据成功");
},
// updateItem
async confirmUpdateItemDialog() {
if (await window.confirmDialog({title: "修改", content: "确定修改吗?"}) === false) {
throw new Error("[confirmUpdateItemDialog] 否");
@@ -271,7 +264,7 @@ new Vue({
},
/**
* 保存数据
* 修改数据
*/
async doUpdateItem() {
const {id, ...item} = this.buildEditItem();
@@ -293,11 +286,6 @@ new Vue({
</script>
<style scoped>
.v-dialog--fullscreen .v-sheet {
height: unset;
top: unset;
position: unset;
background: white;
}
</style>
{% endblock %}
+12 -35
View File
@@ -3,10 +3,9 @@
{% block vue_template %}
<jh-layout-v3>
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<!-- 页面主要内容 -->
<v-card :class="{'px-2': isMobile}">
<v-row class="ma-0 align-center flex-none pt-0 " :class="{'pa-4': !isMobile, 'pb-0': !isMobile, 'pa-2': isMobile}">
<v-col cols="12" xs="12" sm="4" md="4" xl="4" class="pl-0">
<v-btn color="success" dark class="elevation-0 mr-2" @click="doUiAction('createItem')">新增</v-btn>
<span class="body-2">共{{ tableDataFromBackend.length }}条记录</span>
@@ -17,7 +16,9 @@
single-line></v-text-field>
</v-col>
</v-row>
<v-data-table fixed-header
<v-data-table
fixed-header
:headers="headers"
:items="tableDataFromBackend"
:search="searchInput"
@@ -29,7 +30,6 @@
:class="{'mx-2': isMobile}"
color="success"
class="elevation-0 mt-0 flex-fill d-flex flex-column">
<template v-slot:item.action="{ item }">
<v-btn small class="mr-2" :class="tableButton.color" v-for="tableButton of tableButtonList"
@click="doUiAction(tableButton.action, {item})">
@@ -37,7 +37,7 @@
</v-btn>
</template>
</v-data-table>
</v-card>
</v-card>
</jh-layout-v3>
{% endblock %}
@@ -51,38 +51,23 @@ new Vue({
vuetify: new Vuetify(),
data: () => ({
isMobile: window.innerWidth < 600,
// 表格相关数据
requireRules: [
v => !!v || 'This is required',
],
serverSearchInput: {
studentId: null,
classId: null
},
isEditDrawerShow: false,
searchInput: null,
isTableLoading: true,
tableDataFromBackend: [],
headers: [
{text: "ID", value: "id", width: 120, class: 'fixed', cellClass: 'fixed'},
{text: "流程ID", value: "workflowId", width: 120},
{text: "流程名", value: "workflowName", width: 120},
{text: "流程名", value: "workflowName", width: 200},
{text: "分类ID", value: "workflowCategory", width: 120},
{text: "备注", value: "workFlowRemark", width: 120},
{text: "操作者", value: "operationByUser", width: 120},
{text: "操作时间", value: "operationAt", width: 250},
{text: '操作', value: 'action', align: 'center', sortable: false, width: 160, class: 'fixed', cellClass: 'fixed'},
],
currentClickButton: {title: '新增', action: 'add'},
editItem: {},
tableButtonList: [
{text: '编辑', buttonType: 'edit', color: 'success', action: 'updateItem'},
{text: '删除', buttonType: 'delete', color: 'error', action: 'deleteItem'},
],
dialogSaveInfoAction: '',
dialog: false,
]
}),
async created() {
await this.doUiAction('refreshTableData');
@@ -118,22 +103,19 @@ new Vue({
*/
async refreshTableData() {
this.isTableLoading = true;
const serverSearchInput = _.pickBy(this.serverSearchInput, value => !!value);
const { rows } = (await window.jianghuAxios({
const {data: {appData: {resultData: {rows}}}} = await window.jianghuAxios({
data: {
appData: {
pageId: 'workflowManagement',
actionId: 'selectItemList',
actionData: {},
where: {},
whereLike: serverSearchInput,
orderBy: [{column: 'operationAt', order: 'desc'}]
}
}
})).data.appData.resultData;
});
for (const item of rows) {
item.workflowConfig = item.workflowConfig ? JSON.parse(item.workflowConfig) : null;
item.workflowForm = item.workflowForm ? JSON.parse(item.workflowForm) : [];
item.operationAt = dayjs(item.operationAt).format('YYYY-MM-DD HH:mm:ss');
}
this.tableDataFromBackend = rows;
this.isTableLoading = false;
@@ -186,11 +168,6 @@ new Vue({
</script>
<style scoped>
.v-dialog--fullscreen .v-sheet {
height: unset;
top: unset;
position: unset;
background: white;
}
</style>
{% endblock %}
+69 -123
View File
@@ -37,6 +37,9 @@ CREATE TABLE `_constant` (
) ENGINE = InnoDB COMMENT = '常量表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _constant
# ------------------------------------------------------------
@@ -59,9 +62,12 @@ CREATE TABLE `_group` (
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `groupId_index` (`groupId`) USING BTREE
) ENGINE = InnoDB COMMENT = '群组表; 软删除未启用;';
) ENGINE = InnoDB AUTO_INCREMENT = 9 COMMENT = '群组表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _group
# ------------------------------------------------------------
@@ -83,20 +89,23 @@ CREATE TABLE `_page` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 36 COMMENT = '页面表; 软删除未启用;';
) ENGINE = InnoDB AUTO_INCREMENT = 48 COMMENT = '页面表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _page
# ------------------------------------------------------------
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (2,'help','帮助','helpV3','dynamicInMenu','11','insert',NULL,NULL,NULL);
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (3,'login','登陆','loginV3','','','insert',NULL,NULL,NULL);
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (10,'workflowManagement','流程管理',NULL,'showInMenu','1','update','vscode','vscode','2022-07-05T16:40:58+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (10,'workflowManagement','课程设计',NULL,'showInMenu','1','update','vscode','vscode','2022-10-08T09:35:35+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (11,'workflowEditor','流程编辑',NULL,'dynamicInMenu','1','insert',NULL,NULL,NULL);
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (15,'taskCreateManagement','任务申请',NULL,'showInMenu','2','insert','vscode','vscode','2022-07-06T13:33:17+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (16,'taskICreateManagement','我的申请',NULL,'showInMenu','3','insert','vscode','vscode','2022-07-07T08:57:21+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (17,'taskUpcomingManagement','我的待办',NULL,'showInMenu','4','insert','vscode','vscode','2022-07-07T09:22:14+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (18,'taskHistoryManagement','任务详情',NULL,'dynamicInMenu','5','update','vscode','vscode','2022-07-05T16:40:50+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (26,'taskRelatedManagement','我相关的',NULL,'showInMenu','6','update','vscode','vscode','2022-07-07T09:29:29+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (35,'taskManagement','任务管理',NULL,'showInMenu','9','update','vscode','vscode','2022-07-05T16:40:32+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (15,'taskCreateManagement','课程报名',NULL,'showInMenu','2','update','vscode','vscode','2022-10-08T09:48:22+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (16,'taskICreateManagement','我的课程',NULL,'showInMenu','3','update','vscode','vscode','2022-10-08T09:42:17+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (17,'taskUpcomingManagement','我的待办',NULL,'dynamicInMenu','4','update','vscode','vscode','2022-10-08T09:42:24+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (18,'taskHistoryManagement','课程详情',NULL,'dynamicInMenu','5','update','vscode','vscode','2022-10-11T10:06:40+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (26,'taskRelatedManagement','我相关的',NULL,'dynamicInMenu','6','update','vscode','vscode','2022-10-08T09:42:31+08:00');
INSERT INTO `_page` (`id`,`pageId`,`pageName`,`pageFile`,`pageType`,`sort`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (35,'taskManagement','课程管理',NULL,'dynamicInMenu','9','update','vscode','vscode','2022-10-11T10:06:49+08:00');
@@ -118,7 +127,7 @@ CREATE TABLE `_record_history` (
PRIMARY KEY (`id`) USING BTREE,
KEY `index_record_id` (`recordId`) USING BTREE,
KEY `index_table_action` (`table`, `operation`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 6 COMMENT = '数据历史表';
) ENGINE = InnoDB AUTO_INCREMENT = 54 COMMENT = '数据历史表';
@@ -148,6 +157,9 @@ CREATE TABLE `_resource` (
) ENGINE = InnoDB AUTO_INCREMENT = 263 COMMENT = '请求资源表; 软删除未启用; resourceId=`${appId}.${pageId}.${actionId}`';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _resource
# ------------------------------------------------------------
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (1,NULL,NULL,'allPage','getChunkInfo','✅ 文件分片下载-获取分片信息','service','{}','{\"service\": \"file\", \"serviceFunction\": \"getChunkInfo\"}','','','jhUpdate','admin','adminName','2022-05-03T12:46:39+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (2,NULL,NULL,'allPage','uploadFileDone','✅ 文件分片上传-所有分片上传完毕','service','{}','{\"service\": \"file\", \"serviceFunction\": \"uploadFileDone\"}','','','update',NULL,NULL,'2022-05-04T16:02:58+08:00');
@@ -161,59 +173,17 @@ INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`acti
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (10,NULL,NULL,'resetUserPassword','resetPassword','✅重置密码','service',NULL,'{\"service\": \"user\", \"serviceFunction\": \"resetPassword\"}','','','update',NULL,NULL,'2022-04-25T15:31:12+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (11,NULL,NULL,'allPage','uploadByStream','✅文件上传(文件流)','service',NULL,'{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByStream\"}','','','update',NULL,NULL,'2022-02-22T19:36:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (12,NULL,NULL,'allPage','uploadByBase64','✅文件上传(base64)','service',NULL,'{\"service\": \"file\", \"serviceFunction\": \"uploadFileChunkByBase64\"}','','','update',NULL,NULL,'2022-02-22T18:59:14+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (13,NULL,NULL,'designAssignmentEdit','updateAssignment','✅更新作业','sql','{}','{\"table\": \"article\", \"operation\": \"jhUpdate\"}','','','update',NULL,NULL,'2022-05-05T20:38:38+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (14,NULL,NULL,'designAssignmentEdit','selectAssignment','✅查询作业','sql','{}','{\"table\": \"article\", \"operation\": \"select\"}','','','update',NULL,NULL,'2022-07-04T16:59:09+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (15,NULL,NULL,'designAssignment','selectItemList','✅作业管理-查询列表(不包含内容)','sql','{}','{\"table\": \"article\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-02T16:02:08+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (16,NULL,NULL,'designAssignment','jhUpdateItem','✅作业编辑-更新成员','sql','{}','{\"table\": \"article\", \"operation\": \"jhUpdate\"}','','','update','vscode','vscode','2022-06-11T21:16:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (17,NULL,NULL,'designAssignment','jhDeletedItem','✅删除作业','sql','{}','{\"table\": \"article\", \"operation\": \"jhDelete\"}','','','update','vscode','vscode','2022-06-11T21:16:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (18,NULL,NULL,'designAssignment','jhInsertItem','✅新增作业','sql','{}','{\"table\": \"article\", \"operation\": \"jhInsert\"}','','','update','vscode','vscode','2022-06-11T21:16:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (19,NULL,NULL,'assignmentHomework','insertItem','✅模拟做题-创建','sql','{}','{\"table\": \"assignment\", \"operation\": \"jhInsert\"}','','','update',NULL,NULL,'2022-05-05T20:40:11+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (20,NULL,NULL,'assignmentHomework','updateItem','✅模拟做题-更新','sql','{}','{\"table\": \"assignment\", \"operation\": \"jhUpdate\"}','','','update',NULL,NULL,'2022-05-05T22:04:59+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (21,NULL,NULL,'assignmentHomework','selectItemList','✅模拟做题-更新成员','sql',NULL,'{\"service\": \"assignment\", \"serviceFunction\": \"selectArticleAssignmentList\"}','','','update',NULL,NULL,'2022-05-05T09:06:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (22,NULL,NULL,'assignmentHomework','selectArticleAssignmentList','✅模拟做题-某提做题','service','{}','{\"service\": \"assignment\", \"serviceFunction\": \"selectArticleAssignmentList\"}','','','update',NULL,NULL,'2022-05-07T19:34:34+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (23,NULL,NULL,'assignmentManagement','selectItemList','✅文章编辑-更新成员','service',NULL,'{\"service\": \"assignment\", \"serviceFunction\": \"selectAssignmentListInfo\"}','','','update',NULL,NULL,'2022-05-05T22:29:58+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (24,NULL,NULL,'designAssignment','test','desc','sql',NULL,'{\"table\": \"table_name\", \"operation\": \"select|insert|update|delete\"}','','','insert','vscode','vscode','2022-06-11T21:16:33+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (221,NULL,NULL,'categoryManagement','selectItemList','✅categoryManagement查询-查询列表','sql','{}','{\"table\": \"category\", \"operation\": \"select\"}','','','update',NULL,NULL,'2022-07-02T15:13:13+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (222,NULL,NULL,'categoryManagement','insertItem','✅categoryManagement查询-添加成员','sql','{}','{\"table\": \"category\", \"operation\": \"insert\"}','','','update',NULL,NULL,'2022-06-27T23:24:53+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (223,NULL,NULL,'categoryManagement','updateItem','✅categoryManagement查询-更新成员','sql','{}','{\"table\": \"category\", \"operation\": \"jhUpdate\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (224,NULL,NULL,'categoryManagement','deleteItem','✅categoryManagement查询-删除信息','sql','{}','{\"table\": \"category\", \"operation\": \"jhDelete\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (225,NULL,NULL,'processManagement','selectItemList','✅processManagement查询-查询列表','sql','{}','{\"table\": \"workflow\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-05T16:14:31+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (226,NULL,'{\"before\":[{\"service\":\"workflow\",\"serviceFunction\":\"createWorkflowId\"}]}','processManagement','insertItem','✅processManagement查询-添加成员','sql','{}','{\"table\": \"process\", \"operation\": \"insert\"}','','','update','vscode','vscode','2022-06-30T11:31:38+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (227,NULL,NULL,'processManagement','updateItem','✅processManagement查询-更新成员','sql','{}','{\"table\": \"process\", \"operation\": \"jhUpdate\"}','','','update','vscode','vscode','2022-07-04T21:50:53+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (228,NULL,NULL,'processManagement','deleteItem','✅processManagement查询-删除信息','sql','{}','{\"table\": \"process\", \"operation\": \"jhDelete\"}','','','update','vscode','vscode','2022-06-29T11:37:43+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (229,NULL,NULL,'taskManagement','selectItemList','✅taskManagement查询-查询列表','sql','{}','{\"table\": \"task\", \"operation\": \"select\"}','','','update',NULL,NULL,'2022-07-04T22:14:27+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (230,NULL,NULL,'taskManagement','insertItem','✅taskManagement查询-添加成员','sql','{}','{\"table\": \"task\", \"operation\": \"insert\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (231,NULL,NULL,'taskManagement','updateItem','✅taskManagement查询-更新成员','sql','{}','{\"table\": \"task\", \"operation\": \"jhUpdate\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (232,NULL,NULL,'taskManagement','deleteItem','✅taskManagement查询-删除信息','sql','{}','{\"table\": \"task\", \"operation\": \"jhDelete\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (233,NULL,'','processManagement','selectCategoryList','✅查询-分类列表','sql',NULL,'{\"table\": \"category\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-04T22:27:57+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (234,NULL,'','workflowManagement','selectUserList','✅查询-用户列表','sql',NULL,'{\"table\": \"_user\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-04T22:27:58+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (235,NULL,'','workflowManagement','selectGroupList','✅查询-组列表','sql',NULL,'{\"table\": \"_group\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-04T22:27:58+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (236,NULL,'','taskCreateManagement','selectWorkflowList','获取流程列表','sql',NULL,'{\"table\": \"workflow\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-04T22:27:55+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (238,NULL,'{\"before\":[{\"service\":\"task\",\"serviceFunction\":\"createTaskId\"}]}','taskCreateManagement','insertItem','新增任务','sql',NULL,'{\"table\": \"task\", \"operation\": \"insert\"}','','','update','vscode','vscode','2022-07-04T22:14:20+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (236,NULL,NULL,'taskCreateManagement','selectWorkflowList','✅获取流程列表','sql',NULL,'{\"table\": \"workflow\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-10-12T23:34:50+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (238,NULL,'{}','taskCreateManagement','insertItem','✅新增任务','service',NULL,'{\"service\":\"task\",\"serviceFunction\":\"createTask\"}','','','update','vscode','vscode','2022-10-12T23:34:50+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (239,NULL,'{\"before\":[{\"service\":\"task\",\"serviceFunction\":\"whereToUserId\"}]}','taskICreateManagement','selectItemList','✅taskManagement查询-查询列表','sql','{}','{\"table\": \"task\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-02T22:48:31+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (240,NULL,NULL,'taskICreateManagement','insertItem','✅taskManagement查询-添加成员','sql','{}','{\"table\": \"task\", \"operation\": \"insert\"}','','','update','vscode','vscode','2022-06-29T21:17:08+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (241,NULL,NULL,'taskICreateManagement','updateItem','✅taskManagement查询-更新成员','sql','{}','{\"table\": \"task\", \"operation\": \"jhUpdate\"}','','','update','vscode','vscode','2022-06-29T21:17:08+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (242,NULL,NULL,'taskICreateManagement','deleteItem','✅taskManagement查询-删除信息','sql','{}','{\"table\": \"task\", \"operation\": \"jhDelete\"}','','','update','vscode','vscode','2022-06-29T21:17:08+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (243,NULL,'','taskHistoryManagement','getTaskHistoryInfo','获取任务历史详情','service',NULL,'{\"service\": \"task\", \"serviceFunction\": \"getTaskHistoryInfo\"}','','','update','vscode','vscode','2022-07-04T22:22:35+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (244,NULL,'','taskHistoryManagement','submitNode','获取任务历史详情','service',NULL,'{\"service\": \"task\", \"serviceFunction\": \"submitNode\"}','','','update','vscode','vscode','2022-07-04T22:22:35+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (245,NULL,'{\"before\":[{\"service\":\"task\",\"serviceFunction\":\"upcomingToUserId\"}]}','taskUpcomingManagement','selectItemList','✅taskManagement查询-查询列表','sql','{}','{\"table\": \"task\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-06-30T12:17:58+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (246,NULL,NULL,'processTplManagement','selectItemList','✅taskManagement查询-查询列表','sql','{}','{\"table\": \"process_tpl\", \"operation\": \"select\"}','','','update','vscode','vscode','2022-07-04T22:27:58+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (247,NULL,'{\"before\":[{\"service\":\"process\",\"serviceFunction\":\"createTplId\"}]}','processTplManagement','insertItem','✅processTplManagement查询-添加成员','sql','{}','{\"table\": \"process_tpl\", \"operation\": \"insert\"}','','','update',NULL,NULL,'2022-07-04T21:49:39+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (248,NULL,NULL,'processTplManagement','updateItem','✅processTplManagement查询-更新成员','sql','{}','{\"table\": \"process_tpl\", \"operation\": \"jhUpdate\"}','','','update',NULL,NULL,'2022-07-04T21:50:26+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (249,NULL,NULL,'processTplManagement','deleteItem','✅processTplManagement查询-删除信息','sql','{}','{\"table\": \"process_tpl\", \"operation\": \"jhDelete\"}','','','update',NULL,NULL,'2022-07-02T22:30:19+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (250,NULL,'','taskCreateManagement','insertTaskTpl','新增','sql',NULL,'{\"table\": \"task_tpl\", \"operation\": \"insert\"}','','','insert','vscode','vscode','2022-07-04T09:28:39+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (251,NULL,NULL,'taskHistoryManagement','selectItemList','✅taskHistoryManagement查询-查询列表','sql','{}','{\"table\": \"task_history\", \"operation\": \"select\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (252,NULL,NULL,'taskHistoryManagement','insertItem','✅taskHistoryManagement查询-添加成员','sql','{}','{\"table\": \"task_history\", \"operation\": \"insert\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (253,NULL,NULL,'taskHistoryManagement','updateItem','✅taskHistoryManagement查询-更新成员','sql','{}','{\"table\": \"task_history\", \"operation\": \"jhUpdate\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (254,NULL,NULL,'taskHistoryManagement','deleteItem','✅taskHistoryManagement查询-删除信息','sql','{}','{\"table\": \"task_history\", \"operation\": \"jhDelete\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (244,NULL,'','taskHistoryManagement','submitNode','节点流转','service',NULL,'{\"service\": \"task\", \"serviceFunction\": \"submitNode\"}','','','update','vscode','vscode','2022-07-04T22:22:35+08:00');
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (255,NULL,NULL,'workflowManagement','selectItemList','✅workflowManagement查询-查询列表','sql','{}','{\"table\": \"workflow\", \"operation\": \"select\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (256,NULL,'{\"before\":[{\"service\":\"workflow\",\"serviceFunction\":\"createWorkflowId\"}]}','workflowManagement','insertItem','✅workflowManagement查询-添加成员','sql','{}','{\"table\": \"workflow\", \"operation\": \"insert\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (256,NULL,'{\"before\":[{\"service\":\"workflow\",\"serviceFunction\":\"createWorkflowId\"}]}','workflowManagement','insertItem','✅workflowManagement查询-添加成员','sql','{}','{\"table\": \"workflow\", \"operation\": \"jhInsert\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (257,NULL,NULL,'workflowManagement','updateItem','✅workflowManagement查询-更新成员','sql','{}','{\"table\": \"workflow\", \"operation\": \"jhUpdate\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (258,NULL,NULL,'workflowManagement','deleteItem','✅workflowManagement查询-删除信息','sql','{}','{\"table\": \"workflow\", \"operation\": \"jhDelete\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (259,NULL,NULL,'studentManagement','selectItemList','✅studentManagement查询-查询列表','sql','{}','{\"table\": \"student\", \"operation\": \"select\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (260,NULL,NULL,'studentManagement','insertItem','✅studentManagement查询-添加成员','sql','{}','{\"table\": \"student\", \"operation\": \"insert\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (261,NULL,NULL,'studentManagement','updateItem','✅studentManagement查询-更新成员','sql','{}','{\"table\": \"student\", \"operation\": \"jhUpdate\"}','','','insert',NULL,NULL,NULL);
INSERT INTO `_resource` (`id`,`accessControlTable`,`resourceHook`,`pageId`,`actionId`,`desc`,`resourceType`,`appDataSchema`,`resourceData`,`requestDemo`,`responseDemo`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (262,NULL,NULL,'studentManagement','deleteItem','✅studentManagement查询-删除信息','sql','{}','{\"table\": \"student\", \"operation\": \"jhDelete\"}','','','insert',NULL,NULL,NULL);
@@ -235,6 +205,9 @@ CREATE TABLE `_role` (
) ENGINE = InnoDB AUTO_INCREMENT = 8 COMMENT = '角色表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _role
# ------------------------------------------------------------
INSERT INTO `_role` (`id`,`roleId`,`roleName`,`roleDesc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (3,'appAdmin','系统管理员','','insert',NULL,NULL,NULL);
INSERT INTO `_role` (`id`,`roleId`,`roleName`,`roleDesc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (6,'boss','掌门','','insert',NULL,NULL,NULL);
@@ -254,7 +227,6 @@ CREATE TABLE `_test_case` (
`testName` varchar(255) DEFAULT NULL COMMENT '测试用例名',
`uiActionIdList` varchar(255) DEFAULT NULL COMMENT 'uiAction列表; 一个测试用例对应多个uiActionId',
`testOpeartion` text COMMENT '测试用例步骤;',
`expectedResult` text COMMENT '期望结果',
`operation` varchar(255) DEFAULT NULL COMMENT '操作; jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId; recordContent.operationByUserId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名; recordContent.operationByUser',
@@ -263,6 +235,9 @@ CREATE TABLE `_test_case` (
) ENGINE = InnoDB COMMENT = '测试用例表';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _test_case
# ------------------------------------------------------------
@@ -285,9 +260,12 @@ CREATE TABLE `_ui` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB COMMENT = 'ui 施工方案';
) ENGINE = InnoDB AUTO_INCREMENT = 193 COMMENT = 'ui 施工方案';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _ui
# ------------------------------------------------------------
@@ -318,6 +296,9 @@ CREATE TABLE `_user` (
) ENGINE = InnoDB AUTO_INCREMENT = 49 COMMENT = '用户表';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _user
# ------------------------------------------------------------
INSERT INTO `_user` (`id`,`idSequence`,`userId`,`username`,`clearTextPassword`,`password`,`md5Salt`,`userStatus`,`userType`,`config`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (42,NULL,'admin','系统管理员','123456','38d61d315e62546fe7f1013e31d42f57','Xs4JSZnhiwsR','active',NULL,NULL,'insert',NULL,NULL,NULL);
INSERT INTO `_user` (`id`,`idSequence`,`userId`,`username`,`clearTextPassword`,`password`,`md5Salt`,`userStatus`,`userType`,`config`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (43,NULL,'W00001','张三丰','123456','38d61d315e62546fe7f1013e31d42f57','Xs4JSZnhiwsR','active','common',NULL,'jhUpdate','vscode','vscode','2022-07-07T16:52:42+08:00');
@@ -349,6 +330,9 @@ CREATE TABLE `_user_group_role` (
) ENGINE = InnoDB AUTO_INCREMENT = 579 COMMENT = '用户群组角色关联表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _user_group_role
# ------------------------------------------------------------
INSERT INTO `_user_group_role` (`id`,`userId`,`groupId`,`roleId`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (568,'admin','adminGroup','appAdmin','insert',NULL,NULL,NULL);
INSERT INTO `_user_group_role` (`id`,`userId`,`groupId`,`roleId`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (569,'W00001','adminGroup','appAdmin','jhUpdate','vscode','vscode','2022-07-07T16:55:07+08:00');
@@ -378,9 +362,12 @@ CREATE TABLE `_user_group_role_page` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 COMMENT = '用户群组角色 - 页面 映射表; 软删除未启用;';
) ENGINE = InnoDB AUTO_INCREMENT = 31 COMMENT = '用户群组角色 - 页面 映射表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _user_group_role_page
# ------------------------------------------------------------
INSERT INTO `_user_group_role_page` (`id`,`user`,`group`,`role`,`page`,`allowOrDeny`,`desc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (1,'*','public','*','login','allow','登陆页面; 开放所有用户;','insert',NULL,NULL,NULL);
INSERT INTO `_user_group_role_page` (`id`,`user`,`group`,`role`,`page`,`allowOrDeny`,`desc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (2,'*','login','*','help,manual','allow','工具页; 开放给登陆用户;','insert',NULL,NULL,NULL);
@@ -406,9 +393,12 @@ CREATE TABLE `_user_group_role_resource` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 COMMENT = '用户群组角色 - 请求资源 映射表; 软删除未启用;';
) ENGINE = InnoDB AUTO_INCREMENT = 135 COMMENT = '用户群组角色 - 请求资源 映射表; 软删除未启用;';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: _user_group_role_resource
# ------------------------------------------------------------
INSERT INTO `_user_group_role_resource` (`id`,`user`,`group`,`role`,`resource`,`allowOrDeny`,`desc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (1,'*','public','*','login.passwordLogin','allow','登陆resource, 开放给所有用户','insert',NULL,NULL,NULL);
INSERT INTO `_user_group_role_resource` (`id`,`user`,`group`,`role`,`resource`,`allowOrDeny`,`desc`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (2,'*','login','*','allPage.*','allow','工具类resource, 开放给所有登陆成功的用户','insert',NULL,NULL,NULL);
@@ -439,62 +429,7 @@ CREATE TABLE `_user_session` (
KEY `userId_index` (`userId`) USING BTREE,
KEY `userId_deviceId_index` (`userId`, `deviceId`) USING BTREE,
KEY `authToken_index` (`authToken`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3 COMMENT = '用户session表; deviceId 维度;软删除未启用;';
# ------------------------------------------------------------
# SCHEMA DUMP FOR TABLE: access_control_student
# ------------------------------------------------------------
DROP TABLE IF EXISTS `access_control_student`;
CREATE TABLE `access_control_student` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`userId` varchar(255) DEFAULT NULL COMMENT '主键id',
`username` varchar(255) DEFAULT NULL COMMENT '用户名(登陆)',
`resourceData` varchar(255) DEFAULT NULL COMMENT '明文密码',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
UNIQUE KEY `username_index` (`username`) USING BTREE,
UNIQUE KEY `userId_index` (`userId`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 52 COMMENT = '学生表的 accessControl 表';
INSERT INTO `access_control_student` (`id`,`userId`,`username`,`resourceData`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (50,'G00001','洪七公','{ \"where\":{\"level\": \"02\"} }','insert',NULL,NULL,NULL);
INSERT INTO `access_control_student` (`id`,`userId`,`username`,`resourceData`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (51,'H00001','岳不群','{ \"where\":{\"level\": \"02\"} }','insert',NULL,NULL,NULL);
# ------------------------------------------------------------
# SCHEMA DUMP FOR TABLE: student
# ------------------------------------------------------------
DROP TABLE IF EXISTS `student`;
CREATE TABLE `student` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`studentId` varchar(255) DEFAULT NULL COMMENT '学生ID',
`name` varchar(255) DEFAULT NULL COMMENT '学生名字',
`gender` varchar(255) DEFAULT NULL COMMENT '性别',
`dateOfBirth` varchar(255) DEFAULT NULL COMMENT '出生日期',
`classId` varchar(255) DEFAULT NULL COMMENT '班级ID',
`level` varchar(255) DEFAULT NULL COMMENT '年级',
`bodyHeight` varchar(255) DEFAULT NULL COMMENT '身高',
`studentStatus` varchar(255) DEFAULT NULL COMMENT '学生状态',
`remarks` mediumtext COMMENT '备注',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作; insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间; E.g: 2021-05-28T10:24:54+08:00 ',
PRIMARY KEY (`id`) USING BTREE,
KEY `studentId` (`studentId`) USING BTREE
) ENGINE = InnoDB;
) ENGINE = InnoDB AUTO_INCREMENT = 36 COMMENT = '用户session表; deviceId 维度;软删除未启用;';
@@ -515,7 +450,6 @@ CREATE TABLE `task` (
`taskInitUser` varchar(255) DEFAULT NULL COMMENT '申请人',
`taskEditUserList` varchar(255) DEFAULT NULL COMMENT '当前执行的处理人员,用逗号分隔',
`taskViewUserList` varchar(255) DEFAULT NULL COMMENT '所有相关人员,用逗号分隔',
`taskComment` varchar(255) DEFAULT NULL COMMENT '备注',
`workflowConfig` text COMMENT 'work flow流程JSON',
`createByUser` varchar(255) DEFAULT NULL COMMENT '任务创建人',
`operation` varchar(255) DEFAULT 'insert' COMMENT '操作: insert, update, jhInsert, jhUpdate, jhDelete jhRestore',
@@ -523,11 +457,14 @@ CREATE TABLE `task` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 54 COMMENT = '任务表';
) ENGINE = InnoDB AUTO_INCREMENT = 127 COMMENT = '任务表';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: task
# ------------------------------------------------------------
INSERT INTO `task` (`id`,`taskId`,`taskTitle`,`taskStatus`,`taskFormInput`,`taskConfigId`,`taskNextConfigList`,`taskInitUser`,`taskEditUserList`,`taskViewUserList`,`taskComment`,`workflowConfig`,`createByUser`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (53,'1000','0907任务申请','running','{\"input\":{\"input_s5wcxWAi\":\"100\",\"textarea_4r_5gkmw\":\"100\",\"singleSelect_0jNoUCKM\":0,\"multipleSelect_CvKc9LuB\":[\"2\",\"3\"]},\"formList\":[{\"id\":\"input_s5wcxWAi\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_4r_5gkmw\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"金额大小\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"singleSelect_0jNoUCKM\",\"component\":{\"title\":\"单选\",\"type\":\"singleSelect\",\"outline\":\"单选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked-circle\"}},{\"id\":\"multipleSelect_CvKc9LuB\",\"component\":{\"title\":\"多选\",\"type\":\"multipleSelect\",\"outline\":\"多选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked\"}}]}','receiveTask-d3cfbd2f2c48','[{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"}]','admin','W00001','W00001,W00002,G00001,admin',NULL,'{\"lineList\":[{\"id\":\"line-6e88ce2cc148\",\"to\":\"userTask-b7ac8a109948\",\"from\":\"receiveTask-0fee61790848\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-56e65e1b6248\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"移交\",\"label\":\"移交\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-f7a77463a148\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"start-b356baa16848\",\"type\":\"同意\",\"label\":\"连线名称\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-614ad15e7a48\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-4c7d72debd48\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-58a5bf293648\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-800303750748\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-b356baa16848\",\"top\":\"59px\",\"left\":\"148px\",\"type\":\"start\",\"label\":\"申请报销\",\"Remark\":\"\",\"lineTypeList\":\"同意\"},{\"id\":\"end-6455e366fe48\",\"top\":\"351px\",\"left\":\"630px\",\"type\":\"end\",\"label\":\"完成报销\",\"lineTypeList\":\"\"},{\"id\":\"receiveTask-d3cfbd2f2c48\",\"top\":\"177px\",\"left\":\"149px\",\"type\":\"receiveTask\",\"label\":\"初步审核\",\"formId\":[\"input_h9_FzChA\",\"input_v5KqrcgN\",\"input_npIModIb\"],\"assignType\":\"person\",\"assignValue\":[\"W00001\"],\"lineTypeList\":\"同意,拒绝\",\"formIdHidden\":[]},{\"id\":\"receiveTask-0fee61790848\",\"top\":\"246px\",\"left\":\"366px\",\"type\":\"receiveTask\",\"label\":\"二次审核\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"W00002\",\"G00001\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-b7ac8a109948\",\"top\":\"248px\",\"left\":\"630px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-280f7cc4f948\",\"top\":\"349px\",\"left\":\"324px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝,移交\"}]}','admin','insert','admin','系统管理员','2022-09-07T22:33:08+08:00');
INSERT INTO `task` (`id`,`taskId`,`taskTitle`,`taskStatus`,`taskFormInput`,`taskConfigId`,`taskNextConfigList`,`taskInitUser`,`taskEditUserList`,`taskViewUserList`,`workflowConfig`,`createByUser`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (126,'1000','测试','running','{\"input\":{\"input_MfX-eD5Q\":\"1\",\"textarea_gWenKNrl\":\"2\"},\"formList\":[{\"id\":\"input_MfX-eD5Q\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_gWenKNrl\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"描述\",\"property\":{},\"icon\":\"mdi-form-textarea\"}}]}','userTask-0753d21a9248','[{\"from\":\"userTask-0753d21a9248\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"知悉\",\"type\":\"同意\",\"id\":\"line-a609eaded848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"end-7c27c45e8e48\",\"label\":\"有问题\",\"type\":\"拒绝\",\"id\":\"line-b6c9daf81848\",\"Remark\":\"\",\"endpoint\":\"Dot\"}]','admin','admin','admin','{\"lineList\":[{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-ed18e3b75548\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-229bad4dce48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-0753d21a9248\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-96ab6c19b748\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"情况属实\",\"type\":\"同意\",\"id\":\"line-bb760be14d48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"知悉\",\"type\":\"同意\",\"id\":\"line-a609eaded848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-e2adabf1ee48\",\"to\":\"end-7c27c45e8e48\",\"label\":\"可以报销\",\"type\":\"同意\",\"id\":\"line-b774c3ebf348\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"end-7c27c45e8e48\",\"label\":\"不属实\",\"type\":\"拒绝\",\"id\":\"line-45e37493ea48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"end-7c27c45e8e48\",\"label\":\"有问题\",\"type\":\"拒绝\",\"id\":\"line-b6c9daf81848\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-edcbbcd76b48\",\"label\":\"起点\",\"top\":\"45px\",\"left\":\"196px\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},{\"id\":\"end-7c27c45e8e48\",\"label\":\"终点\",\"top\":\"347px\",\"left\":\"194px\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},{\"id\":\"userTask-ed18e3b75548\",\"label\":\"A审批\",\"top\":\"130px\",\"left\":\"3px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"formId\":[]},{\"id\":\"userTask-0753d21a9248\",\"label\":\"B审批\",\"top\":\"131px\",\"left\":\"394px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-e2adabf1ee48\",\"label\":\"C审批\",\"top\":\"242px\",\"left\":\"190px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"}]}','admin','insert',NULL,NULL,'2022-10-12T23:52:18+08:00');
@@ -561,11 +498,15 @@ CREATE TABLE `task_history` (
`operationByUserId` varchar(255) DEFAULT NULL COMMENT '操作者userId',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 108 COMMENT = '任务表';
) ENGINE = InnoDB AUTO_INCREMENT = 196 COMMENT = '任务表';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: task_history
# ------------------------------------------------------------
INSERT INTO `task_history` (`id`,`taskId`,`taskTitle`,`taskStatus`,`taskFormInput`,`taskConfigId`,`taskNextConfigList`,`taskInitUser`,`taskEditUserList`,`taskViewUserList`,`taskComment`,`workflowConfig`,`createByUser`,`taskExplain`,`taskHandleDesc`,`taskLineFrom`,`taskLineTo`,`taskLineLabel`,`taskCostDuration`,`operation`,`operationByUser`,`operationByUserId`,`operationAt`) VALUES (107,'1000','0907任务申请','running','{\"input\":{\"input_s5wcxWAi\":\"100\",\"textarea_4r_5gkmw\":\"100\",\"singleSelect_0jNoUCKM\":0,\"multipleSelect_CvKc9LuB\":[\"2\",\"3\"]},\"formList\":[{\"id\":\"input_s5wcxWAi\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_4r_5gkmw\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"金额大小\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"singleSelect_0jNoUCKM\",\"component\":{\"title\":\"单选\",\"type\":\"singleSelect\",\"outline\":\"单选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked-circle\"}},{\"id\":\"multipleSelect_CvKc9LuB\",\"component\":{\"title\":\"多选\",\"type\":\"multipleSelect\",\"outline\":\"多选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked\"}}]}','receiveTask-d3cfbd2f2c48','[{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"}]','admin','W00001','W00001,W00002,G00001,admin',NULL,'{\"lineList\":[{\"id\":\"line-6e88ce2cc148\",\"to\":\"userTask-b7ac8a109948\",\"from\":\"receiveTask-0fee61790848\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-56e65e1b6248\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"移交\",\"label\":\"移交\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-f7a77463a148\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"start-b356baa16848\",\"type\":\"同意\",\"label\":\"连线名称\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-614ad15e7a48\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-4c7d72debd48\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-58a5bf293648\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-800303750748\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-b356baa16848\",\"top\":\"59px\",\"left\":\"148px\",\"type\":\"start\",\"label\":\"申请报销\",\"Remark\":\"\",\"lineTypeList\":\"同意\"},{\"id\":\"end-6455e366fe48\",\"top\":\"351px\",\"left\":\"630px\",\"type\":\"end\",\"label\":\"完成报销\",\"lineTypeList\":\"\"},{\"id\":\"receiveTask-d3cfbd2f2c48\",\"top\":\"177px\",\"left\":\"149px\",\"type\":\"receiveTask\",\"label\":\"初步审核\",\"formId\":[\"input_h9_FzChA\",\"input_v5KqrcgN\",\"input_npIModIb\"],\"assignType\":\"person\",\"assignValue\":[\"W00001\"],\"lineTypeList\":\"同意,拒绝\",\"formIdHidden\":[]},{\"id\":\"receiveTask-0fee61790848\",\"top\":\"246px\",\"left\":\"366px\",\"type\":\"receiveTask\",\"label\":\"二次审核\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"W00002\",\"G00001\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-b7ac8a109948\",\"top\":\"248px\",\"left\":\"630px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-280f7cc4f948\",\"top\":\"349px\",\"left\":\"324px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝,移交\"}]}','admin','申请报销','流转','start-b356baa16848','receiveTask-d3cfbd2f2c48','同意-连线名称','0','insert','系统管理员','admin','2022-09-07T22:33:08+08:00');
INSERT INTO `task_history` (`id`,`taskId`,`taskTitle`,`taskStatus`,`taskFormInput`,`taskConfigId`,`taskNextConfigList`,`taskInitUser`,`taskEditUserList`,`taskViewUserList`,`taskComment`,`workflowConfig`,`createByUser`,`taskExplain`,`taskHandleDesc`,`taskLineFrom`,`taskLineTo`,`taskLineLabel`,`taskCostDuration`,`operation`,`operationByUser`,`operationByUserId`,`operationAt`) VALUES (194,'1000','测试','running','{\"input\":{\"input_MfX-eD5Q\":\"1\",\"textarea_gWenKNrl\":\"2\"},\"formList\":[{\"id\":\"input_MfX-eD5Q\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_gWenKNrl\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"描述\",\"property\":{},\"icon\":\"mdi-form-textarea\"}}]}','start-edcbbcd76b48','[{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-ed18e3b75548\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-229bad4dce48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-0753d21a9248\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-96ab6c19b748\",\"Remark\":\"\",\"endpoint\":\"Dot\"}]','admin','','admin','','{\"lineList\":[{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-ed18e3b75548\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-229bad4dce48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-0753d21a9248\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-96ab6c19b748\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"情况属实\",\"type\":\"同意\",\"id\":\"line-bb760be14d48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"知悉\",\"type\":\"同意\",\"id\":\"line-a609eaded848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-e2adabf1ee48\",\"to\":\"end-7c27c45e8e48\",\"label\":\"可以报销\",\"type\":\"同意\",\"id\":\"line-b774c3ebf348\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"end-7c27c45e8e48\",\"label\":\"不属实\",\"type\":\"拒绝\",\"id\":\"line-45e37493ea48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"end-7c27c45e8e48\",\"label\":\"有问题\",\"type\":\"拒绝\",\"id\":\"line-b6c9daf81848\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-edcbbcd76b48\",\"label\":\"起点\",\"top\":\"45px\",\"left\":\"196px\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},{\"id\":\"end-7c27c45e8e48\",\"label\":\"终点\",\"top\":\"347px\",\"left\":\"194px\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},{\"id\":\"userTask-ed18e3b75548\",\"label\":\"A审批\",\"top\":\"130px\",\"left\":\"3px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"formId\":[]},{\"id\":\"userTask-0753d21a9248\",\"label\":\"B审批\",\"top\":\"131px\",\"left\":\"394px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-e2adabf1ee48\",\"label\":\"C审批\",\"top\":\"242px\",\"left\":\"190px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"}]}','admin','起点','同意',',','userTask-ed18e3b75548,userTask-0753d21a9248','同意-自动流转,同意-自动流转','0','insert','系统管理员','admin','2022-10-12T23:52:18+08:00');
INSERT INTO `task_history` (`id`,`taskId`,`taskTitle`,`taskStatus`,`taskFormInput`,`taskConfigId`,`taskNextConfigList`,`taskInitUser`,`taskEditUserList`,`taskViewUserList`,`taskComment`,`workflowConfig`,`createByUser`,`taskExplain`,`taskHandleDesc`,`taskLineFrom`,`taskLineTo`,`taskLineLabel`,`taskCostDuration`,`operation`,`operationByUser`,`operationByUserId`,`operationAt`) VALUES (195,'1000','测试','running','{\"input\":{\"input_MfX-eD5Q\":\"1\",\"textarea_gWenKNrl\":\"2\"},\"formList\":[{\"id\":\"input_MfX-eD5Q\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_gWenKNrl\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"描述\",\"property\":{},\"icon\":\"mdi-form-textarea\"}}]}','userTask-ed18e3b75548','[{\"from\":\"userTask-ed18e3b75548\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"情况属实\",\"type\":\"同意\",\"id\":\"line-bb760be14d48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"end-7c27c45e8e48\",\"label\":\"不属实\",\"type\":\"拒绝\",\"id\":\"line-45e37493ea48\",\"Remark\":\"\",\"endpoint\":\"Dot\"}]','admin','admin','admin','222','{\"lineList\":[{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-ed18e3b75548\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-229bad4dce48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-0753d21a9248\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-96ab6c19b748\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"情况属实\",\"type\":\"同意\",\"id\":\"line-bb760be14d48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"知悉\",\"type\":\"同意\",\"id\":\"line-a609eaded848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-e2adabf1ee48\",\"to\":\"end-7c27c45e8e48\",\"label\":\"可以报销\",\"type\":\"同意\",\"id\":\"line-b774c3ebf348\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"end-7c27c45e8e48\",\"label\":\"不属实\",\"type\":\"拒绝\",\"id\":\"line-45e37493ea48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"end-7c27c45e8e48\",\"label\":\"有问题\",\"type\":\"拒绝\",\"id\":\"line-b6c9daf81848\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-edcbbcd76b48\",\"label\":\"起点\",\"top\":\"45px\",\"left\":\"196px\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},{\"id\":\"end-7c27c45e8e48\",\"label\":\"终点\",\"top\":\"347px\",\"left\":\"194px\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},{\"id\":\"userTask-ed18e3b75548\",\"label\":\"A审批\",\"top\":\"130px\",\"left\":\"3px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"formId\":[]},{\"id\":\"userTask-0753d21a9248\",\"label\":\"B审批\",\"top\":\"131px\",\"left\":\"394px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-e2adabf1ee48\",\"label\":\"C审批\",\"top\":\"242px\",\"left\":\"190px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"}]}','admin','A审批','同意','','userTask-e2adabf1ee48','同意-情况属实','86','insert','系统管理员','admin','2022-10-12T23:53:44+08:00');
@@ -587,12 +528,17 @@ CREATE TABLE `workflow` (
`operationByUser` varchar(255) DEFAULT NULL COMMENT '操作者用户名',
`operationAt` varchar(255) DEFAULT NULL COMMENT '操作时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 27 COMMENT = '流程表';
) ENGINE = InnoDB AUTO_INCREMENT = 31 COMMENT = '流程表';
# ------------------------------------------------------------
# DATA DUMP FOR TABLE: workflow
# ------------------------------------------------------------
INSERT INTO `workflow` (`id`,`workflowId`,`workflowName`,`workflowForm`,`workflowConfig`,`workflowCategory`,`workflowRemark`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (23,'1001','请假审批流','[{\"id\":\"input_s5wcxWAi\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_4r_5gkmw\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"金额大小\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"singleSelect_0jNoUCKM\",\"component\":{\"title\":\"单选\",\"type\":\"singleSelect\",\"outline\":\"单选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked-circle\"}},{\"id\":\"multipleSelect_CvKc9LuB\",\"component\":{\"title\":\"多选\",\"type\":\"multipleSelect\",\"outline\":\"多选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked\"}}]','{\"lineList\":[{\"id\":\"line-6e88ce2cc148\",\"to\":\"userTask-b7ac8a109948\",\"from\":\"receiveTask-0fee61790848\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-56e65e1b6248\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"移交\",\"label\":\"移交\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-f7a77463a148\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"start-b356baa16848\",\"type\":\"同意\",\"label\":\"连线名称\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-614ad15e7a48\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-4c7d72debd48\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-58a5bf293648\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-800303750748\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-b356baa16848\",\"top\":\"59px\",\"left\":\"148px\",\"type\":\"start\",\"label\":\"申请报销\",\"Remark\":\"\",\"lineTypeList\":\"同意\"},{\"id\":\"end-6455e366fe48\",\"top\":\"351px\",\"left\":\"630px\",\"type\":\"end\",\"label\":\"完成报销\",\"lineTypeList\":\"\"},{\"id\":\"receiveTask-d3cfbd2f2c48\",\"top\":\"177px\",\"left\":\"149px\",\"type\":\"receiveTask\",\"label\":\"初步审核\",\"formId\":[\"input_h9_FzChA\",\"input_v5KqrcgN\",\"input_npIModIb\"],\"assignType\":\"person\",\"assignValue\":[\"W00001\"],\"lineTypeList\":\"同意,拒绝\",\"formIdHidden\":[]},{\"id\":\"receiveTask-0fee61790848\",\"top\":\"246px\",\"left\":\"366px\",\"type\":\"receiveTask\",\"label\":\"二次审核\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"W00002\",\"G00001\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-b7ac8a109948\",\"top\":\"248px\",\"left\":\"630px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-280f7cc4f948\",\"top\":\"349px\",\"left\":\"324px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝,移交\"}]}','人事部',NULL,'jhUpdate','admin','系统管理员','2022-10-15T15:34:57+08:00');
INSERT INTO `workflow` (`id`,`workflowId`,`workflowName`,`workflowForm`,`workflowConfig`,`workflowCategory`,`workflowRemark`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (23,'1001','ceshi 0907','[{\"id\":\"input_s5wcxWAi\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_4r_5gkmw\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"金额大小\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"singleSelect_0jNoUCKM\",\"component\":{\"title\":\"单选\",\"type\":\"singleSelect\",\"outline\":\"单选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked-circle\"}},{\"id\":\"multipleSelect_CvKc9LuB\",\"component\":{\"title\":\"多选\",\"type\":\"multipleSelect\",\"outline\":\"多选\",\"property\":{\"selectOptionList\":[{\"value\":\"1\"},{\"value\":\"2\"},{\"value\":\"3\"}]},\"icon\":\"mdi-checkbox-marked\"}}]','{\"lineList\":[{\"id\":\"line-6e88ce2cc148\",\"to\":\"userTask-b7ac8a109948\",\"from\":\"receiveTask-0fee61790848\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-7af22202cd48\",\"to\":\"userTask-280f7cc4f948\",\"from\":\"receiveTask-d3cfbd2f2c48\",\"type\":\"同意\",\"label\":\"通过审核\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-56e65e1b6248\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"移交\",\"label\":\"移交\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-f7a77463a148\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"start-b356baa16848\",\"type\":\"同意\",\"label\":\"连线名称\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-614ad15e7a48\",\"to\":\"receiveTask-d3cfbd2f2c48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-4c7d72debd48\",\"to\":\"receiveTask-0fee61790848\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"拒绝\",\"label\":\"驳回\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-58a5bf293648\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-280f7cc4f948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"id\":\"line-800303750748\",\"to\":\"end-6455e366fe48\",\"from\":\"userTask-b7ac8a109948\",\"type\":\"同意\",\"label\":\"通过审批\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-b356baa16848\",\"top\":\"59px\",\"left\":\"148px\",\"type\":\"start\",\"label\":\"申请报销\",\"Remark\":\"\",\"lineTypeList\":\"同意\"},{\"id\":\"end-6455e366fe48\",\"top\":\"351px\",\"left\":\"630px\",\"type\":\"end\",\"label\":\"完成报销\",\"lineTypeList\":\"\"},{\"id\":\"receiveTask-d3cfbd2f2c48\",\"top\":\"177px\",\"left\":\"149px\",\"type\":\"receiveTask\",\"label\":\"初步审核\",\"formId\":[\"input_h9_FzChA\",\"input_v5KqrcgN\",\"input_npIModIb\"],\"assignType\":\"person\",\"assignValue\":[\"W00001\"],\"lineTypeList\":\"同意,拒绝\",\"formIdHidden\":[]},{\"id\":\"receiveTask-0fee61790848\",\"top\":\"246px\",\"left\":\"366px\",\"type\":\"receiveTask\",\"label\":\"二次审核\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"W00002\",\"G00001\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-b7ac8a109948\",\"top\":\"248px\",\"left\":\"630px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-280f7cc4f948\",\"top\":\"349px\",\"left\":\"324px\",\"type\":\"userTask\",\"label\":\"审批节点\",\"formId\":[\"input_h9_FzChA\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝,移交\"}]}','财务',NULL,'jhUpdate','admin','系统管理员','2022-09-07T13:51:42+08:00');
INSERT INTO `workflow` (`id`,`workflowId`,`workflowName`,`workflowForm`,`workflowConfig`,`workflowCategory`,`workflowRemark`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (25,'1003','差旅报销审批流','[{\"id\":\"input_pFyJOHJ_\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"出发地\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"input_ZhhMcBuu\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"目的地\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"input_R2zzvdbt\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"报销金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"singleSelect_uRYtR5Qd\",\"component\":{\"title\":\"单选\",\"type\":\"singleSelect\",\"outline\":\"项目\",\"property\":{\"selectOptionList\":[{\"value\":\"A项目\"},{\"value\":\"B项目\"},{\"value\":\"C项目\"},{\"value\":\"D项目\"}]},\"icon\":\"mdi-checkbox-marked-circle\"}}]','{\"lineList\":[{\"from\":\"start-65644f2d3448\",\"to\":\"userTask-03c49310f248\",\"label\":\"进入审批流(自动)\",\"type\":\"\",\"id\":\"line-d0f962b80948\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-03c49310f248\",\"to\":\"userTask-aa4ea99a9f48\",\"label\":\"长老同意\",\"type\":\"同意\",\"id\":\"line-5cf3a4816548\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-aa4ea99a9f48\",\"to\":\"end-3f55d5225d48\",\"label\":\"掌门同意\",\"type\":\"同意\",\"id\":\"line-44e482e2ef48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-03c49310f248\",\"to\":\"end-9680fce31948\",\"label\":\"长老拒绝\",\"type\":\"拒绝\",\"id\":\"line-2b7361c1be48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-aa4ea99a9f48\",\"to\":\"end-9680fce31948\",\"label\":\"掌门拒绝\",\"type\":\"拒绝\",\"id\":\"line-e4146ac08e48\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"end-3f55d5225d48\",\"label\":\"差旅报销-同意申请\",\"top\":\"241px\",\"left\":\"645px\",\"type\":\"end\",\"lineTypeList\":\"\"},{\"id\":\"end-9680fce31948\",\"label\":\"差旅报销-拒绝申请\",\"top\":\"288px\",\"left\":\"417px\",\"type\":\"end\",\"lineTypeList\":\"\"},{\"id\":\"start-65644f2d3448\",\"label\":\"差旅报销-提交申请\",\"top\":\"31px\",\"left\":\"78px\",\"type\":\"start\",\"lineTypeList\":\"\",\"Remark\":\"\",\"formId\":[\"input_pFyJOHJ_\",\"input_ZhhMcBuu\",\"input_R2zzvdbt\",\"singleSelect_uRYtR5Qd\"]},{\"id\":\"userTask-03c49310f248\",\"label\":\"差旅报销-长老审批\",\"top\":\"96px\",\"left\":\"261px\",\"type\":\"userTask\",\"lineTypeList\":\"同意,拒绝\",\"assignType\":\"person\",\"assignValue\":[\"W00002\"]},{\"id\":\"userTask-aa4ea99a9f48\",\"label\":\"差旅报销-掌门审批\",\"top\":\"180px\",\"left\":\"493px\",\"type\":\"userTask\",\"lineTypeList\":\"同意,拒绝\",\"assignType\":\"person\",\"assignValue\":[\"W00001\"]}]}','财务',NULL,'jhUpdate','admin','系统管理员','2022-08-30T16:41:32+08:00');
INSERT INTO `workflow` (`id`,`workflowId`,`workflowName`,`workflowForm`,`workflowConfig`,`workflowCategory`,`workflowRemark`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (29,'1004','多重任务测试','[{\"id\":\"input_pZNnYTxM\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_RBIRnbrF\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"文本\",\"property\":{},\"icon\":\"mdi-form-textarea\"}}]','{\"lineList\":[{\"from\":\"start-981a81c67c48\",\"to\":\"receiveTask-e11e5a9f8d48\",\"label\":\"自动执行\",\"type\":\"同意\",\"id\":\"line-782abcdfdc48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-e11e5a9f8d48\",\"to\":\"receiveTask-7f806e262f48\",\"label\":\"1\",\"type\":\"同意\",\"id\":\"line-73e75650e948\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-e11e5a9f8d48\",\"to\":\"receiveTask-4cccc99edf48\",\"label\":\"2\",\"type\":\"同意\",\"id\":\"line-2f46cb4d4048\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-e11e5a9f8d48\",\"to\":\"receiveTask-d419111afd48\",\"label\":\"1\",\"type\":\"拒绝\",\"id\":\"line-d2707ddec248\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-7f806e262f48\",\"to\":\"userTask-80db30d0f248\",\"label\":\"1\",\"type\":\"同意\",\"id\":\"line-9d0a8772bc48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-4cccc99edf48\",\"to\":\"userTask-80db30d0f248\",\"label\":\"2\",\"type\":\"同意\",\"id\":\"line-e81be6f78548\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-80db30d0f248\",\"to\":\"end-69bfa6f23e48\",\"label\":\"审批\",\"type\":\"同意\",\"id\":\"line-b479cd7c8848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"receiveTask-d419111afd48\",\"to\":\"end-69bfa6f23e48\",\"label\":\"连线名称\",\"type\":\"同意\",\"id\":\"line-c4e4bfc15648\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-981a81c67c48\",\"label\":\"起点\",\"top\":\"29px\",\"left\":\"303px\",\"type\":\"start\",\"lineTypeList\":\"同意\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"formId\":[]},{\"id\":\"end-69bfa6f23e48\",\"label\":\"结束\",\"top\":\"355px\",\"left\":\"308px\",\"type\":\"end\",\"lineTypeList\":\"\",\"assignType\":\"person\"},{\"id\":\"receiveTask-7f806e262f48\",\"label\":\"B1\",\"top\":\"179px\",\"left\":\"168px\",\"type\":\"receiveTask\",\"lineTypeList\":\"同意,拒绝\",\"formId\":[\"input_pZNnYTxM\",\"textarea_RBIRnbrF\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"]},{\"id\":\"userTask-80db30d0f248\",\"label\":\"C1\",\"top\":\"288px\",\"left\":\"196px\",\"type\":\"userTask\",\"lineTypeList\":\"同意,拒绝\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"formId\":[\"input_pZNnYTxM\"]},{\"id\":\"receiveTask-e11e5a9f8d48\",\"label\":\"A1\",\"top\":\"98px\",\"left\":\"301px\",\"type\":\"receiveTask\",\"lineTypeList\":\"同意,拒绝\",\"formId\":[\"input_pZNnYTxM\",\"textarea_RBIRnbrF\"],\"assignType\":\"person\",\"assignValue\":[\"admin\"]},{\"id\":\"receiveTask-4cccc99edf48\",\"label\":\"B2\",\"top\":\"182px\",\"left\":\"297px\",\"type\":\"receiveTask\",\"lineTypeList\":\"同意,拒绝\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"formId\":[\"textarea_RBIRnbrF\"]},{\"id\":\"receiveTask-d419111afd48\",\"label\":\"B3\",\"top\":\"182px\",\"left\":\"437px\",\"type\":\"receiveTask\",\"lineTypeList\":\"同意,拒绝\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"formId\":[\"input_pZNnYTxM\",\"textarea_RBIRnbrF\"]}]}','报销',NULL,'jhUpdate','admin','系统管理员','2022-10-07T22:28:14+08:00');
INSERT INTO `workflow` (`id`,`workflowId`,`workflowName`,`workflowForm`,`workflowConfig`,`workflowCategory`,`workflowRemark`,`operation`,`operationByUserId`,`operationByUser`,`operationAt`) VALUES (30,'1005','test','[{\"id\":\"input_MfX-eD5Q\",\"component\":{\"title\":\"单行文本\",\"type\":\"input\",\"outline\":\"金额\",\"property\":{},\"icon\":\"mdi-form-textarea\"}},{\"id\":\"textarea_gWenKNrl\",\"component\":{\"title\":\"多行文本\",\"type\":\"textarea\",\"outline\":\"描述\",\"property\":{},\"icon\":\"mdi-form-textarea\"}}]','{\"lineList\":[{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-ed18e3b75548\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-229bad4dce48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"start-edcbbcd76b48\",\"to\":\"userTask-0753d21a9248\",\"label\":\"自动流转\",\"type\":\"同意\",\"id\":\"line-96ab6c19b748\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"情况属实\",\"type\":\"同意\",\"id\":\"line-bb760be14d48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"userTask-e2adabf1ee48\",\"label\":\"知悉\",\"type\":\"同意\",\"id\":\"line-a609eaded848\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-e2adabf1ee48\",\"to\":\"end-7c27c45e8e48\",\"label\":\"可以报销\",\"type\":\"同意\",\"id\":\"line-b774c3ebf348\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-ed18e3b75548\",\"to\":\"end-7c27c45e8e48\",\"label\":\"不属实\",\"type\":\"拒绝\",\"id\":\"line-45e37493ea48\",\"Remark\":\"\",\"endpoint\":\"Dot\"},{\"from\":\"userTask-0753d21a9248\",\"to\":\"end-7c27c45e8e48\",\"label\":\"有问题\",\"type\":\"拒绝\",\"id\":\"line-b6c9daf81848\",\"Remark\":\"\",\"endpoint\":\"Dot\"}],\"nodeList\":[{\"id\":\"start-edcbbcd76b48\",\"label\":\"起点\",\"top\":\"45px\",\"left\":\"196px\",\"type\":\"start\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意\"},{\"id\":\"end-7c27c45e8e48\",\"label\":\"终点\",\"top\":\"347px\",\"left\":\"194px\",\"type\":\"end\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"\"},{\"id\":\"userTask-ed18e3b75548\",\"label\":\"A审批\",\"top\":\"130px\",\"left\":\"3px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\",\"formId\":[]},{\"id\":\"userTask-0753d21a9248\",\"label\":\"B审批\",\"top\":\"131px\",\"left\":\"394px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"},{\"id\":\"userTask-e2adabf1ee48\",\"label\":\"C审批\",\"top\":\"242px\",\"left\":\"190px\",\"type\":\"userTask\",\"assignType\":\"person\",\"assignValue\":[\"admin\"],\"lineTypeList\":\"同意,拒绝\"}]}','报销','remark','jhInsert','admin','系统管理员','2022-10-12T11:11:08+08:00');