Commit 6770c6ee authored by derong.zhang's avatar derong.zhang

修改路径

parent a25d997e
import axios from '../services/http.service' import axios from '../services/http.service'
// import sapi from '../config/index' import sapi from '../config/index'
export function getSoulSoother () { export function getSoulSoother () {
return axios.get(`/gateway/api/sysStrategy/getTodaySoul`, {headers: { return axios.get(`${sapi}/api/sysStrategy/getTodaySoul`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
export function getlist () { export function getlist () {
return axios.get(`/gateway/api/sysStrategy/query`, {headers: { return axios.get(`${sapi}/api/sysStrategy/query`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
export function addtitlelist (data) { export function addtitlelist (data) {
return axios.post(`/gateway/api/strategyObjectives/save`, data, {headers: { return axios.post(`${sapi}/api/strategyObjectives/save`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
export function delatetitlelist (data) { export function delatetitlelist (data) {
return axios.delete(`/gateway/api/strategyObjectives/delete/${data}`, {headers: { return axios.delete(`${sapi}/api/strategyObjectives/delete/${data}`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
export function savechildput (data) { export function savechildput (data) {
return axios.post(`/gateway/api/keyresults/save`, data, {headers: { return axios.post(`${sapi}/api/keyresults/save`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 删除战略步骤 // 删除战略步骤
export function delatechildputchlid (data) { export function delatechildputchlid (data) {
return axios.delete(`/gateway/api/keyresults/delete/${data}`, {headers: { return axios.delete(`${sapi}/api/keyresults/delete/${data}`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 保存战略大标题 // 保存战略大标题
export function savehostTitle (data) { export function savehostTitle (data) {
return axios.post(`/gateway/api/sysStrategy/edit`, data, {headers: { return axios.post(`${sapi}/api/sysStrategy/edit`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 排序战略 // 排序战略
export function sortstrategy (arr, data) { export function sortstrategy (arr, data) {
return axios.post(`/gateway/api/keyresults/${data}/order`, arr, {headers: { return axios.post(`${sapi}/api/keyresults/${data}/order`, arr, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 查询素材列表 // 查询素材列表
export function getsourcelist (data) { export function getsourcelist (data) {
return axios.get(`/gateway/api/material/${data}/list`, {headers: { return axios.get(`${sapi}/api/material/${data}/list`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 编辑素材 // 编辑素材
export function editsourceitem (data) { export function editsourceitem (data) {
return axios.post(`/gateway/api/material/save`, data, {headers: { return axios.post(`${sapi}/api/material/save`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 删除素材 // 删除素材
export function delatesourceitem (data) { export function delatesourceitem (data) {
return axios.delete(`/gateway/api/material/delete/${data}`, {headers: { return axios.delete(`${sapi}/api/material/delete/${data}`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 查询战略详细列表 // 查询战略详细列表
export function getdetailList (data) { export function getdetailList (data) {
return axios.post(`/gateway/api/keyresultsDetail/${data}/list`, {headers: { return axios.post(`${sapi}/api/keyresultsDetail/${data}/list`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 新增或修改战略详情 // 新增或修改战略详情
export function edutListitem (data) { export function edutListitem (data) {
return axios.post(`/gateway/api/keyresultsDetail/save`, data, {headers: { return axios.post(`${sapi}/api/keyresultsDetail/save`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 删除战略详情 // 删除战略详情
export function delateListitem (data) { export function delateListitem (data) {
return axios.delete(`/gateway/api/keyresultsDetail/delete/${data}`, {headers: { return axios.delete(`${sapi}/api/keyresultsDetail/delete/${data}`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 获取钉钉员工列表 // 获取钉钉员工列表
export function getname (data) { export function getname (data) {
return axios.get(`/gateway/api/dingdingUser/searchDingDingUserByKey?key=${data}`, {headers: { return axios.get(`${sapi}/api/dingdingUser/searchDingDingUserByKey?key=${data}`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 获取鉴权相关参数配置 // 获取鉴权相关参数配置
export function getconfiglist () { export function getconfiglist () {
return axios.get(`/gateway/api/dingTalk/getDingTalkConfig`, {headers: { return axios.get(`${sapi}/api/dingTalk/getDingTalkConfig`, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
// 发送钉钉消息 // 发送钉钉消息
export function sendding (data) { export function sendding (data) {
return axios.post(`/gateway/api/dingNotice/send`, data, {headers: { return axios.post(`${sapi}/api/dingNotice/send`, data, {headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
}}) }})
} }
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