From c9f1517a96f60b0c9a3a56fd33cf6e21262b7ac5 Mon Sep 17 00:00:00 2001 From: konbai <1527468660@qq.com> Date: Tue, 27 Jun 2023 22:36:13 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=B7=BB=E5=8A=A0=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/form/index.ts | 46 +++++ src/api/workflow/form/types.ts | 19 ++ src/views/workflow/form/index.vue | 278 ++++++++++++++++++++++++++++++ 3 files changed, 343 insertions(+) create mode 100644 src/api/workflow/form/index.ts create mode 100644 src/api/workflow/form/types.ts create mode 100644 src/views/workflow/form/index.vue diff --git a/src/api/workflow/form/index.ts b/src/api/workflow/form/index.ts new file mode 100644 index 0000000..115a78f --- /dev/null +++ b/src/api/workflow/form/index.ts @@ -0,0 +1,46 @@ +import request from '@/utils/request'; +import { FormForm, FormQuery, FormVO } from './types'; +import { AxiosPromise } from 'axios'; + +// 查询流程表单列表 +export function listForm(query: FormQuery): AxiosPromise { + return request({ + url: '/workflow/form/list', + method: 'get', + params: query + }); +} + +// 查询流程表单详细 +export function getForm(formId: string | number): AxiosPromise { + return request({ + url: '/workflow/form/' + formId, + method: 'get' + }); +} + +// 新增流程表单 +export function addForm(data: FormForm) { + return request({ + url: '/workflow/form', + method: 'post', + data: data + }); +} + +// 修改流程表单 +export function updateForm(data: FormForm) { + return request({ + url: '/workflow/form', + method: 'put', + data: data + }); +} + +// 删除流程表单 +export function delForm(formId: string | number | (string | number)[]) { + return request({ + url: '/workflow/form/' + formId, + method: 'delete' + }); +} diff --git a/src/api/workflow/form/types.ts b/src/api/workflow/form/types.ts new file mode 100644 index 0000000..43c21e5 --- /dev/null +++ b/src/api/workflow/form/types.ts @@ -0,0 +1,19 @@ +export interface FormVO extends BaseEntity { + formId: number | string; + formName: string; + formConfig: string; + content: string; + remark: string; +} + +export interface FormForm { + formId: number | string | undefined; + formName: string; + formConfig?: string; + content?: string; + remark: string; +} + +export interface FormQuery extends PageQuery { + formName?: string; +} diff --git a/src/views/workflow/form/index.vue b/src/views/workflow/form/index.vue new file mode 100644 index 0000000..a98918d --- /dev/null +++ b/src/views/workflow/form/index.vue @@ -0,0 +1,278 @@ + + + + +