信息中心前端部分迁移
This commit is contained in:
51
gear-ui3/src/api/oa/express.js
Normal file
51
gear-ui3/src/api/oa/express.js
Normal file
@@ -0,0 +1,51 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询物流预览列表
|
||||
export function listExpress(query) {
|
||||
return request({
|
||||
url: '/oa/express/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询物流预览详细
|
||||
export function getExpress(expressId) {
|
||||
return request({
|
||||
url: '/oa/express/' + expressId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 查询物流预览详细
|
||||
export function refreshExpress(expressId) {
|
||||
return request({
|
||||
url: '/oa/express/refresh/' + expressId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增物流预览
|
||||
export function addExpress(data) {
|
||||
return request({
|
||||
url: '/oa/express',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改物流预览
|
||||
export function updateExpress(data) {
|
||||
return request({
|
||||
url: '/oa/express',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除物流预览
|
||||
export function delExpress(expressId) {
|
||||
return request({
|
||||
url: '/oa/express/' + expressId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
gear-ui3/src/api/oa/expressQuestion.js
Normal file
44
gear-ui3/src/api/oa/expressQuestion.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询快递问题列表
|
||||
export function listExpressQuestion(query) {
|
||||
return request({
|
||||
url: '/oa/expressQuestion/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询快递问题详细
|
||||
export function getExpressQuestion(questionId) {
|
||||
return request({
|
||||
url: '/oa/expressQuestion/' + questionId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增快递问题
|
||||
export function addExpressQuestion(data) {
|
||||
return request({
|
||||
url: '/oa/expressQuestion',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改快递问题
|
||||
export function updateExpressQuestion(data) {
|
||||
return request({
|
||||
url: '/oa/expressQuestion',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除快递问题
|
||||
export function delExpressQuestion(questionId) {
|
||||
return request({
|
||||
url: '/oa/expressQuestion/' + questionId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
61
gear-ui3/src/api/oa/feedback.js
Normal file
61
gear-ui3/src/api/oa/feedback.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询问题反馈列表
|
||||
export function listFeedback(query) {
|
||||
return request({
|
||||
url: '/oa/feedback/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询问题反馈列表
|
||||
export function indexListFeedback(query) {
|
||||
return request({
|
||||
url: '/oa/feedback/index-list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询问题反馈详细
|
||||
export function getFeedback(feedbackId) {
|
||||
return request({
|
||||
url: '/oa/feedback/' + feedbackId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增问题反馈
|
||||
export function addFeedback(data) {
|
||||
return request({
|
||||
url: '/oa/feedback',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改问题反馈
|
||||
export function updateFeedback(data) {
|
||||
return request({
|
||||
url: '/oa/feedback',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改问题反馈
|
||||
export function toRead(data) {
|
||||
return request({
|
||||
url: '/oa/feedback/toRead',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除问题反馈
|
||||
export function delFeedback(feedbackId) {
|
||||
return request({
|
||||
url: '/oa/feedback/remove/' + feedbackId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
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'
|
||||
})
|
||||
}
|
||||
81
gear-ui3/src/api/oa/reportSummary.js
Normal file
81
gear-ui3/src/api/oa/reportSummary.js
Normal file
@@ -0,0 +1,81 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询设计项目汇报概述列表
|
||||
export async function listReportSummary(query) {
|
||||
// return {
|
||||
// rows: [
|
||||
// {
|
||||
// reportSummaryId: 1,
|
||||
// reportTitle: '汇报标题',
|
||||
// reportDate: '汇报日期',
|
||||
// reporter: '汇报人',
|
||||
// projectName: '设计项目',
|
||||
// projectId: '1'
|
||||
// },
|
||||
// {
|
||||
// reportSummaryId: 2,
|
||||
// reportTitle: '汇报标题',
|
||||
// reportDate: '汇报日期',
|
||||
// reporter: '汇报人',
|
||||
// projectName: '设计项目',
|
||||
// projectId: '1'
|
||||
// },
|
||||
// {
|
||||
// reportSummaryId: 3,
|
||||
// reportTitle: '汇报标题',
|
||||
// reportDate: '汇报日期',
|
||||
// reporter: '汇报人',
|
||||
// projectName: '设计项目',
|
||||
// projectId: '1'
|
||||
// },
|
||||
// {
|
||||
// reportSummaryId: 4,
|
||||
// reportTitle: '汇报标题',
|
||||
// reportDate: '汇报日期',
|
||||
// reporter: '汇报人',
|
||||
// projectName: '设计项目',
|
||||
// projectId: '1'
|
||||
// },
|
||||
// ],
|
||||
// total: 1,
|
||||
// }
|
||||
return request({
|
||||
url: '/system/reportSummary/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询设计项目汇报概述详细
|
||||
export function getReportSummary(id) {
|
||||
return request({
|
||||
url: '/system/reportSummary/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增设计项目汇报概述
|
||||
export function addReportSummary(data) {
|
||||
return request({
|
||||
url: '/system/reportSummary',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改设计项目汇报概述
|
||||
export function updateReportSummary(data) {
|
||||
return request({
|
||||
url: '/system/reportSummary',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除设计项目汇报概述
|
||||
export function delReportSummary(id) {
|
||||
return request({
|
||||
url: '/system/reportSummary/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user