Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
ReactWeb5
CivManage
Commits
0247d06d
Commit
0247d06d
authored
Mar 29, 2023
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改文件管理api为oms
parent
6210d2d0
Pipeline
#69979
passed with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
+23
-13
editConfigFileWrapper.js
...oductCenter/webConfig/menuconfig/editConfigFileWrapper.js
+3
-3
api.js
src/services/webConfig/api.js
+20
-10
No files found.
src/pages/productCenter/webConfig/menuconfig/editConfigFileWrapper.js
View file @
0247d06d
...
...
@@ -21,8 +21,8 @@ const ConfigWrapper = props => {
}
getConfigContent
(
value
)
.
then
(
res
=>
{
if
(
res
.
success
)
{
setText
(
res
.
message
);
if
(
res
.
code
===
0
)
{
setText
(
res
.
data
);
}
})
.
catch
(
e
=>
{
...
...
@@ -46,7 +46,7 @@ const ConfigWrapper = props => {
if
(
!
err
)
{
saveConfigContent
(
value
,
JSON
.
stringify
(
JSON
.
parse
(
text
),
null
,
4
))
.
then
(
res
=>
{
if
(
res
.
success
)
{
if
(
res
.
code
===
0
)
{
notification
.
success
({
message
:
'保存成功'
,
duration
:
3
,
...
...
src/services/webConfig/api.js
View file @
0247d06d
...
...
@@ -84,19 +84,29 @@ export const deleteWebMenu = param =>
export
const
getWebMenuInfo
=
param
=>
get
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter/GetMenuInfo?_version=9999`
,
param
);
// export const saveConfigContent = (fileName, content) =>
// post(
// `${CITY_SERVICE}/OMS.svc/W4_SaveConfigContent?_version=9999&fileName=${fileName}`,
// qs.stringify({ web4ConfigContent: content }),
// {
// headers: {
// 'content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
// },
// },
// );
export
const
saveConfigContent
=
(
fileName
,
content
)
=>
post
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_SaveConfigContent?_version=9999&fileName=
${
fileName
}
`
,
qs
.
stringify
({
web4ConfigContent
:
content
}),
{
headers
:
{
'content-Type'
:
'application/x-www-form-urlencoded; charset=UTF-8'
,
},
},
);
post
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter/SaveConfigContent`
,
{
fileName
,
web4ConfigContent
:
content
,
});
// export const getConfigContent = name =>
// get(`${CITY_SERVICE}/OMS.svc/W4_GetConfigContent?_version=9999`, {
// fileName: name,
// });
export
const
getConfigContent
=
name
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_GetConfigContent?_version=9999
`
,
{
get
(
`
${
PUBLISH_SERVICE
}
/PlatformCenter/GetConfigContent
`
,
{
fileName
:
name
,
});
...
...
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