feat:记录导出增加部门搜索
This commit is contained in:
1 parent
4941745f96
commit
cbfd0531e5
9 files changed
+150
-123
No files matched your search
+19
-2
@@ -40,8 +40,7 @@ export function setTagsViewNameI18n(item: any) {
|
||||
if (pattern.test(query?.tagsViewName) || pattern.test(params?.tagsViewName)) {
|
||||
// 国际化
|
||||
const urlTagsParams =
|
||||
(query?.tagsViewName && JSON.parse(query?.tagsViewName)) ||
|
||||
(params?.tagsViewName && JSON.parse(params?.tagsViewName))
|
||||
(query?.tagsViewName && JSON.parse(query?.tagsViewName)) || (params?.tagsViewName && JSON.parse(params?.tagsViewName))
|
||||
tagsViewName = urlTagsParams[i18n.global.locale.value]
|
||||
} else {
|
||||
// 非国际化
|
||||
@@ -267,6 +266,21 @@ export function downBlobFile(url: any, query: any, fileName: string) {
|
||||
})
|
||||
}
|
||||
|
||||
export function postDownBlobFile(url: any, data: any, fileName: string) {
|
||||
return request({
|
||||
url: url,
|
||||
method: "post",
|
||||
responseType: "blob",
|
||||
params: {
|
||||
current: data?.current ?? 1,
|
||||
size: data?.size ?? 99999,
|
||||
},
|
||||
data,
|
||||
}).then((response) => {
|
||||
handleBlobFile(response, fileName)
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* blob 文件刘处理
|
||||
* @param response 响应结果
|
||||
@@ -375,6 +389,9 @@ const other = {
|
||||
downBlobFile: (url: any, query: any, fileName: string) => {
|
||||
return downBlobFile(url, query, fileName)
|
||||
},
|
||||
postDownBlobFile: (url: any, data: any, fileName: string) => {
|
||||
return postDownBlobFile(url, data, fileName)
|
||||
},
|
||||
toUnderline: (str: string) => {
|
||||
return toUnderline(str)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user