From 3c6bf378792e385147737f3a2583dd951f03c5be Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 26 Mar 2023 08:46:04 +0800 Subject: [PATCH] =?UTF-8?q?Vue3=20=E9=87=8D=E6=9E=84=EF=BC=9A=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=AE=9A=E4=B9=89=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 | 6 +- src/views/bpm/definition/definition.data.ts | 79 ------- src/views/bpm/definition/index.vue | 235 ++++++++++++-------- src/views/bpm/model/index.vue | 15 +- src/views/bpm/processInstance/create.vue | 4 +- src/views/bpm/processInstance/detail.vue | 2 +- src/views/system/sms/template/index.vue | 1 - 7 files changed, 153 insertions(+), 189 deletions(-) delete mode 100644 src/views/bpm/definition/definition.data.ts diff --git a/src/api/bpm/definition/index.ts b/src/api/bpm/definition/index.ts index 477d6729..c0e51fab 100644 --- a/src/api/bpm/definition/index.ts +++ b/src/api/bpm/definition/index.ts @@ -1,19 +1,19 @@ import request from '@/config/axios' -export const getProcessDefinitionBpmnXMLApi = async (id: number) => { +export const getProcessDefinitionBpmnXML = async (id: number) => { return await request.get({ url: '/bpm/process-definition/get-bpmn-xml?id=' + id }) } -export const getProcessDefinitionPageApi = async (params) => { +export const getProcessDefinitionPage = async (params) => { return await request.get({ url: '/bpm/process-definition/page', params }) } -export const getProcessDefinitionListApi = async (params) => { +export const getProcessDefinitionList = async (params) => { return await request.get({ url: '/bpm/process-definition/list', params diff --git a/src/views/bpm/definition/definition.data.ts b/src/views/bpm/definition/definition.data.ts deleted file mode 100644 index 14a0c319..00000000 --- a/src/views/bpm/definition/definition.data.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -// 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', - table: { - // width: 120, - slots: { - default: 'category_default' - } - } - }, - { - title: '表单信息', - field: 'formId', - table: { - // width: 200, - 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/src/views/bpm/definition/index.vue b/src/views/bpm/definition/index.vue index f2ef640c..ce643ff6 100644 --- a/src/views/bpm/definition/index.vue +++ b/src/views/bpm/definition/index.vue @@ -1,92 +1,138 @@ - diff --git a/src/views/bpm/model/index.vue b/src/views/bpm/model/index.vue index cd744986..b19ed956 100644 --- a/src/views/bpm/model/index.vue +++ b/src/views/bpm/model/index.vue @@ -62,7 +62,7 @@ - +