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
c6ab7e4e
Commit
c6ab7e4e
authored
May 09, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
list+com_card+shop all list page,add store shop menu
parent
49de291e
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
455 additions
and
69 deletions
+455
-69
src/assets/css/index.css
src/assets/css/index.css
+10
-0
src/components/commodity-card.vue
src/components/commodity-card.vue
+84
-0
src/components/commodity-cell.vue
src/components/commodity-cell.vue
+7
-2
src/components/commodity-list.vue
src/components/commodity-list.vue
+34
-3
src/components/service_list.vue
src/components/service_list.vue
+79
-47
src/components/service_shop_menu.vue
src/components/service_shop_menu.vue
+18
-6
src/pages/shop.vue
src/pages/shop.vue
+15
-0
src/pages/shop_cloud.vue
src/pages/shop_cloud.vue
+2
-4
src/pages/shop_list_app_store.vue
src/pages/shop_list_app_store.vue
+28
-0
src/pages/shop_list_comprehensive_app.vue
src/pages/shop_list_comprehensive_app.vue
+28
-0
src/pages/shop_list_data.vue
src/pages/shop_list_data.vue
+28
-0
src/pages/shop_list_perception.vue
src/pages/shop_list_perception.vue
+28
-0
src/pages/shop_list_space_time.vue
src/pages/shop_list_space_time.vue
+28
-0
src/pages/shop_list_video.vue
src/pages/shop_list_video.vue
+28
-0
src/router/index.js
src/router/index.js
+37
-6
src/store/index.js
src/store/index.js
+1
-1
No files found.
src/assets/css/index.css
View file @
c6ab7e4e
...
@@ -464,4 +464,14 @@ width: 620px!important;
...
@@ -464,4 +464,14 @@ width: 620px!important;
}
}
.bread_crumb
.is-link
{
.bread_crumb
.is-link
{
color
:
#626de9
!important
;
color
:
#626de9
!important
;
}
.bread_crumb1
{
margin
:
20px
;
font-size
:
14px
;
}
.bread_crumb1
.el-breadcrumb__inner
{
color
:
#242c43
!important
;
}
.bread_crumb1
.is-link
{
color
:
#898d9e
!important
;
}
}
\ No newline at end of file
src/components/commodity-card.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"com_card"
>
<img
src=
"https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
class=
"com_card_img"
/>
<div
class=
"com_card_msg"
>
<div
class=
"com_card_msg_name"
>
ApaasApaas
</div>
<div
class=
"com_card_msg_version"
>
v1.876
</div>
<div
class=
"com_card_msg_other"
>
<div
class=
"com_card_msg_time"
>
2019-12-04
</div>
<div
class=
"com_card_msg_num"
>
部署次数:44444
</div>
</div>
</div>
<div
class=
"com_card_btn"
>
<el-button
size=
"small"
>
加入购物车
</el-button>
<el-button
size=
"small"
>
查看详情
</el-button>
</div>
</div>
</
template
>
<
script
>
export
default
{
components
:
{},
props
:
{
url
:
{
type
:
String
,
default
:
""
},
cellData
:
{
type
:
Object
,
default
:
{}
}
},
data
:
()
=>
({}),
computed
:
{},
watch
:
{},
methods
:
{
goUrl
(
parame
)
{
if
(
this
.
url
!=
""
)
{
this
.
$router
.
push
(
this
.
url
+
parame
);
}
}
},
mounted
()
{}
};
</
script
>
<
style
scoped
>
.com_card
{
width
:
200px
;
height
:
300px
;
padding
:
10px
;
background-color
:
#ddd
;
margin
:
10px
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
}
.com_card_img
{
width
:
160px
;
height
:
160px
;
}
.com_card_msg
{
width
:
180px
;
text-align
:
center
;
}
.com_card_msg_name
{
font-size
:
24px
;
margin-bottom
:
10px
;
}
.com_card_msg_version
{
font-size
:
14px
;
}
.com_card_msg_other
{
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
font-size
:
12px
;
}
.com_card_msg_time
{
}
.com_card_msg_num
{
}
.com_card_btn
{
margin-top
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
}
</
style
>
\ No newline at end of file
src/components/commodity-cell.vue
View file @
c6ab7e4e
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<div
class=
"com_cell_message"
>
<div
class=
"com_cell_message"
>
<div
class=
"com_cell_msg_title"
>
<div
class=
"com_cell_msg_title"
>
{{
cellData
.
title
}}
{{
cellData
.
title
}}
<span
v-if=
"cellData.mapService"
class=
"tags map_service"
>
mapService
</span>
<span
v-if=
"cellData.state == 1"
class=
"tags shared"
>
共享
</span>
<span
v-if=
"cellData.state == 1"
class=
"tags shared"
>
共享
</span>
<span
v-else-if=
"cellData.state == 2"
class=
"tags restricted"
>
受限
</span>
<span
v-else-if=
"cellData.state == 2"
class=
"tags restricted"
>
受限
</span>
<span
v-else
class=
"tags sensitive"
>
敏感
</span>
<span
v-else
class=
"tags sensitive"
>
敏感
</span>
...
@@ -48,7 +49,7 @@
...
@@ -48,7 +49,7 @@
<span
class=
"com_cell_right_time_tit"
>
本月获取次数:
</span>
<span
class=
"com_cell_right_time_tit"
>
本月获取次数:
</span>
<span
class=
"com_cell_right_time"
>
{{
cellData
.
numberOfMonth
}}
次
</span>
<span
class=
"com_cell_right_time"
>
{{
cellData
.
numberOfMonth
}}
次
</span>
</div>
</div>
<el-button
class=
"com_cell_right_btn"
@
click=
"goUrl(
'ssurl'
)"
>
查看详情
</el-button>
<el-button
class=
"com_cell_right_btn"
@
click=
"goUrl(
cellData.id
)"
>
查看详情
</el-button>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -145,13 +146,17 @@ export default {
...
@@ -145,13 +146,17 @@ export default {
.tags
{
.tags
{
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
10px
;
margin-left
:
10px
;
padding
:
1px
8px
;
padding
:
1px
8px
2px
;
font-size
:
12px
;
font-size
:
12px
;
font-weight
:
500
;
font-weight
:
500
;
border-radius
:
15px
;
border-radius
:
15px
;
position
:
relative
;
position
:
relative
;
top
:
-2px
;
top
:
-2px
;
}
}
.map_service
{
background-color
:
#626DE9
;
color
:
#fff
;
}
.shared
{
.shared
{
background-color
:
#e7fdfc
;
background-color
:
#e7fdfc
;
border
:
solid
1px
#8bd6d0
;
border
:
solid
1px
#8bd6d0
;
...
...
src/components/commodity-list.vue
View file @
c6ab7e4e
<
template
>
<
template
>
<div>
<div>
<commodity-cell
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"item.id"
></commodity-cell>
<div
v-if=
"name=='应用商店'"
ref=
"commodityList"
class=
"commodity_card"
>
<div
ref=
"commodityCardIn"
class=
"commodity_card_list"
>
<commodity-card
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"item.id"
></commodity-card>
<commodity-card
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"'s' + item.id"
></commodity-card>
</div>
</div>
<div
v-else
class=
"commodity_cell"
>
<commodity-cell
v-for=
"item in datas"
:cellData=
"item"
:url=
"url"
:key=
"item.id"
></commodity-cell>
</div>
<!-- 分页 -->
<!-- 分页 -->
<section
class=
"com-pagination"
v-if=
"paginationShow"
>
<section
class=
"com-pagination"
v-if=
"paginationShow"
>
<div
class=
"com_page_total"
>
共
{{
pagination
.
total
}}
个条目
</div>
<div
class=
"com_page_total"
>
共
{{
pagination
.
total
}}
个条目
</div>
...
@@ -52,9 +60,11 @@
...
@@ -52,9 +60,11 @@
<
script
>
<
script
>
import
CommodityCell
from
"
@/components/commodity-cell.vue
"
;
import
CommodityCell
from
"
@/components/commodity-cell.vue
"
;
import
CommodityCard
from
"
@/components/commodity-card.vue
"
;
export
default
{
export
default
{
components
:
{
components
:
{
"
commodity-cell
"
:
CommodityCell
"
commodity-cell
"
:
CommodityCell
,
"
commodity-card
"
:
CommodityCard
},
},
props
:
{
props
:
{
datas
:
{
type
:
Array
,
default
:
[]
},
datas
:
{
type
:
Array
,
default
:
[]
},
...
@@ -66,7 +76,8 @@ export default {
...
@@ -66,7 +76,8 @@ export default {
pageSizeShow
:
{
pageSizeShow
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
},
name
:
{
type
:
String
,
default
:
""
}
},
},
data
:
()
=>
({
data
:
()
=>
({
pagination
:
{
pagination
:
{
...
@@ -102,10 +113,24 @@ export default {
...
@@ -102,10 +113,24 @@ export default {
},
},
getTotal
()
{
getTotal
()
{
this
.
pagination
.
total
=
this
.
datas
.
length
;
this
.
pagination
.
total
=
this
.
datas
.
length
;
},
pageResize
()
{
let
listWidth
=
this
.
$refs
.
commodityList
.
clientWidth
;
let
rowCardNum
=
Math
.
floor
(
listWidth
/
220
);
this
.
$refs
.
commodityCardIn
.
style
.
width
=
rowCardNum
*
220
+
"
px
"
;
this
.
$refs
.
commodityCardIn
.
style
.
marginLeft
=
(
listWidth
-
rowCardNum
*
220
)
/
2
+
"
px
"
;
console
.
log
(
this
.
$refs
.
commodityCardIn
);
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getTotal
();
this
.
getTotal
();
if
(
this
.
name
==
"
应用商店
"
)
{
this
.
pageResize
();
window
.
onresize
=
()
=>
{
this
.
pageResize
();
};
}
}
}
};
};
</
script
>
</
script
>
...
@@ -138,6 +163,12 @@ export default {
...
@@ -138,6 +163,12 @@ export default {
justify-content
:
flex-end
;
justify-content
:
flex-end
;
align-items
:
center
;
align-items
:
center
;
}
}
.commodity_card
{
}
.commodity_card_list
{
display
:
flex
;
flex-wrap
:
wrap
;
}
</
style
>
</
style
>
<
style
>
<
style
>
.com_page_control
.el-button
{
.com_page_control
.el-button
{
...
...
src/components/service_list.vue
View file @
c6ab7e4e
<
template
>
<
template
>
<!--
name: page type
url: detail page url
urlList: get list data from this url
urlFilter: get filter data from this url
author: dixin
This component only for service shop list, so the explanation only look by me
-->
<div>
<div>
<div
class=
"head_flex"
>
<div
class=
"head_flex"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb bread_left"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb
1
bread_left"
>
<el-breadcrumb-item
:to=
"
{ path: '/
fwcs
' }">服务超市
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/
shop
' }">服务超市
</el-breadcrumb-item>
<el-breadcrumb-item>
数据服务
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
name
}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<div
class=
"input_right"
>
<div
v-if=
"urlList"
class=
"input_right"
>
<el-input
<el-input
v-model=
"search"
v-model=
"search"
prefix-icon=
"el-icon-search"
prefix-icon=
"el-icon-search"
...
@@ -14,8 +22,9 @@
...
@@ -14,8 +22,9 @@
></el-input>
></el-input>
</div>
</div>
</div>
</div>
<block-radius>
<block-radius
v-if=
"urlList"
>
<div
class=
"classification"
>
<!-- filter -->
<div
v-if=
"urlFilter"
class=
"classification"
>
<div
v-for=
"(item, index) in filterLists"
:key=
"'cd' + index"
class=
"classification_line"
>
<div
v-for=
"(item, index) in filterLists"
:key=
"'cd' + index"
class=
"classification_line"
>
<div
class=
"classification_line_title"
>
{{
item
.
name
}}
:
</div>
<div
class=
"classification_line_title"
>
{{
item
.
name
}}
:
</div>
<div
<div
...
@@ -34,6 +43,7 @@
...
@@ -34,6 +43,7 @@
<span
<span
:class=
"activeOptions[index] == items.id ? 'classification_act':''"
:class=
"activeOptions[index] == items.id ? 'classification_act':''"
>
{{
items
.
name
}}
</span>
>
{{
items
.
name
}}
</span>
<!-- if item have children, we will use an arrow to prompt -->
<i
<i
v-if=
"items.children && openChildren[index].state == true && openChildren[index].index == indexs"
v-if=
"items.children && openChildren[index].state == true && openChildren[index].index == indexs"
class=
"el-icon-caret-top"
class=
"el-icon-caret-top"
...
@@ -46,6 +56,7 @@
...
@@ -46,6 +56,7 @@
</div>
</div>
</li>
</li>
</ul>
</ul>
<!-- if the word over the width, we will supply a button for show all word -->
<div
<div
v-if=
"item.showOpen"
v-if=
"item.showOpen"
class=
"classification_line_items_open"
class=
"classification_line_items_open"
...
@@ -57,6 +68,7 @@
...
@@ -57,6 +68,7 @@
<i
v-if=
"openList[index] == 'up'"
class=
"el-icon-caret-bottom"
></i>
<i
v-if=
"openList[index] == 'up'"
class=
"el-icon-caret-bottom"
></i>
</div>
</div>
</div>
</div>
<!-- filter children -->
<div
v-if=
"openChildren[index].state"
>
<div
v-if=
"openChildren[index].state"
>
<ul
class=
"classification_children_ul"
>
<ul
class=
"classification_children_ul"
>
<li
<li
...
@@ -76,14 +88,25 @@
...
@@ -76,14 +88,25 @@
</div>
</div>
</div>
</div>
<div
class=
"gray_line"
></div>
<div
class=
"gray_line"
></div>
<el-button
<!-- filter button -->
v-for=
"(item, index) in buttonFilter"
<div>
:key=
"item.name"
<el-button
size=
"small"
v-for=
"(item, index) in buttonFilter"
:class=
"item.state == false ? 'button_filter':'button_filter_act'"
:key=
"item.name"
@
click=
"clickButtonFilter(index)"
size=
"small"
>
{{
item
.
name
}}
</el-button>
:class=
"item.state == false ? 'button_filter':'button_filter_act'"
<commodity-list
:datas=
"lists"
url=
"urlssss"
:paginationShow=
"true"
:pageSizeShow=
"true"
@
refresh=
"getNewList()"
></commodity-list>
@
click=
"clickButtonFilter(index)"
>
{{
item
.
name
}}
</el-button>
</div>
<!-- the list -->
<commodity-list
:datas=
"lists"
:url=
"url"
:name=
"name"
:paginationShow=
"true"
:pageSizeShow=
"true"
@
refresh=
"getNewList"
></commodity-list>
</block-radius>
</block-radius>
</div>
</div>
</
template
>
</
template
>
...
@@ -104,7 +127,9 @@ export default {
...
@@ -104,7 +127,9 @@ export default {
urlFilter
:
{
urlFilter
:
{
type
:
String
,
type
:
String
,
default
:
""
default
:
""
}
},
url
:
{
type
:
String
,
default
:
""
},
name
:
{
type
:
String
,
default
:
""
}
},
},
data
:
()
=>
({
data
:
()
=>
({
search
:
""
,
search
:
""
,
...
@@ -146,7 +171,8 @@ export default {
...
@@ -146,7 +171,8 @@ export default {
serviceType
:
"
数据服务 专题数据服务 企业专题数据服务
"
,
serviceType
:
"
数据服务 专题数据服务 企业专题数据服务
"
,
updateTime
:
"
2020-03-12 18:31:12
"
,
updateTime
:
"
2020-03-12 18:31:12
"
,
numberOfMonth
:
"
2698755
"
,
numberOfMonth
:
"
2698755
"
,
rate
:
3
rate
:
3
,
mapService
:
1
},
},
{
{
id
:
1
,
id
:
1
,
...
@@ -330,15 +356,14 @@ export default {
...
@@ -330,15 +356,14 @@ export default {
dataField
:
""
,
dataField
:
""
,
dataSourceOrganization
:
""
,
dataSourceOrganization
:
""
,
page
:
1
,
page
:
1
,
limit
:
10
,
limit
:
10
}),
}),
mounted
()
{
mounted
()
{
this
.
getFwcsList
();
this
.
getShopList
();
this
.
getFwcsFilter
();
this
.
getShopFilter
();
this
.
setTout
();
},
},
methods
:
{
methods
:
{
get
Fwcs
List
()
{
get
Shop
List
()
{
// dataServiceType: "",
// dataServiceType: "",
// dataField: "",
// dataField: "",
// dataSourceOrganization: ""
// dataSourceOrganization: ""
...
@@ -356,25 +381,25 @@ export default {
...
@@ -356,25 +381,25 @@ export default {
this
.
error
=
true
;
this
.
error
=
true
;
});
});
},
},
getFwcsFilter
()
{
getShopFilter
()
{
let
url
=
`
${
this
.
urlFilter
}
`
;
this
.
$http
.
get
(
url
)
.
then
(
response
=>
{
if
(
response
.
data
.
message
==
"
success
"
)
{
this
.
filterList
=
response
.
data
.
data
;
}
else
{
console
.
log
(
response
.
data
.
message
);
}
})
.
catch
(
function
(
response
)
{
this
.
error
=
true
;
});
},
setTout
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
judgeHeight
();
if
(
this
.
urlFilter
)
{
},
500
);
this
.
judgeHeight
();
}
},
0
);
// let url = `${this.urlFilter}`;
// this.$http
// .get(url)
// .then(response => {
// if (response.data.message == "success") {
// this.filterList = response.data.data;
// } else {
// console.log(response.data.message);
// }
// })
// .catch(function(response) {
// this.error = true;
// });
},
},
judgeHeight
()
{
judgeHeight
()
{
let
list
=
this
.
filterLists
;
let
list
=
this
.
filterLists
;
...
@@ -397,7 +422,6 @@ export default {
...
@@ -397,7 +422,6 @@ export default {
this
.
$set
(
this
.
openList
,
index
,
"
up
"
);
this
.
$set
(
this
.
openList
,
index
,
"
up
"
);
}
}
// 这里不能像上面那样整体更新,因为啥我也不知道,我太菜
// 这里不能像上面那样整体更新,因为啥我也不知道,我太菜
console
.
log
(
index
);
},
},
clickItem
(
index
,
indexs
,
items
)
{
clickItem
(
index
,
indexs
,
items
)
{
this
.
activeOptions
[
index
]
=
items
.
id
;
this
.
activeOptions
[
index
]
=
items
.
id
;
...
@@ -426,7 +450,7 @@ export default {
...
@@ -426,7 +450,7 @@ export default {
},
},
clickButtonFilter
(
index
)
{
clickButtonFilter
(
index
)
{
this
.
buttonFilter
[
index
].
state
=
!
this
.
buttonFilter
[
index
].
state
;
this
.
buttonFilter
[
index
].
state
=
!
this
.
buttonFilter
[
index
].
state
;
this
.
get
Fwcs
List
();
this
.
get
Shop
List
();
},
},
clickChildren
(
id
,
index
)
{
clickChildren
(
id
,
index
)
{
this
.
$set
(
this
.
activeOptions
,
index
,
id
);
this
.
$set
(
this
.
activeOptions
,
index
,
id
);
...
@@ -446,19 +470,19 @@ export default {
...
@@ -446,19 +470,19 @@ export default {
default
:
default
:
break
;
break
;
}
}
this
.
get
Fwcs
List
();
this
.
get
Shop
List
();
},
},
// search debonce 500ms
// search debonce 500ms
searchVal
()
{
searchVal
()
{
if
(
this
.
times
!==
null
)
clearTimeout
(
this
.
times
);
if
(
this
.
times
!==
null
)
clearTimeout
(
this
.
times
);
this
.
times
=
setTimeout
(()
=>
{
this
.
times
=
setTimeout
(()
=>
{
this
.
get
Fwcs
List
();
this
.
get
Shop
List
();
},
500
);
},
500
);
},
},
getNewList
(
val
)
{
getNewList
(
val
)
{
this
.
page
=
val
.
page
;
this
.
page
=
val
.
page
;
this
.
limit
=
val
.
rowsPerPage
;
this
.
limit
=
val
.
rowsPerPage
;
this
.
getFwcs
List
();
this
.
getShop
List
();
}
}
}
}
};
};
...
@@ -472,7 +496,7 @@ export default {
...
@@ -472,7 +496,7 @@ export default {
width
:
300px
;
width
:
300px
;
}
}
.input_right
{
.input_right
{
width
:
3
0
0px
;
width
:
3
6
0px
;
}
}
.gray_line
{
.gray_line
{
width
:
100%
;
width
:
100%
;
...
@@ -492,6 +516,7 @@ export default {
...
@@ -492,6 +516,7 @@ export default {
width
:
130px
;
width
:
130px
;
padding
:
15px
0
;
padding
:
15px
0
;
text-align
:
right
;
text-align
:
right
;
color
:
#8890a7
;
}
}
.classification_line_items
{
.classification_line_items
{
width
:
calc
(
100%
-
100px
);
width
:
calc
(
100%
-
100px
);
...
@@ -553,6 +578,7 @@ export default {
...
@@ -553,6 +578,7 @@ export default {
.button_filter
{
.button_filter
{
background-color
:
#e6eefe
;
background-color
:
#e6eefe
;
color
:
#626de9
;
color
:
#626de9
;
font-size
:
10px
;
}
}
.button_filter_act
{
.button_filter_act
{
background-color
:
#515fe7
;
background-color
:
#515fe7
;
...
@@ -570,4 +596,10 @@ export default {
...
@@ -570,4 +596,10 @@ export default {
.el-input__suffix
{
.el-input__suffix
{
left
:
10px
;
left
:
10px
;
}
}
.input_right
.el-input--prefix
.el-input__inner
{
outline
:
none
;
}
.input_right
.el-input__inner
:focus-within
{
border
:
1px
solid
#626DE9
;
}
</
style
>
</
style
>
\ No newline at end of file
src/components/service_shop_menu.vue
View file @
c6ab7e4e
<
template
>
<
template
>
<div
class=
"service_shop_menu"
>
<div
class=
"service_shop_menu"
>
<ul
class=
"service_shop_menu_list"
>
<ul
class=
"service_shop_menu_list"
>
<li
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"active(item.
id
)"
>
<li
v-for=
"(item, index) in menuList"
:key=
"index"
@
click=
"active(item.
router
)"
>
<img
<img
v-if=
"item.
id
== actives"
v-if=
"item.
router
== actives"
:src=
"require('../assets/imgs/' + item.active + '.png')"
:src=
"require('../assets/imgs/' + item.active + '.png')"
class=
"menu_img"
class=
"menu_img"
/>
/>
<img
v-else
:src=
"require('../assets/imgs/' + item.default + '.png')"
class=
"menu_img"
/>
<img
v-else
:src=
"require('../assets/imgs/' + item.default + '.png')"
class=
"menu_img"
/>
<span
:class=
"item.
id
== actives ? 'menu_item_active':'menu_item'"
>
{{
item
.
label
}}
</span>
<span
:class=
"item.
router
== actives ? 'menu_item_active':'menu_item'"
>
{{
item
.
label
}}
</span>
</li>
</li>
</ul>
</ul>
</div>
</div>
...
@@ -19,47 +19,54 @@ export default {
...
@@ -19,47 +19,54 @@ export default {
props
:
{},
props
:
{},
data
()
{
data
()
{
return
{
return
{
actives
:
0
,
actives
:
""
,
menuList
:
[
menuList
:
[
{
{
id
:
0
,
id
:
0
,
label
:
"
数据服务
"
,
label
:
"
数据服务
"
,
router
:
"
/shop/data_service_list
"
,
active
:
"
tool_ic_shujufw_sel
"
,
active
:
"
tool_ic_shujufw_sel
"
,
default
:
"
tool_ic_shujufw
"
default
:
"
tool_ic_shujufw
"
},
},
{
{
id
:
1
,
id
:
1
,
label
:
"
时空服务
"
,
label
:
"
时空服务
"
,
router
:
"
/shop/space_time_service_list
"
,
active
:
"
tool_ic_shikongfw_sel
"
,
active
:
"
tool_ic_shikongfw_sel
"
,
default
:
"
tool_ic_shikongfw
"
default
:
"
tool_ic_shikongfw
"
},
},
{
{
id
:
2
,
id
:
2
,
label
:
"
视频服务
"
,
label
:
"
视频服务
"
,
router
:
"
/shop/video_service_list
"
,
active
:
"
tool_ic_shipinfw_sel
"
,
active
:
"
tool_ic_shipinfw_sel
"
,
default
:
"
tool_ic_shipinfw
"
default
:
"
tool_ic_shipinfw
"
},
},
{
{
id
:
3
,
id
:
3
,
label
:
"
感知服务
"
,
label
:
"
感知服务
"
,
router
:
"
/shop/perception_service_list
"
,
active
:
"
tool_ic_ganzhifw_sel
"
,
active
:
"
tool_ic_ganzhifw_sel
"
,
default
:
"
tool_ic_ganzhifw
"
default
:
"
tool_ic_ganzhifw
"
},
},
{
{
id
:
4
,
id
:
4
,
label
:
"
综合应用服务
"
,
label
:
"
综合应用服务
"
,
router
:
"
/shop/comprehensive_app_list
"
,
active
:
"
tool_ic_zongheyyfw_sel
"
,
active
:
"
tool_ic_zongheyyfw_sel
"
,
default
:
"
tool_ic_zongheyyfw
"
default
:
"
tool_ic_zongheyyfw
"
},
},
{
{
id
:
5
,
id
:
5
,
label
:
"
云资源服务
"
,
label
:
"
云资源服务
"
,
router
:
"
/shop/cloud
"
,
active
:
"
tool_ic_yunziyuanfw_sel
"
,
active
:
"
tool_ic_yunziyuanfw_sel
"
,
default
:
"
tool_ic_yunziyuanfw
"
default
:
"
tool_ic_yunziyuanfw
"
},
},
{
{
id
:
6
,
id
:
6
,
label
:
"
应用商店
"
,
label
:
"
应用商店
"
,
router
:
"
/shop/app_store_list
"
,
active
:
"
tool_ic_yingyongsd_sel
"
,
active
:
"
tool_ic_yingyongsd_sel
"
,
default
:
"
tool_ic_yingyongsd
"
default
:
"
tool_ic_yingyongsd
"
}
}
...
@@ -76,12 +83,17 @@ export default {
...
@@ -76,12 +83,17 @@ export default {
this
.
getActiveMenu
(
newVal
);
this
.
getActiveMenu
(
newVal
);
}
}
},
},
mounted
()
{
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
this
.
$route
.
path
);
this
.
actives
=
this
.
$store
.
state
.
serviceShopMenu
;
},
methods
:
{
methods
:
{
active
(
id
)
{
active
(
val
)
{
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
id
);
this
.
$store
.
commit
(
"
serviceShopMenuAct
"
,
val
);
},
},
getActiveMenu
(
val
)
{
getActiveMenu
(
val
)
{
this
.
actives
=
val
;
this
.
actives
=
val
;
this
.
$router
.
push
(
val
);
}
}
}
}
};
};
...
...
src/pages/shop.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div>
<router-view/>
</div>
</
template
>
<
script
>
export
default
{
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/
data_service_list
.vue
→
src/pages/
shop_cloud
.vue
View file @
c6ab7e4e
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<service-shop-menu></service-shop-menu>
<service-shop-menu></service-shop-menu>
</el-aside>
</el-aside>
<el-main>
<el-main>
<service-list
urlList=
"url1sss"
urlFilter=
"urldwad2222
"
></service-list>
<service-list
name=
"云资源
"
></service-list>
</el-main>
</el-main>
</el-container>
</el-container>
</div>
</div>
...
@@ -21,9 +21,7 @@ export default {
...
@@ -21,9 +21,7 @@ export default {
},
},
data
:
()
=>
({}),
data
:
()
=>
({}),
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{}
}
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/pages/shop_list_app_store.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"应用商店"
url=
"skfw"
urlList=
"url1sss"
urlFilter=
"urldwad2222"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/shop_list_comprehensive_app.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"综合应用"
url=
"skfw"
urlList=
"url1sss"
urlFilter=
"urldwad2222"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/shop_list_data.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"数据服务"
url=
"sjfw"
urlList=
"url1sss"
urlFilter=
"urldwad2222"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/shop_list_perception.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"感知服务"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/shop_list_space_time.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"时空服务"
url=
"skfw"
urlList=
"url1sss"
urlFilter=
"urldwad2222"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/pages/shop_list_video.vue
0 → 100644
View file @
c6ab7e4e
<
template
>
<div
class=
"service_list"
>
<el-container>
<el-aside
width=
"200px"
>
<service-shop-menu></service-shop-menu>
</el-aside>
<el-main>
<service-list
name=
"视频服务"
></service-list>
</el-main>
</el-container>
</div>
</
template
>
<
script
>
import
ServiceShopMenu
from
"
@/components/service_shop_menu
"
;
import
ServiceList
from
"
@/components/service_list
"
;
export
default
{
components
:
{
ServiceShopMenu
,
ServiceList
},
data
:
()
=>
({}),
mounted
()
{},
methods
:
{}
};
</
script
>
<
style
scoped
>
</
style
>
\ No newline at end of file
src/router/index.js
View file @
c6ab7e4e
...
@@ -91,14 +91,45 @@ export default new Router({
...
@@ -91,14 +91,45 @@ export default new Router({
],
],
},
},
{
{
path
:
"
/fwcs
"
,
// 服务超市
path
:
"
/shop
"
,
// 服务超市
name
:
"
fwcs
"
,
name
:
"
shop
"
,
component
:
()
=>
import
(
"
@/pages/data_service_list
"
),
redirect
:
"
/shop/data_service_list
"
,
component
:
()
=>
import
(
"
@/pages/shop
"
),
children
:
[
children
:
[
{
{
path
:
"
/data_service_list
"
,
// 服务超市列表页
path
:
"
/shop/data_service_list
"
,
// 数据服务列表页
name
:
"
fwcsDataList
"
,
name
:
"
shopDataList
"
,
component
:
()
=>
import
(
"
@/pages/data_service_list
"
),
component
:
()
=>
import
(
"
@/pages/shop_list_data
"
),
},
{
path
:
"
/shop/space_time_service_list
"
,
// 时空服务列表页
name
:
"
shopSpaceTimeList
"
,
component
:
()
=>
import
(
"
@/pages/shop_list_space_time
"
),
},
{
path
:
"
/shop/video_service_list
"
,
// 视频服务列表页
name
:
"
shopVideoList
"
,
component
:
()
=>
import
(
"
@/pages/shop_list_video
"
),
},
{
path
:
"
/shop/perception_service_list
"
,
// 感知服务列表页
name
:
"
shopPerceptionList
"
,
component
:
()
=>
import
(
"
@/pages/shop_list_perception
"
),
},
{
path
:
"
/shop/comprehensive_app_list
"
,
// 综合应用列表页
name
:
"
shopComAppList
"
,
component
:
()
=>
import
(
"
@/pages/shop_list_comprehensive_app
"
),
},
{
path
:
"
/shop/cloud
"
,
// 云资源服务
name
:
"
shopCloud
"
,
component
:
()
=>
import
(
"
@/pages/shop_cloud
"
),
},
{
path
:
"
/shop/app_store_list
"
,
// 应用商店列表页
name
:
"
shopAppStoreList
"
,
component
:
()
=>
import
(
"
@/pages/shop_list_app_store
"
),
},
},
],
],
},
},
...
...
src/store/index.js
View file @
c6ab7e4e
...
@@ -6,7 +6,7 @@ Vue.use(Vuex);
...
@@ -6,7 +6,7 @@ Vue.use(Vuex);
const
store
=
new
Vuex
.
Store
({
const
store
=
new
Vuex
.
Store
({
state
:
{
state
:
{
role
:
1
,
//0:普通用户,1:组织管理员,2:超级管理员
role
:
1
,
//0:普通用户,1:组织管理员,2:超级管理员
serviceShopMenu
:
0
,
// 服务超市侧边栏
serviceShopMenu
:
"
shopDataList
"
,
// 服务超市侧边栏
},
},
modules
:
{
modules
:
{
},
},
...
...
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