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