|
@@ -1,13 +1,11 @@
|
|
|
import request from '@/utils/request'
|
|
|
-import { mockUrl } from '@/apiConfig/api'
|
|
|
+import { Presentation } from '@/apiConfig/api'
|
|
|
// ================================== Interface ======================================
|
|
|
-// const mockUrl = 'http://10.179.24.176:8980' // 线下
|
|
|
-// const mockUrl = 'http://10.179.24.123:8980' // 线上
|
|
|
|
|
|
// 全局list
|
|
|
export function dailyReportList(data) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/list',
|
|
|
+ url: Presentation + '/dailyReport/list',
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -16,7 +14,7 @@ export function dailyReportList(data) {
|
|
|
// 搜索
|
|
|
export function dailyReportGet(id, data) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/get?id=' + id,
|
|
|
+ url: Presentation + '/dailyReport/get?id=' + id,
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -25,7 +23,7 @@ export function dailyReportGet(id, data) {
|
|
|
// 添加
|
|
|
export function dailyReportCreate(data) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/create',
|
|
|
+ url: Presentation + '/dailyReport/create',
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -34,7 +32,7 @@ export function dailyReportCreate(data) {
|
|
|
// 删除
|
|
|
export function dailyReportDelete(data, id) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/delete?id=' + id,
|
|
|
+ url: Presentation + '/dailyReport/delete?id=' + id,
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -43,7 +41,7 @@ export function dailyReportDelete(data, id) {
|
|
|
// 更新
|
|
|
export function dailyReportUpdate(data) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/update',
|
|
|
+ url: Presentation + '/dailyReport/update',
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -51,7 +49,7 @@ export function dailyReportUpdate(data) {
|
|
|
// echarts
|
|
|
export function bugDailyList(data) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/bug/DailyList',
|
|
|
+ url: Presentation + '/bug/DailyList',
|
|
|
method: 'post',
|
|
|
data
|
|
|
})
|
|
@@ -59,7 +57,7 @@ export function bugDailyList(data) {
|
|
|
// 日报
|
|
|
export function dailyReport(params) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/dailyReport/get',
|
|
|
+ url: Presentation + '/dailyReport/get',
|
|
|
method: 'get',
|
|
|
params
|
|
|
})
|
|
@@ -67,7 +65,7 @@ export function dailyReport(params) {
|
|
|
// 提测报告
|
|
|
export function launchTest(params) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/launchTest/get',
|
|
|
+ url: Presentation + '/launchTest/get',
|
|
|
method: 'get',
|
|
|
params
|
|
|
})
|
|
@@ -75,7 +73,7 @@ export function launchTest(params) {
|
|
|
// echarts
|
|
|
export function projectTestReport(params) {
|
|
|
return request({
|
|
|
- url: mockUrl + '/projectTestReport/get',
|
|
|
+ url: Presentation + '/projectTestReport/get',
|
|
|
method: 'get',
|
|
|
params
|
|
|
})
|