diff --git a/frontend/src/api/system/dictionary/dictData/index.ts b/frontend/src/api/system/dictionary/dictData/index.ts index e69de29..bee0146 100644 --- a/frontend/src/api/system/dictionary/dictData/index.ts +++ b/frontend/src/api/system/dictionary/dictData/index.ts @@ -0,0 +1,28 @@ +import http from '@/api' +import {type Dict} from '@/api/system/dictionary/interface' + +//获取字典数据 +export const getDictDataListByTypeId = (params: Dict.ReqDictDataParams) => { + return http.post(`/dictData/listByTypeId`, params) +} + +//添加字典数据 +export const addDictData = (params: Dict.ResDictData) => { + return http.post(`/dictData/add`, params) +} + +//编辑字典数据 +export const updateDictData = (params: Dict.ResDictData) => { + return http.post(`/dictData/update`, params) +} + +//删除字典数据 +export const deleteDictData = (params: string[]) => { + return http.post(`/dictData/delete`, params) +} + +export const getDicDataById = (params: string) => { + return http.post('/dictData/getDicDataById', params) +} + + diff --git a/frontend/src/views/system/dictionary/data.vue b/frontend/src/views/system/dictionary/data.vue index 2546342..873fbe3 100644 --- a/frontend/src/views/system/dictionary/data.vue +++ b/frontend/src/views/system/dictionary/data.vue @@ -1,14 +1,15 @@ - - - + + +
- + - + - + - + - + - +
@@ -52,25 +54,24 @@ \ No newline at end of file diff --git a/frontend/src/views/system/dictionary/dictData/index.vue b/frontend/src/views/system/dictionary/dictData/index.vue index e69de29..7a7423f 100644 --- a/frontend/src/views/system/dictionary/dictData/index.vue +++ b/frontend/src/views/system/dictionary/dictData/index.vue @@ -0,0 +1,9 @@ + + \ No newline at end of file diff --git a/frontend/src/views/system/dictionary/dictType/components/typePopup.vue b/frontend/src/views/system/dictionary/dictType/components/typePopup.vue index ea60098..f6364e5 100644 --- a/frontend/src/views/system/dictionary/dictType/components/typePopup.vue +++ b/frontend/src/views/system/dictionary/dictType/components/typePopup.vue @@ -8,6 +8,18 @@ + + + + + + + + + + + + diff --git a/frontend/src/views/system/dictionary/dictType/index.vue b/frontend/src/views/system/dictionary/dictType/index.vue index 29aed39..d97df93 100644 --- a/frontend/src/views/system/dictionary/dictType/index.vue +++ b/frontend/src/views/system/dictionary/dictType/index.vue @@ -68,35 +68,12 @@ const columns = reactive[]>([ { prop: 'remark', label: '描述', - width: 340, - }, - { - prop: 'state', - label: '状态', - enum: dictStore.getDictData('status'), - search: { - el: 'tree-select', - props: { filterable: true }, - }, - fieldNames: { label: 'label', value: 'code' }, - render: scope => { - return ( - <> - { - {scope.row.state ? '正常' : '禁用'} - } - - ) - }, + minWidth: 300, }, { prop: 'createTime', label: '创建时间', width: 180, - search: { - el: 'date-picker', - props: { type: 'daterange', valueFormat: 'YYYY-MM-DD' }, - }, }, { prop: 'operation',