diff --git a/src/api/system/dict/dict.data.ts b/src/api/system/dict/dict.data.ts index 87e7dce7..093f88fa 100644 --- a/src/api/system/dict/dict.data.ts +++ b/src/api/system/dict/dict.data.ts @@ -45,5 +45,5 @@ export const deleteDictData = (id: number) => { // 导出字典类型数据 export const exportDictData = (params) => { - return request.get({ url: '/system/dict-data/export', params }) + return request.download({ url: '/system/dict-data/export', params }) } diff --git a/src/api/system/dict/dict.type.ts b/src/api/system/dict/dict.type.ts index ed2969f1..eaa5fb6d 100644 --- a/src/api/system/dict/dict.type.ts +++ b/src/api/system/dict/dict.type.ts @@ -40,5 +40,5 @@ export const deleteDictType = (id: number) => { } // 导出字典类型 export const exportDictType = (params) => { - return request.get({ url: '/system/dict-type/export', params }) + return request.download({ url: '/system/dict-type/export', params }) } diff --git a/src/views/system/dict/DictTypeForm.vue b/src/views/system/dict/DictTypeForm.vue index 5e416d78..5d6f4575 100644 --- a/src/views/system/dict/DictTypeForm.vue +++ b/src/views/system/dict/DictTypeForm.vue @@ -21,7 +21,7 @@ {{ dict.label }} diff --git a/src/views/system/dict/data/DictDataForm.vue b/src/views/system/dict/data/DictDataForm.vue index 2094371d..008b6fb1 100644 --- a/src/views/system/dict/data/DictDataForm.vue +++ b/src/views/system/dict/data/DictDataForm.vue @@ -27,7 +27,7 @@ {{ dict.label }} diff --git a/src/views/system/dict/data/index.vue b/src/views/system/dict/data/index.vue index 2811f06a..aa200116 100644 --- a/src/views/system/dict/data/index.vue +++ b/src/views/system/dict/data/index.vue @@ -30,7 +30,7 @@ diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index acc737c6..03df223e 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -35,7 +35,7 @@ > @@ -161,7 +161,7 @@ const queryParams = reactive({ name: '', type: '', status: undefined, - createTime: [] + createTime: [undefined, undefined] }) const queryFormRef = ref() // 搜索的表单 const exportLoading = ref(false) // 导出的加载中