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
f5a738ac
Commit
f5a738ac
authored
May 23, 2022
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改二级路由可以直接访问,修改地图配置管网url
parent
76fe826b
Pipeline
#50973
passed with stages
in 7 minutes 44 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
7 deletions
+13
-7
BasicLayout.jsx
src/layouts/BasicLayout.jsx
+1
-1
SchemeConfig.jsx
src/pages/platformCenter/gis/schemeConfig/SchemeConfig.jsx
+1
-1
AddModal.jsx
...atformCenter/gis/schemeConfig/projectMessage/AddModal.jsx
+2
-1
productConfig.jsx
src/pages/productCenter/productConfig/productConfig.jsx
+1
-1
config.js
src/routes/config.js
+1
-1
authority.js
src/utils/authority.js
+7
-2
No files found.
src/layouts/BasicLayout.jsx
View file @
f5a738ac
...
...
@@ -65,7 +65,7 @@ const BasicLayout = props => {
return
(
<>
{
getQueryVariable
(
'isSandbox'
)
==
'true'
?
(
{
sessionStorage
.
getItem
(
'isSandbox'
)
==
'true'
?
(
<>
{
renderRoutes
(
props
.
route
.
routes
)
}
</>
)
:
(
<
ProLayout
...
...
src/pages/platformCenter/gis/schemeConfig/SchemeConfig.jsx
View file @
f5a738ac
...
...
@@ -25,7 +25,7 @@ const SchemeConfig = () => {
<
TabPane
tab=
"方案管理"
key=
"3"
>
<
ProjectMessage
/>
</
TabPane
>
<
TabPane
tab=
"
方案
配置"
key=
"4"
>
<
TabPane
tab=
"
权限
配置"
key=
"4"
>
<
SolutionConfig
/>
</
TabPane
>
<
TabPane
tab=
"范围设置"
key=
"5"
>
...
...
src/pages/platformCenter/gis/schemeConfig/projectMessage/AddModal.jsx
View file @
f5a738ac
...
...
@@ -147,7 +147,8 @@ const AddModal = props => {
const
handleService
=
value
=>
{
form
.
setFieldsValue
({
label
:
value
,
url
:
`http://{IP}/PandaGIS/MapServer/Export?mapServerName=
${
value
}
`
,
// url: `http://{IP}/PandaGIS/MapServer/Export?mapServerName=${value}`,
url
:
`http://{IP}/CityInterface/rest/services/MapServer.svc/
${
value
}
`
,
});
};
...
...
src/pages/productCenter/productConfig/productConfig.jsx
View file @
f5a738ac
...
...
@@ -217,7 +217,7 @@ const ProductConfig = props => {
<
Spin
spinning=
{
loading
}
tip=
"loading..."
>
<
div
className=
{
styles
.
box
}
>
<
Card
className=
{
classnames
(
`${styles.leftList}`
)
}
>
<
div
className=
{
styles
.
listTop
}
>
产品选择
:
</
div
>
<
div
className=
{
styles
.
listTop
}
>
可用产品
:
</
div
>
{
productList
&&
productList
.
length
>
0
?
(
productList
.
map
(
item
=>
renderListItem
(
item
))
)
:
(
...
...
src/routes/config.js
View file @
f5a738ac
...
...
@@ -150,7 +150,7 @@ export default {
routes
:
[
{
path
:
'/productCenter/product'
,
name
:
'产品
配置
'
,
name
:
'产品
授权
'
,
component
:
ProductConfig
,
},
{
...
...
src/utils/authority.js
View file @
f5a738ac
...
...
@@ -44,14 +44,19 @@ export default Authorized;
// use localStorage to store the authority info, which might be sent from server in actual project.
export
function
getAuthority
(
str
)
{
const
isSandBox
=
getQueryVariable
(
'isSandbox'
);
const
sandbox
=
sessionStorage
.
getItem
(
'isSandbox'
);
if
(
!
isDev
)
{
// return [...auth];
// 支持可以指直接访问
if
(
isSandBox
==
'true'
)
{
sessionStorage
.
setItem
(
'isSandbox'
,
isSandBox
);
return
[
'LOGIN'
,
'admin'
];
}
if
(
sandbox
==
'true'
)
{
return
[
'LOGIN'
,
'admin'
];
}
else
{
return
[...
auth
];
}
return
[...
auth
];
}
const
authorityString
=
typeof
str
===
'undefined'
&&
localStorage
?
localStorage
.
getItem
(
'panda-oms-authority'
)
:
str
;
...
...
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