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
Show 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
'
import
request
from
'
@/utils/request
'
export
default
{
export
default
{
// ID查询
// 获取所有目录
getfileByFolderId
:
(
catalogueId
)
=>
{
return
request
({
url
:
'
api/document
'
,
method
:
'
get
'
,
params
:
{
catalogueId
}
})
},
// page查询
getDataList
:
(
pageParam
)
=>
{
getDataList
:
(
pageParam
)
=>
{
return
request
({
return
request
({
url
:
'
api/document-catalogue/all
'
,
url
:
'
api/document-catalogue/all
'
,
...
@@ -17,31 +9,52 @@ export default {
...
@@ -17,31 +9,52 @@ export default {
params
:
pageParam
params
:
pageParam
})
})
},
},
// 新增目录
// 新增
addFolder
:
(
data
)
=>
{
addFileByFolderId
:
(
data
)
=>
{
return
request
({
return
request
({
url
:
'
api/
video-min
e
'
,
url
:
'
api/
document-catalogu
e
'
,
method
:
'
post
'
,
method
:
'
post
'
,
data
data
})
})
},
},
// 修改
// 新增目录
set
:
(
iotNormalMachine
)
=>
{
delFolder
:
(
ids
)
=>
{
return
request
({
url
:
'
api/document-catalogue
'
,
method
:
'
delete
'
,
data
:
ids
})
},
// 修改文件夹名称: (iotNormalMachine) => {
updateFolder
:
(
data
)
=>
{
return
request
({
return
request
({
url
:
'
api/
video-min
e
'
,
url
:
'
api/
document-catalogu
e
'
,
method
:
'
put
'
,
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
({
return
request
({
url
:
'
api/document
'
,
url
:
'
api/document
'
,
method
:
'
delete
'
,
method
:
'
delete
'
,
data
:
{
data
:
ids
id
}
})
})
},
},
// 根据企业查询所属矿山(含停产)enterpriseId
// 根据企业查询所属矿山(含停产)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