Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gzga-jzapi
apaas-ui
Commits
d3f549ba
Commit
d3f549ba
authored
Jul 27, 2021
by
张洋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改时空服务注册功能(如果配置为needLogin则不调用portal注册以及隐藏预览按钮)
parent
96e5a0e9
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
270 additions
and
162 deletions
+270
-162
src/components/service-info/map-view.vue
src/components/service-info/map-view.vue
+23
-7
src/components/service-info/process-view.vue
src/components/service-info/process-view.vue
+21
-7
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+226
-148
No files found.
src/components/service-info/map-view.vue
View file @
d3f549ba
<
template
>
<div
class=
"map_view"
>
<a
class=
"map_view_action"
href=
"#"
@
click.prevent.stop=
"viewAction"
>
<a
v-if=
"showView"
class=
"map_view_action"
href=
"#"
@
click.prevent.stop=
"viewAction"
>
<img
:src=
"require('../../assets/imgs/ic_yulan.png')"
/>
</a>
...
...
@@ -13,7 +18,11 @@
:before-close=
"beforeClose"
>
<div
class=
"map_view_container"
>
<iframe
v-if=
"src"
:src=
"src"
frameborder=
"0"
></iframe>
<iframe
v-if=
"src"
:src=
"src"
frameborder=
"0"
></iframe>
</div>
</el-dialog>
</transition>
...
...
@@ -26,25 +35,32 @@ export default {
name
:
"
map-view
"
,
data
:
()
=>
({
showDialog
:
false
,
src
:
""
,
showView
:
false
,
src
:
""
}),
props
:
{
id
:
{
type
:
[
String
,
Number
],
required
:
true
,
}
,
required
:
true
}
},
methods
:
{
viewAction
()
{
this
.
src
=
gisServiceUrl
+
`/portal/apaasplat/viewer/previewMap.html?id=
${
this
.
id
}
`
;
this
.
src
=
gisServiceUrl
+
`/portal/apaasplat/viewer/previewMap.html?id=
${
this
.
id
}
`
;
this
.
showDialog
=
true
;
},
beforeClose
(
done
)
{
this
.
src
=
""
;
done
();
}
},
},
mounted
()
{
this
.
showView
=
window
.
serviceConfig
&&
window
.
serviceConfig
.
state
==
"
needLogin
"
;
}
};
</
script
>
...
...
src/components/service-info/process-view.vue
View file @
d3f549ba
<
template
>
<div
class=
"map_view"
>
<a
class=
"map_view_action"
href=
"#"
@
click.prevent.stop=
"viewAction"
>
<a
v-if=
"showView"
class=
"map_view_action"
href=
"#"
@
click.prevent.stop=
"viewAction"
>
<img
:src=
"require('../../assets/imgs/ic_yulan.png')"
/>
</a>
...
...
@@ -13,7 +18,11 @@
:before-close=
"beforeClose"
>
<div
class=
"map_view_container"
>
<workflows-view
:zoom=
"0.8"
:id=
"id"
:hideDetail=
"true"
></workflows-view>
<workflows-view
:zoom=
"0.8"
:id=
"id"
:hideDetail=
"true"
></workflows-view>
</div>
</el-dialog>
</transition>
...
...
@@ -21,19 +30,20 @@
</
template
>
<
script
>
import
workflowsView
from
'
@/components/work-flow/workflows-view
'
import
workflowsView
from
"
@/components/work-flow/workflows-view
"
;
export
default
{
name
:
"
map-view
"
,
components
:{
components
:
{
workflowsView
},
data
:
()
=>
({
showDialog
:
false
,
showView
:
false
}),
props
:
{
id
:
{
type
:
Number
,
required
:
true
,
required
:
true
}
},
methods
:
{
...
...
@@ -42,8 +52,12 @@ export default {
},
beforeClose
(
done
)
{
done
();
}
},
},
mounted
()
{
this
.
showView
=
window
.
serviceConfig
&&
window
.
serviceConfig
.
state
==
"
needLogin
"
;
}
};
</
script
>
...
...
src/pages/workbench/fwzc_fwcs.vue
View file @
d3f549ba
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