Commit bcd6b81e authored by xinzhedeai's avatar xinzhedeai

电子档案 文件夹列表、文件夹新增、上传文件、文件删除 、文件列表

parent bb311e6e
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-mine',
url: 'api/document-catalogue',
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-mine',
url: 'api/document-catalogue',
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
})
},
// 删除
delfileById: (id) => {
delFileById: (ids) => {
return request({
url: 'api/document',
method: 'delete',
data: {
id
}
data: ids
})
},
// 根据企业查询所属矿山(含停产)enterpriseId
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment