Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
strategy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
strategy-ui
Commits
6770c6ee
Commit
6770c6ee
authored
Dec 31, 2019
by
derong.zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路径
parent
a25d997e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
strategymange.serve.js
src/api/strategymange.serve.js
+18
-18
No files found.
src/api/strategymange.serve.js
View file @
6770c6ee
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
'
}})
}})
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment