From 6e6edd9ad714423dc50722b291969c4efbfb812c Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Wed, 30 Aug 2023 11:50:55 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 +- src/api/DesignForm/requestapi.ts | 31 + src/api/DesignForm/type.ts | 23 + src/api/DesignForm/types.ts | 3 +- src/components/DesignForm/formControlAttr.vue | 2117 ++++++++--------- .../DesignForm/formControlAttres.vue | 1576 ++++++++++++ .../DesignForm/public/form/form.vue | 16 +- .../DesignForm/public/form/formGroup.vue | 2 +- .../DesignForm/public/headTools.vue | 8 +- src/utils/DesignForm/form.ts | 1 + src/views/sysworkflow/codepage/createform.vue | 562 +++++ src/views/sysworkflow/codepage/index.vue | 576 ++--- 12 files changed, 3442 insertions(+), 1477 deletions(-) create mode 100644 src/api/DesignForm/requestapi.ts create mode 100644 src/api/DesignForm/type.ts create mode 100644 src/components/DesignForm/formControlAttres.vue create mode 100644 src/views/sysworkflow/codepage/createform.vue diff --git a/index.html b/index.html index 5f71e6f2a..10995604d 100644 --- a/index.html +++ b/index.html @@ -15,8 +15,8 @@ - - + + diff --git a/src/api/DesignForm/requestapi.ts b/src/api/DesignForm/requestapi.ts new file mode 100644 index 000000000..865626e7e --- /dev/null +++ b/src/api/DesignForm/requestapi.ts @@ -0,0 +1,31 @@ +import request from '@/utils/request'; +import { AxiosPromise } from 'axios'; +import { + customerFormCont, + CustomerFormPageResult, + SearchForm, + customerFormConfig +} from './type'; +//自定义表单列表 +export function getCustomerFormList(queryParams: SearchForm): AxiosPromise { + return request({ + url: '/systemapi/customer_form/customer_form_list', + method: 'post', + params: queryParams + }); +} +//生成表单基本信息 +export function getProductionMarkForm(): AxiosPromise { + return request({ + url: '/systemapi/customer_form/production_mark_form', + method: 'post', + }); +} + +export function saveProductionForm(data: any) { + return request({ + url: '/systemapi/customer_form/save_customer_form', + method: 'post', + data: data + }); +} diff --git a/src/api/DesignForm/type.ts b/src/api/DesignForm/type.ts new file mode 100644 index 000000000..3ae8f1152 --- /dev/null +++ b/src/api/DesignForm/type.ts @@ -0,0 +1,23 @@ +//搜索表单 +export interface SearchForm extends PageQuery{ + keywords?: string; + classify?:number; +} +//自定义表单列表内容 +export interface customerFormCont{ + id:string; + name:string; + tablename:string; + states:number; + classify:number; + creatername:string; + creatertime:string; +} + +export type CustomerFormPageResult = PageResult; + +//初始化表单基本信息 +export interface customerFormConfig{ + formname:string; + formlogo:string; +} diff --git a/src/api/DesignForm/types.ts b/src/api/DesignForm/types.ts index c48a1de23..ecdbc2c9e 100644 --- a/src/api/DesignForm/types.ts +++ b/src/api/DesignForm/types.ts @@ -92,7 +92,8 @@ export interface formData{ list: any[]; form: { size: any; - name:any + name:any, + formName:any }; config: any; events?:any diff --git a/src/components/DesignForm/formControlAttr.vue b/src/components/DesignForm/formControlAttr.vue index 5a6667042..448ed0603 100644 --- a/src/components/DesignForm/formControlAttr.vue +++ b/src/components/DesignForm/formControlAttr.vue @@ -1,7 +1,7 @@