diff --git a/ruoyi-ui/src/plugins/package/designer/ProcessDesigner.vue b/ruoyi-ui/src/plugins/package/designer/ProcessDesigner.vue index 253e1598..e2143109 100644 --- a/ruoyi-ui/src/plugins/package/designer/ProcessDesigner.vue +++ b/ruoyi-ui/src/plugins/package/designer/ProcessDesigner.vue @@ -4,7 +4,7 @@ @@ -320,16 +302,19 @@ import { getForm, addDeployForm ,listForm } from "@/api/workflow/form"; import { listCategory } from '@/api/workflow/category' import Parser from '@/utils/generator/parser' import ProcessViewer from '@/components/ProcessViewer' +import Designer from './designer' import { getToken } from "@/utils/auth"; export default { name: "Definition", components: { Parser, - ProcessViewer + ProcessViewer, + Designer }, data() { return { + isDesignerShow: false, // 遮罩层 loading: true, // 选中数组 @@ -345,11 +330,7 @@ export default { // 流程定义表格数据 definitionList: [], categoryOptions: [], - process: { - title: '', - open: false, - form: {} - }, + processForm: {}, publish: { open: false, loading: false, @@ -478,19 +459,6 @@ export default { this.single = selection.length !== 1 this.multiple = !selection.length }, - /** 跳转到流程设计页面 */ - handleLoadXml(row) { - this.process.open = false; - this.$router.push({ - path: '/definition/designer', - query: { - definitionId: row.definitionId, - processId: row.processKey, - processName: row.processName, - category: row.category - } - }) - }, handlePublish(row) { this.publishQueryParams.processKey = row.processKey; this.publish.open = true; @@ -575,18 +543,16 @@ export default { }, handleAdd() { const dateTime = new Date().getTime(); - this.process.title = '新增流程'; - this.process.form = { + this.processForm = { processKey: `Process_${dateTime}`, processName: `业务流程_${dateTime}` - }; - this.process.open = true; + } + this.isDesignerShow = true; }, - /** 修改按钮操作 */ - handleUpdate(row) { - this.process.title = '编辑流程'; - this.process.form = JSON.parse(JSON.stringify(row)); - this.process.open = true; + /** 设计按钮操作 */ + handleDesigner(row) { + this.processForm = JSON.parse(JSON.stringify(row)); + this.isDesignerShow = true; }, /** 删除按钮操作 */ handleDelete(row) { @@ -641,6 +607,9 @@ export default { }, categoryFormat(row, column) { return this.categoryOptions.find(k => k.code === row.category)?.categoryName ?? ''; + }, + submitSave() { + this.getList(); } } };