From eeac9008b4879b8a79fba0a7ee70233d3527a515 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Fri, 10 Jan 2025 13:27:46 +0800 Subject: [PATCH] =?UTF-8?q?curd=E7=BB=84=E4=BB=B6=E5=86=85=E7=BD=AE?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Base/Jsq-crud/src/Jsq-crud.vue | 42 +++---- .../Jsq-searchForm/src/Jsq-searchForm.vue | 27 ++++- .../Jsq-crud/src/components/jsq-dialog.vue | 104 +++++++++++++++--- .../Base/Jsq-tree/src/types/index.ts | 2 +- Report-V3-TS/src/enums/common.ts | 6 + .../views/access/accessAuthority/index.vue | 11 +- .../access/accessAuthority/utils/schemas.ts | 4 +- 7 files changed, 149 insertions(+), 47 deletions(-) diff --git a/Report-V3-TS/src/components/Base/Jsq-crud/src/Jsq-crud.vue b/Report-V3-TS/src/components/Base/Jsq-crud/src/Jsq-crud.vue index 1e77b651..21cd1b6d 100644 --- a/Report-V3-TS/src/components/Base/Jsq-crud/src/Jsq-crud.vue +++ b/Report-V3-TS/src/components/Base/Jsq-crud/src/Jsq-crud.vue @@ -3,12 +3,12 @@ * @Author: qianlishi * @Date: 2024-12-30 18:16:00 * @LastEditors: qianlishi - * @LastEditTime: 2025-01-09 20:16:16 + * @LastEditTime: 2025-01-09 22:20:55 --> - + diff --git a/Report-V3-TS/src/components/Base/Jsq-tree/src/types/index.ts b/Report-V3-TS/src/components/Base/Jsq-tree/src/types/index.ts index 87f2aa03..dc21430b 100644 --- a/Report-V3-TS/src/components/Base/Jsq-tree/src/types/index.ts +++ b/Report-V3-TS/src/components/Base/Jsq-tree/src/types/index.ts @@ -6,7 +6,7 @@ export type JsqTreeProps = { // 对外暴露的方法 export interface TreeActionType { setProps: (treeProps: Partial) => Promise; - loadData: (params: any) => Promise; + loadData: (params?: any) => Promise; } export type TreeRegisterFn = (treeInstance: TreeActionType) => void diff --git a/Report-V3-TS/src/enums/common.ts b/Report-V3-TS/src/enums/common.ts index 57167c57..6d5d50ec 100644 --- a/Report-V3-TS/src/enums/common.ts +++ b/Report-V3-TS/src/enums/common.ts @@ -15,3 +15,9 @@ export enum DialogType { // 弹框类型 EDIT = 'EDIT', VIEW = 'VIEW' } + +export enum DialogTitle { + ADD = '新增', + EDIT = '编辑', + VIEW = '查看' +} diff --git a/Report-V3-TS/src/views/access/accessAuthority/index.vue b/Report-V3-TS/src/views/access/accessAuthority/index.vue index e3a970b9..e46823a5 100644 --- a/Report-V3-TS/src/views/access/accessAuthority/index.vue +++ b/Report-V3-TS/src/views/access/accessAuthority/index.vue @@ -3,7 +3,7 @@ * @Author: qianlishi * @Date: 2024-12-08 17:38:28 * @LastEditors: qianlishi - * @LastEditTime: 2025-01-09 20:11:15 + * @LastEditTime: 2025-01-09 22:22:16 -->