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
06d4ffdd
Commit
06d4ffdd
authored
4 years ago
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 修改web配置
parent
7f719899
master
dev-database
dev-solution
dev-达梦
styleEditBranch
No related merge requests found
Pipeline
#23260
passed with stages
in 20 minutes 19 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
35 deletions
+68
-35
context.js
src/components/Upload/context.js
+0
-1
index.less
src/components/Upload/index.less
+3
-2
index.tsx
src/components/Upload/index.tsx
+1
-3
webMenu.jsx
src/pages/webConfig/menuconfig/webMenu.jsx
+61
-29
api.js
src/services/webConfig/api.js
+3
-0
No files found.
src/components/Upload/context.js
View file @
06d4ffdd
...
...
@@ -23,7 +23,6 @@ const PictureWallProvider = props => {
if
(
item
.
baseUrl
&&
item
.
moduleName
!==
'CityTemp'
)
{
if
(
!
localStorage
.
getItem
(
'pd2-baseUrl'
))
{
localStorage
.
setItem
(
'pd2-baseUrl'
,
item
.
baseUrl
);
console
.
log
(
1
,
item
.
moduleName
);
}
}
});
...
...
This diff is collapsed.
Click to expand it.
src/components/Upload/index.less
View file @
06d4ffdd
...
...
@@ -56,7 +56,7 @@
.imgBox {
display: flex;
flex-wrap: wrap;
max-height: calc(100% -
4
0px);
max-height: calc(100% -
1
0px);
overflow: auto;
.ant-collapse-content-box{
display: flex;
...
...
@@ -99,7 +99,8 @@
max-height: 100%;
}
.svgGray{
background-color: rgba(238,238,238,1);
// background-color: rgba(238,238,238,1);
background-color:#2881a1;
}
&:hover,
&>.seleted {
...
...
This diff is collapsed.
Click to expand it.
src/components/Upload/index.tsx
View file @
06d4ffdd
...
...
@@ -409,9 +409,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
>
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}>
{imgBed.map((item, i) => {
if(item.moduleName==picType || item.moduleName=='
CityTemp
'){
if(item.moduleName==picType || item.moduleName=='
CityTemp
'){
const child = [...item.child] || [];
if(item.fileUrls.length > 0){
child.push({
...
...
This diff is collapsed.
Click to expand it.
src/pages/webConfig/menuconfig/webMenu.jsx
View file @
06d4ffdd
...
...
@@ -21,6 +21,7 @@ import {
dragMenu
,
// 菜单拖拽
getProductList
,
getWebModuleTree
,
pEditWebMenu
,
}
from
'@/services/webConfig/api'
;
const
MiniMenu
=
props
=>
{
...
...
@@ -304,37 +305,68 @@ const MiniMenu = props => {
let
obj
=
{
...
prop
,
baseUrl
};
if
(
nodeType
===
1
)
{
obj
.
relatedRoleList
=
String
(
roleList
)
||
''
;
}
editWebMenu
({
_dc
:
Date
.
now
(),
menuID
,
subSystemValue
,
...
obj
,
})
.
then
(
res
=>
{
setLoading
(
false
);
editWebMenu
({
_dc
:
Date
.
now
(),
menuID
,
// subSystemValue,
...
obj
,
})
.
then
(
res
=>
{
setLoading
(
false
);
if
(
res
.
success
)
{
setFlag
(
flag
+
1
);
// updateMenuTree('edit');
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
message
||
'编辑失败'
,
});
}
if
(
res
.
success
)
{
setFlag
(
flag
+
1
);
// updateMenuTree('edit');
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
message
||
'编辑失败'
,
});
}
})
.
catch
(
err
=>
{
// eslint-disable-next-line no-console
console
.
error
(
err
);
setLoading
(
false
);
});
}
else
{
pEditWebMenu
({
_dc
:
Date
.
now
(),
menuID
,
// subSystemValue,
...
obj
,
})
.
catch
(
err
=>
{
// eslint-disable-next-line no-console
console
.
error
(
err
);
setLoading
(
false
);
});
.
then
(
res
=>
{
setLoading
(
false
);
if
(
res
.
success
)
{
setFlag
(
flag
+
1
);
// updateMenuTree('edit');
notification
.
success
({
message
:
'提示'
,
duration
:
3
,
description
:
'编辑成功'
,
});
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
3
,
description
:
res
.
message
||
'编辑失败'
,
});
}
})
.
catch
(
err
=>
{
// eslint-disable-next-line no-console
console
.
error
(
err
);
setLoading
(
false
);
});
}
};
const
valueCallback
=
val
=>
{
let
arr
=
[...
val
];
...
...
This diff is collapsed.
Click to expand it.
src/services/webConfig/api.js
View file @
06d4ffdd
...
...
@@ -86,6 +86,9 @@ export const addWebMenu = param => {
export
const
editWebMenu
=
param
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_EditMenu?_version=9999`
,
param
);
export
const
pEditWebMenu
=
param
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/P_EditMenu?_version=9999`
,
param
);
export
const
deleteWebMenu
=
param
=>
get
(
`
${
CITY_SERVICE
}
/OMS.svc/W4_DeleteMenu?_version=9999`
,
param
);
...
...
This diff is collapsed.
Click to expand it.
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