Commit 0bfb4160 authored by Kimber's avatar Kimber
parents fb62f717 bcd6b81e
import request from '@/utils/request'
export default {
// 获取所有目录
getDataList: (pageParam) => {
return request({
url: 'api/document-catalogue/all',
method: 'get',
params: pageParam
})
},
// 新增目录
addFolder: (data) => {
return request({
url: 'api/document-catalogue',
method: 'post',
data
})
},
// 新增目录
delFolder: (ids) => {
return request({
url: 'api/document-catalogue',
method: 'delete',
data: ids
})
},
// 修改文件夹名称: (iotNormalMachine) => {
updateFolder: (data) => {
return request({
url: 'api/document-catalogue',
method: 'put',
data
})
},
// 查看目录文件列表
getfileByFolderId: (params) => {
return request({
url: 'api/document/catalogueId',
method: 'get',
params
})
},
// 新增目录-文件
addFileByFolderId: (data) => {
return request({
url: 'api/document',
method: 'post',
data
})
},
// 删除
delFileById: (ids) => {
return request({
url: 'api/document',
method: 'delete',
data: ids
})
},
// 根据企业查询所属矿山(含停产)enterpriseId
getAllMineByEnterpriseId: (mineSearchParam) => {
return request({
url: 'api/mine/all-mine/list',
method: 'get',
params: mineSearchParam
})
}
}
import request from '@/utils/request'
export default {
// 监测点数据类型
monitoringPointDataTypes: () => {
return [{
key: 1, value: '开关量'
}, {
key: 2, value: '模拟量'
}]
},
// ID查询
getById: (id) => {
return request({
url: 'api/iot-normal-machine/environment/id',
method: 'get',
params: { id }
})
},
// page查询
getDataList: (pageParam) => {
return request({
url: 'api/video-mine',
method: 'get',
params: pageParam
})
},
// 新增
add: (iotNormalMachine) => {
return request({
url: 'api/video-mine',
method: 'post',
data: iotNormalMachine
})
},
// 修改
set: (iotNormalMachine) => {
return request({
url: 'api/video-mine',
method: 'put',
data: iotNormalMachine
})
},
// 删除
deleteById: (ids) => {
return request({
url: 'api/video-mine',
method: 'delete',
data: ids
})
},
// 根据企业查询所属矿山(含停产)enterpriseId
getAllMineByEnterpriseId: (mineSearchParam) => {
return request({
url: 'api/mine/all-mine/list',
method: 'get',
params: mineSearchParam
})
}
}
This diff is collapsed.
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