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 @@