smart_archives_web/src/api/archivesManagement/index.js

82 lines
1.7 KiB
JavaScript
Raw Normal View History

2025-09-09 18:51:52 +08:00
import request from '@/utils/request'
// 获取档案目录树
export function getArchivalCatalogueTreeApi(params) {
return request({
url: '/smartArchives/archive/getArchivalCatalogueTree',
method: 'get',
params,
})
}
// 新增档案目录
2025-09-15 17:35:31 +08:00
export function addArchiveLeftApi(data) {
2025-09-09 18:51:52 +08:00
return request({
2025-09-15 17:35:31 +08:00
url: '/smartArchives/archive/addLeft',
2025-09-09 18:51:52 +08:00
method: 'post',
2025-09-15 17:35:31 +08:00
data:data
})
}
// 新增档案表格数据
export function addArchiveRightApi(data) {
return request({
url: '/smartArchives/archive/addRight',
method: 'post',
data:data
2025-09-09 18:51:52 +08:00
})
}
// 修改档案目录
2025-09-15 17:35:31 +08:00
export function editArchiveLeftApi(data) {
2025-09-09 18:51:52 +08:00
return request({
2025-09-15 17:35:31 +08:00
url: '/smartArchives/archive/editLeft',
method: 'post',
data:data,
})
}
// 修改档案目录
export function editArchiveRightApi(data) {
return request({
url: '/smartArchives/archive/editRight',
method: 'post',
data:data,
2025-09-09 18:51:52 +08:00
})
}
// 删除档案目录
export function delArchiveApi(data) {
return request({
2025-09-15 17:35:31 +08:00
url: '/smartArchives/archive/del',
method: 'post',
data:data,
2025-09-09 18:51:52 +08:00
})
}
// 编辑-详情
export function getArchivalCatalogueByIdApi(params) {
return request({
url: '/smartArchives/archive/getArchivalCatalogueById',
method: 'get',
params
})
}
// 列表
export function getArchivalCatalogueListApi(params) {
return request({
url: '/smartArchives/archive/getArchivalCatalogue',
method: 'get',
params
})
2025-09-15 17:35:31 +08:00
}
// 查询序号
export function geMaxSortApi(params) {
return request({
url: '/smartArchives/archive/geMaxSort',
method: 'get',
params
})
2025-09-09 18:51:52 +08:00
}