From c3317e144f36d317243e0ae5327a222301a5c1af Mon Sep 17 00:00:00 2001 From: YunaiV Date: Fri, 20 Jan 2023 22:36:57 +0800 Subject: [PATCH] =?UTF-8?q?bpm=EF=BC=9A=E6=B5=81=E7=A8=8B=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=9A=84=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/bpm/definition/index.ts | 20 ++++ .../views/bpm/definition/definition.data.ts | 76 ++++++++++++++ .../src/views/bpm/definition/index.vue | 98 +++++++++++++++++++ 3 files changed, 194 insertions(+) create mode 100644 yudao-ui-admin-vue3/src/api/bpm/definition/index.ts create mode 100644 yudao-ui-admin-vue3/src/views/bpm/definition/definition.data.ts create mode 100644 yudao-ui-admin-vue3/src/views/bpm/definition/index.vue diff --git a/yudao-ui-admin-vue3/src/api/bpm/definition/index.ts b/yudao-ui-admin-vue3/src/api/bpm/definition/index.ts new file mode 100644 index 000000000..766ac90e2 --- /dev/null +++ b/yudao-ui-admin-vue3/src/api/bpm/definition/index.ts @@ -0,0 +1,20 @@ +import request from '@/config/axios' + +export const getProcessDefinitionBpmnXMLApi = async (id: number) => { + return await request.get({ + url: '/bpm/process-definition/get-bpmn-xml?id=' + id + }) +} + +export const getProcessDefinitionPageApi = async (params) => { + return await request.get({ + url: '/bpm/process-definition/page', + params + }) +} +export const getProcessDefinitionListApi = async (params) => { + return await request.get({ + url: '/bpm/process-definition/list', + params + }) +} diff --git a/yudao-ui-admin-vue3/src/views/bpm/definition/definition.data.ts b/yudao-ui-admin-vue3/src/views/bpm/definition/definition.data.ts new file mode 100644 index 000000000..4e25b6c3c --- /dev/null +++ b/yudao-ui-admin-vue3/src/views/bpm/definition/definition.data.ts @@ -0,0 +1,76 @@ +import { reactive } from 'vue' +import { VxeCrudSchema, useVxeCrudSchemas } from '@/hooks/web/useVxeCrudSchemas' + +import { DICT_TYPE } from '@/utils/dict' + +// CrudSchema +const crudSchemas = reactive({ + primaryKey: 'id', + primaryType: null, + action: true, + columns: [ + { + title: '定义编号', + field: 'id', + table: { + width: 360 + } + }, + { + title: '定义名称', + field: 'name', + table: { + width: 120, + slots: { + default: 'name_default' + } + } + }, + { + title: '流程分类', + field: 'category', + dictType: DICT_TYPE.BPM_MODEL_CATEGORY, + dictClass: 'number' + }, + { + title: '表单信息', + field: 'formId', + table: { + width: 120, + slots: { + default: 'formId_default' + } + } + }, + { + title: '流程版本', + field: 'version', + table: { + width: 80, + slots: { + default: 'version_default' + } + } + }, + { + title: '激活状态', + field: 'suspensionState', + table: { + width: 80, + slots: { + default: 'suspensionState_default' + } + } + }, + { + title: '部署时间', + field: 'deploymentTime', + isForm: false, + formatter: 'formatDate', + table: { + width: 180 + } + } + ] +}) +export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/yudao-ui-admin-vue3/src/views/bpm/definition/index.vue b/yudao-ui-admin-vue3/src/views/bpm/definition/index.vue new file mode 100644 index 000000000..5ef4c46a6 --- /dev/null +++ b/yudao-ui-admin-vue3/src/views/bpm/definition/index.vue @@ -0,0 +1,98 @@ + + +