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
f39c191c
Commit
f39c191c
authored
Aug 07, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流程设计路由+退出host
parent
fc33f3ce
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
22 deletions
+47
-22
src/components/menu.vue
src/components/menu.vue
+36
-21
src/pages/example/example_com_flow.vue
src/pages/example/example_com_flow.vue
+1
-1
src/pages/workbench/component-center/process-management/process-design/index.vue
...ponent-center/process-management/process-design/index.vue
+5
-0
src/router/index.js
src/router/index.js
+5
-0
No files found.
src/components/menu.vue
View file @
f39c191c
...
...
@@ -12,7 +12,10 @@
class=
"user"
>
{{
userInfo
.
user_name
}}
</span>
<span
v-else
@
click=
"gotopage('login')"
class=
"user"
>
请登录
</span>
<img
:class=
"userInfo.picture_path && false ? 'user_pic' : 'user_default'"
src=
"../assets/imgs/home_ic_user.png"
/>
<img
:class=
"userInfo.picture_path && false ? 'user_pic' : 'user_default'"
src=
"../assets/imgs/home_ic_user.png"
/>
<span
class=
"has_msg"
v-if=
"unreadMessageCount > 0"
></span>
<!-- 菜单图片不需要动态渲染,只用ui给的图标 -->
<div
v-if=
"userInfo.user_name && userInfo.user_name != ''"
class=
"user_menu"
>
...
...
@@ -24,11 +27,19 @@
@
click=
"gotopage(item.visit_url)"
>
{{
item
.
menu_name
}}
<span
v-if=
"unreadMessageCount > 0 && item.visit_url === '/user/notice'"
class=
"width_num"
v-text=
"unreadMessageCount"
></span>
<span
v-if=
"unreadMessageCount > 0 && item.visit_url === '/user/notice'"
class=
"width_num"
v-text=
"unreadMessageCount"
></span>
</div>
<div
@
click=
"gotopage('logout')"
>
退出登录
</div>
</div>
<div
v-if=
"userInfo.user_name && userInfo.user_name != ''"
class=
"sj"
:style=
"now_hover==0?
{backgroundColor:'#e56600'}:{}">
</div>
<div
v-if=
"userInfo.user_name && userInfo.user_name != ''"
class=
"sj"
:style=
"now_hover==0?
{backgroundColor:'#e56600'}:{}"
>
</div>
</div>
<div
v-if=
"show_shop_menu"
...
...
@@ -90,11 +101,13 @@
@
mouseleave.stop=
"change_now_hover(-1)"
@
mouseenter.stop=
"change_now_hover(indexs)"
@
click.stop=
"gotoChildPage(v, item.visit_url)"
>
{{
v
.
menu_name
}}
>
{{
v
.
menu_name
}}
</div>
</div>
</div>
<div
class=
"sj"
v-if=
"item.Child && item.Child.length"
:style=
"now_hover==0?
{backgroundColor:'#e56600',left: '60px'}:{left: '60px'}">
</div>
<div
class=
"sj"
v-if=
"item.Child && item.Child.length"
:style=
"now_hover==0?
{backgroundColor:'#e56600',left: '60px'}:{left: '60px'}"
>
</div>
<div
class=
"bottom_show"
v-if=
"now_menu == item.visit_url"
></div>
</div>
</div>
...
...
@@ -117,8 +130,8 @@ export default {
],
shopping_list
:
[],
menuCartNum
:
0
,
now_hover
:
-
1
,
show_shop_menu
:
false
now_hover
:
-
1
,
show_shop_menu
:
false
,
};
},
mounted
()
{
...
...
@@ -139,15 +152,17 @@ export default {
watch
:
{
getMenuCartState
(
newVal
)
{
this
.
getList
();
}
}
,
},
methods
:
{
change_now_hover
(
n
){
this
.
now_hover
=
n
change_now_hover
(
n
)
{
this
.
now_hover
=
n
;
},
gotopage
(
n
)
{
if
(
n
==
"
logout
"
)
{
window
.
location
.
href
=
gisServiceUrl
+
"
/portal/sharing/rest/oauth2/signout?client_id=arcgisonline&redirect_uri=https://apaas3.wodcloud.com/iam/api/logout
"
;
window
.
location
.
href
=
gisServiceUrl
+
`/portal/sharing/rest/oauth2/signout?client_id=arcgisonline&redirect_uri=
${
window
.
location
.
protocol
}
//
${
window
.
location
.
host
}
/iam/api/logout`
;
}
else
if
(
n
==
"
login
"
)
{
let
path
=
this
.
$route
.
path
;
window
.
location
.
href
=
"
/iam/login/#/login?ReturnUrl=
"
+
path
;
...
...
@@ -160,7 +175,7 @@ export default {
},
deleteItem
(
id
)
{
let
query
=
[
id
];
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
(
response
)
=>
{
this
.
getList
();
});
},
...
...
@@ -189,7 +204,7 @@ export default {
}
},
getList
()
{
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
response
=>
{
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
(
response
)
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
this
.
menuCartNum
=
response
.
data
.
data
.
valid
?
response
.
data
.
data
.
valid
.
length
...
...
@@ -207,12 +222,12 @@ export default {
this
.
now_menu
=
visit_url
?
visit_url
:
""
;
},
getNowMenu
()
{
this
.
$api
.
general
.
getNowMenu
({
teamName
:
"
APAAS3
"
}).
then
(
response
=>
{
this
.
$api
.
general
.
getNowMenu
({
teamName
:
"
APAAS3
"
}).
then
(
(
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
let
arr
=
(
response
.
data
.
data
[
0
]
&&
response
.
data
.
data
[
0
].
Child
)
||
[];
let
shop_index
=
arr
.
findIndex
(
item
=>
item
.
visit_url
==
"
/shop/shopping_cart
"
(
item
)
=>
item
.
visit_url
==
"
/shop/shopping_cart
"
);
if
(
shop_index
!=
-
1
)
{
arr
.
splice
(
shop_index
,
1
);
...
...
@@ -220,7 +235,7 @@ export default {
}
else
{
this
.
show_shop_menu
=
false
;
}
let
user_index
=
arr
.
findIndex
(
item
=>
item
.
visit_url
==
"
/user
"
);
let
user_index
=
arr
.
findIndex
(
(
item
)
=>
item
.
visit_url
==
"
/user
"
);
if
(
user_index
!=
-
1
)
{
this
.
user_arr
=
arr
[
user_index
].
Child
;
arr
.
splice
(
user_index
,
1
);
...
...
@@ -231,8 +246,8 @@ export default {
this
.
getMenuIndex
();
}
});
}
}
}
,
}
,
};
</
script
>
...
...
@@ -297,7 +312,7 @@ export default {
float
:
right
;
width
:
185px
;
font-size
:
16px
;
height
:
84px
;
height
:
84px
;
text-align
:
center
;
cursor
:
pointer
;
position
:
relative
;
...
...
src/pages/example/example_com_flow.vue
View file @
f39c191c
...
...
@@ -6,7 +6,7 @@
<
script
>
// @ is an alias to /src
import
WorkFlow
from
"
@/components/work-flow/
work
-flow
"
;
import
WorkFlow
from
"
@/components/work-flow/
super
-flow
"
;
export
default
{
components
:
{
WorkFlow
,
...
...
src/pages/workbench/component-center/process-management/process-design/index.vue
0 → 100644
View file @
f39c191c
<
template
>
<div>
流程设计
</div>
</
template
>
src/router/index.js
View file @
f39c191c
...
...
@@ -273,6 +273,11 @@ export default new Router({
name
:
"
process_monitoring
"
,
component
:
()
=>
import
(
"
@/pages/workbench/component-center/process-management/monitoring/index
"
),
},
// 流程监控
{
path
:
"
/progress/design
"
,
name
:
"
process_design
"
,
component
:
()
=>
import
(
"
@/pages/workbench/component-center/process-management/process-design/index
"
),
},
// 流程监控
],
},
// 流程设计
{
...
...
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