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
fe11a6a9
Commit
fe11a6a9
authored
Nov 09, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改健康传参,换logo,恢复侧边栏
parent
cc16c44e
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
354 additions
and
76 deletions
+354
-76
index.html
index.html
+1
-1
src/assets/imgs/nav-logo.png
src/assets/imgs/nav-logo.png
+0
-0
src/components/menu.vue
src/components/menu.vue
+2
-2
src/components/service-list/service_shop_menu.vue
src/components/service-list/service_shop_menu.vue
+24
-29
src/components/service-list/service_shop_menu_copy.vue
src/components/service-list/service_shop_menu_copy.vue
+152
-0
src/pages/data-analysis/my-service.vue
src/pages/data-analysis/my-service.vue
+129
-35
src/pages/data-analysis/org-service.vue
src/pages/data-analysis/org-service.vue
+22
-4
src/pages/data-analysis/super-service.vue
src/pages/data-analysis/super-service.vue
+22
-4
src/pages/service_shop/shop_list.vue
src/pages/service_shop/shop_list.vue
+2
-1
No files found.
index.html
View file @
fe11a6a9
...
...
@@ -4,7 +4,7 @@
<meta
charset=
"utf-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0"
/>
<title>
Beagle aPaaS Platform v3.0
</title>
<
link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"static/favicon.ico"
/
>
<
!-- <link rel="shortcut icon" type="image/x-icon" href="static/favicon.ico" /> --
>
<style>
body
{
background-color
:
#f6f7fb
;
...
...
src/assets/imgs/nav-logo.png
0 → 100644
View file @
fe11a6a9
1.67 KB
src/components/menu.vue
View file @
fe11a6a9
<
template
>
<div
class=
"menu"
>
<img
src=
"../assets/imgs/
home_img_
logo.png"
alt
class=
"logo"
/>
<img
src=
"../assets/imgs/
nav-
logo.png"
alt
class=
"logo"
/>
<div
style=
"float: right; cursor: pointer; position: relative"
class=
"user_hover"
...
...
@@ -320,7 +320,7 @@ export default {
}
.logo
{
float
:
left
;
margin
:
15
px
0
0
40px
;
margin
:
22
px
0
0
40px
;
cursor
:
pointer
;
}
.user
{
...
...
src/components/service-list/service_shop_menu.vue
View file @
fe11a6a9
...
...
@@ -65,32 +65,32 @@ export default {
}
switch
(
uri
)
{
case
"
data_service_list
"
:
item
.
active
=
"
shop_tool_ic_sj
fw_sel
"
;
item
.
default
=
"
shop_tool_ic_sj
fw
"
;
item
.
active
=
"
tool_ic_shuju
fw_sel
"
;
item
.
default
=
"
tool_ic_shuju
fw
"
;
break
;
case
"
space_time_service_list
"
:
item
.
active
=
"
shop_tool_ic_sk
fw_sel
"
;
item
.
default
=
"
shop_tool_ic_sk
fw
"
;
item
.
active
=
"
tool_ic_shikong
fw_sel
"
;
item
.
default
=
"
tool_ic_shikong
fw
"
;
break
;
case
"
video_service_list
"
:
item
.
active
=
"
shop_tool_ic_sp
fw_sel
"
;
item
.
default
=
"
shop_tool_ic_sp
fw
"
;
item
.
active
=
"
tool_ic_shipin
fw_sel
"
;
item
.
default
=
"
tool_ic_shipin
fw
"
;
break
;
case
"
perception_service_list
"
:
item
.
active
=
"
shop_
tool_ic_ganzhifw_sel
"
;
item
.
default
=
"
shop_
tool_ic_ganzhifw
"
;
item
.
active
=
"
tool_ic_ganzhifw_sel
"
;
item
.
default
=
"
tool_ic_ganzhifw
"
;
break
;
case
"
comprehensive_app_list
"
:
item
.
active
=
"
shop_tool_ic_zh
yyfw_sel
"
;
item
.
default
=
"
shop_tool_ic_zh
yyfw
"
;
item
.
active
=
"
tool_ic_zonghe
yyfw_sel
"
;
item
.
default
=
"
tool_ic_zonghe
yyfw
"
;
break
;
case
"
cloud
"
:
item
.
active
=
"
shop_tool_ic_yzy
fw_sel
"
;
item
.
default
=
"
shop_tool_ic_yzy
fw
"
;
item
.
active
=
"
tool_ic_yunziyuan
fw_sel
"
;
item
.
default
=
"
tool_ic_yunziyuan
fw
"
;
break
;
case
"
app_store_list
"
:
item
.
active
=
"
shop_ic_yy
sd_sel
"
;
item
.
default
=
"
shop_ic_yy
sd
"
;
item
.
active
=
"
tool_ic_yingyong
sd_sel
"
;
item
.
default
=
"
tool_ic_yingyong
sd
"
;
break
;
default
:
item
.
active
=
"
1
"
;
...
...
@@ -111,25 +111,24 @@ export default {
.service_shop_menu
{
background-color
:
#0d1847
;
position
:
fixed
;
top
:
76
px
;
left
:
calc
(
50%
-
600px
)
;
top
:
58
px
;
left
:
0
;
width
:
180px
;
padding
:
8px
;
background-color
:
#ffffff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
);
border-radius
:
8px
;
height
:
100%
;
padding-top
:
30px
;
}
.service_shop_menu_list
>
li
{
padding
:
16px
10px
8px
22px
;
border-left
:
5px
solid
#0d1847
;
font-size
:
15px
;
line-height
:
24px
;
cursor
:
pointer
;
}
.service_shop_menu_list
>
li
:hover
,
.service_shop_menu_list
>
li
.current
{
background-color
:
rgba
(
242
,
246
,
253
,
0.4
);
color
:
#515fe7
;
border-left
:
5px
solid
#e56600
;
background-color
:
#182665
;
color
:
#e6ebfe
;
}
.menu_img
{
width
:
25px
;
...
...
@@ -137,16 +136,12 @@ export default {
}
.menu_item
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#96a0c5
;
color
:
#6573ae
;
top
:
-6px
;
}
.menu_item_active
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#515fe7
;
color
:
#e6ebfe
;
top
:
-6px
;
}
</
style
>
src/components/service-list/service_shop_menu_copy.vue
0 → 100644
View file @
fe11a6a9
<
template
>
<div
class=
"service_shop_menu"
>
<ul
class=
"service_shop_menu_list"
>
<li
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"active(item.visit_url)"
>
<img
v-if=
"item.visit_url == actives"
:src=
"item.active != '' ? require('@/assets/imgs/' + item.active + '.png') : ''"
class=
"menu_img"
/>
<img
v-else
:src=
"require('@/assets/imgs/' + item.default + '.png')"
class=
"menu_img"
/>
<span
:class=
"item.visit_url == actives ? 'menu_item_active':'menu_item'"
>
{{
item
.
menu_name
}}
</span>
</li>
</ul>
</div>
</
template
>
<
script
>
export
default
{
props
:
{},
data
()
{
return
{
actives
:
""
,
menuList
:
[],
};
},
computed
:
{
getActive
()
{
return
this
.
$store
.
state
.
serviceShopMenu
;
},
},
watch
:
{
getActive
(
newVal
)
{
this
.
getActiveMenu
(
newVal
);
},
},
mounted
()
{
this
.
getShopMenu
();
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
this
.
$route
.
path
);
this
.
actives
=
this
.
$store
.
state
.
serviceShopMenu
;
},
methods
:
{
active
(
val
)
{
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
val
);
this
.
$router
.
push
(
val
);
},
getActiveMenu
(
val
)
{
this
.
actives
=
val
;
},
getShopMenu
()
{
this
.
$api
.
general
.
getNowMenu
({
teamName
:
"
APAAS3
"
}).
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
let
arr
=
response
.
data
.
data
[
0
].
Child
;
let
shopArr
=
[];
let
asd
=
arr
.
find
(
item
=>
{
return
item
.
visit_url
==
"
/services_shop
"
})
shopArr
=
asd
.
Child
;
if
(
shopArr
&&
shopArr
.
length
!=
0
)
{
Array
.
from
(
shopArr
).
forEach
((
item
)
=>
{
let
uri
=
item
.
visit_url
.
substring
(
6
);
if
(
uri
.
indexOf
(
"
/
"
)
!=
-
1
)
{
uri
=
uri
.
substring
(
0
,
uri
.
indexOf
(
"
/
"
));
}
switch
(
uri
)
{
case
"
data_service_list
"
:
item
.
active
=
"
shop_tool_ic_sjfw_sel
"
;
item
.
default
=
"
shop_tool_ic_sjfw
"
;
break
;
case
"
space_time_service_list
"
:
item
.
active
=
"
shop_tool_ic_skfw_sel
"
;
item
.
default
=
"
shop_tool_ic_skfw
"
;
break
;
case
"
video_service_list
"
:
item
.
active
=
"
shop_tool_ic_spfw_sel
"
;
item
.
default
=
"
shop_tool_ic_spfw
"
;
break
;
case
"
perception_service_list
"
:
item
.
active
=
"
shop_tool_ic_ganzhifw_sel
"
;
item
.
default
=
"
shop_tool_ic_ganzhifw
"
;
break
;
case
"
comprehensive_app_list
"
:
item
.
active
=
"
shop_tool_ic_zhyyfw_sel
"
;
item
.
default
=
"
shop_tool_ic_zhyyfw
"
;
break
;
case
"
cloud
"
:
item
.
active
=
"
shop_tool_ic_yzyfw_sel
"
;
item
.
default
=
"
shop_tool_ic_yzyfw
"
;
break
;
case
"
app_store_list
"
:
item
.
active
=
"
shop_ic_yysd_sel
"
;
item
.
default
=
"
shop_ic_yysd
"
;
break
;
default
:
item
.
active
=
"
1
"
;
item
.
default
=
"
1
"
;
break
;
}
});
}
this
.
menuList
=
shopArr
;
}
});
},
},
};
</
script
>
<
style
scoped
>
.service_shop_menu
{
background-color
:
#0d1847
;
position
:
fixed
;
top
:
76px
;
left
:
calc
(
50%
-
600px
);
width
:
180px
;
padding
:
8px
;
background-color
:
#ffffff
;
box-shadow
:
0px
3px
6px
0px
rgba
(
15
,
19
,
65
,
0.04
);
border-radius
:
8px
;
}
.service_shop_menu_list
>
li
{
padding
:
16px
10px
8px
22px
;
font-size
:
15px
;
line-height
:
24px
;
cursor
:
pointer
;
}
.service_shop_menu_list
>
li
:hover
,
.service_shop_menu_list
>
li
.current
{
background-color
:
rgba
(
242
,
246
,
253
,
0.4
);
color
:
#515fe7
;
}
.menu_img
{
width
:
25px
;
margin-right
:
6px
;
}
.menu_item
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#96a0c5
;
top
:
-6px
;
}
.menu_item_active
{
position
:
relative
;
font-weight
:
bold
;
font-size
:
15px
;
color
:
#515fe7
;
top
:
-6px
;
}
</
style
>
src/pages/data-analysis/my-service.vue
View file @
fe11a6a9
This diff is collapsed.
Click to expand it.
src/pages/data-analysis/org-service.vue
View file @
fe11a6a9
...
...
@@ -315,10 +315,10 @@ export default {
right_3_state
:
0
,
last_id
:
0
,
mult_data_state
:
[
{
name
:
"
正常
"
,
value
:
0
},
{
name
:
"
警告
"
,
value
:
0
},
{
name
:
"
错误
"
,
value
:
0
},
{
name
:
"
健康
"
,
value
:
0
},
{
name
:
"
未使用
"
,
value
:
0
},
{
name
:
"
故障
"
,
value
:
0
},
{
name
:
"
警告
"
,
value
:
0
},
],
mult_data
:
[
{
name
:
"
数据服务
"
,
value
:
0
},
...
...
@@ -535,7 +535,25 @@ export default {
getServiceHealth
()
{
this
.
$api
.
dataAnalysis
.
getServiceHealth
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
mult_data_state
=
response
.
data
.
data
.
seriesData
;
let
data
=
response
.
data
.
data
.
seriesData
;
let
jk
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
健康
"
;
});
let
wsy
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
未使用
"
;
});
let
gz
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
故障
"
;
});
let
jg
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
警告
"
;
});
this
.
mult_data_state
=
[
{
name
:
"
健康
"
,
value
:
jk
.
value
},
{
name
:
"
未使用
"
,
value
:
wsy
.
value
},
{
name
:
"
故障
"
,
value
:
gz
.
value
},
{
name
:
"
警告
"
,
value
:
jg
.
value
},
];
}
});
},
...
...
src/pages/data-analysis/super-service.vue
View file @
fe11a6a9
...
...
@@ -309,10 +309,10 @@ export default {
right_3_state
:
0
,
last_id
:
0
,
mult_data_state
:
[
{
name
:
"
正常
"
,
value
:
0
},
{
name
:
"
警告
"
,
value
:
0
},
{
name
:
"
错误
"
,
value
:
0
},
{
name
:
"
健康
"
,
value
:
0
},
{
name
:
"
未使用
"
,
value
:
0
},
{
name
:
"
故障
"
,
value
:
0
},
{
name
:
"
警告
"
,
value
:
0
},
],
mult_data
:
[
{
name
:
"
数据服务
"
,
value
:
0
},
...
...
@@ -529,7 +529,25 @@ export default {
getServiceHealth
()
{
this
.
$api
.
dataAnalysis
.
getServiceHealth
().
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
this
.
mult_data_state
=
response
.
data
.
data
.
seriesData
;
let
data
=
response
.
data
.
data
.
seriesData
;
let
jk
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
健康
"
;
});
let
wsy
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
未使用
"
;
});
let
gz
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
故障
"
;
});
let
jg
=
data
.
find
((
item
)
=>
{
return
item
.
name
==
"
警告
"
;
});
this
.
mult_data_state
=
[
{
name
:
"
健康
"
,
value
:
jk
.
value
},
{
name
:
"
未使用
"
,
value
:
wsy
.
value
},
{
name
:
"
故障
"
,
value
:
gz
.
value
},
{
name
:
"
警告
"
,
value
:
jg
.
value
},
];
}
});
},
...
...
src/pages/service_shop/shop_list.vue
View file @
fe11a6a9
<
template
>
<div
class=
"shop_list_cont"
>
<!--
<div
class=
"shop_list_cont"
>
-->
<div>
<el-container>
<el-aside
width=
"180px"
>
<service-shop-menu></service-shop-menu>
...
...
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