diff --git a/ruoyi-ui/src/components/Process/index.vue b/ruoyi-ui/src/components/Process/index.vue
index 98aec9e9..a395f364 100644
--- a/ruoyi-ui/src/components/Process/index.vue
+++ b/ruoyi-ui/src/components/Process/index.vue
@@ -41,7 +41,7 @@
-
+
@@ -56,7 +56,7 @@ import panel from './PropertyPanel'
import BpmData from './BpmData'
import getInitStr from './flowable/init'
// 引入flowable的节点文件
-import flowableModdle from './flowable/flowable.json'
+import FlowableModule from './flowable/flowable.json'
export default {
name: 'WorkflowBpmnModeler',
components: {
@@ -115,8 +115,8 @@ export default {
translate: ['value', customTranslate]
}
],
- moddleExtensions: {
- flowable: flowableModdle
+ moduleExtensions: {
+ flowable: FlowableModule
}
})
// 新增流程定义
@@ -356,17 +356,13 @@ export default {
return false
},
downloadFile(filename, data, type) {
- var a = document.createElement('a')
- var url = window.URL.createObjectURL(new Blob([data], { type: type }))
+ const a = document.createElement('a');
+ const url = window.URL.createObjectURL(new Blob([data], {type: type}));
a.href = url
a.download = filename
a.click()
window.URL.revokeObjectURL(url)
},
- /** 获取数据类型 */
- dataType(data){
- this.$emit('dataType', data)
- }
}
}
diff --git a/ruoyi-ui/src/components/Process/lang/zh.js b/ruoyi-ui/src/components/Process/lang/zh.js
index 003c0cc5..d114ca1c 100644
--- a/ruoyi-ui/src/components/Process/lang/zh.js
+++ b/ruoyi-ui/src/components/Process/lang/zh.js
@@ -2,6 +2,10 @@ export default {
// Labels
'Activate the global connect tool': '激活全局连接工具',
'Append {type}': '添加 {type}',
+ 'Append Task': '添加任务',
+ 'Append Gateway': '添加网关',
+ 'Append EndEvent': '添加结束事件',
+ "Append Intermediate/Boundary Event": '添加开始事件',
'Add Lane above': '在上面添加道',
'Divide into two Lanes': '分割成两个道',
'Divide into three Lanes': '分割成三个道',
diff --git a/ruoyi-ui/src/views/flowable/definition/model.vue b/ruoyi-ui/src/views/flowable/definition/model.vue
index 315fcef1..16c931f9 100644
--- a/ruoyi-ui/src/views/flowable/definition/model.vue
+++ b/ruoyi-ui/src/views/flowable/definition/model.vue
@@ -10,39 +10,39 @@
:is-view="false"
@save="save"
@showXML="showXML"
- @dataType="dataType"
/>
-
-
-
-
- {{xmlContent}}
-
-
-
+
+
+
+
+
+ {{xmlData}}
+
+
+
+
diff --git a/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue b/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue
index 1ab4dcff..f6a8689d 100644
--- a/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue
+++ b/ruoyi-ui/src/views/flowable/task/todo/detail/index.vue
@@ -232,24 +232,6 @@ export default {
handleClick(tab, event) {
console.log(tab, event);
},
- /** 查询用户列表 */
- getList() {
- listUser(this.addDateRange(this.queryParams, this.dateRange)).then(response => {
- this.userList = response.rows;
- this.total = response.total;
- }
- );
- },
- // 筛选节点
- filterNode(value, data) {
- if (!value) return true;
- return data.label.indexOf(value) !== -1;
- },
- // 节点单击事件
- handleNodeClick(data) {
- this.queryParams.deptId = data.id;
- this.getList();
- },
/** xml 文件 */
getModelDetail(deployId) {
// 发送请求,获取xml
@@ -360,8 +342,13 @@ export default {
this.checkType = "multiple";
} else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务)
this.checkSendRole = true;
- } else if (data.type === 'multiInstance') { // 会签?
- this.checkSendUser = true;
+ } else if (data.type === 'multiInstance') { // 会签
+ listUser().then(response => {
+ this.taskForm.values = {
+ "userList": response.rows
+ }
+ }
+ );
}
}
})
@@ -427,24 +414,6 @@ export default {
this.variables = variables;
}
},
- /** 申请流程表单数据提交 */
- submitForm(data) {
- const that = this
- if (data) {
- const variables = data.valData;
- const formData = data.formData;
- formData.disabled = true;
- formData.formBtns = false;
- if (that.taskForm.procDefId) {
- variables.variables = formData;
- // 启动流程并将表单数据加入流程变量
- definitionStart(that.taskForm.procDefId, JSON.stringify(variables)).then(res => {
- that.$modal.msgSuccess(res.msg);
- that.goBack();
- })
- }
- }
- },
/** 驳回任务 */
handleReject() {
this.rejectOpen = true;