pan f7f98ee723 1、工具管理独立处理
2、文档资源管理调整:批量导出、文档资源管理关联附件独立处理
2024-09-05 21:23:42 +08:00

81 lines
1.3 KiB
JavaScript

import request from '@/utils/request'
// 查询工具信息列表
export function listTool(query) {
return request({
url: '/tool/list',
method: 'get',
params: query
})
}
// 查询工具信息详细
export function getTool(toolId) {
return request({
url: '/tool/' + toolId,
method: 'get'
})
}
export function getInfoByBpmcId(bpmcId) {
return request({
url: '/tool/bpmc/' + bpmcId,
method: 'get'
})
}
// 新增工具信息
export function addTool(data) {
return request({
url: '/tool',
method: 'post',
data: data,
timeout: 30*60*1000
})
}
// 修改工具信息
export function updateTool(data) {
return request({
url: '/tool/edit',
method: 'post',
data: data
})
}
// 删除工具信息
export function delTool(toolId) {
return request({
url: '/tool/' + toolId,
method: 'delete'
})
}
export function checkToolExist(params) {
return request({
url: '/tool/checkToolExist',
method: 'get',
params: params
})
}
// 获取统计信息
export function getStatistics(query) {
return request({
url: '/tool/statistics',
method: 'get',
params: query
})
}
// get导出word字段
export function exportWordList(query) {
return request({
url: '/tool/export/word/list',
method: 'post',
data: query
})
}