信息中心前端部分迁移
This commit is contained in:
93
gear-ui3/src/api/oa/reportDetail.js
Normal file
93
gear-ui3/src/api/oa/reportDetail.js
Normal file
@@ -0,0 +1,93 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设计项目汇报详情列表
|
||||
export async function listReportDetail(query) {
|
||||
// return {
|
||||
// rows: [
|
||||
// {
|
||||
// reportDetailId: 1,
|
||||
// deviceCode: 1,
|
||||
// category: '设备类型2',
|
||||
// deviceDescription: '设备生产说明',
|
||||
// reportDetail: '汇报详情',
|
||||
// ossIds: '1,2',
|
||||
// images: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php'
|
||||
// },
|
||||
// {
|
||||
// reportDetailId: 2,
|
||||
// deviceCode: 1,
|
||||
// category: '设备类型3',
|
||||
// deviceDescription: '设备生产说明',
|
||||
// reportDetail: '汇报详情',
|
||||
// images: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php',
|
||||
// ossIds: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php'
|
||||
// },
|
||||
// {
|
||||
// reportDetailId: 3,
|
||||
// deviceCode: 1,
|
||||
// category: '设备类型4',
|
||||
// deviceDescription: '设备生产说明',
|
||||
// reportDetail: '汇报详情',
|
||||
// images: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php',
|
||||
// ossIds: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php'
|
||||
// },
|
||||
// {
|
||||
// reportDetailId: 4,
|
||||
// deviceCode: 1,
|
||||
// category: '设备类型5',
|
||||
// deviceDescription: '设备生产说明',
|
||||
// reportDetail: '汇报详情',
|
||||
// images: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php',
|
||||
// ossIds: 'https://api.mtyqx.cn/api/random.php,https://api.mtyqx.cn/xjjapi/random.php'
|
||||
// },
|
||||
// ],
|
||||
// total: 1
|
||||
// }
|
||||
return request({
|
||||
url: '/system/reportDetail/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设计项目汇报详情详细
|
||||
export function getReportDetail(id) {
|
||||
return request({
|
||||
url: '/system/reportDetail/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设计项目汇报详情
|
||||
export function addReportDetail(data) {
|
||||
return request({
|
||||
url: '/system/reportDetail',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设计项目汇报详情
|
||||
export function updateReportDetail(data) {
|
||||
return request({
|
||||
url: '/system/reportDetail',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设计项目汇报详情
|
||||
export function delReportDetail(id) {
|
||||
return request({
|
||||
url: '/system/reportDetail/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export function listReportDetailByProjectId(projectId) {
|
||||
return request({
|
||||
url: '/system/reportDetail/project/' + projectId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user