From b447cfdead6d2141d6fa183dfd24b2c6be5c1dee Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Fri, 29 Mar 2024 14:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=88=97=E8=A1=A8=E6=B8=85=E9=99=A4=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=92=8C=E7=94=9F=E6=88=90=E4=BB=A3=E7=A0=81=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=8A=9F=E8=83=BD=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/DesignForm/fieldUnit.ts | 6 + src/api/DesignForm/tableButton.ts | 32 +- .../sysworkflow/lowcodepage/pageList.vue | 338 +++++++++++++++--- .../lowcodepage/pageListHeadTools.vue | 2 +- .../lowcodepage/pageSetUpDialog/codePage.vue | 52 +++ .../pageSetUpDialog/controlSetup.vue | 19 +- .../pageSetUpDialog/previewPage.vue | 14 + .../pageSetUpDialog/searchField.vue | 225 ++++++++++++ 8 files changed, 613 insertions(+), 75 deletions(-) create mode 100644 src/api/DesignForm/fieldUnit.ts create mode 100644 src/views/sysworkflow/lowcodepage/pageSetUpDialog/codePage.vue create mode 100644 src/views/sysworkflow/lowcodepage/pageSetUpDialog/previewPage.vue create mode 100644 src/views/sysworkflow/lowcodepage/pageSetUpDialog/searchField.vue diff --git a/src/api/DesignForm/fieldUnit.ts b/src/api/DesignForm/fieldUnit.ts new file mode 100644 index 000000000..70aedafe0 --- /dev/null +++ b/src/api/DesignForm/fieldUnit.ts @@ -0,0 +1,6 @@ +export const inputUnit = ["input","varchar"] +export const timeUnit = ["time"] +export const orgUnit = ["org"] +export const choiceUnit = ["radio"] +export const switchUnit = ["switch"] +export const checkboxUnit = ["checkbox"] diff --git a/src/api/DesignForm/tableButton.ts b/src/api/DesignForm/tableButton.ts index 2ba457de9..20551274f 100644 --- a/src/api/DesignForm/tableButton.ts +++ b/src/api/DesignForm/tableButton.ts @@ -2,7 +2,7 @@ export interface tableButton { id?: string; name?: string; field?: string; - types?: string; + type?: string; attribute:string; pattern?: string; fieldClass?: string; @@ -10,6 +10,7 @@ export interface tableButton { inactiveValue?: string; options?: optionsInfo[]; config?:any; + label?: string; } export interface optionsInfo { label: string; @@ -70,10 +71,10 @@ export const tableAttrLogButtonList :tableButton[] = [ // attribute:"checkbox" id: "checkbox", - name: "多选", + label: "多选", field: "checkbox", - types: "-", - attribute:"", + type: "selection", + attribute:"-", pattern: "bigint", fieldClass: "-", activeValue: "", @@ -83,10 +84,10 @@ export const tableAttrLogButtonList :tableButton[] = [ { id: "serialNumber", - name: "序号", + label: "序号", field: "index", - types: "-", - attribute:"", + type: "index", + attribute:"-", pattern: "bigint", fieldClass: "-", activeValue: "", @@ -95,10 +96,10 @@ export const tableAttrLogButtonList :tableButton[] = [ }, { id: "operate", - name: "操作", + label: "操作", field: "operate", - types: "-", - attribute:"", + type: "", + attribute:"-", pattern: "bigint", fieldClass: "__control", activeValue: "", @@ -106,3 +107,14 @@ export const tableAttrLogButtonList :tableButton[] = [ options: [] } ]; +//新增和编辑页面展开方式 +export const diaOrDrawer = [ + { + label:"抽屉", + value:"drawer" + }, + { + label:"弹窗", + value:"dialog" + } +] diff --git a/src/views/sysworkflow/lowcodepage/pageList.vue b/src/views/sysworkflow/lowcodepage/pageList.vue index 594291655..dc04529bb 100644 --- a/src/views/sysworkflow/lowcodepage/pageList.vue +++ b/src/views/sysworkflow/lowcodepage/pageList.vue @@ -5,8 +5,8 @@ -->