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
e499f06e
Commit
e499f06e
authored
Jun 09, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车,menu购物,服务超市路由根据后端调整,组件阶梯
parent
e7514cbe
Changes
31
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
238 additions
and
172 deletions
+238
-172
src/components/apass-list.vue
src/components/apass-list.vue
+1
-1
src/components/menu.vue
src/components/menu.vue
+50
-52
src/components/service-list/service_list.vue
src/components/service-list/service_list.vue
+13
-11
src/components/service_shop_menu.vue
src/components/service_shop_menu.vue
+6
-6
src/components/shop-car-apply/apply_service_state.vue
src/components/shop-car-apply/apply_service_state.vue
+1
-1
src/components/shopping-cart/shopping-cart-cell.vue
src/components/shopping-cart/shopping-cart-cell.vue
+100
-39
src/components/shopping-cart/shopping-cart-com.vue
src/components/shopping-cart/shopping-cart-com.vue
+20
-7
src/components/shopping-cart/shopping-cart-list.vue
src/components/shopping-cart/shopping-cart-list.vue
+7
-4
src/components/table/dialog-remove.vue
src/components/table/dialog-remove.vue
+0
-0
src/components/table/table-filter.vue
src/components/table/table-filter.vue
+0
-0
src/components/table/table-input.vue
src/components/table/table-input.vue
+0
-0
src/components/table/table-select.vue
src/components/table/table-select.vue
+0
-0
src/components/table/table-um.vue
src/components/table/table-um.vue
+9
-9
src/components/table/table-umhref.vue
src/components/table/table-umhref.vue
+0
-0
src/i18n/language-zh.js
src/i18n/language-zh.js
+3
-0
src/pages/example/example_table.vue
src/pages/example/example_table.vue
+1
-1
src/pages/user/message.vue
src/pages/user/message.vue
+1
-1
src/pages/user/order/order_detail.vue
src/pages/user/order/order_detail.vue
+1
-1
src/pages/workbench/fwgl/apply_service_detail.vue
src/pages/workbench/fwgl/apply_service_detail.vue
+1
-1
src/pages/workbench/fwgl/approval_service_detail.vue
src/pages/workbench/fwgl/approval_service_detail.vue
+1
-1
src/pages/workbench/fwgl/serviceDetail.vue
src/pages/workbench/fwgl/serviceDetail.vue
+1
-1
src/pages/workbench/fwzc_fwcs.vue
src/pages/workbench/fwzc_fwcs.vue
+1
-1
src/pages/workbench/workPlace.vue
src/pages/workbench/workPlace.vue
+1
-1
src/pages/workbench/yygl/app_detail.vue
src/pages/workbench/yygl/app_detail.vue
+1
-1
src/pages/workbench/yygl/apply_app_detail.vue
src/pages/workbench/yygl/apply_app_detail.vue
+1
-1
src/pages/workbench/yygl/approval_app_detail.vue
src/pages/workbench/yygl/approval_app_detail.vue
+1
-1
src/pages/workbench/yygl/deploy_app_detail.vue
src/pages/workbench/yygl/deploy_app_detail.vue
+1
-1
src/pages/workbench/yygl/yyglList.vue
src/pages/workbench/yygl/yyglList.vue
+2
-2
src/request/api/service_shop.js
src/request/api/service_shop.js
+3
-0
src/router/index.js
src/router/index.js
+3
-28
src/store/index.js
src/store/index.js
+8
-0
No files found.
src/components/apass-list.vue
View file @
e499f06e
...
...
@@ -71,7 +71,7 @@
<
script
>
import
listTable
from
"
@/components/apass-table
"
;
import
ListPagination
from
"
@/components/comments-pagination
"
;
import
ListFilter
from
"
@/components/table-filter
"
;
import
ListFilter
from
"
@/components/table
/table
-filter
"
;
export
default
{
components
:
{
...
...
src/components/menu.vue
View file @
e499f06e
...
...
@@ -23,17 +23,21 @@
:key=
"'shopping' + index"
class=
"shop_list_cell shop_line"
>
<img
src=
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
class=
"shop_img"
/>
<img
:src=
"item.service.cover"
class=
"shop_img"
/>
<div
class=
"shop_cell_msgs"
>
<p
@
click=
"getDetail(item.id)"
class=
"shop_cell_name over_one"
>
{{
item
.
name
}}
</p>
<p
class=
"shop_cell_msg bover_one"
>
{{
item
.
type
}}
</p>
<p
class=
"shop_cell_msg over_one"
>
{{
item
.
creator
}}
</p>
<p
@
click=
"getDetail(item.id)"
class=
"shop_cell_name over_one"
>
{{
item
.
service_id
==
0
?
item
.
application
.
app_name
:
item
.
service
.
name
}}
</p>
<p
class=
"shop_cell_msg bover_one"
>
{{
item
.
service_id
==
0
?
item
.
application
.
ywly
:
item
.
service
.
sectors
}}
</p>
<p
class=
"shop_cell_msg over_one"
>
{{
item
.
service_id
==
0
?
item
.
application
.
org
:
item
.
service
.
organization_name
}}
</p>
</div>
<div>
<img
@
click=
"deleteItem(item.id)"
src=
"../assets/imgs/ic_delete.png"
alt
/>
<img
@
click
.stop
=
"deleteItem(item.id)"
src=
"../assets/imgs/ic_delete.png"
alt
/>
</div>
</div>
<div
class=
"shop_footer"
>
...
...
@@ -99,23 +103,23 @@ export default {
children
:
[
{
name
:
"
数据服务
"
,
path
:
"
/shop/
data_service_list
"
path
:
"
/shop/
service/5
"
},
{
name
:
"
时空服务
"
,
path
:
"
/shop/s
pace_time_service_list
"
path
:
"
/shop/s
ervice/6
"
},
{
name
:
"
视频服务
"
,
path
:
"
/shop/
video_service_list
"
path
:
"
/shop/
service/7
"
},
{
name
:
"
感知服务
"
,
path
:
"
/shop/
perception_service_list
"
path
:
"
/shop/
service/10
"
},
{
name
:
"
综合应用
"
,
path
:
"
/shop/
comprehensive_app_list
"
path
:
"
/shop/
service/11
"
},
{
name
:
"
云资源服务
"
,
...
...
@@ -123,7 +127,7 @@ export default {
},
{
name
:
"
应用商店
"
,
path
:
"
/shop/
app_store_list
"
path
:
"
/shop/
service/12
"
}
]
}
...
...
@@ -136,44 +140,21 @@ export default {
{
name
:
"
关于BD-aPaaS
"
,
path
:
""
},
{
name
:
"
退出登录
"
,
path
:
""
}
],
shopping_list
:
[
{
id
:
0
,
name
:
"
水路货物周转量情况
"
,
type
:
"
基础数据服务
"
,
creator
:
"
贵州省交通运输厅0
"
,
state
:
1
,
mapService
:
1
,
num
:
2
,
checkedSubscription
:
false
,
specification
:
1
,
specificationApplication
:
2
shopping_list
:
[]
};
},
{
id
:
1
,
name
:
"
水路货物周转量情况水路货物周水路货物周转量情况水路货物周
"
,
type
:
"
基础数据服务
"
,
creator
:
"
贵州省交通运输厅1
"
,
state
:
1
,
num
:
2
,
checkedSubscription
:
false
,
specification
:
1
,
specificationApplication
:
2
mounted
()
{
this
.
getList
();
},
{
id
:
2
,
name
:
"
水路货物周转量情况水路货物周转量情况
"
,
type
:
"
基础数据服务
"
,
creator
:
"
贵州省交通运输厅2
"
,
state
:
1
,
mapService
:
1
,
num
:
2
,
checkedSubscription
:
true
,
specification
:
1
,
specificationApplication
:
2
computed
:
{
getMenuCartState
()
{
return
this
.
$store
.
state
.
menuCartState
;
}
},
watch
:
{
getMenuCartState
(
newVal
)
{
this
.
getList
();
}
]
};
},
methods
:
{
gotopage
(
n
)
{
...
...
@@ -182,9 +163,16 @@ export default {
settlement
()
{
this
.
$router
.
push
({
name
:
"
shoppingCart
"
});
},
deleteItem
()
{},
deleteItem
(
id
)
{
let
query
=
[
id
];
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
this
.
getList
();
});
},
getDetail
()
{
// if you want goto detail page, you should give me the type at first
// at here, we will goto shopping cart
this
.
$router
.
push
({
name
:
"
shoppingCart
"
});
},
navAction
(
index
,
path
)
{
this
.
$router
.
push
(
path
);
...
...
@@ -202,6 +190,16 @@ export default {
}
this
.
now_menu
=
parent
;
}
},
getList
()
{
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
response
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
console
.
log
(
response
.
data
.
data
);
this
.
shopping_list
=
response
.
data
.
data
.
valid
.
slice
(
0
,
3
);
}
else
{
console
.
log
(
response
.
data
.
message
);
}
});
}
}
};
...
...
src/components/service-list/service_list.vue
View file @
e499f06e
...
...
@@ -10,7 +10,7 @@
<div>
<div
class=
"head_flex"
>
<el-breadcrumb
separator=
"/"
class=
"bread_crumb1 bread_left"
>
<el-breadcrumb-item
:to=
"
{ path: '/shop' }">
服务超市
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/shop' }">
{{
$t
(
'
lang.serviceShop
'
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
name
}}
</el-breadcrumb-item>
</el-breadcrumb>
<div
v-if=
"urlList"
class=
"input_right"
>
...
...
@@ -35,10 +35,7 @@
:class=
"openList[index] == 'up' ? 'classification_line_hid':'classification_line_show'"
>
<ul
:id=
"item.id"
class=
"classification_line_items_ul"
>
<li
class=
"classification_line_items_li"
:key=
"'cda' + index"
>
<li
class=
"classification_line_items_li"
:key=
"'cda' + index"
>
<div
class=
"classification_span"
>
<span
@
click=
"clickAll(index)"
...
...
@@ -180,8 +177,7 @@ export default {
}
],
activeBtn
:
0
,
lists
:
[
],
lists
:
[],
filterLists
:
[
{
id
:
10
,
...
...
@@ -237,9 +233,15 @@ export default {
this
.
$api
.
serviceShop
.
getServiceShopFilter
(
query
).
then
(
response
=>
{
if
(
response
.
data
.
success
==
1
)
{
let
data
=
response
.
data
.
data
;
this
.
filterLists
[
0
].
childDomains
=
data
.
serviceTypeInfo
?
data
.
serviceTypeInfo
:
[];
this
.
filterLists
[
1
].
childDomains
=
data
.
serviceDomain
?
data
.
serviceDomain
:
[];
this
.
filterLists
[
2
].
childDomains
=
data
.
organizations
?
data
.
organizations
:
[];
this
.
filterLists
[
0
].
childDomains
=
data
.
serviceTypeInfo
?
data
.
serviceTypeInfo
:
[];
this
.
filterLists
[
1
].
childDomains
=
data
.
serviceDomain
?
data
.
serviceDomain
:
[];
this
.
filterLists
[
2
].
childDomains
=
data
.
organizations
?
data
.
organizations
:
[];
setTimeout
(()
=>
{
this
.
judgeHeight
();
},
0
);
...
...
@@ -344,7 +346,7 @@ export default {
this
.
getShopList
();
},
clickAll
(
item
)
{
console
.
log
(
item
)
console
.
log
(
item
)
;
this
.
activeOptions
[
item
]
=
[];
this
.
activeChildOptions
[
item
]
=
[];
}
...
...
src/components/service_shop_menu.vue
View file @
e499f06e
...
...
@@ -24,35 +24,35 @@ export default {
{
id
:
0
,
label
:
"
数据服务
"
,
router
:
"
/shop/
data_service_list
"
,
router
:
"
/shop/
service/5
"
,
active
:
"
tool_ic_shujufw_sel
"
,
default
:
"
tool_ic_shujufw
"
},
{
id
:
1
,
label
:
"
时空服务
"
,
router
:
"
/shop/s
pace_time_service_list
"
,
router
:
"
/shop/s
ervice/6
"
,
active
:
"
tool_ic_shikongfw_sel
"
,
default
:
"
tool_ic_shikongfw
"
},
{
id
:
2
,
label
:
"
视频服务
"
,
router
:
"
/shop/
video_service_list
"
,
router
:
"
/shop/
service/7
"
,
active
:
"
tool_ic_shipinfw_sel
"
,
default
:
"
tool_ic_shipinfw
"
},
{
id
:
3
,
label
:
"
感知服务
"
,
router
:
"
/shop/
perception_service_list
"
,
router
:
"
/shop/
service/10
"
,
active
:
"
tool_ic_ganzhifw_sel
"
,
default
:
"
tool_ic_ganzhifw
"
},
{
id
:
4
,
label
:
"
综合服务
"
,
router
:
"
/shop/
comprehensive_app_list
"
,
router
:
"
/shop/
service/11
"
,
active
:
"
tool_ic_zongheyyfw_sel
"
,
default
:
"
tool_ic_zongheyyfw
"
},
...
...
@@ -66,7 +66,7 @@ export default {
{
id
:
6
,
label
:
"
应用商店
"
,
router
:
"
/shop/
app_store_list
"
,
router
:
"
/shop/
service/12
"
,
active
:
"
tool_ic_yingyongsd_sel
"
,
default
:
"
tool_ic_yingyongsd
"
}
...
...
src/components/shop-car-apply/apply_service_state.vue
View file @
e499f06e
...
...
@@ -75,7 +75,7 @@
<
script
>
import
uploadFile
from
"
@/components/upload_file
"
;
import
tableUm
from
"
..
/table-um
"
;
import
tableUm
from
"
@/components/table
/table-um
"
;
export
default
{
props
:
[
"
data
"
],
components
:
{
...
...
src/components/shopping-cart/shopping-cart-cell.vue
View file @
e499f06e
...
...
@@ -10,23 +10,29 @@
<el-col
:span=
"9"
>
<div
class=
"shopping_cell_item"
>
<img
src=
"https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg
"
:src=
"cellIsService ? cellItems.service.cover:cellItems.application.logo
"
class=
"shopping_cell_img"
/>
<div
class=
"shopping_cell_msg"
>
<div
class=
"shopping_cell_name"
>
{{
cellItems
.
name
}}
{{
cellItems
.
service
.
name
}}
<span
v-if=
"cellItems.
mapService
"
v-if=
"cellItems.
service.data_service_type1_name == '时空服务'
"
class=
"tags map_service"
>
mapService
</span>
<span
v-if=
"cellItems.s
tate
== 1"
class=
"tags shared"
>
共享
</span>
<span
v-else-if=
"cellItems.s
tate
== 2"
class=
"tags restricted"
>
受限
</span>
<span
v-if=
"cellItems.s
ervice.openness
== 1"
class=
"tags shared"
>
共享
</span>
<span
v-else-if=
"cellItems.s
ervice.openness
== 2"
class=
"tags restricted"
>
受限
</span>
<span
v-else
class=
"tags sensitive"
>
敏感
</span>
</div>
<div
class=
"shopping_cell_msg_other"
>
<div
class=
"shopping_cell_type"
>
{{
cellItems
.
type
}}
</div>
<div
class=
"shopping_cell_creator"
>
{{
cellItems
.
creator
}}
</div>
<div
v-if=
"cellIsService"
class=
"shopping_cell_type"
>
{{
cellItems
.
service
.
data_service_type1_name
}}{{
cellItems
.
service
.
data_service_type2_name
}}{{
cellItems
.
service
.
data_service_type3_name
}}
</div>
<div
v-else
class=
"shopping_cell_type"
>
{{
cellItems
.
application
.
ywly
}}
</div>
<div
class=
"shopping_cell_creator"
>
{{
cellIsService
?
cellItems
.
service
.
organization_name
:
cellItems
.
application
.
org
}}
</div>
</div>
</div>
</div>
...
...
@@ -34,39 +40,52 @@
<el-col
:span=
"5"
>
<div
class=
"shopping_cell_specification"
>
<div
class=
"shopping_cell_specification_val"
>
<div
class=
"shopping_cell_specification_val_specification"
>
规格:
{{
specificationBtns
[
cellItems
.
specification
]
}}
</div>
<div
class=
"shopping_cell_specification_val_specification"
>
规格:
{{
getSpecification
}}
</div>
<div
class=
"shopping_cell_specification_val_type"
>
申请方式:
{{
specificationApplicationBtns
[
cellItems
.
specificationApplication
-
1
]
}}
</div>
>
申请方式:
{{
specificationApplicationBtns
[
cellItems
.
duration_method
-
1
].
value
}}
</div>
<div
class=
"shopping_cell_specification_edit"
>
<el-popover
placement=
"right-start"
width=
"280"
v-model=
"visible"
@
after-leave
=
"setSpecificationPop"
@
show
=
"setSpecificationPop"
>
<div>
<div
v-if=
"cellIsService"
>
<div
class=
"shopping_cell_specification_title"
>
规格:
</div>
<div
v-if=
"cellItems.service.request_spcs_info && cellItems.service.request_spcs_info.length != 0"
>
<el-button
v-for=
"(item, index) in cellItems.service.request_spcs_info"
:key=
"'specification' + index"
:class=
"specificationPop == item.id ? 'shopping_cell_specification_btn active' : 'shopping_cell_specification_btn'"
size=
"mini"
@
click=
"changeSpecification(item.id)"
>
{{
index
+
1
+
"
.
"
+
item
.
des
}}
</el-button>
</div>
<div
class=
"no_option"
v-else
>
暂无规格
</div>
</div>
<div
v-else
>
<div
class=
"shopping_cell_specification_title"
>
规格:
</div>
<div>
<el-button
v-for=
"(item, index) in s
pecificationBtns"
v-for=
"(item, index) in appS
pecificationBtns"
:key=
"'specification' + index"
:class=
"specificationPop == index
? 'shopping_cell_specification_btn active' : 'shopping_cell_specification_btn'"
:class=
"specificationPop == item.id
? 'shopping_cell_specification_btn active' : 'shopping_cell_specification_btn'"
size=
"mini"
@
click=
"changeSpecification(index)"
>
{{
index
+
1
+
"
.
"
+
item
}}
</el-button>
@
click=
"changeSpecification(item.id)"
>
{{
index
+
1
+
"
.
"
+
item
.
value
}}
</el-button>
</div>
</div>
<div
class=
"shopping_cell_specification_title"
>
申请方式:
</div>
<div>
<el-button
v-for=
"(item, index) in specificationApplicationBtns"
:key=
"'specification' + index"
:class=
"specificationApplicationPop == i
ndex
? 'shopping_cell_specification_btn active' : 'shopping_cell_specification_btn'"
:class=
"specificationApplicationPop == i
tem.id
? 'shopping_cell_specification_btn active' : 'shopping_cell_specification_btn'"
size=
"mini"
@
click=
"changeSpecificationApplication(i
ndex
)"
>
{{
item
}}
购买
</el-button>
@
click=
"changeSpecificationApplication(i
tem.id
)"
>
{{
item
.
value
}}
购买
</el-button>
</div>
</div>
<div
class=
"pop_footer"
>
...
...
@@ -93,7 +112,7 @@
<el-col
:span=
"4"
class=
"shopping_cell_num"
>
<el-input-number
:disabled=
"readOnly"
v-model=
"cellItems.
num
"
v-model=
"cellItems.
duration
"
@
change=
"changeNum"
size=
"mini"
:min=
"1"
...
...
@@ -102,7 +121,7 @@
<el-col
:span=
"4"
class=
"shopping_cell_options"
>
<el-checkbox
v-if=
"!readOnly"
v-model=
"cellItems.
checkedSubscription
"
v-model=
"cellItems.
is_subscribe
"
@
change=
"changeSubscription"
>
订阅该服务
</el-checkbox>
<div
class=
"shopping_cell_options_del"
>
...
...
@@ -126,6 +145,9 @@ export default {
readOnly
:
{
type
:
Boolean
,
default
:
false
},
cellIsService
:
{
type
:
Boolean
}
},
watch
:
{
...
...
@@ -146,34 +168,69 @@ export default {
checkedSubscription
:
false
,
visible
:
false
,
specificationPop
:
1
,
specificationApplicationPop
:
0
,
specificationBtns
:
[
"
访问次数:20/日 访问量:100/日
"
,
"
访问次数:200/日 访问量:1000/日
"
,
"
访问次数:无上限 访问量:无上限
"
specificationApplicationPop
:
1
,
// specificationBtns: [
// { id: 1, value: "访问次数:20/日 访问量:100/日" },
// { id: 2, value: "访问次数:200/日 访问量:1000/日" },
// { id: 3, value: "访问次数:无上限 访问量:无上限" }
// ],
appSpecificationBtns
:
[
{
id
:
1
,
value
:
"
部署
"
},
{
id
:
2
,
value
:
"
开发
"
}
],
specificationApplicationBtns
:
[
"
按月
"
,
"
按年
"
]
specificationApplicationBtns
:
[
{
id
:
1
,
value
:
"
按月
"
},
{
id
:
2
,
value
:
"
按年
"
}
]
}),
computed
:
{},
computed
:
{
getSpecification
()
{
if
(
this
.
cellIsService
)
{
let
arr
=
[];
if
(
this
.
cellItems
.
service
.
request_spec_info
&&
this
.
cellItems
.
service
.
request_spec_info
.
length
!=
0
)
{
this
.
cellItems
.
service
.
request_spec_info
.
forEach
(
item
=>
{
arr
.
push
(
item
.
id
);
});
}
let
num
=
arr
.
indexOf
(
this
.
cellItems
.
spec_id
);
let
specification
=
""
;
if
(
num
!=
-
1
)
{
specification
=
this
.
cellItems
.
service
.
request_spec_info
[
num
].
value
;
}
return
specification
;
}
else
{
if
(
this
.
cellItems
.
spec_id
==
1
)
{
return
"
部署
"
;
}
else
{
return
"
开发
"
;
}
}
}
},
mounted
()
{},
methods
:
{
getState
(
val
)
{
this
.
$emit
(
"
changeState
"
,
{
state
:
val
,
index
:
this
.
cellIndex
});
},
changeSpecification
(
val
)
{
console
.
log
(
val
);
this
.
specificationPop
=
val
;
},
changeSpecificationApplication
(
val
)
{
this
.
specificationApplicationPop
=
val
;
},
submitPop
()
{
this
.
cellItems
.
spec
ification
=
this
.
specificationPop
;
this
.
cellItems
.
specificationApplication
=
this
.
specificationApplicationPop
;
this
.
cellItems
.
spec
_id
=
this
.
specificationPop
;
this
.
cellItems
.
duration_method
=
this
.
specificationApplicationPop
;
this
.
visible
=
false
;
this
.
changeCellItem
();
},
setSpecificationPop
()
{
this
.
specificationPop
=
this
.
cellItems
.
spec
ification
;
this
.
specificationApplicationPop
=
this
.
cellItems
.
specificationApplication
;
this
.
specificationPop
=
this
.
cellItems
.
spec
_id
;
this
.
specificationApplicationPop
=
this
.
cellItems
.
duration_method
;
},
changeSubscription
(
val
)
{
this
.
changeCellItem
();
...
...
@@ -193,8 +250,7 @@ export default {
data
:
this
.
cellItems
});
}
},
mounted
()
{}
}
};
</
script
>
...
...
@@ -349,6 +405,11 @@ export default {
text-align
:
right
;
margin
:
30px
5px
5px
;
}
.no_option
{
text-align
:
center
;
height
:
40px
;
line-height
:
40px
;
}
</
style
>
<
style
>
.shopping_cell_specification_edit
.el-button
{
...
...
src/components/shopping-cart/shopping-cart-com.vue
View file @
e499f06e
...
...
@@ -26,7 +26,7 @@
</div>
<div
class=
"shopping_list shopping_list_fail"
>
<div
class=
"expired_service"
>
已失效服务
</div>
<ShoppingCartList
:readOnly=
"true"
class=
"shopping_all_list"
/>
<ShoppingCartList
:readOnly=
"true"
:list=
"listIn"
class=
"shopping_all_list"
/>
</div>
<div
class=
"shopping_list shopping_list_options"
>
<div
class=
"shopping_cart_options"
>
...
...
@@ -74,7 +74,8 @@ export default {
data
:
()
=>
({
checkShopAll
:
false
,
checkList
:
[],
list
:
[]
list
:
[],
listIn
:
[]
}),
mounted
()
{
this
.
getList
();
...
...
@@ -93,11 +94,11 @@ export default {
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
response
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
console
.
log
(
response
.
data
.
data
);
this
.
list
=
response
.
data
.
data
;
this
.
list
=
response
.
data
.
data
.
valid
;
this
.
listIn
=
response
.
data
.
data
.
invalid
;
for
(
const
index
in
this
.
list
)
{
this
.
checkList
.
push
(
false
);
}
console
.
log
(
this
.
checkList
);
}
else
{
console
.
log
(
response
.
data
.
message
);
}
...
...
@@ -109,7 +110,6 @@ export default {
changeState
(
val
)
{
console
.
log
(
val
);
this
.
$set
(
this
.
checkList
,
val
.
index
,
val
.
state
);
console
.
log
(
this
.
checkList
);
if
(
this
.
checkList
.
indexOf
(
false
)
==
-
1
)
{
this
.
checkShopAll
=
true
;
}
else
{
...
...
@@ -117,24 +117,37 @@ export default {
}
},
delSelectService
()
{
let
query
=
[];
this
.
checkList
.
forEach
((
item
,
index
)
=>
{
if
(
item
===
true
)
{
console
.
log
(
this
.
list
[
index
]
);
query
.
push
(
this
.
list
[
index
].
id
);
}
});
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
console
.
log
(
response
);
this
.
getList
()
});
},
changeCellMsg
(
val
)
{
console
.
log
(
val
);
},
deleteItem
(
val
)
{
console
.
log
(
val
);
let
query
=
[
val
.
data
.
id
];
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
console
.
log
(
response
);
this
.
getList
()
});
},
oneClickApplication
()
{
let
arr
=
[];
this
.
checkList
.
forEach
((
item
,
index
)
=>
{
if
(
item
===
true
)
{
console
.
log
(
this
.
list
[
index
]);
arr
.
push
(
this
.
list
[
index
]);
}
});
this
.
$store
.
commit
(
"
setShoppingCart
"
,
arr
);
this
.
$router
.
push
({
name
:
"
shopCarApply
"
});
}
}
};
...
...
src/components/shopping-cart/shopping-cart-list.vue
View file @
e499f06e
...
...
@@ -4,6 +4,7 @@
<ShoppingCartCell
v-for=
"(item, index) in list"
:cellItem=
"item"
:cellIsService=
"item.service_id == 0 ? false:true"
:cellIndex=
"index"
:cellCheck=
"checkLists[index]"
:key=
"item.id"
...
...
@@ -35,7 +36,9 @@ export default {
},
checkList
:
{
type
:
Array
,
default
:
()
=>
{[]}
default
:
()
=>
{
[];
}
}
},
watch
:
{
...
...
@@ -57,14 +60,14 @@ export default {
},
setAllState
(
val
)
{
for
(
let
i
=
0
;
i
<
this
.
checkLists
.
length
;
i
++
)
{
this
.
$set
(
this
.
checkLists
,
i
,
val
)
this
.
$set
(
this
.
checkLists
,
i
,
val
)
;
}
},
changeCellMsg
(
val
)
{
this
.
$emit
(
"
changeCellMsg
"
,
val
)
this
.
$emit
(
"
changeCellMsg
"
,
val
)
;
},
deleteItem
(
val
)
{
this
.
$emit
(
"
deleteItem
"
,
val
)
this
.
$emit
(
"
deleteItem
"
,
val
)
;
}
}
};
...
...
src/components/dialog-remove.vue
→
src/components/
table/
dialog-remove.vue
View file @
e499f06e
File moved
src/components/table-filter.vue
→
src/components/table
/table
-filter.vue
View file @
e499f06e
File moved
src/components/table-input.vue
→
src/components/table
/table
-input.vue
View file @
e499f06e
File moved
src/components/table-select.vue
→
src/components/table
/table
-select.vue
View file @
e499f06e
File moved
src/components/table-um.vue
→
src/components/table
/table
-um.vue
View file @
e499f06e
...
...
@@ -178,9 +178,9 @@
</el-popover>
<!-- 排名图标替换 -->
<span
v-else-if=
"item.type === 'rank'"
>
<img
src=
"
..
/assets/imgs/list_ic_topone.png"
alt
v-if=
"scope.row[item.prop]==1"
/>
<img
src=
"
..
/assets/imgs/list_ic_toptwo.png"
alt
v-if=
"scope.row[item.prop]==2"
/>
<img
src=
"
..
/assets/imgs/list_ic_topthree.png"
alt
v-if=
"scope.row[item.prop]==3"
/>
<img
src=
"
@
/assets/imgs/list_ic_topone.png"
alt
v-if=
"scope.row[item.prop]==1"
/>
<img
src=
"
@
/assets/imgs/list_ic_toptwo.png"
alt
v-if=
"scope.row[item.prop]==2"
/>
<img
src=
"
@
/assets/imgs/list_ic_topthree.png"
alt
v-if=
"scope.row[item.prop]==3"
/>
{{
[
1
,
2
,
3
].
indexOf
(
scope
.
row
[
item
.
prop
])
!==-
1
?
''
:
scope
.
row
[
item
.
prop
]
}}
</span>
<!-- 服务添加图标 -->
...
...
@@ -188,7 +188,7 @@
v-else-if=
"item.type === 'hot'"
:style=
"scope.row['hot']?
{marginLeft:'-10px'}:{paddingLeft:'2px'}"
>
<img
src=
"
..
/assets/imgs/list_ic_hot.png"
alt
v-if=
"scope.row['hot']"
/>
<img
src=
"
@
/assets/imgs/list_ic_hot.png"
alt
v-if=
"scope.row['hot']"
/>
{{
scope
.
row
[
item
.
prop
]
}}
</span>
<!-- others -->
...
...
@@ -248,12 +248,12 @@
<
script
>
import
services
from
"
@/services
"
;
import
TableInput
from
"
@/components/table-input
"
;
import
TableSelect
from
"
@/components/table-select
"
;
import
TableInput
from
"
@/components/table
/table
-input
"
;
import
TableSelect
from
"
@/components/table
/table
-select
"
;
import
helper
from
"
@/services/helper
"
;
import
DConfirm
from
"
@/components/dialog-remove
"
;
import
TableUmhref
from
"
@/components/table-umhref
"
;
import
TableFilter
from
"
@/components/table-filter
"
;
import
DConfirm
from
"
@/components/
table/
dialog-remove
"
;
import
TableUmhref
from
"
@/components/table
/table
-umhref
"
;
import
TableFilter
from
"
@/components/table
/table
-filter
"
;
export
default
{
components
:
{
"
v-apaas-table-input
"
:
TableInput
,
...
...
src/components/table-umhref.vue
→
src/components/table
/table
-umhref.vue
View file @
e499f06e
File moved
src/i18n/language-zh.js
View file @
e499f06e
...
...
@@ -11,4 +11,7 @@ export const lang={
// unit of purchase duration
byYear
:
"
按年
"
,
byMonth
:
"
按月
"
,
// service shop menu item
serviceShop
:
"
服务超市
"
}
\ No newline at end of file
src/pages/example/example_table.vue
View file @
e499f06e
...
...
@@ -77,7 +77,7 @@
</
template
>
<
script
>
import
cesTable
from
"
@/components/table-um
"
;
import
cesTable
from
"
@/components/table
/table
-um
"
;
export
default
{
data
:
()
=>
({
headers
:
[
...
...
src/pages/user/message.vue
View file @
e499f06e
...
...
@@ -24,7 +24,7 @@
</
template
>
<
script
>
import
CesTable
from
"
@/components/table-um
"
;
import
CesTable
from
"
@/components/table
/table
-um
"
;
import
BlockRadius
from
"
@/components/block-radius
"
;
export
default
{
components
:
{
...
...
src/pages/user/order/order_detail.vue
View file @
e499f06e
...
...
@@ -109,7 +109,7 @@
<
script
>
import
BlockRadius
from
"
@/components/block-radius
"
;
import
ProcessCard
from
"
@/components/process-card
"
;
import
TableUm
from
"
@/components/table-um
"
;
import
TableUm
from
"
@/components/table
/table
-um
"
;
import
InfoList
from
"
@/components/infoList
"
;
export
default
{
components
:
{
...
...
src/pages/workbench/fwgl/apply_service_detail.vue
View file @
e499f06e
...
...
@@ -22,7 +22,7 @@
<
script
>
import
serviceHeader
from
'
@/components/service-header
'
import
infoList
from
'
@/components/infoList
'
import
tableUm
from
'
@/components/table-um
'
import
tableUm
from
'
@/components/table
/table
-um
'
import
processCard
from
'
@/components/process-card
'
export
default
{
props
:
{
...
...
src/pages/workbench/fwgl/approval_service_detail.vue
View file @
e499f06e
...
...
@@ -54,7 +54,7 @@
<
script
>
import
serviceHeader
from
"
@/components/service-header
"
;
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
processCard
from
"
@/components/process-card
"
;
export
default
{
props
:
{},
...
...
src/pages/workbench/fwgl/serviceDetail.vue
View file @
e499f06e
...
...
@@ -138,7 +138,7 @@
<
script
>
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
codes
from
"
@/components/codes
"
;
import
norCard
from
"
@/components/card
"
;
import
exampleIcon
from
"
@/pages/example/example_icon
"
;
...
...
src/pages/workbench/fwzc_fwcs.vue
View file @
e499f06e
...
...
@@ -349,7 +349,7 @@
<
script
>
import
BlockRadius
from
"
@/components/block-radius
"
;
import
CesTable
from
"
@/components/table-um
"
;
import
CesTable
from
"
@/components/table
/table
-um
"
;
import
Codes
from
"
@/components/codes
"
;
import
uploadFile
from
"
@/components/upload_file
"
;
export
default
{
...
...
src/pages/workbench/workPlace.vue
View file @
e499f06e
...
...
@@ -238,7 +238,7 @@
<
script
>
import
uuidv1
from
"
uuid/v1
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
var
echarts
=
require
(
"
echarts
"
);
export
default
{
...
...
src/pages/workbench/yygl/app_detail.vue
View file @
e499f06e
...
...
@@ -96,7 +96,7 @@
<
script
>
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
serviceHeader
from
"
@/components/service-header
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
uploadFile
from
'
@/components/upload_file
'
...
...
src/pages/workbench/yygl/apply_app_detail.vue
View file @
e499f06e
...
...
@@ -42,7 +42,7 @@
<
script
>
import
serviceHeader
from
"
@/components/service-header
"
;
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
{
getRole
}
from
"
@/utils/common
"
;
export
default
{
...
...
src/pages/workbench/yygl/approval_app_detail.vue
View file @
e499f06e
...
...
@@ -54,7 +54,7 @@
<
script
>
import
serviceHeader
from
"
@/components/service-header
"
;
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
processCard
from
"
@/components/process-card
"
;
import
{
getRole
}
from
"
@/utils/common
"
export
default
{
...
...
src/pages/workbench/yygl/deploy_app_detail.vue
View file @
e499f06e
...
...
@@ -196,7 +196,7 @@
<
script
>
import
infoList
from
"
@/components/infoList
"
;
import
tableUm
from
"
@/components/table-um
"
;
import
tableUm
from
"
@/components/table
/table
-um
"
;
import
serviceHeader
from
"
@/components/service-header
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
uploadFile
from
"
@/components/upload_file
"
;
...
...
src/pages/workbench/yygl/yyglList.vue
View file @
e499f06e
...
...
@@ -86,9 +86,9 @@
</
template
>
<
script
>
import
tableFilter
from
"
@/components/table-filter
"
;
import
tableFilter
from
"
@/components/table
/table
-filter
"
;
import
appList
from
"
@/components/app-list/app-list
"
;
import
cesTable
from
"
@/components/table-um
"
;
import
cesTable
from
"
@/components/table
/table
-um
"
;
import
dialogAction
from
"
@/components/dialog-action
"
;
import
commentsPagination
from
"
@/components/comments-pagination
"
;
import
{
mapState
}
from
"
vuex
"
;
...
...
src/request/api/service_shop.js
View file @
e499f06e
...
...
@@ -15,6 +15,9 @@ serviceType2s=${params.serviceType2s}&dataDomains=${params.dataDomains}&
organizeIds=
${
params
.
organizeIds
}
&orderBy=
${
params
.
orderBy
}
&
Page=
${
params
.
Page
}
&Size=
${
params
.
Size
}
`
);
},
getAppList
(
params
)
{
return
axios
.
get
(
``
)
},
getServiceShopDetail
(
params
)
{
return
axios
.
get
(
`/apaas/serviceapp/v3/servicemarket/detail?serviceId=`
)
},
...
...
src/router/index.js
View file @
e499f06e
...
...
@@ -114,32 +114,12 @@ export default new Router({
{
path
:
"
/shop
"
,
// 服务超市
name
:
"
shop
"
,
redirect
:
"
/shop/
data_service_list
"
,
redirect
:
"
/shop/
service
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop
"
),
children
:
[
{
path
:
"
/shop/data_service_list
"
,
// 数据服务列表页
name
:
"
shopDataList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
path
:
"
/shop/space_time_service_list
"
,
// 时空服务列表页
name
:
"
shopSpaceTimeList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
path
:
"
/shop/video_service_list
"
,
// 视频服务列表页
name
:
"
shopVideoList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
path
:
"
/shop/perception_service_list
"
,
// 感知服务列表页
name
:
"
shopPerceptionList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
path
:
"
/shop/comprehensive_app_list
"
,
// 综合应用列表页
name
:
"
shopComAppList
"
,
path
:
"
/shop/service/:id
"
,
// 数据服务、时空、视频、感知、综合、应用列表页
name
:
"
shopList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
...
...
@@ -153,11 +133,6 @@ export default new Router({
component
:
()
=>
import
(
"
@/pages/service_shop/service_application_successfully
"
),
},
{
path
:
"
/shop/app_store_list
"
,
// 应用商店列表页
name
:
"
shopAppStoreList
"
,
component
:
()
=>
import
(
"
@/pages/service_shop/shop_list
"
),
},
{
path
:
"
/shop/shopping_cart
"
,
// 购物车页
name
:
"
shoppingCart
"
,
...
...
src/store/index.js
View file @
e499f06e
...
...
@@ -16,6 +16,8 @@ const store = new Vuex.Store({
[
"
应用仓库管理
"
,
"
部署的应用
"
,
"
应用审批管理
"
],
// 组织管理员
[
"
平台应用管理
"
,
"
应用部署管理
"
,
"
应用审批管理
"
],
// 超级管理员
],
// 应用管理列表,onlyRead
shoppingCart
:
[],
//购物车
menuCartState
:
0
,
//购物车操作都要修改这个值,menu监听这个值的变化实时获取购物车列表
},
modules
:
{},
mutations
:
{
...
...
@@ -25,6 +27,12 @@ const store = new Vuex.Store({
serviceShopMenuAct
(
state
,
newValue
)
{
state
.
serviceShopMenu
=
newValue
;
},
setShoppingCart
(
state
,
newValue
)
{
state
.
shoppingCart
=
newValue
;
},
setMenuCartState
(
state
)
{
state
.
menuCartState
++
;
}
},
});
...
...
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