Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
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
CivWeb
Commits
b98a991d
Commit
b98a991d
authored
Feb 21, 2022
by
cuijiahao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 云平台某行业无站点选择器
parent
6dfdec6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
直饮水.png
src/assets/bootPage/直饮水.png
+0
-0
BasicLayout1.js
src/layouts/BasicLayout1.js
+1
-1
Site.js
src/layouts/Site.js
+3
-0
index.js
src/pages/bootpage/index.js
+3
-2
No files found.
src/assets/bootPage/直饮水.png
0 → 100644
View file @
b98a991d
This diff was suppressed by a .gitattributes entry.
src/layouts/BasicLayout1.js
View file @
b98a991d
...
...
@@ -216,7 +216,7 @@ const renderSite = ({data, config, loading, setLoading, action}) => {
onVisibleChange
=
{
visible
=>
setVisible
(
visible
)}
>
{
Array
.
isArray
(
data
.
stations
)
&&
data
.
stations
.
length
>
0
?
(
Array
.
isArray
(
data
.
stations
)
?
(
<
div
className
=
{
layoutStyles
.
toggleSite
}
>
<
img
src
=
{
require
(
'../assets/basic/site.png'
)}
className
=
{
layoutStyles
.
site
}
/
>
<
span
className
=
{
layoutStyles
.
name
}
>
{
data
.
currentStationName
}
<
/span
>
...
...
src/layouts/Site.js
View file @
b98a991d
...
...
@@ -382,6 +382,7 @@ class Site {
}
})
.
catch
(
error
=>
{
this
.
setLoading
(
false
);
message
.
warning
(
'切换企业失败'
);
});
}
...
...
@@ -400,10 +401,12 @@ class Site {
this
.
writeCookie
(
token
,
site
);
}
else
{
message
.
warning
(
'企业切换失败,请联系管理员排查问题!'
);
this
.
setLoading
(
false
);
}
})
.
catch
(
e
=>
{
message
.
warning
(
'企业切换失败,请联系管理员排查问题!'
);
this
.
setLoading
(
false
);
});
}
...
...
src/pages/bootpage/index.js
View file @
b98a991d
...
...
@@ -18,7 +18,8 @@ const industries = [
{
name
:
'农饮水'
,
type
:
'农饮水'
,
subTitle
:
'RURAL POTABLE WATER'
},
{
name
:
'排水'
,
type
:
'排水'
,
subTitle
:
'DRAINAGE'
},
{
name
:
'能源'
,
type
:
'能源'
,
subTitle
:
'ENERGY SOURCES'
},
{
name
:
'水资源'
,
type
:
'水资源'
,
subTitle
:
'WATER RESOURCES'
},
{
name
:
'直饮水'
,
type
:
'直饮水'
,
subTitle
:
'DRINGKING WATER'
},
// { name: '水资源', type: '水资源', subTitle: 'WATER RESOURCES' },
{
name
:
'熊猫智能实验室'
,
type
:
'实验室'
,
subTitle
:
'PANDA AI. LAB'
},
{
name
:
'大数据'
,
type
:
'大数据'
,
subTitle
:
'BIG DATA'
},
{
name
:
'项目案例'
,
type
:
'项目案例'
,
subTitle
:
'PROJECT CASE'
},
...
...
@@ -54,7 +55,7 @@ const renderIndustries = (config, callback) =>
});
const
BootPage
=
props
=>
{
const
[
loadding
,
setLoadding
]
=
useState
(
false
);
const
[
scale
,
setScale
]
=
useState
(
1
);
useDocumentTitle
(
...
...
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