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
2031552e
Commit
2031552e
authored
Aug 14, 2020
by
刘殿昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云服务、购物车、流程编辑
parent
2c8c3e03
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
392 additions
and
448 deletions
+392
-448
src/assets/i18n/language-zh.js
src/assets/i18n/language-zh.js
+1
-0
src/components/shop-cloud/shop-cloud.vue
src/components/shop-cloud/shop-cloud.vue
+349
-417
src/components/shopping-cart/shopping-cart-com.vue
src/components/shopping-cart/shopping-cart-com.vue
+10
-10
src/pages/service_shop/shop_car_apply.vue
src/pages/service_shop/shop_car_apply.vue
+1
-0
src/pages/workbench/component-center/process-management/process-design/edit.vue
...mponent-center/process-management/process-design/edit.vue
+28
-21
src/request/api/service-shop.js
src/request/api/service-shop.js
+3
-0
No files found.
src/assets/i18n/language-zh.js
View file @
2031552e
...
@@ -39,6 +39,7 @@ export const lang = {
...
@@ -39,6 +39,7 @@ export const lang = {
process_design
:
"
流程设计
"
,
process_design
:
"
流程设计
"
,
process_management
:
"
流程管理
"
,
process_management
:
"
流程管理
"
,
new
:
"
新建
"
,
new
:
"
新建
"
,
edit
:
"
编辑
"
,
// technical-support
// technical-support
technical_support
:
"
技术支持
"
technical_support
:
"
技术支持
"
...
...
src/components/shop-cloud/shop-cloud.vue
View file @
2031552e
This diff is collapsed.
Click to expand it.
src/components/shopping-cart/shopping-cart-com.vue
View file @
2031552e
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
import
ShoppingCartList
from
"
@/components/shopping-cart/shopping-cart-list
"
;
import
ShoppingCartList
from
"
@/components/shopping-cart/shopping-cart-list
"
;
export
default
{
export
default
{
components
:
{
components
:
{
ShoppingCartList
ShoppingCartList
,
},
},
props
:
{},
props
:
{},
data
:
()
=>
({
data
:
()
=>
({
...
@@ -83,7 +83,7 @@ export default {
...
@@ -83,7 +83,7 @@ export default {
checkList
:
[],
checkList
:
[],
checkListIn
:
[],
checkListIn
:
[],
list
:
[],
list
:
[],
listIn
:
[]
listIn
:
[]
,
}),
}),
mounted
()
{
mounted
()
{
this
.
getList
();
this
.
getList
();
...
@@ -95,14 +95,14 @@ export default {
...
@@ -95,14 +95,14 @@ export default {
0
0
);
);
return
num
;
return
num
;
}
}
,
},
},
methods
:
{
methods
:
{
getList
()
{
getList
()
{
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
response
=>
{
this
.
$api
.
serviceShop
.
getShoppingCart
().
then
(
(
response
)
=>
{
if
(
response
.
data
.
success
==
"
1
"
)
{
if
(
response
.
data
.
success
==
"
1
"
)
{
this
.
list
=
response
.
data
.
data
.
valid
;
this
.
list
=
response
.
data
.
data
.
valid
||
[]
;
this
.
listIn
=
response
.
data
.
data
.
invalid
;
this
.
listIn
=
response
.
data
.
data
.
invalid
||
[]
;
this
.
checkList
=
[];
this
.
checkList
=
[];
this
.
checkListIn
=
[];
this
.
checkListIn
=
[];
for
(
let
index
in
this
.
list
)
{
for
(
let
index
in
this
.
list
)
{
...
@@ -135,7 +135,7 @@ export default {
...
@@ -135,7 +135,7 @@ export default {
query
.
push
(
this
.
list
[
index
].
id
);
query
.
push
(
this
.
list
[
index
].
id
);
}
}
});
});
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
(
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
getList
();
this
.
getList
();
...
@@ -147,7 +147,7 @@ export default {
...
@@ -147,7 +147,7 @@ export default {
deleteItem
(
val
)
{
deleteItem
(
val
)
{
console
.
log
(
val
);
console
.
log
(
val
);
let
query
=
[
val
.
data
.
id
];
let
query
=
[
val
.
data
.
id
];
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
response
=>
{
this
.
$api
.
serviceShop
.
delShoppingCart
(
query
).
then
(
(
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
getList
();
this
.
getList
();
...
@@ -168,8 +168,8 @@ export default {
...
@@ -168,8 +168,8 @@ export default {
updateList
()
{
updateList
()
{
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
getList
();
this
.
getList
();
}
}
,
}
}
,
};
};
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
...
...
src/pages/service_shop/shop_car_apply.vue
View file @
2031552e
...
@@ -287,6 +287,7 @@ export default {
...
@@ -287,6 +287,7 @@ export default {
.
then
(
response
=>
{
.
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
.
success
)
{
if
(
response
.
data
.
success
)
{
this
.
$store
.
commit
(
"
setMenuCartState
"
);
this
.
$message
.
success
(
"
申请成功
"
);
this
.
$message
.
success
(
"
申请成功
"
);
this
.
$router
.
replace
(
"
/shop/service_application_successfully
"
);
this
.
$router
.
replace
(
"
/shop/service_application_successfully
"
);
}
else
{
}
else
{
...
...
src/pages/workbench/component-center/process-management/process-design/edit.vue
View file @
2031552e
...
@@ -4,17 +4,10 @@
...
@@ -4,17 +4,10 @@
<el-breadcrumb-item
:to=
"
{ path: '/workplace' }">
{{
$t
(
"
lang.online_component_tool
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/workplace' }">
{{
$t
(
"
lang.online_component_tool
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_design
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_design
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_management
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item
:to=
"
{ path: '/progress/designer' }">
{{
$t
(
"
lang.process_management
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.
new
"
)
}}
</el-breadcrumb-item>
<el-breadcrumb-item>
{{
$t
(
"
lang.
edit
"
)
}}
</el-breadcrumb-item>
</el-breadcrumb>
</el-breadcrumb>
<BlockRadius
class=
"block_item"
>
<BlockRadius
class=
"block_item"
>
<steps
<steps
:active-step=
"step"
:show-done=
"true"
class=
"apaas_steps"
>
:active-step=
"step"
:done=
"done"
:show-done=
"true"
done-title=
"保存成功"
done-sub-title=
"可返回流程管理列表查看该流程,并进行流程的部署和发布。"
class=
"apaas_steps"
>
<step
<step
title=
"基本信息"
title=
"基本信息"
:step=
"0"
:step=
"0"
...
@@ -65,13 +58,7 @@
...
@@ -65,13 +58,7 @@
class=
"apaas_step"
class=
"apaas_step"
>
>
<div
class=
"step_in"
>
<div
class=
"step_in"
>
<WorkFlow
<WorkFlow
ref=
"workFlow"
class=
"work_flow"
/>
ref=
"workFlow"
:node_list=
"node_list"
:link_list=
"link_list"
:node_params_list=
"node_params_list"
class=
"work_flow"
/>
<div
class=
"btn_footer"
>
<div
class=
"btn_footer"
>
<el-button
class=
"cancel"
@
click=
"cancel"
>
取消
</el-button>
<el-button
class=
"cancel"
@
click=
"cancel"
>
取消
</el-button>
<div>
<div>
...
@@ -87,11 +74,27 @@
...
@@ -87,11 +74,27 @@
:step=
"2"
:step=
"2"
:active-icon=
"require('@/assets/imgs/progress_ic_wancheng.png')"
:active-icon=
"require('@/assets/imgs/progress_ic_wancheng.png')"
class=
"apaas_step"
class=
"apaas_step"
></step>
>
<div
class=
"steps_container steps_done"
>
<template
slot=
"action"
>
<div
class=
"steps_done_info"
>
<el-button
type=
"primary"
@
click=
"backToList"
>
返回列表
</el-button>
<div
class=
"left_container"
>
</
template
>
<img
:src=
"require('@/assets/imgs/steps_done.png')"
width=
"100%"
/>
</div>
<div
class=
"right_container"
>
<p>
保存成功
</p>
<p>
可返回流程管理列表查看该流程,并进行流程的部署和发布。
</p>
</div>
</div>
<div
class=
"done_action apaas_button"
>
<slot
name=
"action"
></slot>
</div>
<div
class=
"btn_footer_1"
>
<div>
<el-button
class=
"next"
@
click=
"backToList"
>
返回列表
</el-button>
</div>
</div>
</div>
</step>
</steps>
</steps>
</BlockRadius>
</BlockRadius>
</div>
</div>
...
@@ -264,6 +267,10 @@ export default {
...
@@ -264,6 +267,10 @@ export default {
.
getProcessDetail
({
id
:
this
.
$route
.
params
.
id
})
.
getProcessDetail
({
id
:
this
.
$route
.
params
.
id
})
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
if
(
response
.
data
.
success
==
1
)
{
if
(
response
.
data
.
success
==
1
)
{
let
data
=
response
.
data
.
data
;
this
.
basic_form
.
name
=
data
.
name
;
this
.
basic_form
.
workplace
=
data
.
workarea
;
this
.
basic_form
.
desc
=
data
.
describe
;
this
.
node_list
=
[];
this
.
node_list
=
[];
this
.
link_list
=
[];
this
.
link_list
=
[];
this
.
node_params_list
=
[];
this
.
node_params_list
=
[];
...
...
src/request/api/service-shop.js
View file @
2031552e
...
@@ -43,6 +43,9 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
...
@@ -43,6 +43,9 @@ businessArea=${params.businessArea}&developable=${params.developable}&orgSource=
updateCloud
(
params
)
{
updateCloud
(
params
)
{
return
axios
.
post
(
`/apaas/serviceapp/v3/resource/apply/up`
,
params
)
return
axios
.
post
(
`/apaas/serviceapp/v3/resource/apply/up`
,
params
)
},
},
checkNameSpaceCouldUse
(
params
)
{
return
axios
.
get
(
`/apaas/service/v3/resource/apply/checkNs?namespace=
${
params
.
id
}
`
)
},
// shopping cart
// shopping cart
addShoppingCart
(
params
)
{
addShoppingCart
(
params
)
{
...
...
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