Commit bcd6b81e authored by xinzhedeai's avatar xinzhedeai

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

parent bb311e6e
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-mine', url: 'api/document-catalogue',
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-mine', url: 'api/document-catalogue',
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
}) })
}, },
// 删除 // 删除
delfileById: (id) => { delFileById: (ids) => {
return request({ return request({
url: 'api/document', url: 'api/document',
method: 'delete', method: 'delete',
data: { data: ids
id
}
}) })
}, },
// 根据企业查询所属矿山(含停产)enterpriseId // 根据企业查询所属矿山(含停产)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