Update api.js

This commit is contained in:
姜棚 2022-01-25 18:01:12 +08:00
parent e09d1af5d0
commit 4536b95181
1 changed files with 9 additions and 9 deletions

View File

@ -316,7 +316,7 @@ export const startOrStopPlan = (id, params) => {
//创建key批次信息
export const addKeysBatchInfo = (id, params) => {
return req('post', "http://192.168.6.165:8080" + "/plan/" + id + "/keys", params)
return req('post', baseurl + "/plan/" + id + "/keys", params)
}
@ -345,7 +345,7 @@ export const getKeyBatchDetail = (id, params) => {
//更新key批次详细信息
export const putKeyBatchDetail = (id, params) => {
return req('put', "http://192.168.6.165:8080" + "/keys/" + id, params)
return req('put', baseurl + "/keys/" + id, params)
}
//发送key批次压缩包和压缩包密码
export const planSend = (id, params) => {
@ -847,28 +847,28 @@ export const getThemeType= () => {
//key码列表
export const getkeyDetailList= (id,data) => {
return req('get', "http://192.168.6.165:8080" + "/key/"+id,data)
return req('get', baseurl + "/key/"+id,data)
}
//提交审核
export const approvals= (id,data) => {
return req('post', "http://192.168.6.165:8080" + "/plan/"+id+"/approvals",data)
return req('post', baseurl + "/plan/"+id+"/approvals",data)
}
export const getApprovalsInfo= (id,data) => {
return req('get', "http://192.168.6.165:8080" + "/approvals/"+id+"/market_approval_data",data)
return req('get', baseurl + "/approvals/"+id+"/market_approval_data",data)
}
export const terminateApprovals= (id,data) => {
return req('put', "http://192.168.6.165:8080" + "/approvals/"+id+"/terminate",data)
return req('put', baseurl + "/approvals/"+id+"/terminate",data)
}
export const getApprovalsStatus= (id,data) => {
return req('get', "http://192.168.6.165:8080" + "/approvals/"+id+"/status")
return req('get', baseurl + "/approvals/"+id+"/status")
}
//作废
@ -905,12 +905,12 @@ export const planCancel= (id) => {
//key审批
export const keyApproval =(plan_id,key_id,data) => {
return req('post',"http://192.168.6.165:8080" + "/plan/"+plan_id+"/keys/"+key_id+"/approval",data)
return req('post',baseurl + "/plan/"+plan_id+"/keys/"+key_id+"/approval",data)
}
export const keyEditApproval =(key_id,data) => {
return req('post',"http://192.168.6.165:8080" + "/keys/"+key_id+"/approval",data)
return req('post',baseurl + "/keys/"+key_id+"/approval",data)
}