From e0f9a74e78c46a054921c87f80dd9813209da968 Mon Sep 17 00:00:00 2001 From: Chika Date: Tue, 4 Apr 2023 09:26:13 +0800 Subject: [PATCH] =?UTF-8?q?VUE3=E9=87=8D=E6=9E=84=E6=94=B9=E9=80=A0-?= =?UTF-8?q?=E6=B5=81=E7=A8=8B-=E5=B7=B2=E5=8A=9E=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/bpm/task/done/Taskdetail.vue | 47 ++++++++ src/views/bpm/task/done/done.data.ts | 52 -------- src/views/bpm/task/done/index.vue | 159 ++++++++++++++++++++++--- 3 files changed, 187 insertions(+), 71 deletions(-) create mode 100644 src/views/bpm/task/done/Taskdetail.vue delete mode 100644 src/views/bpm/task/done/done.data.ts diff --git a/src/views/bpm/task/done/Taskdetail.vue b/src/views/bpm/task/done/Taskdetail.vue new file mode 100644 index 00000000..cef57cb7 --- /dev/null +++ b/src/views/bpm/task/done/Taskdetail.vue @@ -0,0 +1,47 @@ + + diff --git a/src/views/bpm/task/done/done.data.ts b/src/views/bpm/task/done/done.data.ts deleted file mode 100644 index 5944671f..00000000 --- a/src/views/bpm/task/done/done.data.ts +++ /dev/null @@ -1,52 +0,0 @@ -import type { VxeCrudSchema } from '@/hooks/web/useVxeCrudSchemas' - -const { t } = useI18n() // 国际化 - -// crudSchemas -const crudSchemas = reactive({ - primaryKey: 'id', - primaryType: null, - action: true, - columns: [ - { - title: '任务编号', - field: 'id', - table: { - width: 320 - } - }, - { - title: '任务名称', - field: 'name', - isSearch: true - }, - { - title: '所属流程', - field: 'processInstance.name' - }, - { - title: '流程发起人', - field: 'processInstance.startUserNickname' - }, - { - title: t('common.status'), - field: 'result', - dictType: DICT_TYPE.BPM_PROCESS_INSTANCE_RESULT, - dictClass: 'number', - isSearch: true - }, - { - title: '原因', - field: 'reason' - }, - { - title: t('common.createTime'), - field: 'createTime', - formatter: 'formatDate', - table: { - width: 180 - } - } - ] -}) -export const { allSchemas } = useVxeCrudSchemas(crudSchemas) diff --git a/src/views/bpm/task/done/index.vue b/src/views/bpm/task/done/index.vue index da05549a..735f4edc 100644 --- a/src/views/bpm/task/done/index.vue +++ b/src/views/bpm/task/done/index.vue @@ -1,30 +1,147 @@ -