From 21293b5484339664bcf606ecf2c9378d8d3dbf6d Mon Sep 17 00:00:00 2001 From: leiqiaochu Date: Fri, 1 Sep 2023 10:05:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dictionary.ts | 16 +++ .../system/Dictionary/components/Left.vue | 37 +++++- .../Dictionary/components/save/index.vue | 116 ++++++++++++++++++ src/views/system/Dictionary/index.vue | 22 +++- 4 files changed, 182 insertions(+), 9 deletions(-) create mode 100644 src/api/system/dictionary.ts create mode 100644 src/views/system/Dictionary/components/save/index.vue diff --git a/src/api/system/dictionary.ts b/src/api/system/dictionary.ts new file mode 100644 index 00000000..4cfd5a06 --- /dev/null +++ b/src/api/system/dictionary.ts @@ -0,0 +1,16 @@ +import server, { request } from '@/utils/request'; + +/** + * 查询字典列表 + */ +export const getDicList = (data:any) => request.post('/dictionary/_query/no-paging',data) + +/** + * 查询字典ID是否重复 + */ +export const verifyId = (id:string) => request.post(`/dictionary/_exists`,{where:`id is ${id}`}) + +/** + * 保存字典 + */ +export const addDictionary = (data:any) => request.post('/dictionary',data) \ No newline at end of file diff --git a/src/views/system/Dictionary/components/Left.vue b/src/views/system/Dictionary/components/Left.vue index 6997d978..ab7d77de 100644 --- a/src/views/system/Dictionary/components/Left.vue +++ b/src/views/system/Dictionary/components/Left.vue @@ -6,22 +6,51 @@
- 新增字典 + 新增字典 下载 导入
- +
+ \ No newline at end of file diff --git a/src/views/system/Dictionary/index.vue b/src/views/system/Dictionary/index.vue index 09785d2f..4e272aaf 100644 --- a/src/views/system/Dictionary/index.vue +++ b/src/views/system/Dictionary/index.vue @@ -1,11 +1,13 @@ @@ -17,5 +19,15 @@ import Left from './components/Left.vue' display: flex; background-color: #fff; padding: 24px; + height: 100%; +} +.dictionary_left{ + border-right: 1px solid #f0f0f0; + padding-right: 24px; + flex:1; + height:100% +} +.dictionary_right{ + flex:4 } \ No newline at end of file