微调
This commit is contained in:
@@ -22,6 +22,6 @@ export const deleteDictType = (params: string[]) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//导出字典类型
|
//导出字典类型
|
||||||
export const exportdictType=(params: Dict.ReqDictTypeParams)=>{
|
export const exportDictType=(params: Dict.ReqDictTypeParams)=>{
|
||||||
return http.post(`/dictType/export`, params)
|
return http.download(`/dictType/export`, params)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ import {useDictStore} from '@/stores/modules/dict'
|
|||||||
import { useHandleData } from '@/hooks/useHandleData'
|
import { useHandleData } from '@/hooks/useHandleData'
|
||||||
import { useViewSize } from '@/hooks/useViewSize'
|
import { useViewSize } from '@/hooks/useViewSize'
|
||||||
import { useDownload } from '@/hooks/useDownload'
|
import { useDownload } from '@/hooks/useDownload'
|
||||||
import {deleteDictType, getDictTypeList,exportdictType} from '@/api/system/dictionary/dictType'
|
import { deleteDictType, getDictTypeList, exportDictType } from '@/api/system/dictionary/dictType'
|
||||||
|
|
||||||
const dictStore = useDictStore()
|
const dictStore = useDictStore()
|
||||||
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
|
const { popupBaseView, viewWidth, viewHeight } = useViewSize()
|
||||||
@@ -86,12 +86,6 @@ const openDialog = (titleType: string, row: Partial<Dict.ResDictType> = {}) => {
|
|||||||
typePopup.value?.open(titleType, row)
|
typePopup.value?.open(titleType, row)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出字典类型
|
|
||||||
// const downloadFile = async () => {
|
|
||||||
// ElMessageBox.confirm('确认导出字典类型数据?', '温馨提示', { type: 'warning' }).then(() =>
|
|
||||||
// useDownload(exportDictType, '字典类型列表', proTable.value?.searchParam),
|
|
||||||
// )
|
|
||||||
// }
|
|
||||||
|
|
||||||
// 批量删除字典类型
|
// 批量删除字典类型
|
||||||
const batchDelete = async (id: string[]) => {
|
const batchDelete = async (id: string[]) => {
|
||||||
@@ -114,7 +108,7 @@ const toDictData = (row: Dict.ResDictType) => {
|
|||||||
// 导出字典类型列表
|
// 导出字典类型列表
|
||||||
const downloadFile = async () => {
|
const downloadFile = async () => {
|
||||||
ElMessageBox.confirm('确认导出字典类型数据?', '温馨提示', { type: 'warning' }).then(() =>
|
ElMessageBox.confirm('确认导出字典类型数据?', '温馨提示', { type: 'warning' }).then(() =>
|
||||||
useDownload(exportdictType, '字典类型导出数据', proTable.value?.searchParam,true,'.xls'),
|
useDownload(exportDictType, '字典类型导出数据', proTable.value?.searchParam, false,'.xls'),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user