Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZiBoYingJI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
ZiBoYingJI
Commits
bcd6b81e
Commit
bcd6b81e
authored
Aug 02, 2024
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电子档案 文件夹列表、文件夹新增、上传文件、文件删除 、文件列表
parent
bb311e6e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
265 additions
and
76 deletions
+265
-76
edoc.js
src/api/kd/edoc.js
+34
-21
index.vue
src/views/edoc/index.vue
+231
-55
No files found.
src/api/kd/edoc.js
View file @
bcd6b81e
import
request
from
'
@/utils/request
'
export
default
{
// ID查询
getfileByFolderId
:
(
catalogueId
)
=>
{
return
request
({
url
:
'
api/document
'
,
method
:
'
get
'
,
params
:
{
catalogueId
}
})
},
// page查询
// 获取所有目录
getDataList
:
(
pageParam
)
=>
{
return
request
({
url
:
'
api/document-catalogue/all
'
,
...
...
@@ -17,31 +9,52 @@ export default {
params
:
pageParam
})
},
// 新增
addFileByFolderId
:
(
data
)
=>
{
// 新增目录
addFolder
:
(
data
)
=>
{
return
request
({
url
:
'
api/
video-min
e
'
,
url
:
'
api/
document-catalogu
e
'
,
method
:
'
post
'
,
data
})
},
// 修改
set
:
(
iotNormalMachine
)
=>
{
// 新增目录
delFolder
:
(
ids
)
=>
{
return
request
({
url
:
'
api/document-catalogue
'
,
method
:
'
delete
'
,
data
:
ids
})
},
// 修改文件夹名称: (iotNormalMachine) => {
updateFolder
:
(
data
)
=>
{
return
request
({
url
:
'
api/
video-min
e
'
,
url
:
'
api/
document-catalogu
e
'
,
method
:
'
put
'
,
data
:
iotNormalMachine
data
})
},
// 查看目录文件列表
getfileByFolderId
:
(
params
)
=>
{
return
request
({
url
:
'
api/document/catalogueId
'
,
method
:
'
get
'
,
params
})
},
// 新增目录-文件
addFileByFolderId
:
(
data
)
=>
{
return
request
({
url
:
'
api/document
'
,
method
:
'
post
'
,
data
})
},
// 删除
del
fileById
:
(
id
)
=>
{
del
FileById
:
(
ids
)
=>
{
return
request
({
url
:
'
api/document
'
,
method
:
'
delete
'
,
data
:
{
id
}
data
:
ids
})
},
// 根据企业查询所属矿山(含停产)enterpriseId
...
...
src/views/edoc/index.vue
View file @
bcd6b81e
This diff is collapsed.
Click to expand it.
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