Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-tool
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
tool
web-tool
Commits
be5feb62
Commit
be5feb62
authored
Dec 20, 2023
by
Gwofoo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实现:场景案例点击跳转
parent
c59e380f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
16 deletions
+31
-16
api.js
packages/graphmod-atl/src/api.js
+3
-2
DownloadView.js
packages/graphmod-atl/src/download/DownloadView.js
+14
-0
Scene.js
packages/graphmod-atl/src/scene/Scene.js
+7
-4
_proxy.js
packages/graphmod-scripts/src/_proxy.js
+7
-10
No files found.
packages/graphmod-atl/src/api.js
View file @
be5feb62
...
@@ -25,7 +25,8 @@ export const UrlConsts = {
...
@@ -25,7 +25,8 @@ export const UrlConsts = {
exportAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/export/{agencyCode}/{ipSeq}/{sequenceNbrs}'
),
exportAgency
:
(
url
)
=>
completePrefix
(
baseURI
,
'atl/agency/export/{agencyCode}/{ipSeq}/{sequenceNbrs}'
),
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'atl/v1/dataApi/generateSQL'
),
// 通用导出SQL脚本 get
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'atl/v1/dataApi/generateSQL'
),
// 通用导出SQL脚本 get
getSortSencesUrl
:
()
=>
completePrefix
()(
gateWay
.
atl
,
'scene/select/all'
),
// 查询场景案例列表 get
getSortSencesUrl
:
()
=>
completePrefix
()(
gateWay
.
atl
,
'scene/select/all'
),
// 查询场景案例列表 get
getSceneLoginToken
:
()
=>
completePrefix
()(
gateWay
.
atl
,
'forward'
)
// 查询场景案例大屏被点击后的登录token get
getSceneLoginTokenUrl
:
()
=>
'atl/forward'
// 查询场景案例大屏被点击后的登录token get
// getSceneLoginTokenUrl: () => completePrefix(gateWay.atl, 'forward') // 查询场景案例大屏被点击后的登录token get
};
};
/**
/**
...
@@ -63,5 +64,5 @@ export const getSortSences = (categoryScene, miniSences) => {
...
@@ -63,5 +64,5 @@ export const getSortSences = (categoryScene, miniSences) => {
* 查询场景案例大屏被点击后的登录token
* 查询场景案例大屏被点击后的登录token
*/
*/
export
const
getSceneLoginToken
=
()
=>
{
export
const
getSceneLoginToken
=
()
=>
{
return
commonGet
(
UrlConsts
.
getSceneLoginToken
());
return
commonGet
(
UrlConsts
.
getSceneLoginToken
Url
());
};
};
packages/graphmod-atl/src/download/DownloadView.js
View file @
be5feb62
...
@@ -137,6 +137,20 @@ class DownloadView extends Component {
...
@@ -137,6 +137,20 @@ class DownloadView extends Component {
<
ExecuteProgress
visible
=
{
logsVisible
}
mqttUrl
=
{
dataConfig
.
mqttUrl
}
exeId
=
{
selectId
}
onClose
=
{()
=>
this
.
handleClose
(
'logsVisible'
)}
/
>
<
ExecuteProgress
visible
=
{
logsVisible
}
mqttUrl
=
{
dataConfig
.
mqttUrl
}
exeId
=
{
selectId
}
onClose
=
{()
=>
this
.
handleClose
(
'logsVisible'
)}
/
>
<
/div
>
<
/div
>
);
);
default
:
return
(
<
div
>
{
dataConfig
.
position
===
'header'
?
<
div
className
=
"ig-stage-toolbar-right"
>
<
BarGroup
label
=
"导出脚本"
mode
=
"none"
position
=
"right"
>
<
IconButton
colorful
icon
=
"export"
title
=
"导出SQL脚本"
style
=
{{
borderRadius
:
4
}}
onClick
=
{()
=>
this
.
handleItemClick
()}
/
>
<
/BarGroup
>
<
/div
>
:
<
p
onClick
=
{
this
.
handleItemClick
}
><
Icon
icon
=
"download"
/>
下载
<
/p>
}
<
ExecuteProgress
visible
=
{
logsVisible
}
mqttUrl
=
{
dataConfig
.
mqttUrl
}
exeId
=
{
selectId
}
onClose
=
{()
=>
this
.
handleClose
(
'logsVisible'
)}
/
>
<
/div
>
);
}
}
}
}
...
...
packages/graphmod-atl/src/scene/Scene.js
View file @
be5feb62
...
@@ -85,10 +85,13 @@ class Scene extends Component {
...
@@ -85,10 +85,13 @@ class Scene extends Component {
handleClick
=
(
templateLink
)
=>
{
handleClick
=
(
templateLink
)
=>
{
getSceneLoginToken
().
then
(
d
=>
{
getSceneLoginToken
().
then
(
d
=>
{
if
(
d
){
window
.
open
(
templateLink
+
"&token="
+
d
);
window
.
open
(
templateLink
+
"&token="
+
d
);
})
}
.
catch
(
e
=>
{
window
.
open
(
templateLink
);
});
});
}
}
renderListCards
=
(
cardItems
)
=>
{
renderListCards
=
(
cardItems
)
=>
{
...
@@ -99,7 +102,7 @@ class Scene extends Component {
...
@@ -99,7 +102,7 @@ class Scene extends Component {
const
cols
=
rowItems
.
map
((
cardItems
,
index
)
=>
(
const
cols
=
rowItems
.
map
((
cardItems
,
index
)
=>
(
<
Col
span
=
{
6
}
key
=
{
index
}
>
<
Col
span
=
{
6
}
key
=
{
index
}
>
<
div
style
=
{{
margin
:
15
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
div
style
=
{{
margin
:
15
,
display
:
'flex'
,
justifyContent
:
'center'
}}
>
<
button
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
border
:
0
,
padding
:
0
}}
onClick
=
{
this
.
handleClick
(
cardItems
.
templateLink
)}
>
<
button
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
border
:
0
,
padding
:
0
}}
onClick
=
{
()
=>
this
.
handleClick
(
cardItems
.
templateLink
)}
>
<
CardPane
style
=
{{
width
:
'100%'
,
height
:
270
,
border
:
0
}}
bodyStyle
=
{{
height
:
270
,
padding
:
0
}}
>
<
CardPane
style
=
{{
width
:
'100%'
,
height
:
270
,
border
:
0
}}
bodyStyle
=
{{
height
:
270
,
padding
:
0
}}
>
<
div
style
=
{{
height
:
'75%'
}}
>
<
div
style
=
{{
height
:
'75%'
}}
>
<
img
alt
=
"example"
width
=
"100%"
height
=
"100%"
style
=
{{
objectFit
:
'cover'
,
borderRadius
:
10
}}
src
=
{
cardItems
.
sketch
}
/
>
<
img
alt
=
"example"
width
=
"100%"
height
=
"100%"
style
=
{{
objectFit
:
'cover'
,
borderRadius
:
10
}}
src
=
{
cardItems
.
sketch
}
/
>
...
...
packages/graphmod-scripts/src/_proxy.js
View file @
be5feb62
const
proxy
=
{
const
proxy
=
{
// '/baseURI': {
'/baseURI'
:
{
// target: 'http://172.16.3.18:10005/',
target
:
'http://172.16.3.18:10005/'
,
// pathRewrite: { '^/baseURI': '' }
// },
'/baseURI/atl'
:
{
target
:
'http://39.98.45.134:50090/'
,
pathRewrite
:
{
'^/baseURI'
:
''
}
pathRewrite
:
{
'^/baseURI'
:
''
}
},
},
'/atl'
:
{
'/atl'
:
{
target
:
'http://172.16.0.120:30002/'
,
target
:
'http://172.16.3.18:30002/'
,
// target: 'http://172.16.0.118:30002/',
},
},
'/bizURI/atl'
:
{
'/bizURI/atl'
:
{
target
:
'http://172.16.
0.14
:30002/'
,
target
:
'http://172.16.
3.18
:30002/'
,
//
changeOrigin: true
,
//
target: 'http://172.16.0.118:30002/'
,
pathRewrite
:
{
'^/bizURI'
:
''
}
pathRewrite
:
{
'^/bizURI'
:
''
}
},
},
'/bizURI'
:
{
'/bizURI'
:
{
...
@@ -20,7 +17,7 @@ const proxy = {
...
@@ -20,7 +17,7 @@ const proxy = {
pathRewrite
:
{
'^/bizURI'
:
''
}
pathRewrite
:
{
'^/bizURI'
:
''
}
},
},
'/group1'
:
{
'/group1'
:
{
target
:
'http://
39.98.246.31:8888
/'
target
:
'http://
172.16.3.18:9000
/'
},
},
'/public'
:
{
'/public'
:
{
// target: 'http://172.16.10.202:9000/'
// target: 'http://172.16.10.202:9000/'
...
...
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