Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
571ff13f
Commit
571ff13f
authored
Jul 07, 2023
by
wangdanlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
下载公告方法
parent
808a08da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
util.js
applications/architecture-dee/src/utils/util.js
+10
-1
No files found.
applications/architecture-dee/src/utils/util.js
View file @
571ff13f
...
@@ -18,6 +18,7 @@ import httpObj from './http'
...
@@ -18,6 +18,7 @@ import httpObj from './http'
import
_get
from
'lodash.get'
import
_get
from
'lodash.get'
import
_set
from
'lodash.set'
import
_set
from
'lodash.set'
import
router
from
'../router'
import
router
from
'../router'
import
{
downFileByFileId
,
downFileUseFileId
}
from
'../api/file'
// 限制promise并发数量
// 限制promise并发数量
export
function
promiseLimit
(
func
,
funcParams
,
limit
=
5
)
{
export
function
promiseLimit
(
func
,
funcParams
,
limit
=
5
)
{
let
i
=
0
let
i
=
0
...
@@ -1542,6 +1543,13 @@ export function deepClone(obj) {
...
@@ -1542,6 +1543,13 @@ export function deepClone(obj) {
}
}
return objClone
return objClone
}
}
export function fileByIdDownload(objName, objId, linkId) {
downFileByFileId(objName, objId, linkId).then(res => {
this.downLoadFile(res)
})
}
export default {
export default {
treeFindBackArray,
treeFindBackArray,
throttle,
throttle,
...
@@ -1622,5 +1630,6 @@ export default {
...
@@ -1622,5 +1630,6 @@ export default {
getComputeDay,
getComputeDay,
groupBy,
groupBy,
filterParams,
filterParams,
deepClone
deepClone,
fileByIdDownload
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment